function isIE()
{
	if (this.screenX==undefined) return 1;
	return 0;
}
function openwin(_url_,wname,scrollies,resizeable)
{
	if (wname==undefined) wname='_blank';
	if (scrollies==undefined) scrollies=0;
	if (resizeable==undefined) resizeable=0;
	
	return popup(_url_,wname,640,400,-1,-1,scrollies,resizeable);
}

function popup(_url_, wname, w, h, t, l, scr, resizeable, menubar)
{
  if (scr == 1) scr = 'yes';
  else scr = 'no';
  
  if (resizeable==1) resizeable='yes';
  else resizeable='no';

  if (menubar==1) menubar='yes';
  else menubar='no';
  
  wparams='hotkeys=no,dependent=yes,location=no,directories=no,status=no,menubar=' + menubar + ',scrollbars=' + scr + ',resizable='+resizeable;
  if (w>=0) wparams += ',width='  + w;
  if (h>=0) wparams += ',height=' + h;
  if (t>=0) wparams += ',top=' + t;
  if (l>=0) wparams += ',left=' + l;
  win=window.open(_url_,wname,wparams);
  if (win) win.focus();
  
  return win;
}

