var DHTML = (document.getElementById || document.all || document.layers);
function ap_getObj(name) { if (document.getElementById) { return document.getElementById(name).style; }
else if (document.all) { return document.all[name].style; }
else if (document.layers) { return document.layers[name]; } } 
function ap_showWaitMessage(div,flag) { 
if (!DHTML) return; var x = ap_getObj(div); x.visibility = (flag) ? 'visible':'hidden' ;if(! document.getElementById) if(document.layers) x.left=280/2; return true; 
}

ap_showWaitMessage('waitDiv', 1)


 function $ (id) 
{return document.getElementById(id);}
	function closeform(){
$('ajax-bg').style.display='none';$('ajax-dv').style.display='none';$('aj-con-tell').style.display='none';$('aj-con-buy').style.display='none';$('aj-con-lot').style.display='none';$('ajax-contact').style.display='none';$('aj-start').style.display='none';$('aj-con-mot').style.display='none';$('aj-con-cd').style.display='none';	
}
	function openform(){
	$('ajax-bg').style.display='block';
	$('ajax-dv').style.display='block';
}
	function openload(){
	$('ajax-bg').style.display='block';
	$('aj-wait').style.display='block';
}
	function opentell(){
	$('aj-con-tell').style.display='block';
}
	function openbuy(){
	$('aj-con-buy').style.display='block';
}
	function openlot(){
	$('aj-con-lot').style.display='block';
}
	function opencontact(){
	$('ajax-contact').style.display='block';
}
	function openstart(){
	$('aj-start').style.display='block';
}
	function openmotor(){
	$('aj-con-mot').style.display='block';
}
	function opencd(){
	$('aj-con-cd').style.display='block';
}
