<!--
function sendMessage(){
message = document.getElementById("prefex").innerHTML;
message += document.sendMessForm.sendMessField.value;
url='sendMessage.php?message='+message;
document.sendMessForm.sendMessField.value='';
document.getElementById("prefex").innerHTML='';
callPage(url, 'serverMessages');
}
//#########################################################################################
var k=0; req=Array();
function callPage(pageUrl, divElementId, loadingMessage, pageErrorMessage) {
if(!loadingMessage || loadingMessage=='') loadingMessage = "ContentSet is loading, Please Wait...";
if(!pageErrorMessage || pageErrorMessage=='') pageErrorMessage="Error in Loading page />";
document.getElementById(divElementId).innerHTML = loadingMessage+'Calling twitter...';
try {
req[k] = new XMLHttpRequest(); /* e.g., Firefox */
} catch(e) {
try {
req[k] = new ActiveXObject('Msxm12.XMLHTTP'); /* some versions IE */
} catch(e) {
try {
req[k] = new ActiveXObject('Microsoft.XMLHTTP'); /* some IE */
} catch(E) {
req[k] = false;
}
}
}
req[k].onreadystatechange = function() {responsefromServer(divElementId, pageErrorMessage);};
req[k].open('GET',pageUrl,true);
req[k].send(null);
}
function responsefromServer(divElementId, pageErrorMessage) {
var output = req[k].responseText;
if(req[k].readyState == 4) {
if(req[k].status == 200) {
output = req[k].responseText;
document.getElementById(divElementId).innerHTML = output;
} else {
document.getElementById(divElementId).innerHTML = pageErrorMessage+'\n'+output;
}
}
}
-->