function sendToServer(URLString,XMLRequest,theType) {
if (parent.PostFrame.document.forms[0]!=null) {
lastURL = URLString;
XMLMode = theType;
var theForm = parent.PostFrame.document.forms[0];
//alert(URLString);
URLString = URLString + cVersion;
var requestURL = URLString;
if (theForm.RedirectURL!=null) {
if (isNotSameHostInURL(URLString, hostName)) {
requestURL = connectorURL;
theForm.RedirectURL.value = URLString;

} else {
theForm.RedirectURL.value = "";
}
}
if (doURLencode) {
theForm.action=requestURL + "&Form=True&Encode=True";
} else {
theForm.action=requestURL + "&Form=True&Encode=False";
}
var xmlHeader = '<?xml version="1.0" ' + localeEncoding + '?>';
theForm.ArcXMLRequest.value=xmlHeader + XMLRequest;
//theForm.JavaScriptFunction.value = theFunction;
theForm.submit();

} else {
alert(msgList[11]);
}

}