var win;
function pop(fn, desc) {
	if (document.all) {
		LeftPosition = (document.body.clientWidth/2)-250;
		TopPosition = (document.body.clientHeight/2)-300;
	} else if (document.layers) {
		LeftPosition = (window.innerWidth/2)-250;
		TopPosition=0
	} else {
		LeftPosition=0
		TopPosition=0		
	}
	settings = 'height=400,width=500,top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable'		
	win = window.open(fn,'Popup',settings)
	win.location.href = fn;
	if(javascript_version > 1.0)
	{
 		setTimeout('win.focus();',150);
	}
}
function printPage() {
  if (window.print)
    window.print()
  else
    alert("Sorry, your browser doesn't support this feature.");
}

function show(object) {
    if (document.getElementById && document.getElementById(object) != null)
         node = document.getElementById(object).style.visibility='visible';
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'visible';
    else if (document.all)
        document.all[object].style.visibility = 'visible';
}

function hide(object) {
    if (document.getElementById && document.getElementById(object) != null)
         node = document.getElementById(object).style.visibility='hidden';
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'hidden';
    else if (document.all)
         document.all[object].style.visibility = 'hidden';
}