/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function __jumpLink(myLink){window.location=myLink;}
/*Do Ajax Action*/
var circleloading = new Image();
circleloading.src = "images/circle.gif";

function GetXmlHttpObject(){
    var objXMLHttp=null
    if (window.XMLHttpRequest){
        objXMLHttp=new XMLHttpRequest()
    }
    else if (window.ActiveXObject){
        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
    return objXMLHttp
}

function AjaxAction(where, url, loadingtype){
    var xmlHttp = new GetXmlHttpObject()
    if(xmlHttp==null){
        return;
    }
    if(loadingtype=='none'){
    }
         if(loadingtype=='circle'){
             var bar = "<img src="+circleloading.src+">";
             document.getElementById(where).innerHTML = bar
         }    
    xmlHttp.onreadystatechange= function(){
        if(xmlHttp.readyState==4 || xmlHttp.readyState == 200){
            document.getElementById(where).innerHTML = xmlHttp.responseText
        }
    }
    xmlHttp.open("GET", url, true);
    xmlHttp.send(null);
}
