function showPhone(listingid,type,url){
	try{
		xmlhttp=new XMLHttpRequest();
	}catch(exc){
		try{
			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}catch(ex){
			try{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				xmlhttp=false;
			}
		}
	}
	if(xmlhttp){
		xmlhttp.open("GET",url+'/countphoneclick.php?listing_id='+listingid,true);
		xmlhttp.send(null);
	}
	document.getElementById("phoneLink"+type+listingid).className="controlPhoneHide";
	document.getElementById("phoneNumber"+type+listingid).className="controlPhoneShow";
}
function showFax(listingid,type,url){
	try{
		xmlhttp=new XMLHttpRequest();
	}catch(exc){
		try{
			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}catch(ex){
			try{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				xmlhttp=false;
			}
		}
	}
	if(xmlhttp){
		xmlhttp.open("GET",url+'/countfaxclick.php?listing_id='+listingid,true);
		xmlhttp.send(null);
	}
	document.getElementById("faxLink"+type+listingid).className="controlFaxHide";
	document.getElementById("faxNumber"+type+listingid).className="controlFaxShow";
}
function showPhoneOffice(listingid,officeid,type,url){
	try{
		xmlhttp=new XMLHttpRequest();
	}catch(exc){
		try{
			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}catch(ex){
			try{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				xmlhttp=false;
			}
		}
	}
	if(xmlhttp){
		xmlhttp.open("GET",url+'/countphoneclick.php?listing_id='+listingid,true);
		xmlhttp.send(null);
	}
	document.getElementById("phoneLinkOffice"+type+officeid).className="controlPhoneHide";
	document.getElementById("phoneNumberOffice"+type+officeid).className="controlPhoneShow";
}
function showFaxOffice(listingid,officeid,type,url){
	try{
		xmlhttp=new XMLHttpRequest();
	}catch(exc){
		try{
			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		}catch(ex){
			try{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				xmlhttp=false;
			}
		}
	}
	if(xmlhttp){
		xmlhttp.open("GET",url+'/countfaxclick.php?listing_id='+listingid,true);
		xmlhttp.send(null);
	}
	document.getElementById("faxLinkOffice"+type+officeid).className="controlFaxHide";
	document.getElementById("faxNumberOffice"+type+officeid).className="controlFaxShow";
}

function ShowOfficeHour(id){
	document.getElementById("oh_"+id).style.display="inline";
	document.getElementById("oh_text_"+id).style.display="none";
}