<!--
function cleanit(thefield) {
if (thefield.defaultValue==thefield.value) {
thefield.value='';
}
}


var str=location.href;

function getvalue(strArg) {
var _url = str + "&";
var regex = new RegExp("(\\?|\\&)" + strArg + "=([^\\&\\?]*)\\&", "gi");
if (! regex.test(_url)) return "";
var arr = regex.exec(_url);
return (RegExp.$2);
}

var uid = getvalue("uid");


function load() {
loading_icon_open();

try {
xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e) { /* do nothing */ }

xid = Math.random();
xid *= 10000000000000;
xid = Math.ceil(xid);

sourcefile='user/'+uid+'.html?xid='+xid;

xmlhttp.onreadystatechange = triggered;
xmlhttp.open("GET", sourcefile);
xmlhttp.send(null);
}

function triggered() {
if (xmlhttp.readyState == 4) {
if (xmlhttp.status == 200) {
document.getElementById("messages").innerHTML=xmlhttp.responseText;
loading_icon_close();
}
}
}

function start_stream() {
stopstream=setInterval("load();",10*1000);
}


function loading_icon_open() {
var rstyle = document.getElementById('refresh').style;
rstyle.backgroundImage='url(images/load.gif)';
rstyle.backgroundRepeat='no-repeat';
rstyle.paddingLeft='13px';
}


function loading_icon_close() {
var rstyle = document.getElementById('refresh').style;
rstyle.backgroundImage='url()';
rstyle.paddingLeft='0px';
}


function send_msg() {
document.getElementById('shout').disabled=true;
loading_icon_open();

try {
xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e) { /* do nothing */ }

sourcefile='default.pl?service=save&uid='+uid+'&inick='+document.fsb.inick.value+'&itext='+document.fsb.itext.value+'&iurl='+document.fsb.iurl.value;

xmlhttp.onreadystatechange = sended_msg;
xmlhttp.open("GET", sourcefile);
xmlhttp.send(null);
}

function sended_msg() {
if (xmlhttp.readyState == 4) {
if (xmlhttp.status == 200) {
var ianswer=xmlhttp.responseText;

if (ianswer == "1") { alert("Im sorry, no user id found"); }
if (ianswer == "2") { alert("Im sorry, no correct name found"); }
if (ianswer == "3") { alert("Im sorry, no correct message found"); }
if (ianswer == "4") { alert("Im so sorry, your Name too long"); }
if (ianswer == "5") { alert("Im so sorry, your Message too long"); }

loading_icon_close();
load();
}
}
}


function clearly_text(formular) {
if(formular.itext.value == ""){
clearly_line(formular);
return (false);
}else{
send_msg(formular);
window.setTimeout(function(){clearly_line(formular)},500);
window.setTimeout("document.getElementById('shout').disabled=false;",2*1000);
return (false);
}
}


function clearly_line(formular) {
formular.itext.value="";
formular.itext.focus();
formular.itext.select();
}


var alert_url='';

function checkit(userInput) {
what=userInput.value;
if (what.match(/www|http/)) {
if (alert_url == 'i') {}else{

setTimeout("check_url()", 2*1000);
alert_url='i';
}
}
}


function check_url() {
if (what.length > 2) {
if (what.match(/xxe/)) {}else{
alert('xxe.me can turn a long URL into a much shorter one.\nOnly your shorted URLs will be automatically linked!');
}
}
}
//-->