function getTag(id)
{
	var d = document;
	var tag = d.getElementById(id);

	// Div functions
	tag.setTop = function(y) { this.style.top=y; }

	tag.setHeight = function(h) { this.style.height = h; }
	tag.getHeight = function() { return this.offsetHeight; }
	return tag;
}

function popUp(URL)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=200,left = 446,top = 332');");
}



function popUpAcc(URL)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=360,height=310,left = 400,top = 300');");
}

function popUpImg(URL)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=340,left = 400,top = 300');");
}

function popUpDefCalc(URL)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=340,left = 400,top = 300');");
}

function popUpAccess(accURL){
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(accURL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=300,left = 400,top = 300');");
}

function unitsChange(imp)
{
	var d = document;

	metric = getTag("u-metric");
	imperial = getTag("u-imperial");
	if (imp == 1)
	{
		if (metric.style) metric=metric.style;
		metric.visibility = "hidden";
		metric.display = "none";

		if (imperial.style) imperial=imperial.style;
		imperial.visibility = "visible";
		imperial.display = "";
	}
	else
	{
		if (imperial.style) imperial=imperial.style;
		imperial.visibility = "hidden";
		imperial.display = "none";

		if (metric.style) metric=metric.style;
		metric.visibility = "visible";
		metric.display = "";
	}
}

function zslkp()
{
	specdelib = getTag("specdeli");

		if (specdelib.style) specdelib=specdelib.style;
		specdelib.visibility = "visible";
		specdelib.display = "";
}
