
  function openWindow(URL, width, Height, resize,name) {	
  	if (resize != "no") {
  		resize = "yes";
  	}	
  	if (name == "") {
  	  name = "Window"; 
  	}
  	wnd = window.open(URL,name,"width="+width+", height="+Height+",scrollbars=yes,dependent=yes,resizable="+resize);
  	wnd.focus();
  	return true;
  }
  
  function queryconfirm(queryurl,querytext) {
	var queryparts = querytext.split("<br>");
	var new_querytext = "";
	for(i=0;i<queryparts.length;i++) {
		new_querytext += "\n"+queryparts[i];
	}
	/*new_querytext = "Sicherheitsabfrage:\n".concat(new_querytext);*/
	Check = confirm(new_querytext);
	if(Check == true) document.location.href = queryurl;
  }  
  
  function checkAll(form,status) 
    {  
    var formfields = document.forms[form].elements
    if (formfields) 
      for (i=0; i<formfields.length; i++)
        if ( formfields[i].type == 'checkbox' )
          formfields[i].checked = status;  
    if ( status == true )
      return(true);
    else
      return(false);
    }
  
function CloseAndParentReload() {
  opener.location.reload();
  self.close();
}