function changeObjectBorder(objID,imgCount) {	
	
	if(imgCount > 0){
		var i=1
		while (i<=imgCount)
		{
			var LDthumb = document.getElementById("img" + i)		
			if(LDthumb != null){				
				LDthumb.style.borderColor="#999999";
				LDthumb.style.borderWidth = '2px';
			}
		i=i+1
		}
		
		var LDimg = document.getElementById(objID)		
		LDimg.style.borderColor="#076da0"; 
		LDimg.style.borderWidth = "2px";
		//#005F92	
	}
}
function showPhoneNumber(){
	
	document.getElementById('getNumber').style.display='none';
	document.getElementById('showPhone').style.display='';
}

/* AJAX FUNCTIONS */
function ajax_load_NL(URL){
	//alert('slidePane: ' + slidePane);
	document.getElementById("similarlistings").innerHTML="<div id=\"loadingDiv\"><img src=\"../../../css/assets/SL-loader.gif\" align=\"absmiddle\"> Loading ...</div>";
	
	// BUILD XML OPBJECT
	var xmlHttp_NL = GetXmlHttpObject();
	var slidePane;
	//var xmlHttp_NL = null;

	//alert(url);
	if (xmlHttp_NL==null){
		document.getElementById("similarlistings").innerHTML="<div id=\"loadingDiv\">This feature is not supported by your browser.</div>";
	  	return;
	} 
	
	xmlHttp_NL.onreadystatechange=function(){
		if(xmlHttp_NL.readyState==4){			
			// write listings
			document.getElementById("similarlistings").innerHTML=xmlHttp_NL.responseText;			
			// write paging			
			if (document.getElementById("ajax_Paging")){
				document.getElementById("nlPaging").innerHTML = "&nbsp;" + document.getElementById("ajax_Paging").innerHTML;
			}
		}
	}
	
	if (xmlHttp_NL.overrideMimeType)
		xmlHttp_NL.overrideMimeType('text/html');

	xmlHttp_NL.open("GET",URL,true); 
	xmlHttp_NL.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); 
	xmlHttp_NL.send(null);			
	
}

function ajax_load_OL(URL){

	document.getElementById("sellerslistings").innerHTML="<div id=\"loadingDiv\"><img src=\"../../../css/assets/SL-loader.gif\" align=\"absmiddle\"> Loading ...</div>";
	
	// BUILD XML OPBJECT
	var xmlHttp_OL = GetXmlHttpObject();

	if (xmlHttp_OL==null){
		document.getElementById("sellerslistings").innerHTML="<div id=\"loadingDiv\">This feature is not supported by your browser.</div>";
	  	return;
	} 
	
	xmlHttp_OL.onreadystatechange=function(){
		if(xmlHttp_OL.readyState==4){
						
			// write listings
			document.getElementById("sellerslistings").innerHTML=xmlHttp_OL.responseText;
			// write paging
				if (document.getElementById("ajax_olPaging")){
					document.getElementById("olPaging").innerHTML = "&nbsp;" + document.getElementById("ajax_olPaging").innerHTML;			
				}
			
		}
	}
	
	if (xmlHttp_OL.overrideMimeType)
		xmlHttp_OL.overrideMimeType('text/html');

	xmlHttp_OL.open("GET",URL,true); 
	xmlHttp_OL.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); 
	xmlHttp_OL.send(null);				
}