function loadwindow(url,width,height){
	var bMac, bIE;
	bMac = false;
	bIE = false;
	
	if (navigator.appName == "Microsoft Internet Explorer") {
		bIE = true;
	}

	if(navigator.userAgent.indexOf('Mac') != -1) {
		bMac = true;
	}
	
	//if ((!ie5 && !ns6) || (bMac)) {
		window.open(url,"","width=" + width + ",height=" + height +",scrollbars=1","resizable=1","status=no")
	/*}
	else{
		document.getElementById("dwindow").style.display=''
		document.getElementById("dwindow").style.width=initialwidth=width+"px"
		document.getElementById("dwindow").style.height=initialheight=height+"px"
		document.getElementById("dwindow").style.left="30px"
		document.getElementById("dwindow").style.top=ns6? window.pageYOffset*1+30+"px" : iecompattest().scrollTop*1+30+"px"
		document.getElementById("cframe").src=url

        if(document.getElementById('topDropdowns')) {
    	    document.getElementById('topDropdowns').style.visibility = "hidden";
    	    } 
	      }*/
}

function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}

/* Popup- new window always comes to the top*/
var newWin = null; 
function popUp(strURL, strType, strHeight, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixed") 
   strOptions="status,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="elastic") 
   strOptions="toolbar,menubar,scrollbars,"+ 
     "resizable,location,height="+ 
     strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}
