function openWindow(url, width, height) {
	var img = window.open(url,'img','status=no,toolbar=0,scrollbars=yes,menubar=0,titlebar=0,resizable=1 width=' + width + ' height=' + height + ''); 
	img.focus();
}


function mailTo(server,user) {
	document.location.href = "mailto:" + user + "@" + server;
}

function formCheck() 
   {
       if (document.SubmitForm.First_Name.value == "") 
       {
       alert("You have failed to complete the required contact information.  Please re-enter your first name.");
       document.SubmitForm.First_Name.focus();
       return false;
       }
       if (document.SubmitForm.Last_Name.value == "") 
       {
       alert("You have failed to complete the required contact information.  Please re-enter your last name.");
       document.SubmitForm.Last_Name.focus();
       return false;
       }
       if ((!document.SubmitForm.User_Email.value.match(/^\S{1,}@\S{1,}\.\S{1,}$/)) ||
           document.SubmitForm.User_Email.value == "") 
       {
       alert("You have failed to complete the required contact information.  Please enter a valid e-mail address.");
       document.SubmitForm.User_Email.focus();
       return false;
       }
	if (document.SubmitForm.Subject.value == "") 
       {
       alert("You have failed to complete the required contact information.  Please enter a subject for your message.");
       document.SubmitForm.Subject.focus();
       return false;
	}
	 if(document.SubmitForm.Message) {
       if (document.SubmitForm.Message.value == "") 
       {
       alert("You have failed to complete the required contact information.  Please enter a message text.");
       document.SubmitForm.Message.focus();
       return false;
       }
	 } 
}
