var ajaxCallback = new Object();

function ajaxProcess_insertHtml()
{
    var myajax=ajaxpack.ajaxobj
    var myfiletype=ajaxpack.filetype
    if (myajax.readyState == 4){ //if request of file completed
        if (myajax.status==200 || window.location.href.indexOf("http")==-1){ //if request was successful or running script locally
            if (myfiletype=="txt"){
				tag = document.getElementById(ajaxCallback.insertHTML);
                tag.innerHTML=myajax.responseText;
            }
        }
    }

}


function ajaxProcess_loadPos2()
{
    var myajax=ajaxpack.ajaxobj
    var myfiletype=ajaxpack.filetype
    if (myajax.readyState == 4){ //if request of file completed
        if (myajax.status==200 || window.location.href.indexOf("http")==-1){ //if request was successful or running script locally
            if (myfiletype=="txt"){
				pos2 = document.getElementById("tpl_pos2");
                pos2.innerHTML=myajax.responseText;
            }
        }
    }
}
