function hideTopframe(){
	parent.document.all.topframe.style.display = 'none';
}

function showConfirm(productURL) {
    if(window.name=="main") {
        document.getElementById('topframe').style.display = 'block';
        document.getElementById('topframe').style.height = 20;
        parent.document.getElementById('topframe').src=productURL;
    }
    return false;
}

function getXmlHttp(){
	var xmlhttp;
	try{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e){
		try{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(E){
			xmlhttp = false;
		}
	}
	if(!xmlhttp && typeof XMLHttpRequest != 'undefined'){
		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}

function clickCount(ID){
	var xmlhttp = getXmlHttp();
	var rand = new Date().valueOf();
	xmlhttp.open('GET', '../../includes/incAdv.php?ID='+ID+'&rand='+rand, true);
	xmlhttp.onreadystatechange = function(){
		if (xmlhttp.readyState == 4){
			if(xmlhttp.status == 200){
				return true;
			}
		}
	};
	xmlhttp.send(null);
}