<!--
function button_mouseover(buttonid) {
	if (document.getElementById) {
		var button = document.getElementById(buttonid);
	}
	button.bgColor='#F0F0F0';
	button.style.cursor='hand';
}
function button_mouseout(buttonid) {
	if (document.getElementById) {
		var button = document.getElementById(buttonid);
	}
	button.bgColor='#FFFFFF';
	button.style.cursor='default';
}
function display(catid) {
	if (document.getElementById) {
		var check = document.getElementById(catid);
	}
	if (check.style.display != "block") {
		check.style.display = "block";
	}else {
		check.style.display = "none";
	}
}
function checkUncheckAll(theElement) {
	var theForm = theElement.form, z = 0;
	for(z=0; z<theForm.length;z++){
		if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
			theForm[z].checked = theElement.checked;
		}
	}
}

//Control Panel
function moreDetails(relpath) {
	var step = 0;

	if (document.getElementById("moreDetails").src == relpath + "/skins/img/dontshow.png") {
		document.getElementById("moreDetails").src = relpath + "/skins/img/show.png";
		step = 2;
	}
	else if (document.getElementById("moreDetails").src == relpath + "/skins/img/show.png") {
		document.getElementById("moreDetails").src = relpath + "/skins/img/hide.png";
		step = 1;
	}
	else if (document.getElementById("moreDetails").src == relpath + "/skins/img/hide.png") {
		document.getElementById("moreDetails").src = relpath + "/skins/img/dontshow.png";
		step = 0;
	}
	var domain;
	domain = relpath.replace("www.", "");
	domain = domain.replace("http://","");
	domain = domain.replace("/","");
	document.cookie = "moreDetails=" + step + ';domain=.' + domain + ';path=/';
}
function moreStatistics(relpath) {
	var step = 0;

	if (document.getElementById("moreStatistics").src == relpath + "/skins/img/dontshow.png") {
		document.getElementById("moreStatistics").src = relpath + "/skins/img/show.png";
		step = 2;
	}
	else if (document.getElementById("moreStatistics").src == relpath + "/skins/img/show.png") {
		document.getElementById("moreStatistics").src = relpath + "/skins/img/hide.png";
		step = 1;
	}
	else if (document.getElementById("moreStatistics").src == relpath + "/skins/img/hide.png") {
		document.getElementById("moreStatistics").src = relpath + "/skins/img/dontshow.png";
		step = 0;
	}
	var domain;
	domain = relpath.replace("www.", "");
	domain = domain.replace("http://","");
	domain = domain.replace("/","");
	document.cookie = "moreStatistics=" + step + ';domain=.' + domain + ';path=/';
}
function moreAttachments(relpath) {
	var step = 0;

	if (document.getElementById("moreAttachments").src == relpath + "/skins/img/dontshow.png") {
		document.getElementById("moreAttachments").src = relpath + "/skins/img/show.png";
		step = 2;
	}
	else if (document.getElementById("moreAttachments").src == relpath + "/skins/img/show.png") {
		document.getElementById("moreAttachments").src = relpath + "/skins/img/hide.png";
		step = 1;
	}
	else if (document.getElementById("moreAttachments").src == relpath + "/skins/img/hide.png") {
		document.getElementById("moreAttachments").src = relpath + "/skins/img/dontshow.png";
		step = 0;
	}
	var domain;
	domain = relpath.replace("www.", "");
	domain = domain.replace("http://","");
	domain = domain.replace("/","");
	document.cookie = "moreAttachments=" + step + ';domain=.' + domain + ';path=/';
}
function moreKeywords(relpath) {
	var step = 0;

	if (document.getElementById("moreKeywords").src == relpath + "/skins/img/dontshow.png") {
		document.getElementById("moreKeywords").src = relpath + "/skins/img/show.png";
		step = 2;
	}
	else if (document.getElementById("moreKeywords").src == relpath + "/skins/img/show.png") {
		document.getElementById("moreKeywords").src = relpath + "/skins/img/hide.png";
		step = 1;
	}
	else if (document.getElementById("moreKeywords").src == relpath + "/skins/img/hide.png") {
		document.getElementById("moreKeywords").src = relpath + "/skins/img/dontshow.png";
		step = 0;
	}
	var domain;
	domain = relpath.replace("www.", "");
	domain = domain.replace("http://","");
	domain = domain.replace("/","");
	document.cookie = "moreKeywords=" + step + ';domain=.' + domain + ';path=/';
}

//Ajax
function GetXmlHttpObject() {
	xmlHttp = null;
	try {
		xmlHttp = new XMLHttpRequest();
	}
	catch (e) {
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}
function addTag(pid, kw, relpath) {
	var xmlHttp = GetXmlHttpObject();
	if (xmlHttp == null) {
		document.getElementById("related_tags").innerHTML = "Your browser does not support AJAX.";
	}
	xmlHttp.onreadystatechange=function()
	{
		if (xmlHttp.readyState == 4) {
			document.getElementById("related_tags").innerHTML += xmlHttp.responseText;
		}
	}
	xmlHttp.open("GET", relpath + "/header.php?ajax=1&refer=" + pid + "&newkw=" + kw, true);
	xmlHttp.send(null);
}
//-->