
function NewWindow(mypage,myname,w,h,scroll){
	var win = null;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2-30 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
}
	function init(){
		this.ver=navigator.appVersion
		this.dom=document.getElementById?1:0
		this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
		this.ie4=(document.all && !this.dom)?1:0;
		this.ie= document.all?1:0;
		this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
		this.ns4=(document.layers && !this.dom)?1:0;
	return this;	
	}
	
	function show(div){
	bw=new init();
		obj=bw.dom? document.getElementById(div).style:bw.ie?document.all[div].style:
			bw.ns4?document.layers[div]:0;
		if(obj) {obj.display='block';obj.visibility='visible';}
	}
	
	function hide(div){
	bw=new init();
		obj=bw.dom? document.getElementById(div).style:bw.ie?document.all[div].style:
			bw.ns4?document.layers[div]:0;
	if(obj){ obj.display='none'; obj.visibility='hidden';}
	}