function openWin(lnk,title,w,h) {
	if(title == "") titel = 'jsWin';
	if(w == "" || w == undefined) w = 425;
	if(h == "" || h == undefined) h = 400;
	myWin = window.open(lnk, title, "width="+w+",height="+h+",scrollbars=yes,resizable=no,status=no,toolbar=no,dependent=yes");
  	myWin.focus();
}

/*
function jsSelect(elem,params) { // Select onChange
	if(elem) {
		onChangePath = "?"+elem.name+"="+elem.options[elem.options.selectedIndex].value;
		onChangePath += params;
		self.location.href = onChangePath;
	}
}
*/
function show(what) {
	if (document.getElementById(what)) {
		document.getElementById(what).style.display = "inline";
	}	
}
function hide(what){
	if (document.getElementById(what)) {
		document.getElementById(what).style.display = "none";
	}	
}
function formSubmit(formId) {
	actForm = document.getElementById(formId);
	if(actForm) {
		actForm.submit();	
	}
}
function jsHide(elem) { // Alle bei aktiviertem JS zu versteckenden Elemente verstecken
	hide = document.getElementsByName(elem);
	if(hide.length > 0) {
		for(i=0;i<hide.length;i++) {
			actElem = hide[i];
			actElem.style.display = "none";
		}
	}
	
}
function submitOnEnter(func) {
	if(onEnter == true) {
		if(func != "") {
			return eval(func+"();");
		}
	}
	else {
		return markiereElm();
	}
	return onEnter;
}
function str_replace(ssearch, sreplace, subject) {
    return subject.split(ssearch).join(sreplace);
}
