function checkZip(){
	zip = removeSpaces(document.frm.zipcode.value);
	house = removeSpaces(document.frm.housenumber.value);
	zip_rExp = /^[1-9]{1}[0-9]{3}[a-z,A-Z]{2}$/;
	house_rExp = /^[0-9]*/;
	if (!zip_rExp.exec(zip)) {
		document.getElementById("pc_x").style.display="block";
		document.getElementById("zipcode").style.borderColor="#47d0fd";
	}
	else{
		if (!house_rExp.exec(house) || house=="") {
			document.getElementById("pc_x").style.display="none";
			document.getElementById("no_x").style.display="block";
			document.getElementById("zipcode").style.borderColor="#ffffff";
			document.getElementById("housenumber").style.borderColor="#47d0fd";
			document.frm.housenumber.focus();
		}
		else{
			document.frm.submit();
		}
	}
}


function removeSpaces(string) {
	var tstring = "";
	string = '' + string;
	splitstring = string.split(" ");
	for(i = 0; i < splitstring.length; i++)
	tstring += splitstring[i];
	return tstring;
}

function setHeights(){
	var submenu_height = document.getElementById('submenu').offsetHeight;
	var content_height = document.getElementById('content').offsetHeight;
	if(submenu_height>content_height){
		document.getElementById('content').style.height=submenu_height+"px";
	}
	var content_height = document.getElementById('content').offsetHeight;
}

var curr_row=-1

function toggle(r){
	$("#answer_"+r).show();
	$("#question_"+r).removeClass();
	$("#question_"+r).addClass("hdr_faq_act");
	if(curr_row!=-1 && curr_row!=r){
		$("#answer_"+curr_row).hide();
		$("#question_"+curr_row).removeClass();
		$("#question_"+curr_row).addClass("hdr_faq");
	}
	curr_row=r;
}

