function EmployerRegistrationForm() 
{
	var name = document.EmployerRegistration.name.value;
	var Employeremail = document.EmployerRegistration.Employeremail.value;
	var password = document.EmployerRegistration.password.value;
	var repassword = document.EmployerRegistration.repassword.value;
	
	var txt=document.EmployerRegistration.Employeremail.value;

	
	if(name==null || name=="") 
		{
			alert("Please Enter  Company Full Name ");
			document.EmployerRegistration.name.focus();
			return false;
		}
	else 
	
	if (txt.indexOf("@")<3)
			{
				alert("Please Enter Valid Email Address");
				document.EmployerRegistration.Employeremail.focus();
		 		return false;
			 }
	 if ((txt.indexOf(".com")<5)&&(txt.indexOf(".org")<5)
				&&(txt.indexOf(".gov")<5)&&(txt.indexOf(".net")<5)
		 		&&(txt.indexOf(".mil")<5))
			{
				alert("Please Enter Valid Email Address");
				document.EmployerRegistration.Employeremail.focus();
				return false;
			}
	else 
	if(password == null || password =="") 
		{
			alert("Please Enter Password");
			document.EmployerRegistration.password.focus();
			return false;
		}
		
	else 
	if(repassword == null || repassword =="") 
		{
			alert("Please Re-Enter Password");
			document.EmployerRegistration.repassword.focus();
			return false;
		}
	else 
	if(password!=repassword) 
		{
			alert(" Wrong Re-Password. Please Check Your Password and Re-Enter Password");
			document.EmployerRegistration.repassword.focus();
			return false;
		}


	return true;
}


function EmployerLoginForm()
{
	var email= document.EmployerLogin.email.value;
	var password = document.EmployerLogin.password.value;
	if(email==null || email=="") 
		{
			alert("Please Enter Login ID ");
			document.EmployerLogin.email.focus();
			return false;
		}
	else
	if(password == null || password =="") 
		{
			alert("Please Enter Password");
			document.EmployerLogin.password.focus();
			return false;
		}
	return true;
}


function JobSeekerRegistrationForm() 
{
	var name = document.JobSeekerRegistration.name.value;
	var email = document.JobSeekerRegistration.email.value;
	var password = document.JobSeekerRegistration.password.value;
	var repassword = document.JobSeekerRegistration.repassword.value;
	
	var txt=document.JobSeekerRegistration.email.value;

	if(name==null || name=="") 
			{
				alert("Please Enter  Your Full Name ");
				document.JobSeekerRegistration.name.focus();
				return false;
			}
	else 
	if (txt.indexOf("@")<3)
			{
				alert("Please Enter Valid Email Address");
				document.JobSeekerRegistration.email.focus();
		 		return false;
			 }
	 if ((txt.indexOf(".com")<5)&&(txt.indexOf(".org")<5)
				&&(txt.indexOf(".gov")<5)&&(txt.indexOf(".net")<5)
		 		&&(txt.indexOf(".mil")<5))
			{
				alert("Please Enter Valid Email Address");
				document.JobSeekerRegistration.email.focus();
				return false;
			}
	else 
	if(password == null || password =="") 
		{
			alert("Please Enter Password");
			document.JobSeekerRegistration.password.focus();
			return false;
		}
		
	else 
	if(repassword == null || repassword =="") 
		{
			alert("Please Enter Re-Enter Password");
			document.JobSeekerRegistration.repassword.focus();
			return false;
		}
	else 
	if(password!=repassword) 
		{
			alert(" Wrong Re-Password. Please Check Your Password and Re-Enter Password");
			document.JobSeekerRegistration.repassword.focus();
			return false;
		}


	return true;
}






function winOpen(URL, windowName, width, height, resizable, location, menubar, scrollbars, status, toolbar){
	var windowFeatures;
	windowFeatures = '';
	if (width != '' && width != null){
		windowFeatures = windowFeatures+'width='+width+',';
	}
	if (height != '' && height != null){
		windowFeatures = windowFeatures+'height='+height+',';
	}
	if (resizable){
		windowFeatures = windowFeatures+'resizable,';
	}
	if (location){
		windowFeatures = windowFeatures+'location,';
	}
	if (menubar){
		windowFeatures = windowFeatures+'menubar,';
	}
	if (scrollbars){
		windowFeatures = windowFeatures+'scrollbars,';
	}
	if (status){
		windowFeatures = windowFeatures+'status,';
	}
	if (toolbar){
		windowFeatures = windowFeatures+'toolbar,';
	}
	window.open(URL, windowName, windowFeatures);
}



function DateOfBirth()
{
	var dd= document.form1.dd.value;
	var mm = document.form1.mm.value;
	var yy = document.form1.yy.value;
	
	if(dd='Select Day') 
		{
			alert("Please Select Day ");
			document.form1.dd.focus();
			return false;
		}

	return true;
}


function Job()
{
	 var JobTitle= document.JobPosting.JobTitle.value;
	 var dd= document.JobPosting.dd.value;
	 var mm= document.JobPosting.mm.value;
	 var yy= document.JobPosting.yy.value;
	 var Address= document.JobPosting.Address.value;
	 var City= document.JobPosting.City.value;
	 var Country= document.JobPosting.Country.value;
		   
	   
	
	
	if(JobTitle=="")
			{
				alert("Please Enter Job Title ");
				JobPosting.JobTitle.focus();
				return false;
			}
	else
	if(dd==0 || mm==0 || yy==0)
			{
				alert("Please Select Job Deadline ");
				JobPosting.dd.focus();
				return false;
			}
			
	
	if(Address=="")
			{
				alert("Please Enter Address ");
				JobPosting.Address.focus();
				return false;
			}
	else
	
	if(City=="")
			{
				alert("Please Enter City ");
				JobPosting.City.focus();
				return false;
			}
	else
	if(Country==0)
			{
				alert("Please Enter Country ");
				JobPosting.Country.focus();
				return false;
			}
	else
	
	
		
		return true;
}