/*function  checkvalues()
{
	var chkfrm = document.getElementById("EvalForm");
	if(chkfrm.x_first_name.value=="")
	{
		alert("Please enter first name");
		chkfrm.x_first_name.focus();		
		return false;
	}
	if(chkfrm.x_last_name.value=="")
	{
		alert("Please enter last name");
		chkfrm.x_last_name.focus();
		return false;
	}
	if(chkfrm.x_address.value=="")
	{
		alert("Please enter address");
		chkfrm.x_address.focus();
		return false;
	}
	if(chkfrm.x_city.value=="")
	{
		alert("Please enter city");
		chkfrm.x_city.focus();
		return false;
	}
	if(chkfrm.x_state.value=="")
	{
		alert("Please enter state");
		chkfrm.x_state.focus();
		return false;
	}
	if(chkfrm.x_zip.value=="")
	{
		alert("Please enter zip");
		chkfrm.x_zip.focus();
		return false;
	}
	if(chkfrm.x_country.value=="")
	{
		alert("Please enter country");
		chkfrm.x_country.focus();
		return false;
	}
	
	if(chkfrm.x_email.value=="")
	{
		alert("Please enter your email address");
		chkfrm.x_email.focus();
		return false;
	}
	if(!validateEmail(chkfrm.x_email.value))
	{
		alert("Invalid email format.");
		chkfrm.x_email.focus();
		return false;
	}
	if (isNaN (chkfrm.x_phone.value) )
	{
		alert("Phone number is invalid. Please correct.");
		chkfrm.x_phone.focus();
		return false;
	}
	if(chkfrm.x_phone.value=="")
	{
		alert("Please enter phone number.");
		chkfrm.x_phone.focus();
		return false;
	}
	if(chkfrm.x_heard_from.value=="")
	{
		alert("Please let us know as how did you hear about us.");
		chkfrm.x_heard_from.focus();
		return false;
	}
	if(chkfrm.x_heard_from.value=="Other" && chkfrm.x_other.value=="")
	{
		alert("Please specify if Other");
		chkfrm.x_other.focus();
		return false;
	}
	if(chkfrm.x_comments.value=="")
	{
		alert("Please enter your comments.");		
		chkfrm.x_comments.focus();
		return false;
	}
	
	
	
	
	
	
	
	
}
*/

function  checkvalues()
{
	var chkfrm = document.getElementById("EvalForm");
	if(chkfrm.x_first_name.value=="")
	{
		alert("Please enter the name");
		chkfrm.x_first_name.focus();		
		return false;
	}
	
	if(chkfrm.x_country.value=="")
	{
		alert("Please enter country");
		chkfrm.x_country.focus();
		return false;
	}
	
	if(chkfrm.x_email.value=="")
	{
		alert("Please enter your email address");
		chkfrm.x_email.focus();
		return false;
	}
	if(!validateEmail(chkfrm.x_email.value))
	{
		alert("Invalid email format.");
		chkfrm.x_email.focus();
		return false;
	}
	if (isNaN (chkfrm.x_phone.value) )
	{
		alert("Phone number is invalid. Please correct.");
		chkfrm.x_phone.focus();
		return false;
	}
	
	if(chkfrm.x_comments.value=="")
	{
		alert("Please enter your comments.");		
		chkfrm.x_comments.focus();
		return false;
	}
	
	
	
	
	
	
	
	
}
function check_blank()
{
	 
	var myfrm = document.getElementById("form1");	
	if(myfrm.name.value=="")
	{
		alert("Please enter your name");
		myfrm.name.focus();
		return false; 
	} 
	if(!validateEmail(myfrm.email.value))
	{
		alert("Please enter email in correct format");
		myfrm.email.focus();
		return false;
	} 
	if(myfrm.email.value=="")
	{
		alert("Please Enter Email");
		myfrm.email.focus();
		return false; 
	}
	if(isNaN(myfrm.phone.value))
	{
		alert("Please enter valid phone number");
		myfrm.phone.focus();
		return false; 
	}
	if(myfrm.phone.value=="")
	{
		alert("Please enter phone number");
		myfrm.phone.focus();
		return false; 
	}	
	if(myfrm.x_expertise.value=="")
	{
		alert("Please select a job title");		
		return false; 
	}
	if(myfrm.resume.value=="")
	{
		alert("Please post your resume");
		myfrm.resume.focus();
		return false; 
	}
	return true;
}
function validateEmail(email)
{
	
	// This function is used to validate a given e-mail 
	// address for the proper syntax
	
	if (email == ""){
		return false;
	}
	badStuff = ";:/,' \"\\";
	for (i=0; i<badStuff.length; i++){
		badCheck = badStuff.charAt(i)
		if (email.indexOf(badCheck,0) != -1){
			return false;
		}
	}
	posOfAtSign = email.indexOf("@",1)
	if (posOfAtSign == -1){
		return false;
	}
	if (email.indexOf("@",posOfAtSign+1) != -1){
		return false;
	}
	posOfPeriod = email.indexOf(".", posOfAtSign)
	if (posOfPeriod == -1){
		return false;
	}
	if (posOfPeriod+2 > email.length){
		return false;
	}
	return true
}//end function


