/* AUTHOR: INFO SERVICE */ /* CREATION DATE: 30/07/2006 */ self.focus(); //if ((document.referrer.indexOf('http://www.cosmopolys.com/cgi-bin/yabb2/YaBB.pl') <0)&&(document.referrer !='http://www.cosmopolys.com/sb/shoutbox.php')) {self.location.href='http://www.google.com';} function reload() { document.getElementById('action').value="refresh"; var loc = "shoutbox.php"; if (document.getElementById('moreshouts').style.display == 'inline') {document.getElementById('viewall').value="true";} document.postshout.submit(); //location.href = loc; } function checkrname() { //This function is called after a name is entered in the form field, and checks if it is registered. //If it is, it alerts the user, shows the password box, and focus on it. //If not, it focus on the shout textarea. var isin = false; if (document.getElementById('name').value != ""){ for (var i = 0; i < namesarray.length; i++){ if (namesarray[i] == document.getElementById('name').value.toLowerCase()){ alert("Ce pseudo est enregistré. Vous devez saisir un mot de passe."); //document.getElementById('passwordfield').style.display = 'inline'; document.getElementById('pass').focus(); isin = true; } } } if (isin == false){ //document.getElementById('passwordfield').style.display = 'none'; document.getElementById('shout').focus(); document.getElementById('shout').select(); return false; } else return true; } function doviewall() { //Make the rest of the shouts viewable document.getElementById('viewall').value='true'; document.getElementById('moreshouts').style.display = 'inline'; document.getElementById('viewall2').style.display = 'none'; document.getElementById('viewless').style.display = 'inline'; scrollTo(0,10000); } function doviewless() { //Hide more shouts document.getElementById('viewall').value='false'; document.getElementById('moreshouts').style.display = 'none'; document.getElementById('viewall2').style.display = 'inline'; document.getElementById('viewless').style.display = 'none'; scrollTo(0,10000); } function openhelp() { //Pop up the help window window.open('help.php','help_window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=350,height=400, left=100, top=100') } function openadmin() { //Pop up the help window window.open('userpanel/colors.php','userpanel','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=350,height=400, left=100, top=100') } function openarch() { //Pop up the help window window.open('archive.php','archive','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=550,height=400, left=100, top=100') } function stoptmr(){ if(tmron){ clearTimeout(timerID); tmron = false; } }