function schnellbestellung() {
	var erg='';
	for(i=1;i<11;i++) {
		artNr="artikelnummer"+i;
		feld=document.getElementById(artNr);
		statusf=document.getElementById("status"+i);
		if(feld.value!='') {
			statusf.innerHTML="loading...";
			url="/shop/warenkorb.xtp?artId="+feld.value;
			callURL(url,statusf);
		} else {
			
		}
	}
	if(1==1 || confirm("zum Warenkorb ?")) {
		document.location.href='/shop/warenkorb.xtp';
	}
}


var xmlHttp = false;

function instanceRequest(){
  if(window.XMLHttpRequest){ // Mozilla, Safari,...
    xmlHttp = new XMLHttpRequest();
    if(xmlHttp.overrideMimeType){
      xmlHttp.overrideMimeType('text/xml');
    }
  }else if(window.ActiveXObject){ // IE
    try{
      xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
      try{
      	xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
      }catch(e){}
    }
  }

  if(!xmlHttp){
    alert('Kann keine XMLHTTP-Instanz erzeugen!');
    return false;
  }
}

function callURL(url,statusf) {
  // Falls noch ein Request-Objekt existiert -> zunächst beenden
  if(xmlHttp && xmlHttp.readyState){
    xmlHttp.abort( );
    xmlHttp = false;
  }

  if(!xmlHttp){
    instanceRequest();
  }

  xmlHttp.open('GET', url, false); 
  xmlHttp.send(null);
  statusf.innerHTML="<b>OK</b>";
}

function alertContents(status){
  alert(objRequest.responseText);
  //alert(objRequest.responseXML);
}
