function OpenPopUp(id,params){
window.open(id+"{linkext}.{session}","",params)
return false;
}
    function checkwebform(req_objects,lit,formular){
		var errors="",elname,litname
		for (var i=0;i<req_objects.length;i++){
			for (y in req_objects[i]){
			   elname=y
			   litname=req_objects[i][y]
	    	}
    		if(formular[y].value==""){
				errors+=litname+"\n"
			}
		}
		if (errors.length>0) {
			alert(lit+"\n\n"+errors)
			return false
		}
		else {
			return true
		}
	}	
function CheckForm(formular){
              var	elements=formular.elements
		var missingfields=new Array()
		for(var i=0;i<elements.length;i++){
	  		if(elements[i].name.indexOf("_req")>=0&&elements[i].value==""){
		   		if(elements[i].type!="radio"||!elements[i].checked){
					missingfields[missingfields.length]=FormatFormName(elements[i].name)
				}
			}
		}
		if(missingfields.length){
				return ShowErrMsg(missingfields)
		}
	}
	
	function FormatFormName(name){
		return name.substring(3,name.indexOf("_req")).toUpperCase()
	}
	
	
	function ShowErrMsg(missing){
		var errmsg="Die Folgenden Felder wurden nicht ausgefüllt\n\n"
		errmsg+=missing.join("\n")
		alert(errmsg)
		return false;
	}

// Netscape resiz-fix
function WM_netscapeCssFix() {

if (document.WM.WM_netscapeCssFix.initWindowwidth != window.innerwidth || document.WM.WM_netscapeCssFix.initWindowheight != window.innerheight) {
document.location = document.location;
}
}

function WM_netscapeCssFixCheckIn() {
if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
if (typeof document.WM == 'undefined'){
document.WM = new Object;
}
if (typeof document.WM.WM_scaleFont == 'undefined') {
document.WM.WM_netscapeCssFix = new Object;
document.WM.WM_netscapeCssFix.initWindowwidth = window.innerwidth;
document.WM.WM_netscapeCssFix.initWindowheight = window.innerheight;
}
window.onresize = WM_netscapeCssFix;
}
}
//WM_netscapeCssFixCheckIn()
