//<![CDATA[<!--
function getid(id) {return document.getElementById(id);}function formpck(obj) {var getstr = "";for (i=0; i<obj.childNodes.length; i++) {if (obj.childNodes[i].tagName == "INPUT") {if (obj.childNodes[i].type == "text") {getstr += obj.childNodes[i].name + "=" + obj.childNodes[i].value + "&";}else if (obj.childNodes[i].type == "hidden") {getstr += obj.childNodes[i].name + "=" + obj.childNodes[i].value + "&";}else if (obj.childNodes[i].type == "password") {getstr += obj.childNodes[i].name + "=" + obj.childNodes[i].value + "&";}else if (obj.childNodes[i].type == "checkbox") {if (obj.childNodes[i].checked) {getstr += obj.childNodes[i].name + "=" + obj.childNodes[i].value + "&";}}else if (obj.childNodes[i].type == "radio") {if (obj.childNodes[i].checked) {getstr += obj.childNodes[i].name + "=" + obj.childNodes[i].value + "&";}}}else if (obj.childNodes[i].tagName == "SELECT") {var sel = obj.childNodes[i];getstr += sel.name + "=" + sel.options[sel.selectedIndex].value + "&";}else if (obj.childNodes[i].tagName == "TEXTAREA") {getstr += obj.childNodes[i].name + "=" + obj.childNodes[i].value + "&";}}return getstr;}function makerequest() {if (window.XMLHttpRequest) { request = new XMLHttpRequest();} else if(window.ActiveXObject) { try {request = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {try {request = new ActiveXObject("Microsoft.XMLHTTP");} catch(e) {}}}return request;}var http = makerequest();function senddata(data, act, outputid, process) {http.open("POST", act, true);http.onreadystatechange = function output() { if(http.readyState == 1) {getid(outputid).innerHTML = process; } if(http.readyState == 4){getid(outputid).innerHTML = http.responseText;}};http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");http.send(data);}function enablebtn() {getid('shout').disabled = '';getid('shout').value = 'Shout!';}function updatesb() {senddata('', 'shout.php', 'sbcontent', 'Checking For Shouts...');setTimeout('updatesb()', 120000);}function shout() {senddata(formpck(getid('myform')), 'shout.php', 'sbcontent', 'Shouting...');getid('message').value = '';getid('shout').value = '[Wait]';getid('shout').disabled = 'disabled';setTimeout('enablebtn()', 30000);}function toggle(id) {getid(id).style.display = (getid(id).style.display == "none" ? "block" : "none" || "block" ? "none" : "block");}
//-->//]]>