function HTTP() 
{
    var xmlhttp = false;

    if(!xmlhttp)
    {
    /*@cc_on @*/
    /*@if (@_jscript_version >= 5)
        try 
	{
            xmlhttp = new ActiveXObject("MSXML2.XmlHttp.3.0")
  	} 
	catch (e) 
	{
  	    xmlhttp = false
	}

	if(!xmlhttp)
	{
   	    try 
	    {
   	        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP")
   	    } 
	    catch (E) 
	    {
  	        xmlhttp = false
            }
	}

	if(!xmlhttp)
	{
   	    try 
	    {
     	        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP")
   	    } 
	    catch (E) 
	    {
  	        xmlhttp = false
            }
	}
    @else
  	xmlhttp = false
    @end @*/
    }

    if(!xmlhttp)
    {
        try 
        {
            xmlhttp = new XMLHttpRequest();
        } 
        catch (e) 
        {
            xmlhttp = false;
        }
    }

    return(xmlhttp);
}

if(typeof getURL=='undefined')
{
    getURL=function(url, fn, notasync)
    {
	var xmlhttp=new HTTP();
	var async = true;

	if(notasync) async = false;

	if (xmlhttp)
	{
	    xmlhttp.open("GET", url += (url.match(/\?/) == null ? "?" : "&") + (new Date()).getTime(), async);

	    if(async)
	    {
		xmlhttp.onreadystatechange=function()
		{
		    if (xmlhttp.readyState==4)
		    {
			fn(xmlhttp.status,xmlhttp.responseText,xmlhttp.getResponseHeader("Content-Type"))
		    }
		}
	    }

	    xmlhttp.send(null)

		if(!async)
		    fn(xmlhttp.status,xmlhttp.responseText,xmlhttp.getResponseHeader("Content-Type"))
	}
	else
	{
	}
    }
}

