var xmlHttp;

function InsertLatestClassifieds(){
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null){
	  alert ("Please install the newest version for your browser!");
	  return;
	} 
	
	ob = fieldOb('insert_latest_classifieds_action_url');
	url = ob.value;
	
	xmlHttp.onreadystatechange=TriggerLatestClassifieds;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
} 

function TriggerLatestClassifieds(){
	ob = fieldOb('insert_latest_classifieds_action_url');
	url = ob.value;
	ob = fieldOb('insert_latest_classifieds_action_time');
	time = ob.value;
	
	if (xmlHttp.readyState==4){
		response=xmlHttp.responseText;
		
		ob = fieldOb('latest_classifieds_place');
		ob.innerHTML = response;
		
		if(response != ''){
			ob_rsb = fieldOb('right_side_banners');
			if(ob_rsb != null) ob_rsb.style.top = '280px';
		}
		
		setTimeout('InsertLatestClassifieds();', time);
	}
}