function nurZahlen(zahl)
{
	var val = zahl.value.replace(/[^\.^,\d]/g, '');
	zahl.value = val;
}

var win=null;

onerror = stopError;
function stopError(){
	return true;
}
	
function checkform ( form )
{
	if (form.vnr.value == "") {
		document.getElementById('vnr_error').style.visibility = "visible";
		return false ;
	} 
	if (form.vnr.value != "") {
		document.getElementById('vnr_error').style.visibility = "hidden";	    
	} 
	if (form.gkv.value == "") {
		document.getElementById('gkv_error').style.visibility = "visible";
		return false ;
	}
	if (form.gkv.value != "") {
		document.getElementById('gkv_error').style.visibility = "hidden";			
	}
	if (form.adv_id.value == "") {
		document.getElementById('adv_error').style.visibility = "visible";
		return false ;
	}
	if (form.adv_id.value != "") {
		document.getElementById('adv_error').style.visibility = "hidden";			
	}	
	var url = "https://versichern.signal-iduna.de/siweb/dent/dent.jsp?partner=0&tarif=2&gkv=" +document.myform.gkv.value+ "&vnr=" +document.myform.vnr.value+ "&adv_id=" +document.myform.adv_id.value;
//		alert (url);
	myleft=(screen.width)?(screen.width-1000)/2:100;mytop=(screen.height)?(screen.height-800)/2:100;
	settings="width=1000,height=800,top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
	win=window.open(url,"",settings);
	win.focus();
}

function checkform_popup ( form )
{
	if (form.vnr.value == "") {
		document.getElementById('vnr_error').style.visibility = "visible";
		return false ;
	} 
	if (form.vnr.value != "") {
		document.getElementById('vnr_error').style.visibility = "hidden";	    
	} 
	if (form.gkv.value == "") {
		document.getElementById('gkv_error').style.visibility = "visible";
		return false ;
	}
	if (form.gkv.value != "") {
		document.getElementById('gkv_error').style.visibility = "hidden";			
	}
	if (form.adv_id.value == "") {
		document.getElementById('adv_error').style.visibility = "visible";
		return false ;
	}
	if (form.adv_id.value != "") {
		document.getElementById('adv_error').style.visibility = "hidden";			
	}	
	var url = "https://versichern.signal-iduna.de/siweb/dent/dent.jsp?partner=20&tarif=2&gkv=" +document.myform.gkv.value+ "&vnr=" +document.myform.vnr.value+ "&adv_id=" +document.myform.adv_id.value;
//		alert (url);
	myleft=(screen.width)?(screen.width-1000)/2:100;mytop=(screen.height)?(screen.height-800)/2:100;
	settings="width=1000,height=800,top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
	win=window.open(url,"",settings);
	win.focus();
}

function popUp(){
	myleft=(screen.width)?(screen.width-1000)/2:100;mytop=(screen.height)?(screen.height-800)/2:100;
	settings="width=1000,height=800,top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
	win=window.open("popup.php","",settings);
	win.focus();
}
