function CheckSpam(theText,theURL) { theMsg=document.getElementById('chatbarText').value; theMsg=theMsg.toLowerCase(); count_http=theMsg.split("http").length; var limit=2; if((document.getElementById('shoutboxU').value).length>7) { if(document.getElementById('shoutboxU').style.display!="none") { limit++; count_http++; } } if(count_http>limit) { alert("Sorry, but you can post only one url by message..."); return false; } theText+=' '+theURL; var spam = ['85.18.136.68']; TextToScan=theText.toLowerCase(); for (var i = 0; i < spam.length; i++) { if(TextToScan.indexOf(spam[i])!=-1) { alert("No, sorry you used a banned word!\n-> "+spam[i].toUpperCase()); return false; break; } } return true; } // function charLimit(form){ x=form.origin.value.lenght; } function calcola(val) { if (val.testo.value.length > val.smsmaxlength.value) { val.testo.value = val.testo.value.substring(0, val.smsmaxlength.value); rest = 0; } else rest = val.smsmaxlength.value - val.testo.value.length; val.num.value = rest; } document.writeln('
');