function test(ObjID)
{
	document.getElementById(ObjID).value ="";	
}
function  checkvalues1()
{
	var chkfrm = document.getElementById("EvalForm");
	if(chkfrm.x_first_name.value=="")
	{
		alert("Please enter first name");
		chkfrm.x_first_name.focus();		
		return false;
	}
	if(chkfrm.x_last_name.value=="")
	{
		alert("Please enter last name");
		chkfrm.x_last_name.focus();
		return false;
	}
	if(chkfrm.x_address.value=="")
	{
		alert("Please enter address");
		chkfrm.x_address.focus();
		return false;
	}
	if(chkfrm.x_city.value=="")
	{
		alert("Please enter city");
		chkfrm.x_city.focus();
		return false;
	}
	if(chkfrm.x_state.value=="")
	{
		alert("Please enter state");
		chkfrm.x_state.focus();
		return false;
	}
	if(chkfrm.x_zip.value=="")
	{
		alert("Please enter zip");
		chkfrm.x_zip.focus();
		return false;
	}
	if(chkfrm.x_country.value=="")
	{
		alert("Please enter country");
		chkfrm.x_country.focus();
		return false;
	}
	
	if(chkfrm.x_email.value=="")
	{
		alert("Please enter your email address");
		chkfrm.x_email.focus();
		return false;
	}
	if(!validateEmail(chkfrm.x_email.value))
	{
		alert("Invalid email format.");
		chkfrm.x_email.focus();
		return false;
	}
	if (isNaN (chkfrm.x_phone.value) )
	{
		alert("Phone number is invalid. Please correct.");
		chkfrm.x_phone.focus();
		return false;
	}
	if(chkfrm.x_phone.value=="")
	{
		alert("Please enter phone number.");
		chkfrm.x_phone.focus();
		return false;
	}
	if(chkfrm.x_heard_from.value=="")
	{
		alert("Please let us know as how did you hear about us.");
		chkfrm.x_heard_from.focus();
		return false;
	}
	if(chkfrm.x_heard_from.value=="Other" && chkfrm.x_other.value=="")
	{
		alert("Please specify if Other");
		chkfrm.x_other.focus();
		return false;
	}
	if(chkfrm.x_comments.value=="")
	{
		alert("Please enter your comments.");		
		chkfrm.x_comments.focus();
		return false;
	}	
}
function changeclass(objdivid,objclassname)
{
	document.getElementById(objdivid).className=objclassname;
}
function mouseoutchangeclass(objdivid,objclassname)
{
	document.getElementById(objdivid).className=objclassname;
}