function confirmus(text,road) {
input_box=confirm(text);
	if (input_box==true) {  // Output when OK is clicked
	window.location=road;
	}
}
/* echo '<SCRIPT language="JavaScript" type="text/javascript" src="http://www.'.$domanin.'/scripts/remotewin.js"></SCRIPT>'; */


function newWin(w, h, typ, road, winname) {
  var win_left = (screen.width - w) / 2;
  var win_top = (screen.height - h) / 3;
  
  if(typ==1) {
  attr='channelmode=0,directories=0,fullscreen=0,height ='+h+',left='+win_left+' ,location=0,menubar=0,resizable=1,scrollbars =0,status =0,titlebar=1,top='+win_top+',width='+w;
   
  }
  else {
    attr='channelmode=0,directories=0,fullscreen=0,height ='+h+',left='+win_left+' ,location=0,menubar=0,resizable=1,scrollbars =1,status =0,titlebar=1,top='+win_top+',width='+w;
  }
 
  remote = window.open(road,winname,attr);

  if (remote.opener == null) remote.opener = window; 
    
remote.opener.name = "opener";
remote.focus();
return false;
}
