$(function() {
			// If no JS CSS menu will still work
			$("#menu2").removeClass("cssonly");
			
			// Find subnav menus and slide them down
			$("#menu2 li a").hover(function(){ 
				$(this).parent().find("ul.subnav").slideDown(300);
				$(this).parent().hover(function() {
				}, function() {
					// On hovering out slide subnav menus back up
					$(this).parent().find("ul.subnav").slideUp(300);
				})
			});
		});

function Validate()
{
if(webhost.name.value.length==0) { alert('Enter your name'); webhost.name.focus(); return false; }
if(webhost.email.value.length==0) { alert('Enter email address'); webhost.email.focus(); return false; }
if(echeck(webhost.email.value)==false){ webhost.email.value=""; webhost.email.focus(); 	return false;	}
if(webhost.message.value.length==0) { alert('Enter your message'); webhost.message.focus(); return false; }
return true;
}



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;					
	}

