// JavaScript Document

function check_form(thisform)
{

	if (thisform.email.value == "" || thisform.email.value.indexOf('@',0) == -1 || thisform.email.value.indexOf('.',0) == -1) 
	 {
	   alert ("Please enter a valid E-mail Address");
	   thisform.email.focus();
	   return false;
	 }
	
	 if (thisform.question.value == "")
		{
			alert("Please enter your Queries");
			thisform.question.focus();
			return false;
		}
}

function chklogin(thisform)
		{
	if (thisform.email.value == "" || thisform.email.value.indexOf('@',0) == -1 || thisform.email.value.indexOf('.',0) == -1) 
	 {
	   alert ("Please enter a valid E-mail Address") ;
	   thisform.email.focus() ;
	   return false ;
	 }
		if (thisform.passwd.value == "")
			{
				alert("Please enter your password");
				thisform.passwd.focus();
				return false;
			}
			
}

function check_form1(thisform)
{
	var yel_category=thisform.yel_category.value
	var yel_sub_category=thisform.yel_sub_category.value
	var yel_country=thisform.yel_country.value	
	
	if (yel_sub_category == "--Select--" )
	{
		alert ('Please Select atleast one Category to Search');
		thisform.yel_sub_category.focus();
		return false;		
	
	}

	
}

function printIt(thisform)
{
  window.print(); 
}

