// --------------------------
// Allgemeine Funktionen
// --------------------------
function jump2page(varno) {
  document.orderlist.page.value = varno;
  document.orderlist.target = "_self";
  document.orderlist.submit();
}


function info()
{
//	infoWindow = window.open("index.php?&gnav=4&nav1=&skat=3&wk=infoWK&Pos=" + Pos + "&Artnr=" + Artnr + "&Netto=" + Netto + " ", "infoWK", 	"width=400,height=500,left=200,top=200,   scrollbars=no","fullscreen");
infoWindow = window.open("width=400,height=500,left=200,top=200,   scrollbars=no","fullscreen");
infoWindow.focus();
}


function checkpflicht (p){
	if (p.value == ""){
		p.style.background = "#ff4444";
		return true;
	}else{
		p.style.background = "#44ff44";
		return false;
	}
}

function checkallpflicht (){
	 var p = document.getElementById("delivery_adress");
	var dis = false;
	
	if (checkpflicht (document.getElementById("NAME1"))) dis = true;
	if (checkpflicht (document.getElementById("STREET"))) dis = true;
	if (checkpflicht (document.getElementById("HOUSE_NUM1"))) dis = true;
	if (checkpflicht (document.getElementById("POST_CODE1"))) dis = true;
	if (checkpflicht (document.getElementById("CITY1"))) dis = true;
	if (checkpflicht (document.getElementById("LANDID"))) dis = true;
	
	document.delivery_adress.weiter.disabled = dis;
}

function checkdelete (){
 var p = document.getElementById("delivery_adress");
 
 if (p.reallydelete.checked == true){
 	p.weiter.disabled = true;
 	p.deleter.disabled = false;
 }else{
 	p.deleter.disabled = true;
 	checkallpflicht();
 }
}

function greyWeiter(){
	var p = document.getElementById("2");
	var p2 = document.getElementById("update");
	p.disabled=true;
	p2.style.display='';
}
