// JavaScript Document
function processGetPost(divId){
	document.getElementById(divId).innerHTML = 'Loading content - please wait';
	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") {
				document.getElementById(divId).innerHTML = myajax.responseText;
				//alert(myajax.responseText)
			} else {
				//alert(myajax.responseXML)
			}
		} // end if status
	} // end if readystate
} // end function

// delete link confirmation popup message
function confirmLink(theLink, theText) {
	var confirmMsg='';
    var is_confirmed = confirm(confirmMsg + '\n' + theText);
    if (is_confirmed) {
        theLink.href += '&is_js_confirmed=1';
    }
    return is_confirmed;
}

