<!--
// Written by Dexter Zafra at www.ex-designz.net
//Handle Check Username Availability Using Ajax
 var http = createRequestObject1();
 function createRequestObject1() 
     {
           var xmlhttp;
	 try 
                 { 
                    xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
                 }
	  catch(e) 
                 {
	    try { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
	    catch(f) { xmlhttp=null; }
	    }
	        if(!xmlhttp&&typeof XMLHttpRequest!="undefined") 
                        {
	  	   xmlhttp=new XMLHttpRequest();
	           }
		   return  xmlhttp;
 }
function sndRequest(searchword) 
  {
	//alert("hello")
	//var dvelement = document.getElementById('dv'+idnum);
             //dvelement.innerHTML = "<img src='../progressimgred.gif'>";
            try
              {
                //alert('http://192.168.0.4:5005/brodcast/includes/showDesc.asp?id='+searchword);
					//http.open('GET', 'http://192.168.0.4:5005/brodcast/includes/showDesc.asp?id='+searchword);
					http.open('GET', 'http://www.dbbroadcast.co.uk/includes/showDesc.asp?id='+searchword);
					http.onreadystatechange = handleResponseTextnew;
					http.send(null);
				}
	    
		catch(e){
					try
					  {
						//alert('http://192.168.0.4:5005/brodcast/includes/showDesc.asp?id='+searchword);
							//http.open('GET', 'http://192.168.0.4:5005/brodcast/includes/showDesc.asp?id='+searchword);
							http.open('GET', 'http://dbbroadcast.co.uk/includes/showDesc.asp?id='+searchword);
							http.onreadystatechange = handleResponseTextnew;
							http.send(null);
						}
				
					catch(e){	
						alert("error found")}
				}
	    finally{}
 }
function handleResponseTextnew()
  {
     try
         {
             if((http.readyState == 4)&& (http.status == 200))
                {
    	          //alert(http.responseText);
				  var response = http.responseText;
				  document.getElementById('ProductDescHK').innerHTML = response; 
				             
				}
        }
	catch(e){alert("an error occured");}
	finally{}
}
