// JavaScript Document
function checkform(){
		if((/^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z]{2,5}$/).exec(document.frmSignup.email_add.value)==null){
		alert("Please enter a proper email");
		document.frmSignup.email_add.focus();
		return false;
	}

	if(document.frmSignup.userid.value.search(/\S/)==-1){
		alert("Please enter your user id.");
		document.frmSignup.userid.focus();
		return false;
	}
    if(document.frmSignup.fname.value.search(/\S/)==-1){
		alert("Please enter your first name.");
		document.frmSignup.fname.focus();
		return false;
	}
	if(document.frmSignup.lname.value.search(/\S/)==-1){
		alert("Please enter your last name.");
		document.frmSignup.lname.focus();
		return false;
	}
	if(document.frmSignup.address_1.value.search(/\S/)==-1){
		alert("Please enter your address in the first address field.");
		document.frmSignup.address_1.focus();
		return false;
	}
	if(document.frmSignup.password.value.search(/\S/)==-1){
		alert("Please enter a password.");
		document.frmSignup.password.focus();
		return false;
	}
	if(document.frmSignup.password_confirm.value.search(/\S/)==-1){
		alert("Please confirm password.");
		document.frmSignup.password_confirm.focus();
		return false;
	}	
	if(document.frmSignup.password.value != document.frmSignup.password_confirm.value ){
		alert("Please enter same password.");
		document.frmSignup.password_confirm.focus();
		return false;
	}
	var pass=document.frmSignup.password.value
	if(pass.length<=5){
		alert("Password should be minimum 6 characters");
		document.frmSignup.password.focus();
		return false;
	}
	if(document.frmSignup.listed_by.value==""){
		alert("Please select Listed by.");
		document.frmSignup.listed_by.focus();
		return false;
	}
}

function check(){
 if(document.addvedio.vlink.value==""){
		alert("Please Enter the link");
		document.addvedio.vlink.focus();
		return false;
	}	
	 if(document.addvedio.caption.value==""){
		alert("Please enter  Caption.");
		document.addvedio.caption.focus();
		return false;
	}		
 
   return true;
}