// XMLRequest.js
var XMLfilepath = '';
var XMLdata = null; 
var xmlhttp =false ;
var isIE = false ;  
var myXMLHTTPRequest =null; 
function getXMLhttpObject (p_xmlFilePath)
{
try{
//var XMLtext = ""; 
XMLfilepath = p_xmlFilePath ;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
  try {  
  myXMLHTTPRequest=new ActiveXObject("Msxml2.XMLHTTP")
 } catch (e) {
  try { 
    myXMLHTTPRequest=new ActiveXObject("Microsoft.XMLHTTP")
  } catch (E) {
   xmlhttp=false
  }
 }
@else
 xmlhttp=false
@end @*/      
if (!xmlhttp && myXMLHTTPRequest == null)
{
  isIE = false ; 	
  myXMLHTTPRequest = new XMLHttpRequest(); 
  myXMLHTTPRequest.open("GET", p_xmlFilePath, false);
  myXMLHTTPRequest.send(null);
  //XMLtext = myXMLHTTPRequest.responseText;
}
else  // we now in IE 5+
	{	  	
	  isIE = true ;	  
      myXMLHTTPRequest.open("GET", p_xmlFilePath,false);
      myXMLHTTPRequest.onreadystatechange=function() 
      {
      	if (myXMLHTTPRequest.readyState==4) 
      	{
			//XMLtext = myXMLHTTPRequest.responseText; 
  	    }// end of if myXMLHTTPRequest.readyState==4	
      }// end off  onreadystatechange
       myXMLHTTPRequest.send(null)
	}
return myXMLHTTPRequest	;
}catch (e){window.status = "Error in startMyWatchListParse function " +e.message;}
}



function getNonSyncXMLhttpObject (p_xmlFilePath)
{
try{
//var XMLtext = ""; 
XMLfilepath = p_xmlFilePath ;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
  try {  
  myXMLHTTPRequest=new ActiveXObject("Msxml2.XMLHTTP")
 } catch (e) {
  try { 
    myXMLHTTPRequest=new ActiveXObject("Microsoft.XMLHTTP")
  } catch (E) {
   xmlhttp=false
  }
 }
@else
 xmlhttp=false
@end @*/      
if (!xmlhttp && myXMLHTTPRequest == null)
{
  isIE = false ; 	
  myXMLHTTPRequest = new XMLHttpRequest(); 
  myXMLHTTPRequest.open("GET", p_xmlFilePath, true);
}  
else  // we now in IE 5+
	{	  	
	  isIE = true ;
      myXMLHTTPRequest.open("get", p_xmlFilePath,true);
	}	
return myXMLHTTPRequest	;
}catch (e){window.status = "Error in startMyWatchListParse function " +e.message;}
}