var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/




function loadFragmentInToElement(fragment_url, element_id, name) {
		
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  xmlhttp = new XMLHttpRequest();
}
    document.forms.sendOrder.name.disabled = 'true';
	
    xmlhttp.open("GET", fragment_url,true);
	
 	xmlhttp.onreadystatechange=function() {
	  	if (xmlhttp.readyState==4) {
	   		responsen = xmlhttp.responseText;
			respSp = responsen.split("#");
			//alert(respSp[1]);
			//alert(field.obj.value);	
				
			if(respSp[4] == 1){
				document.forms.sendOrder.what.value = "external";
				document.forms.sendOrder.linken.value = respSp[6];
				document.forms.sendOrder.payid.value = respSp[0];
				
			}else{
				document.forms.sendOrder.what.value = "default";
				document.forms.sendOrder.linken.value = "";
				document.forms.sendOrder.payid.value = respSp[0];				
			}
			//alert(document.getElementsByName('what').value);
	  	}
	 }
 	 xmlhttp.send(null)

}

