function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

 		 return true					
	}
function ValidateForm(){

	var a=document.contactform.name.value;
	var b=document.contactform.address.value;
	var c=document.contactform.ph_no.value;
	var d=document.contactform.services.value;
	var e=document.contactform.comments.value;
	
if(a=='')
	{
		alert('Enter Your Name');
		document.contactform.name.focus();
		return false;		
	}
	
if(b=='')
	{
		alert('Enter Your Address');
		document.contactform.address.focus();
		return false;		
	}
	
if(c=='')
	{
		alert('Enter Your Phone No');
		document.contactform.ph_no.focus();
		return false;		
	}
if (isNaN(c))

	{

		alert( 'Please Enter Numeric Mobile No.');

		document.contactform.ph_no.focus();

		return false;

	} 
	var emailID=document.contactform.email;
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email ID")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus();
		return false
	}
if(d=='select')
	{
		alert('Select Your Services Required');
		document.contactform.services.focus();
		return false;		
	}
 if(e=='')
 {
 
 alert("Please Leave  a Comment!");
 return false ;
 }

	return true
 }
function ValidateForm_quote(){

	var a=document.quoteform.name.value;
	var f=document.quoteform.company.value;
	var b=document.quoteform.address.value;
	var g=document.quoteform.city.value;
	var h=document.quoteform.state.value;
	var i=document.quoteform.zip_code.value;
	var j=document.quoteform.country.value;
	var c=document.quoteform.ph_no.value;
	var k=document.quoteform.help.value;
	var l=document.quoteform.primarypurpose.value;
	var m=document.quoteform.cms.value;
	var n=document.quoteform.time.value;
	var d=document.quoteform.budget.value;
	
if(a=='')
	{
		alert('Enter Your Name');
		document.quoteform.name.focus();
		return false;		
	}
if(f=='')
	{
		alert('Enter Your Company Name');
		document.quoteform.company.focus();
		return false;		
	}
	
if(b=='')
	{
		alert('Enter Your Address');
		document.quoteform.address.focus();
		return false;		
	}
if(g=='')
	{
		alert('Enter Your City');
		document.quoteform.city.focus();
		return false;		
	}
if(h=='')
	{
		alert('Enter Your State');
		document.quoteform.state.focus();
		return false;		
	}
if(i=='')
	{
		alert('Enter Your Zip Code');
		document.quoteform.zip_code.focus();
		return false;		
	}
if(j=='')
	{
		alert('Enter Your Country');
		document.quoteform.country.focus();
		return false;		
	}
if(c=='')
	{
		alert('Enter Your Phone No');
		document.quoteform.ph_no.focus();
		return false;		
	}
if (isNaN(c))

	{

		alert( 'Please Enter Numeric Mobile No.');

		document.quoteform.ph_no.focus();

		return false;

	} 
	var emailID=document.quoteform.email;
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email ID")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus();
		return false
	}
	
if(k=='')
	{
		alert('What can we help you with?');
		document.quoteform.help.focus();
		return false;		
	}
if(l=='select')
	{
		alert('Enter Your Primary Purpose');
		document.quoteform.primarypurpose.focus();
		return false;		
	}
if(m=='')
	{
		alert('Enter Your Requirements About CMS');
		document.quoteform.cms.focus();
		return false;		
	}
if(n=='')
	{
		alert('Enter Your Aproximate Time');
		document.quoteform.time.focus();
		return false;		
	}
	return true
 }





function ValidateForm_quickquery(){

	var a=document.quickquery.name.value;
	var b=document.quickquery.address.value;
	var c=document.quickquery.ph_no.value;
	
if(a=='')
	{
		alert('Enter Your Name');
		document.quickquery.name.focus();
		return false;		
	}
	
if(b=='')
	{
		alert('Enter Your Address');
		document.quickquery.address.focus();
		return false;		
	}
	
if(c=='')
	{
		alert('Enter Your Phone No');
		document.quickquery.ph_no.focus();
		return false;		
	}
if (isNaN(c))

	{
		alert( 'Please Enter Numeric Mobile No.');

		document.quickquery.ph_no.focus();

		return false;

	} 
	return true
 }
