function csPopup(id) {	var popupURL = './popups/case_study.php?id='+id;	var mywidth = 750;	var myheight = 650;	if(window.cs_popup) {		window.cs_popup.location=popupURL;		window.cs_popup.focus();	} else {		var cs_popup=window.open(popupURL,'cs_popup','top=5,screenY=5,left=5,screenX=5,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+mywidth+',height='+myheight);		if(navigator.appName.substring(0,8)=="Netscape" || navigator.appName=="Microsoft Internet Explorer") {			cs_popup.location=popupURL;			cs_popup.opener=self;		}		cs_popup.focus();	}}function imageUploadPopup() {	var popupURL = './popups/image_upload.php';	var mywidth = 375;	var myheight = 375;	if(window.iu_popup) {		window.iu_popup.location=popupURL;		window.iu_popup.focus();	} else {		var iu_popup=window.open(popupURL,'iu_popup','top=7,screenY=7,left=7,screenX=7,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+mywidth+',height='+myheight);		if(navigator.appName.substring(0,8)=="Netscape" || navigator.appName=="Microsoft Internet Explorer") {			iu_popup.location=popupURL;			iu_popup.opener=self;		}		iu_popup.focus();	}}function contactPopup(topic) {	var popupURL = '/popups/contact.php?topic='+topic;	var mywidth = 500;	var myheight = 475;	if(window.iu_popup) {		window.contact_popup.location=popupURL;		window. contact_popup.focus();	} else {		var contact_popup=window.open(popupURL,'contact_popup','top=5,screenY=5,left=5,screenX=5,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+mywidth+',height='+myheight);		if(navigator.appName.substring(0,8)=="Netscape" || navigator.appName=="Microsoft Internet Explorer") {			contact_popup.location=popupURL;			contact_popup.opener=self;		}		contact_popup.focus();	}}function PagePopup(popupURL) {	var mywidth = 600;	var myheight = 800;	if(window.popup) {		window.popup.location=popupURL;		window.popup.focus();	} else {		var popup=window.open(popupURL,'popup','top=7,screenY=7,left=7,screenX=7,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+mywidth+',height='+myheight);		if(navigator.appName.substring(0,8)=="Netscape" || navigator.appName=="Microsoft Internet Explorer") {			popup.location=popupURL;			popup.opener=self;		}		popup.focus();	}}function IsFormComplete(FormName) {	var x       = 0	var length	    = document.forms[FormName].elements.length	var FormOk  = true	while ((x < document.forms[FormName].elements.length) && (FormOk)) {		if (document.forms[FormName].elements[x].value == '')  {  			alert('Oops.  It looks like one or more required fields are blank or invalid.\nPlease try again.')			document.forms[FormName].elements[x].focus()			FormOk = false 		}		x ++	}	return FormOk}function IsContactFormComplete(FormName) {	var x       = 0	var length	    = document.forms[FormName].elements.length	var FormOk  = true	while ((x < document.forms[FormName].elements.length) && (FormOk)) {		if (document.forms[FormName].elements[x].value == '')  {  		  if ((x == 1) || (x == 2) || (x == 3) || (x == 8) || (x == 9) || (x == 10)) {			alert('Oops.  It looks like one or more required fields are blank or invalid.\nPlease try again.')			document.forms[FormName].elements[x].focus()			FormOk = false 		  }		}		x ++	}			return FormOk}function IsQuestionFormComplete(FormName) {	var x = 0;	var length = document.forms[FormName].elements.length;	var FormOk  = true	while ((x < document.forms[FormName].elements.length) && (FormOk)) {		if (document.forms[FormName].elements[x].value == '')  {  		  if ((x == 1) || (x == 2) || (x == 3) || (x == 4) || (x == 5) || (x == 6) || (x ==7)) {			alert('Oops.  It looks like one or more required fields are blank or invalid.\nPlease try again.')			document.forms[FormName].elements[x].focus()			FormOk = false 		  }		}		x ++	}			return FormOk}function IsCustImgUploadComplete(FormName) {	var x       = 0	var max	    = 3	var FormOk  = true	while ((x < document.forms[FormName].elements.length) && (FormOk)) {		if ((document.forms[FormName].elements[x].value == '') && (x < 5)) {			alert('Oops.  It looks like one or more required fields are blank or invalid...\nPlease try again.')			document.forms[FormName].elements[x].focus()			FormOk = false 		}		x ++	}	return FormOk}
