﻿//Decode Studios 2007 
//All Rights Reserved
var response;
function httpGet(url,postBox){ 
    var httpCon; 
    response = document.getElementById(postBox);
    try {
    httpCon = new ActiveXObject('Msxml2.XMLHTTP');  }
    catch(exp1){
        try {
            httpCon = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch(exp2) {
            try {  
                httpCon = new XMLHttpRequest();     }
            catch(exp3){
                httpCon = false;   }
        }
     }
    httpCon.onreadystatechange  = function(){ 
        if (httpCon.readyState == 4 && httpCon.status == 200) {
                response.innerHTML = httpCon.responseText;
                } 
        } 
    httpCon.open('GET', url, true); 
    httpCon.send(''); 
}
 
function httpPost(url,postBox){ 

}

function httpUnSync(url){ 
    var httpCon; 
    try {
    httpCon = new ActiveXObject('Msxml2.XMLHTTP');  }
    catch(exp1){
        try {
            httpCon = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch(exp2) {
            try {  
                httpCon = new XMLHttpRequest();     }
            catch(exp3){
                httpCon = false;   }
        }
     }
    httpCon.onreadystatechange  = function(){ 
        if (httpCon.readyState == 4 && httpCon.status == 200) {
                response = httpCon.responseText;
                } 
        } 
    httpCon.open('GET', url, false); 
    httpCon.send(''); 
    return response;
}
