/* function to make a layer visible */
function ShowLayer(element, left, top) {
	var doc = document.getElementById(element).style;
	doc.visibility	='visible';
	doc.pixelLeft	= left;
	doc.pixelTop	= top;
}

/* function to make a layer invisible */
function HideLayer(element) {
	document.getElementById(element).style.visibility='hidden';
}

/* function to change background color of a style layer */
function bgcolor(element, color, bgcolor, txt) {
	document.getElementById(element).style.background=bgcolor;
	document.getElementById(element).style.color=color;
	window.status = txt;
}

function picview(pic, w, h, t, l) {
	/* usage picView(picturelocation, width, height, top, left) if variables (w,h,t,l) are left out the default definitions take over */
	if (!w)
		{w=790 		/* default width for the window if left out*/}
	if(!h)
		{h=540		/* default height for the window if left out*/}
	if(!t)
		{t=0		/* default top position for the window if left out*/}
	if(!l)
		{l=0		/* default left position for the window if left out*/}
	win = window.open(pic,'_blank','width='+w+',height='+h+',resizable=1,scrollbars=1,top='+t+',left='+l+'').focus();
}