function NewWindow(width,height,url) {
	window.open(url,"PopUp","menubars=0,scrollbars=1,resizable=1,height="+height+",width="+width);
}

function CheckInputData(frm) {
 var skip = false;
 var hobbyselected = false;
 if (!skip && frm.email.value == "") {
 	alert("E-Mail address is required");
 	skip = true;
 }
 
 
 if (!skip && frm.pwd.value =="") {
 	alert("Password is required");
 	skip = true;
 }

 if (!skip && (frm.pwd.value != frm.pwdr.value) ) {
 	alert("Passwords do not match.");
 	skip = true;
 }
  
 if (!skip) {
        InitCookieSearchParams(frm);
 	pbsSetCookie(frm);
 	
 	}
 return (!skip);
}



function choosedate () {
 window.open('/g/kalender_eng.html?searchform.dateselected','','menubar=0,titlebar=0,width=268,height=236');
 document.searchform.Interval.options[document.searchform.Interval.options.length-1].selected = true;
}
function ResetDate () {
 if (document.searchform.Interval.selectedIndex != (document.searchform.Interval.options.length-1))
 {
  document.searchform.dateselected.value = "";
 }
}

function DoPrint () {
 var f = document.searchform;
 f.action = "events?category=print";
 f.submit();
}

function EatCookie() {
document.cookie="usernamepassword=;Path=/"
document.cookie="UserRegID=;Path=/"
document.location="/apps/pbcs.dll/section?Category=SCBJ&RegLogout=1&NoCache=1"
}