// ******************************************************// ******************** Ajax functions  *********************// ******************************************************function fetchSubform(subform, insertHere, unid) {	URLvalues = location.search;		xmlhttpPost(subformFetchAgentURL + '&subform=' + subform + '&unid=' + unid + '&' + URLvalues.substr(1), insertHere);}function xmlhttpPost(strURL,result) {	xmlhttpPostwStartEnd(strURL,result,'','')	}function xmlhttpPostwStartEnd(strURL,result,vStart,vEnd) {    var xmlHttpReq = false;    var self = this;    // Mozilla/Safari    if (window.XMLHttpRequest) {        self.xmlHttpReq = new XMLHttpRequest();    }    // IE    else if (window.ActiveXObject) {        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");    }    self.xmlHttpReq.open('GET', strURL, true);    self.xmlHttpReq.onreadystatechange = function() {        if (self.xmlHttpReq.readyState == 4) {            updateInnerHTML(self.xmlHttpReq.responseText, result,vStart,vEnd);        }    }    self.xmlHttpReq.send(null);}function updateInnerHTML(str,layername,vStart,vEnd){	document.getElementById(layername).innerHTML = vStart+str+vEnd;}