function validatefooter()

		{

				
		if (document.footernl.enews.value=="Enter your email address")
		
			{

			alert("Please enter your email");

			document.footernl.enews.focus();

			return false;

			}		

			str=document.footernl.enews.value;

		if (str.indexOf(".")==-1)

			{

			alert("Your email is Invalid");

			document.footernl.enews.focus();

			return false;

			}
		if (str.indexOf("@")==-1)

			{

			alert("Your email is Invalid");

			document.footernl.enews.focus();

			return false;

			}
			
		
			
			

		return true;

		}
		

function validatesrc()

		{
			if( document.sform.searchf.value=="Search this site for...")
		{	
			alert('please enter any keyword to search');	
			document.sform.searchf.focus();
			return false;	
		}
		if( document.sform.searchf.value=="")
		{	
			alert('please enter any keyword to search');	
			document.sform.searchf.focus();
			return false;	
		}
				
		
			
			

		return true;

		}
		




function validate1()
{
                regexy = /^[\w\.]+@[a-zA-Z_]+?\.[a-zA-Z\.]{2,6}$/;
		
var d=document.getElementById('errormsg');
var f=regexy.test(document.frm1.email.value);

		if( document.frm1.fname.value=="")
		{	
			alert('please fill first name');	
			document.frm1.fname.focus();
			return false;	
		}
		
		else if( document.frm1.lname.value=="")
		{	
			alert('please fill last name');	
			document.frm1.lname.focus();
			return false;	
		}
		else if( document.frm1.email.value=="")
		{
			alert('please fill email');
			document.frm1.email.focus();	
			return false;		
		}
		
		 else if(f==false)
		{
			
				 alert('please fill correct email');	
				 document.frm1.email.focus();
			return false;	
		}
		
           
	else if( document.frm1.policy.checked == false)
		{
			 alert('please accept privacy policy');
			 document.frm1.policy.focus();		
			return false;	
		}
		
		
                return true;	
}

function validate2()

		{

		if (document.frmMain.title.value=="0")

			{

			alert("Please select title");

			document.frmMain.title.focus();

			return false;

			}
		
		if (document.frmMain.fname.value=="")

			{

			alert("Please fill first name");

			document.frmMain.fname.focus();

			return false;

			}
			
		if (document.frmMain.lname.value=="")

			{

			alert("Please fill last name");

			document.frmMain.lname.focus();

			return false;

			}	
			
		if (document.frmMain.email.value=="")
		
			{

			alert("Please enter your email");

			document.frmMain.email.focus();

			return false;

			}		

			str=document.frmMain.email.value;

		if (str.indexOf(".")==-1)

			{

			alert("Your email is Invalid");

			document.frmMain.email.focus();

			return false;

			}
		if (str.indexOf("@")==-1)

			{

			alert("Your email is Invalid");

			document.frmMain.email.focus();

			return false;

			}
			
		if (document.frmMain.country.value=="")

			{

			alert("Please fill your country");

			document.frmMain.country.focus();

			return false;

			}	
			
		

		return true;

		}


function validate3()

		{

		if (document.frmMain.rname.value=="")

			{

			alert("Please fill Recipient Name");

			document.frmMain.rname.focus();

			return false;

			}
		if (document.frmMain.remail.value=="")
		
			{

			alert("Please enter Recipient E-mail Address");

			document.frmMain.remail.focus();

			return false;

			}		

			str=document.frmMain.remail.value;

		if (str.indexOf(".")==-1)

			{

			alert("Recipient E-mail Address is Invalid");

			document.frmMain.remail.focus();

			return false;

			}
		if (str.indexOf("@")==-1)

			{

			alert("Recipient E-mail Address is Invalid");

			document.frmMain.remail.focus();

			return false;

			}	
		
		if (document.frmMain.sname.value=="")

			{

			alert("Please fill Sender name");

			document.frmMain.sname.focus();

			return false;

			}
			
		
			
		if (document.frmMain.email.value=="")
		
			{

			alert("Please enter Sender E-mail Address");

			document.frmMain.email.focus();

			return false;

			}		

			str=document.frmMain.email.value;

		if (str.indexOf(".")==-1)

			{

			alert("Sender E-mail Address is Invalid");

			document.frmMain.email.focus();

			return false;

			}
		if (str.indexOf("@")==-1)

			{

			alert("Sender E-mail Address is Invalid");

			document.frmMain.email.focus();

			return false;

			}
			
		if (document.frmMain.subject.value=="")

			{

			alert("Please fill email subject");

			document.frmMain.subject.focus();

			return false;

			}	
		if (document.frmMain.message.value=="")

			{

			alert("Please fill your message");

			document.frmMain.message.focus();

			return false;

			}	
			
		

		return true;

		}
		

function validate4()

		{

		if (document.frmMain.title.value=="0")

			{

			alert("Please select title");

			document.frmMain.title.focus();

			return false;

			}
		
		if (document.frmMain.fname.value=="")

			{

			alert("Please fill first name");

			document.frmMain.fname.focus();

			return false;

			}
			
		if (document.frmMain.lname.value=="")

			{

			alert("Please fill surname");

			document.frmMain.lname.focus();

			return false;

			}	
			
		if (document.frmMain.email.value=="")
		
			{

			alert("Please enter your email");

			document.frmMain.email.focus();

			return false;

			}		

			str=document.frmMain.email.value;

		if (str.indexOf(".")==-1)

			{

			alert("Your email is Invalid");

			document.frmMain.email.focus();

			return false;

			}
		if (str.indexOf("@")==-1)

			{

			alert("Your email is Invalid");

			document.frmMain.email.focus();

			return false;

			}
			
		
			
		

		return true;

		}


