function printWindow() {
    bV = parseInt(navigator.appVersion);
    if (bV >= 4) window.print();
}

function goBack(){
	if(B.ns4) {
		window.back();
		return;
	} else if(B.ie4 || B.ie5) {
		history.back();
		return;
	}
	
}

function openWindow(url, name, w, h){
	win = window.open(url,name, "height=" + h +",innerHeight=" + h +",width=" + w + ",innerWidth=" + w);
}

function keepFrames(url){
	if(self.parent.frames.length == 0){
		self.location = url;
	}
}

function openDetailWindow(url, name){
	win = window.open(url,name, "height=420,width=720,resizable=yes,scrollbars=yes,menubar=yes");
}

function displayWindow(theURL,winName,features, myWidth, myHeight, isCenter) {
	if(window.screen)if(isCenter)if(isCenter=="true"){
		var myLeft = (screen.width-myWidth)/2;
		var myTop = (screen.height-myHeight)/2;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
	}
	window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
