		function validateform(theform)
		{

			var emailId = theform.email.value;
			var apos=emailId.indexOf("@");
			var dotpos=emailId.lastIndexOf(".");
			var lastpos=emailId.length-1;		
			
			
			if(theform.fname.value == "")
			{
				alert("Please type first name");
				theform.fname.focus();
				return false;
			}
			else if(theform.lname.value == "")
			{
				alert("Please type Surname");
				theform.lname.focus();
				return false;
			}
			else if(theform.address.value == "")
			{
				alert("Please type Your Address");
				theform.address.focus();
				return false;
			}
			else if(theform.city.value == "")
			{
				alert("Please type Your City");
				theform.city.focus();
				return false;
			}
			else if(theform.country.options[theform.country.selectedIndex].value == "")
			{
				alert("Please select your Country");
				theform.country.focus();
				return false;
			}
			else if(theform.telephone.value == "")
			{
				alert("Please type Your Telephone Number");
				theform.telephone.focus();
				return false;
			}
			else if(theform.mobile.value == "")
			{
				alert("Please type Your Mobile Number");
				theform.mobile.focus();
				return false;
			}
			else
			if(theform.email.value == "")
			{
				alert("Please enter Email");
				theform.email.focus();
				return false;
			}
			else
			if(theform.position.value == "")
			{
				alert("Please enter Current Position");
				theform.position.focus();
				return false;
			}
			else
			if(theform.expe.value == "")
			{
				alert("Please enter your Experience");
				theform.expe.focus();
				return false;
			}
			
			else
			if(theform.photo.value == "")
			{
				alert("Please Attach your passport size photo");
				theform.photo.focus();
				return false;
			}
			
	    
		
		
			
			
			
		 
			
		
			
			
			
			
		
			/*else if(theform.city.options[theform.city.selectedIndex].value == "")
			{
				alert("Please select your City of Residence");
				theform.city.focus();
				return false;
			}*/
			

			
			return true;
		}

