showVans = 1;

function mover(obj) { obj.style.background = "#5799CA"; }
function mout(obj) { obj.style.background = "#438FC6"; }
function checkit(str){ return confirm("Are you sure want to "+str+"?"); }

function quote(f){
	if(f.pickup.value=="") { alert("Please enter a collection postcode"); return false; }
	else if(f.delivery.value=="") { alert("Please enter a delivery postcode"); return false; }
	else if(!f.vantype.selectedIndex) { alert("Please choose a van size"); return false; }
	else return true;
}

function aMover(obj) { obj.style.background = "#FBFDFE"; }
function aMout(obj) { obj.style.background = "#EAF4F9"; }


function codeSearch(type,alt){
	
	popLeft =(screen.width - 300)/2; 
	popTop = (screen.height - 150)/2;
	win=window.open("/home/search.html?loc="+type+"&alt="+alt,"loading","width=300,height=150,top="+popTop+",left="+popLeft+",scrollbers=no,resizeable=no"); 

}
function getObj(n) { return document.getElementById(n); }

function vandetails() { 
	document.getElementById("floater").style.display = showVans ? "block" : "none"; 
	if(getObj('showvans')) { var s = getObj('showvans'); s.innerHTML = showVans ? "Hide van details" : "Show van details"; }
	showVans = !showVans;
}

