function openKiosk(loc,height,width,scroll){
	tempH = 600;
	tempW = 800;
	if(height > 0)
	{
		tempH = height;
	}
	if(width > 0)
	{
		tempW = width;
	}
	if (navigator.appName == "Navigator"){
		w = window.open (loc  , "kiosk", 'WIDTH='+(tempW)+',HEIGHT='+(tempH)+',resizable=1,screenY=0,screenX=0,scrollbars='+scroll);
		w.focus();
	} else {
		w = window.open (loc , "kiosk", 'WIDTH='+(tempW)+',HEIGHT='+(tempH)+',resizable=1,left=0,top=0,scrollbars='+scroll);
		w.focus();
	}
}

var screen_height = screen.height;
var win= null;
function open_win(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=no';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
