// JavaScript Document


function warten(prmSec)
  {
  prmSec *= 1000;
  var eDate = null;
  var eMsec = 0;
  var sDate = new Date();
  var sMsec = sDate.getTime();

  do {
      eDate = new Date();
      eMsec = eDate.getTime();

  } while ((eMsec-sMsec)<prmSec);
}


function popup(url) {
	window.open(url,'popup','width=820,height=700,scrollbars=yes')
}


function windowOpen(url, width, height, scrollbars) {
	if (scrollbars != 'no') var scrollbars = 'yes';
	if (popupWindow != null && popupWindow.closed == false) popupWindow.close();

	popupWindow = window.open(url, "popup", "height="+height+",width="+width+",locationbar=no,menubar=no,scrollbars="+scrollbars+",resizable=yes");
	popupWindow.focus();
}


var popupWindow = null;