function Print()
{
	window.print();
}

if (document.getElementById) {
	stdBrowser = true
}
else {
	stdBrowser = false
}

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=1,width=500,height=300,left = 390,top = 330');");
}

function popUp2(evt,currElem) {
/*	
	var topoffset = 2;
	var leftoffset = 125;
*/
	var topoffset = -50;
	var leftoffset = -20;


	if (stdBrowser) {
		popUpWin = document.getElementById(currElem).style
	}
	else {
		popUpWin = eval("document." + currElem)
	}
popUpWin.top = parseInt(evt.pageY)+topoffset + "px"
popUpWin.left = Math.max(2,parseInt(evt.pageX)-leftoffset) + "px"
		
/*	
	if (document.all) {
		popUpWin.pixelTop = parseInt(evt.y)+topoffset
		popUpWin.pixelLeft = Math.max(2,parseInt(evt.x)-leftoffset)
	}
	else {
		if (stdBrowser) {
			popUpWin.top = parseInt(evt.pageY)+topoffset + "px"
			popUpWin.left = Math.max(2,parseInt(evt.pageX)-leftoffset) + "px"
		}
		else {
			popUpWin.top = parseInt(evt.pageY)+topoffset
			popUpWin.left = Math.max(2,parseInt(evt.pageX)-leftoffset)
		}
	}
*/
	popUpWin.visibility = "visible"
}

function popDown(currElem) {
	if (stdBrowser) {
		popUpWin = document.getElementById(currElem).style
	}
	else {
		popUpWin = eval("document." + currElem)
	}
	popUpWin.visibility = "hidden"
}
		
		


