var win = null;
function NewWindow(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
}

function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}

function closeWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.close()
}

function changeBGcolor(id,color) {	//
	if (document.getElementById && document.getElementById(id))	{
		document.getElementById(id).style.background = color;
		return true;
	} else if (document.layers && document.layers[id]) {
		document.layers[id].bgColor = color;
		return true;
	}
}

//HIDE STATUS BAR
function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus


