function validateQuickForm()

{

	if( document.frmQuick.name.value=="" )

	{

		alert("Name field can not be empty");

		document.frmQuick.name.focus();

		return false;

	}

	

	if( document.frmQuick.email.value=="" )

	{

		alert("Email field can not be empty");

		document.frmQuick.email.focus();

		return false;

	}

if( document.frmQuick.phone.value=="" )

	{

		alert("Phone field can not be empty");

		document.frmQuick.phone.focus();

		return false;

	}
	if (!echeck_right(document.frmQuick.email.value))

	{ 

		//validity = false; 

		alert('Please enter valid email id!'); 

		document.frmQuick.email.focus();

	   	return false;

	}

	/*if( document.frmQuick.message.value=="" )

	{

		alert("Message field can not be empty");

		document.frmQuick.message.focus();

		return false;

	}*/

}



function ValidateNum_right(input,event)

{

	var keyCode = event.which ? event.which : event.keyCode;

	if(parseInt(keyCode)>=48 && parseInt(keyCode)<=57)

	{

		return true;

	}

	return false;

}



function echeck_right(str) 

{

		var at="@"

		var dot="."

		var lat=str.indexOf(at)

		//trace(lat)

		var lstr=str.length

		var ldot=str.indexOf(dot)

		if (str.indexOf(at)==-1){

		   return false

		}



		if (str.indexOf(at)==0 || str.indexOf(at)==lstr){

		   return false

		}



		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){

		    return false

		}



		 if (str.indexOf(at,(lat+1))!=-1){

		    return false

		 }

			

		 if (str.indexOf(" ")!=-1){

		    return false

		 }

		if(lstr==ldot+1)

	    return false

 		 return true					

	}
