2 This program is free software; you can redistribute it and/or modify
3 it under the terms of the Revised BSD License.
5 This program is distributed in the hope that it will be useful,
6 but WITHOUT ANY WARRANTY; without even the implied warranty of
7 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8 Revised BSD License for more details.
10 Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
11 Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
13 $FileInfo: javascript.js - Last Update: 05/09/2007 SVN 1 - Author: cooldude2k $
17 itm = document.getElementById(id);
20 function toggletag(id) {
22 itm = document.getElementById(id);
23 if (itm.style.display == "none") {
24 itm.style.display = ""; }
26 itm.style.display = "none"; } }
28 function bgchange(id,color) {
30 itm = document.getElementById(id);
31 itm.style.backgroundColor = ''+color+''; }
33 function innerchange(tag,text1,text2) {
35 usrname = document.getElementsByTagName(tag);
36 for (var i = 0; i < usrname.length; i++) {
37 if(usrname[i].innerHTML==text1) {
38 usrname[i].innerHTML = text2; } } }