<!--
function getEl (id) {
	var obj = null;
	if (!document.getElementById) return false;
	if (!(obj =document.getElementById(id))) return false;
	return obj;
}

function triggerClick (id) {
	var obj;
	if ((obj = getEl(id))) obj.click();
}

function openPopup(adr, width, height, name){
	var clWin = null;
	if(!name) name = Math.round(Math.random()*1000);
	clWin = window.open(adr, name, "height="+height+", width="+width+", top=30, left=30, status=no, toolbar=no, menubar=no, location=no, scrollbars=yes, directories=no");
	clWin.focus();
}

function show_hide(id)
{
	var tmp;
	eval("tmp = document.getElementById('"+id+"').style.display");
	if(tmp == 'none')
	{
		eval("document.getElementById('"+id+"').style.display = 'block'");
		eval("document.getElementById('"+id+"_link').innerHTML = ''");
		eval("document.getElementById('"+id+"_link').innerHTML = 'hide'");
//		document.cookie = id + "=" + escape('block') + "; path=/";
	}else{
		eval("document.getElementById('"+id+"').style.display = 'none'");
		eval("document.getElementById('"+id+"_link').innerHTML = ''");
		eval("document.getElementById('"+id+"_link').innerHTML = 'more...'");
//		document.cookie = id + "=" + escape('none') + "; path=/";
	}
}

function show_hide_dns(id)
{
	var tmp;
	eval("tmp = document.getElementById('"+id+"').style.display");
	if(tmp == 'none')
	{
		eval("document.getElementById('"+id+"').style.display = 'block'");
	}else{
		eval("document.getElementById('"+id+"').style.display = 'none'");
	}
}

function print_page(url, width, height)
{
	if (typeof(ispopup) != 'undefined') window.print();
	else openPopup(url, width, height);
}
/*    begin BUXTER ADDED SCRIPT >>>    */

var currentLegend = null;

function toggleLegend (id) {
	var tmpObj;
	if (id == currentLegend) return;
	if (currentLegend && (tmpObj = getEl('legend_' + currentLegend))) tmpObj.style.display = 'none';
	if (tmpObj = getEl('legend_' + id)) tmpObj.style.display = 'block';
	currentLegend = id;
}

/*    <<< end BUXTER ADDED SCRIPT   */


//-->

/* antispam mail coding by Buxter */
function oec(inp) {
	var string = 'mai';
	string += 'lto';
	string += ':' + inp;
	string += decodeURIComponent('%' + '40') + 'resellersp';
	string += 'anel' + '.' + 'com';
	self.location.href = string;
}

function includeJS(jsPath)
{
	var js = document.createElement("script");
	js.setAttribute("type", "text/javascript");
	js.setAttribute("src", jsPath);
	document.getElementsByTagName("head")[0].appendChild(js);
}