function hideStatus(){
    window.status = '';
}

function newStatus(txt){
    window.status = txt;
}

function twofr(URL1,F1,URL2,F2) {
    parent.frames[F1].location.href=URL1;
    parent.frames[F2].location.href=URL2;
}

function helpwindow(URL){
    F1 = window.open(URL,"helpwindow","width=500,height=500,left=40,top=40,resizable=yes,scrollbars=yes");
}

function rechtewindow(URL){
    F1 = window.open(URL,"rechtewindow","width=700,height=700,left=40,top=40,resizable=yes,scrollbars=yes");
}
function popupwindow(URL,WIDTH,HEIGHT){
    F1 = window.open(URL,"helpwindow","width="+WIDTH+",height="+HEIGHT+",left=40,top=40,resizable=yes,scrollbars=yes");
}

function select_switch(status)
{
    for (i = 0; i < document.post.length; i++)
    {
        document.post.elements[i].checked = status;
    }
}
function onlyNumbers_de()
{
if (isNaN(document.formular.plz.value*1))
{
alert("Es dürfen nur Zahlen eingegeben werden!");
}
}
function onlyNumbers_en()
{
if (isNaN(document.formular.plz.value*1))
{
alert("Please enter only numbers!");
}
}
function onlyNumbers_fr()
{
if (isNaN(document.formular.plz.value*1))
{
alert("Please enter only numbers!");
}
}
function allowNumbers(field, event)
{
  var keyCode = event.keyCode ? event.keyCode : 
                event.which ? event.which : event.charCode;
	//alert(keyCode);
  if ((keyCode > 47 && keyCode < 58) || (keyCode > 95 && keyCode < 106) || keyCode < 32 || keyCode == 35 || keyCode == 36 || keyCode == 37 || keyCode == 39 || keyCode == 45 || keyCode == 46)
    return true;
	//alert(keyCode);
  return false;
}
// Collapse and Expand 
function switchDetails(obj) { 
	var el = document.getElementById(obj); 
	var el1 = document.getElementById(obj+'0');
	if ( el.style.display != "none" ) { 
		el.style.display = 'none'; 
		el1.style.display='';
	} 
	else { 
		el.style.display = 'block'; 
		el1.style.display='none';
	} 
} 