if ((navigator.appName.indexOf("Internet Explorer") != -1) && (navigator.userAgent.indexOf("Opera") == -1)){
	bw_type = "ie";
}else if (navigator.appName.indexOf("Netscape") != -1){
	bw_type = "nn";
	if (parseInt(navigator.appVersion) >= 5){
		bw_type += "6";
	}
}else if (navigator.userAgent.indexOf("Opera") != -1){
	bw_type = "op";
}else{
	bw_type="other";
}


function wopen(_wurl,_wn,_ww,_wh,_wscrl){
 if(screen.width){
  wpos_x = (screen.width-_ww)/2;
  if (wpos_x < 0){ wpos_x = 0;}
  wpos_y = (screen.height-_wh)/2;
  if (wpos_y < 0){ wpos_y = 0;}
 }else{
  wpos_x = 0;
  wpos_y = 0;
 }
 if(_wn==""){ _wn = "w_test";}
 wind_desc = window.open(_wurl,_wn,"alwaysRaised=0,top="+wpos_y+",left="+wpos_x+",height="+_wh+",width="+_ww+",menubar=0,resizable=0,scrollbars="+_wscrl+",status=0");
 wind_desc.focus();
 return wind_desc;
}

function printw(){
	//alert("TODO: put> "+window.location);
	PW1=wopen("print.php?url="+window.location,"PrnWind",630,440,1);
}

function imgw(iurl,ix,iy){
	PW2=wopen("img.html?i="+iurl,"ImgWind",ix,iy,0);
}

