function showPhone(item, itemid, default_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", default_url+'/countphoneclick.php?item='+item+'&item_id='+itemid, true);
		xmlhttp.send(null);
	}
	document.getElementById("phoneLink"+itemid).className = "controlPhoneHide";
	document.getElementById("phoneNumber"+itemid).className = "controlPhoneShow";
}

function showFax(item, itemid, default_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", default_url+'/countfaxclick.php?item='+item+'&item_id='+itemid, true);
		xmlhttp.send(null);
	}
	document.getElementById("faxLink"+itemid).className = "controlFaxHide";
	document.getElementById("faxNumber"+itemid).className = "controlFaxShow";
}

function openContactForm(item, itemid, default_url) {
	$.get(default_url+"/countmailclick.php",{item: item, item_id: itemid, default_url: default_url},function(contact_form_href){
    	tb_show('',contact_form_href);
    });
}
