$(document).ready(function() { 
   $('ul.nav').superfish(); 
}); 


function validatefrm(){
if(document.form1.Name.value==""){
alert("Please enter your name.");
document.form1.Name.focus();
return false;
}

      if(document.form1.Email.value!="")
	{
		if(document.form1.Email.value.indexOf("@")==-1 ||
			document.form1.Email.value.indexOf(".")==-1 ||
			document.form1.Email.value.indexOf("")==-1 ||
			document.form1.Email.value.length < 6)
		{
			alert("Sorry, the E-mail Address is not valid.");
			document.form1.Email.focus();
			return false;		
		}
	}
	else
	{
		alert("Please enter E-mail Address.");
		document.form1.Email.focus();
		return false;	
	}	  

}

function checkchars(x){
		var str=new String(x.value)
		for(i=0;i<str.length;i++)
		{
			if(str.charAt(i)=="\"" ||str.charAt(i)=="-" || str.charAt(i)=="=" ||str.charAt(i)=="!" || str.charAt(i)=="~" || str.charAt(i)=="`" || str.charAt(i)=="!" || str.charAt(i)=="@" || str.charAt(i)=="#" || str.charAt(i)=="$" || str.charAt(i)=="%" || str.charAt(i)=="%" || str.charAt(i)=="^" || str.charAt(i)=="=" || str.charAt(i)=="&" || str.charAt(i)=="*" || str.charAt(i)=="(" || str.charAt(i)==")" || str.charAt(i)=="-" || str.charAt(i)=="+" || str.charAt(i)=="|" || str.charAt(i)=="\\" || str.charAt(i)=="<" || str.charAt(i)==">" || str.charAt(i)=="." || str.charAt(i)=="?" || str.charAt(i)=="/" || str.charAt(i) >= "a" && str.charAt(i) <= "z" || str.charAt(i) >= "A" && str.charAt(i) <= "Z"){
			var pos=i;
			var lenofstr=str.length;
			var finallength=parseInt(lenofstr)-parseInt(pos);
			var setval=str.substr(str,str.length-parseInt(finallength));
			x.value=setval;
			x.focus();
			return false;
			}
		}
return true;
}
