// JavaScript Document
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function clearInputName(e){ 
if(e.value==' Name')e.value=""; 
} 
function clearInputEmail(e){ 
if(e.value==' Email')e.value=""; 
} 
function clearInputMessage(e){ 
if(e.value==' How may we help you?')e.value=""; 
} 

function submitQuickConnect() {
		if(document.QuickConnect.Name.value.length < 2) {
			alert("A name is required.");
			document.QuickConnect.Name.focus();
			return;
		} else if(document.QuickConnect.Email.value.length < 5) {
			alert("An email address is required.");
			document.QuickConnect.Email.focus();
			return;
		} document.QuickConnect.submit();
}

function ZyprexaCaseReview() {
		if(document.Contact.Email.value.length < 5) {
			alert("Your Email Is Required.");
			document.Contact.Email.focus();
			return;
		} else if(document.Contact.DayPhone.value.length < 12) {
			alert("Your Daytime Phone Number Is Required.");
			document.Contact.DayPhone.focus();
			return;
		} document.Contact.submit();
	}

