function	checkCode()	{
	
	var K1, K2, K3, K4, K5, K6;
	var ERR = false;
	
	K1 = parseInt(document.pCode.K1.value, 16);
	K2 = parseInt(document.pCode.K2.value, 16);
	K3 = parseInt(document.pCode.K3.value, 16);
	K4 = parseInt(document.pCode.K4.value, 16);
	K5 = parseInt(document.pCode.K5.value, 16);
	K6 = parseInt(document.pCode.K6.value, 16);
	
	if (
		isNaN(K1) || isNaN(K2) || isNaN(K3) || isNaN(K4) || isNaN(K5) || isNaN(K6) ||
		K1 < 0 || K2 < 0 || K3 < 0 || K4 < 0 || K5 < 0 || K6 < 0
	) {
		ERR = true;
	}
	
	if (ERR == true) {
		document.getElementById("CodeHinweis").style.display="block";		
	} else {
		var pCode = 	"?K1=" + K1 + 
									"&K2=" + K2 +
									"&K3=" + K3 +
									"&K4=" + K4 +
									"&K5=" + K5 +
									"&K6=" + K6;
		window.open("./ProfilPrinter.php5" + pCode, "ProfilPrinter", "locationbar=no,menubar=no,width=800,scrollbars=yes,resizable=yes");		
	}
	
	//alert(K1+","+K2+","+K3+","+K4+","+K5+","+K6+" ERR:"+ERR);
}
