function changeBackgroundColor(id, color)
{	
	if (document.all) eval("document.all."+id+".style.backgroundColor='"+color+"';");
	else if (document.getElementById) eval("document.getElementById('"+id+"').style.backgroundColor='"+color+"';");
}

function showLayer(id)
{
	if (document.all) eval("document.all."+id+".style.visibility='visible';");
	else if (document.getElementById) eval("document.getElementById('"+id+"').style.visibility='visible';");
}

function hideLayer(id)
{
	if (document.all) eval("document.all."+id+".style.visibility='hidden';");
	else if (document.getElementById) eval("document.getElementById('"+id+"').style.visibility='hidden';");
}


var preview;

function showPreview(id)
{
	preview=window.setTimeout("showLayer('"+id+"Preview')", 200);		
}

function hidePreview(id)
{
	window.clearTimeout(preview);
	hideLayer(id+"Preview");
}

var lager;

function showLager(id)
{
	lager=window.setTimeout("showLayer('"+id+"Lager')", 200);		
}

function hideLager(id)
{
	window.clearTimeout(lager);
	hideLayer(id+"Lager");
}

function openNormalPopup(url, name, width, height, scrolling, resizable, iStartX, iStartY, sToolbar) {
	myPopup = window.open(url, name, "dependent=yes,width="+width+",height="+height+",location=no,menubar=no,toolbar="+sToolbar+",status=no,scrollbars="+scrolling+",resizable="+resizable);
}

function openPrintView(url, name, width, height) {
	myPopup = window.open(url, name, "dependent=yes,width="+width+",height="+height+",location=no,menubar=yes,toolbar=yes,status=no,scrollbars=yes,resizable=yes");
}
