function validate(formEval) {
		if (document.formEval.salutation.value == "") 
		{
		alert("Please select a Salutation.")
		document.formEval.salutation.focus()
		return false;
		} 
		else if (document.formEval.first_name.value == "") 
		{
		alert("Please complete the First Name field.")
		document.formEval.first_name.focus()
		return false;
		} 
		else if (document.formEval.last_name.value == "") 
		{
		alert("Please complete the Last Name field.")
		document.formEval.last_name.focus()
		return false;
		} 
		else if (document.formEval.company.value == "") 
		{
		alert("Please complete the Company/Institution field.")
		document.formEval.company.focus()
		return false;
		} 
		else if (document.formEval.title.value == "") 
		{
		alert("Please complete the Job Title field.")
		document.formEval.title.focus()
		return false;
		}
		else if (document.formEval.email.value == "") 
		{
		alert("Please complete the email field.")
		document.formEval.email.focus()
		return false;
		}
		else if (CheckEmail(document.formEval.email.value) == false) 
		{
		alert("Please enter a valid email address.")
		document.formEval.email.focus()
		return false;
		}
		else if (document.formEval.phone.value == "") 
		{
		alert("Please complete the Telephone field.")
		document.formEval.phone.focus()
		return false;
		}
		else if (document.formEval.street.value == "") 
		{
		alert("Please complete the Address field.")
		document.formEval.street.focus()
		return false;
		}
		else if (document.formEval.city.value == "") 
		{
		alert("Please complete the City field.")
		document.formEval.city.focus()
		return false;
		}
		else if (document.formEval.country.value == "") 
		{
		alert("Please complete the Country field.")
		document.formEval.country.focus()
		return false;
		}
		else if (document.formEval.state.value == "") 
		{
		alert("Please complete the State/Province field.")
		document.formEval.state.focus()
		return false;
		}
		else if (document.formEval.zip.value == "") 
		{
		alert("Please complete the Postal Code field.")
		document.formEval.zip.focus()
		return false;
		}
		else if (document.formEval["00N60000001YhRN"].value == "") 
		{
		alert("Please complete the System Platform field.")
		document.formEval["00N60000001YhRN"].focus()
		return false;
		}
		else if (document.formEval["00N60000001aL82"].value == "") 
		{
		alert("Please select how you would like Analyze delivered.")
		document.formEval["00N60000001aL82"].focus()
		return false;
		}
		else if (document.formEval["00N60000001YhSL"].value == "") 
		{
		alert("Please indicate how you heard about Analyze.")
		document.formEval["00N60000001YhSL"].focus()
		return false;
		}
		else if (document.formEval["00N60000001YhSL"].value == "Other") 
		{
			if (document.formEval["00N60000001YhSQ"].value == "") 
			{
			alert("Please indicate how you heard about Analyze.")
			document.formEval["00N60000001YhSQ"].focus()
			return false;
			}
		}
		else 
		{ 
		return true;
		}
	
	}

function selectText(textObj)
{
	textObj.focus()
	textObj.select()
}

function CheckEmail(email) {

                        var valid = 1

                        var atPos = 0

 

// Note: Remove the comments from the following line to see
// the indexOf method in action.
//alert("@ character is located at " + TheAddress.indexOf("@"))
// First make sure @ is at least at position 1. 
// Remember the first position is 0

                        atPos = email.indexOf("@")

                        if (atPos < 1) {

// Return false if @ isn't found.

                                    valid = 0

                        }


                        else {

// If @ is found, make sure it isn't last character in string.
            if (atPos == email.length-1) {
                                                valid = 0
                                    }
                        }
                        return valid
            }


//"Accept terms" form submission- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use 

var checkobj

function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}

function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Please read and accept the terms of the Clinical Use Disclaimer to submit your evaluation request. ")
return false
}
}
}

function disableOther(f, s){

	f.elements['00N60000001YhSQ'].disabled=(s!=5)?true:false;
	
	if (f.elements['00N60000001YhSQ'].disabled == true)
	
	{
		otherDiv.style.display='none';
	}
	
	else
	
	{
	otherDiv.style.display='block';
	}
	
}

function switchInstructions(f, s){

	instructionsDiv.style.display='block';
	sysInfoDiv.style.display='block';
	
	
	if (s==1)
	
	{
		winDiv.style.display='block';
		macDiv.style.display='none';
		linDiv.style.display='none';
		unixDiv.style.display='none';
	}
	
	else if (s==2)
	
	{
		winDiv.style.display='none';
		macDiv.style.display='block';
		linDiv.style.display='none';
		unixDiv.style.display='none';
	}
	
	else if (s==3)
		
	{
		winDiv.style.display='none';
		macDiv.style.display='none';
		linDiv.style.display='block';
		unixDiv.style.display='none';
	}
	
	else if (s==4)
	
	{
		winDiv.style.display='none';
		macDiv.style.display='none';
		linDiv.style.display='none';
		unixDiv.style.display='block';
	}
	
	else 
	
	{
		winDiv.style.display='none';
		macDiv.style.display='none';
		linDiv.style.display='none';
		unixDiv.style.display='none';
		instructionsDiv.style.display='none';
		sysInfoDiv.style.display='none';
	}
	
	
}

function popup_window( url, id, width, height )
    {
       //extract the url parameters if any, and pass them to the called html
       var tempvar=document.location.toString(); // fetch the URL string
       var passedparams = tempvar.lastIndexOf("?");
       if(passedparams > -1)
          url += tempvar.substring(passedparams);
      popup = window.open( url, id, 'toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=yes,width=' + width + ',height=' + height + '' );
      popup.focus();
    }
-->