var xmlhttp
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
  try {
  xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
 } catch (e) {
  try {
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
  } catch (E) {
   xmlhttp=false
  }
 }
@else
 xmlhttp=false
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
 try {
  xmlhttp = new XMLHttpRequest();
 } catch (e) {
  xmlhttp=false
 }
}


function changePreis(idName, Menge, Artikel){
//alert("element ist: " + idName + " menge ist: " + Menge + " und artikel ist: " + Artikel);
var xmlhttp
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
  try {
  xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
 } catch (e) {
  try {
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
  } catch (E) {
   xmlhttp=false
  }
 }
@else
 xmlhttp=false
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
 try {
  xmlhttp = new XMLHttpRequest();
 } catch (e) {
  xmlhttp=false
 }
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		try { xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp=false
			}
	}

	
	
	url="/hidden/preisfindung/index.html?i2cms_i2connect=i2c_slots.i2connect(Method,getPreis,)" + "&t_Menge=" + Menge + "&t_ArtikelNr=" + Artikel;
        url="/hidden/preisfindung/index.html?" + "t_Menge=" + Menge + "&t_ArtikelNr=" + Artikel;

	//alert("url ist: " + url + " und id:" + idName);
	//alert("was steht jetzt drin:" + document.getElementById(idName).innerHTML);
	xmlhttp.open("GET",url,true);
		
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4) {
			//alert("ID: " + idName + " und return ist: " + xmlhttp.responseText);
			document.getElementById(idName).innerHTML= xmlhttp.responseText;
		}
	}
	xmlhttp.setRequestHeader('Accept','message/x-formresult')
	xmlhttp.send(null)

}

