var counter=0;
function Update(){
	counter++;
	idt=window.setTimeout("Update();",1000);
	if(counter==2){
		document.getElementById("alert").style.visibility="visible";
	}
	if(counter==7){
		document.getElementById("alert").style.visibility="hidden";
		counter=0;
		window.clearTimeout(idt);
		
	}
}

function hidebox(){
	
	document.getElementById("showimage").style.visibility="hidden";
	document.getElementById("downarrow").style.visibility="visible";
	Update();
															 
}
function showuserpan(){

	
	document.getElementById("showimage").style.visibility="visible";
	document.getElementById("downarrow").style.visibility="hidden";
	document.getElementById("alert").style.visibility="hidden";

}
function rtib(){
document.reload();

}

function valpost(){
if(document.business.tuse.checked==false){
	window.alert("You must read and agreen to our terms of service before you can be registered.");
	return false;
	}
}
//validate property post

//validate lease property
function changenumy(){
	document.pproperty.mdl.value==document.pproperty.pplm.value;
}


function valsch(){
	if(document.esnicomsearch.esnicomsearch.value=="Enter key word" || document.esnicomsearch.esnicomsearch.value==""){
		alert("Enter a valide key word");
		return false;
	}
}
function logid(){
	if(document.homelogin.username.value=="" || document.homelogin.username.value=="Enter a username"){
		alert("Enter a username to loging");
		return false;
	}
	if(document.homelogin.password.value=="" || document.homelogin.password.value=="Enterpassword"){
		alert("Enter a valid password");
		return false;
	}
	return true;
}
function onblurall(){
	if(document.homelogin.username.value==""){
		document.homelogin.username.value="Enter username";
	}
	if(document.homelogin.password.value==""){
		document.homelogin.password.value="Enterpassword";
	}
}
function onclickalls(){
	if(document.esnicomsearch.esnicomsearch.value=="Enter key word"){
		document.esnicomsearch.esnicomsearch.value="";
	}
}
function onclickallu(){
	if(document.homelogin.username.value=="Enter username"){
		document.homelogin.username.value="";
	}
}
function onclickallp(){
	if(document.homelogin.password.value=="Enterpassword"){
		document.homelogin.password.value="";
	}

}
function onclickalld(){
if(document.domainsearch.domainsearch.value=="Enter a domain name of your choice"){
		document.domainsearch.domainsearch.value="";
	}
}
function pageconst(){
alert("The page you requested is underconstruction");
}

function finishcvpd(){
if(document.pd.finish1.checked==true){
window.alert("Checking this option will make you not to enter the following: \n *Academic qualifications \n *Skills \n *Work experiences \n *References \n *Voluntary Services. \n uncheck the option below to have access to these,");
}
}
function showmycvc(){
if(document.pd.showmycv.checked==true){
window.alert("Checking this box allows any body to view and send you cv to emaill addresses. But can not modify it.");
}
}
function finishcvac(){
if(document.ac.finish2.checked==true){
window.alert("Checking this option will make you not to enter the following: *Skills \n *Work experiences \n *References \n *Voluntary Services. \n uncheck the option below to have access to these,");
}
}
function finishcvskill(){
if(document.skill.finish3.checked==true){
window.alert("Checking this option will make you not to enter the following: *Work experiences \n *References \n *Voluntary Services. \n uncheck the option below to have access to these,");
}
}
function finishcvwe(){
if(document.we.finish4.checked==true){
window.alert("Checking this option will make you not to enter the following: *References \n *Voluntary Services. \n uncheck the option below to have access to these,");
}
}
function finishcvrf(){
if(document.rf.finish5.checked==true){
window.alert("Checking this option will make you not to enter the following: *Voluntary Services. \n uncheck the option below to have access to these,");
}
}


