// JavaScript Document

	function isEmail(Ml)
	{
	if(!Ml){return true}
	if(Ml.indexOf("@")<=0 || Ml.indexOf("@")==Ml.length-1 || Ml.indexOf(".")<=0 || Ml.indexOf(".")==Ml.length-1 || Ml.indexOf("..")!=-1 || Ml.indexOf("@@")!=-1 || Ml.indexOf("@.")!=-1 || Ml.indexOf(".@")!=-1)
	{
	return false
	}
	else
	{
	return true
	}
	}
	function ValidContact(frm)
	{
	var txt="";
	
	if(!frm.name.value)
	{
	txt+="     Name should not be empty.\n"
	}
	if(!frm.email.value || !isEmail(frm.email.value))
	{
	txt+="     Enter valid email address.\n"
	
	}
	if(!frm.requirements.value)
	{
	txt+="     You did not put any Description.\n"
	} 
	if(txt)
	{
	alert("Sorry!! Following errors has been occured :\n\n"+ txt +"\n     Please Check");
	return false
	}
	return true	
	}
