Post by chloe on Aug 25, 2009 23:34:48 GMT -5
GLOBAL HEADER
GLOBAL FOOTER
MAIN FOOTER
<script type="text/javascript">
<!--
document.getElementsByTagName('table')[0].cellSpacing = 0;
//-->
</script>
<script type="text/javascript">
<!--
document.getElementsByTagName('td').item(2).style.display="none";
//-->
</script>
<script type="text/javascript">
<!--
document.getElementsByTagName('font').item(1).style.display="none";
//-->
</script>
<script type="text/javascript">
<!--
// PM + Menu (Text Version)
// Created By Eichi
// This header must stay intact at all times for use.
// This code may not be redistributed or reposted without creator's permission.
// Do not edit below
var TD = document.getElementsByTagName('td');
// Choose your alignments here (make sure to make them opposite)
var menuAlign = "left";
var pmAlign = "right";
var menu = TD[5].innerHTML;
// Do not edit below
if(menuAlign=="right" && pmAlign=="left"){
if(TD[2].innerHTML.match("Hey, ")){
TD[5].align = menuAlign;
var userPM = TD[2].innerHTML.match(/action=pm">(\d+)/i); userPM = RegExp.$1;
var usernPM = TD[2].innerHTML.match(/<\/a>,\s(\d+)\s/i); usernPM = RegExp.$1;
var msgText = "message";
var msgText2 = "message";
if(usernPM == 1){ msgText="message"; } else {msgText="messages";}
if(usernPM == 1){ msgText2="message"; } else {msgText2="messages";}
TD[5].innerHTML = "<table cellspacing=0 width=100%><tr><td align="+pmAlign+"><font size=1>Total: "+userPM+" | New: "+usernPM+" | <a href=index.cgi?action=pm title='Check your PM inbox.'>PMs<\/a> </td><td align="+menuAlign+">"+menu+"</td></tr></table>";
TD[2].style.display = "none";
} else {
if(TD[2].innerHTML.match("Welcome ")){
TD[5].align = menuAlign;
TD[5].innerHTML = "<table cellspacing=0 width=100%><tr><td align="+pmAlign+"><font size=1>Hello, Guest. Please <a href=index.cgi?action=login>Login</a> or <a href=index.cgi?action=register>Register</a>.</td><td align="+menuAlign+">"+menu+"</td></tr></table>"
TD[2].style.display = "none";
}}}
if(menuAlign=="left" && pmAlign=="right"){
if(TD[2].innerHTML.match("Hey, ")){
TD[5].align = menuAlign;
var userPM = TD[2].innerHTML.match(/action=pm">(\d+)/i); userPM = RegExp.$1;
var usernPM = TD[2].innerHTML.match(/<\/a>,\s(\d+)\s/i); usernPM = RegExp.$1;
var msgText = "message";
var msgText2 = "message";
if(usernPM == 1){ msgText="message"; } else {msgText="messages";}
if(usernPM == 1){ msgText2="message"; } else {msgText2="messages";}
TD[5].innerHTML = "<table cellspacing=0 width=100%><tr><td align="+menuAlign+">"+menu+"</td><td align="+pmAlign+"><font size=1>Total: "+userPM+" | New: "+usernPM+" | <a href=index.cgi?action=pm title='Check your PM inbox.'>PMs<\/a> </td></tr></table>";
TD[2].style.display = "none";
} else {
if(TD[2].innerHTML.match("Welcome ")){
TD[5].align = menuAlign;
TD[5].innerHTML = "<table cellspacing=0 width=100%><tr><td align="+menuAlign+">"+menu+"</td><td align="+pmAlign+"><font size=1>Hello, Guest. Please <a href=index.cgi?action=login>Login</a> or <a href=index.cgi?action=register>Register</a>.</td></tr></table>"
TD[2].style.display = "none";
}}}
//-->
</script>
<script>
<!--
/* Border-Around-Forum using Gradients - by Smangii */
var hg = "titlebg"; // Class of the Header Gradient
var mc = "#E3E7A6"; // Color of the middle portion
var bg = "titlebg"; // Class of the Footer Gradient
document.write('<table width="92%" cellspacing="2" cellpadding="4" class="bordercolor" align="center"><tr><td width="100%" class="'+hg+'"></td></tr><tr><td width="100%" bgcolor="'+mc+'">')
//-->
</script>
<script type="text/javascript">
<!--
/* Ez Modified Text Menu (no brackets & bolded) by Smangii
[url]http://smangii.proboards78.com[/url]
This header must remain Intact
Open-Source */
var menu = document.getElementsByTagName('td');
for(e=0; e<menu.length; e++)
{
if(menu[e].className.match(/menubg/i))
{
menu[e].innerHTML = menu[e].innerHTML.bold(/menubg/,'');
menu[e].innerHTML = menu[e].innerHTML.replace(/(\[|])/gi,'');
}}
//-->
</script>
<!--
===================================
HTML Left Side Tables for ProBoards - Smangii Style
GLOBAL HEADERS
===================================
//-->
<!-- Start Main Table //-->
<table align="center" width="auto" cellpadding="5">
<tr>
<td align="center" width="200px" vAlign="top">
<!-- Start Side Tables //-->
<table width="100%" cellpadding="0">
<tr>
<td>
<!-- CUSTOM SIDE BOX #1 //-->
<table align="center" width="100%" class="bordercolor" cellpadding="4" cellspacing="1">
<tr>
<td align="center" class="titlebg">BOX #1 TITLE</td>
</tr>
<tr>
<td class="windowbg" align="center">
BOX #1 INFORMATION
</td>
</tr>
</table>
<br />
<!-- CUSTOM SIDE BOX #2 //-->
<table align="center" width="100%" class="bordercolor" cellpadding="4" cellspacing="1">
<tr>
<td align="center" class="titlebg">BOX #2 TITLE</td>
</tr>
<tr>
<td class="windowbg" align="center">
BOX #2 INFORMATION
</td>
</tr>
</table>
<br />
<!-- CUSTOM SIDE BOX #3 //-->
<table align="center" width="100%" class="bordercolor" cellpadding="4" cellspacing="1">
<tr>
<td align="center" class="titlebg">BOX #3 TITLE</td>
</tr>
<tr>
<td class="windowbg" align="center">
skin created by <a href="http://z10.invisionfree.com/CAUTIONTOTHEWIND/index.php?showuser=3023">CHLOEOATS !</a> of CAUTION 2.0
</td>
</tr>
</table>
<br />
<!-- Close Side Tables //-->
</td>
</tr>
</table>
</td>
<td vAlign="top">
<div id="wel"></div>
<script type="text/javascript">
<!--
var welcomeTable = document.getElementsByTagName("table").item(0);
document.getElementById("wel").appendChild(welcomeTable);
//-->
</script>
<!-- END SIDE TABLES GLOBAL HEADERS HTML //-->
GLOBAL FOOTER
<!-- SIDE TABLES GLOBAL FOOTERS //-->
<script type="text/javascript">
<!--
table = document.getElementsByTagName('table');
for(i = 0; i < table.length; i ++) {
with(table[i]) {
if(width == '92%') {
width = '700';
}}}
//-->
</script>
</td></tr></table>
<!-- END SIDE TABLES GLOBAL FOOTERS //-->
<script type='text/javascript'>
/* Remove on/off icons from sub-boards
created by CrAzY_J
Open Source*/
var gCell = document.body.getElementsByTagName('td');
var pattern = /^Sub-Boards$/;
if( this.location.href.match(/board=\w+(&\w+=\d)?$/) )
{
for( var c = 0 ; c < gCell.length ; c ++ )
{
if( gCell[c].className == 'titlebg' && gCell[c].colSpan == '2' && pattern.test( gCell[c].getElementsByTagName('b')[0].firstChild.data ) )
gCell[c].colSpan = 1;
if( gCell[c].width == '8%' && gCell[c].className == 'windowbg' )
gCell[c].style.display = 'none';
}
}
</script>
<script type="text/javascript">
<!--
/*
Color Bar (V2) by Todge
Copyright © 2005
Please keep this header intact
*/
var newTR=document.createElement('TR');
var newTD=document.createElement('TD');
newTD.width='30%';
newTD.className='windowbg2';
newTD.innerHTML='<font size=2>Add Color:</font>';
newTR.appendChild(newTD);
newTD=document.createElement('TD')
newTD.width='70%';
newTD.className='windowbg2';
newTD.setAttribute('id','colorCell');
newTR.appendChild(newTD);
var TD = document.getElementsByTagName('TD');
for(nr=0; nr<TD.length; nr++)
{
var newRow=TD[nr].parentNode;
if(TD[nr].width == '30%' && TD[nr].className == 'windowbg2' && TD[nr].innerHTML.match('Message:'))
{
newRow.parentNode.insertBefore(newTR,newRow);
}
}
function addHex(bgCol)
{
if(bgCol.match('#'))
{
hex=bgCol.split('#')[1];
}
else
{
hexCode=new Array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
bgCol=bgCol.split('(')[1].split(')')[0].split(',')
var hex=hexCode[parseInt(bgCol[0]/16)];
hex+=hexCode[bgCol[0]-(parseInt(bgCol[0]/16)*16)];
hex+=hexCode[parseInt(bgCol[1]/16)];
hex+=hexCode[bgCol[1]-(parseInt(bgCol[1]/16)*16)];
hex+=hexCode[parseInt(bgCol[2]/16)];
hex+=hexCode[bgCol[2]-(parseInt(bgCol[2]/16)*16)];
}
return hex;
}
function createColorBar(red,green,blue)
{
var newMix=document.createElement('TD');
newMix.width="2";
newMix.height="20";
newMix.style.backgroundColor='rgb('+red+','+green+','+blue+')';
newMix.onmouseover=function(){document.getElementById('colornow').style.backgroundColor=this.style.backgroundColor;}
newMix.onclick=function(){document.getElementById('colorchosen').style.backgroundColor=this.style.backgroundColor;}
colorMix.appendChild(newMix)
}
var hexColor;
var Colors=document.getElementsByTagName('select');
for(c=0; c<Colors.length; c++)
{
if(Colors[c].name=='color')
{
var colorBar='<table cellpadding="0" cellspacing="0"><tr><td><table><tr><td id="colornow" width="20" height="20"></td></tr></table></td>';
colorBar+='<td><table><tr><td id="colorchosen" style="background-color: rgb(255,255,255); width="20" height="20"></td></tr></table></td>';
colorBar+='<td><table cellpadding="0" cellspacing="0" border="0"><tr id="colormix">';
colorBar+='</tr></table></td></tr></table>';
document.getElementById('colorCell').innerHTML = colorBar;
Colors[c].parentNode.removeChild(Colors[c]);
document.getElementById('colorchosen').onmouseover=function(){hexColor=addHex(this.style.backgroundColor);}
document.getElementById('colorchosen').innerHTML='<a href=javascript:add("[color="+hexColor+"]","[/color]")><img src="http://proboards8.com/boardimages/avatars/blank.gif" width="18" height="18" border="0" alt="[color]"></a>';
var colorMix=document.getElementById('colormix');
var mix=256;
while(mix>-1)
{
createColorBar(mix,mix,mix);
mix=mix-16;
}
while(mix<257)
{
createColorBar(mix,0,0)
mix=mix+16;
}
mix=0;
while(mix<257)
{
createColorBar(255,mix,0);
mix=mix+16;
}
while(mix>-1)
{
createColorBar(mix,255,0);
mix=mix-16;
}
while(mix<257)
{
createColorBar(0,255,mix);
mix=mix+16;
}
while(mix>-1)
{
createColorBar(0,mix,255);
mix=mix-16;
}
while(mix<257)
{
createColorBar(mix,0,255);
mix=mix+16;
}
var mix=0;
while(mix<257)
{
createColorBar(255,mix,255);
mix=mix+16;
}
}
}
// -->
</script>
<style type="text/css">
.button{ margin-left: 2px; margin-right: 2px; }
</style>
<script type="text/javascript">
//Convert Buttons to Text by hpmad
//Do not redistribute without permission from creator
var img = document.getElementsByTagName('img');
for(i=0;i<img.length;i++){
if((img[i].src.match(/s(\d+).images.proboards.com\/buttons/i) || img[i].src.match(/search2.gif|newpoll/i)) && !img[i].src.match(/_sm.gif/)){
img[i].alt = img[i].alt.replace(/(\[|\])/g,'');
var font = document.createElement('font'); font.style.fontSize = '7pt';
font.style.fontWeight = 'bold'; font.className = 'button';
font.appendChild(document.createTextNode(img[i].alt));
img[i].parentNode.replaceChild(font,img[i]);
i--;
}
}
</script>
<script>
/*Reflected Avatars
Hosted by Wrighty
Do Not Repost, Rip or Claim*/
document.write("<script src=http://iycatacombs.com/codes/wrightys/ref.js>"+"</"+"script>");
var av=document.getElementsByTagName('img');
for(i = 0 ; i < av.length ; i++){
if(av[i].alt == '[avatar]'){
av[i].className="reflect";
}
}
</script>
<script type="text/javascript">
<!--
/* Align mini-profile */
var ialign="center";
var td=document.getElementsByTagName('td')
for (m=0;m<td.length;m++) {
if (td[m].className.match(/windowbg/i) && td[m].width=="20%"){
td[m].align=ialign;
}
}
//-->
</script>
<script>
//remove info center icons
var InfoIcon=document.getElementsByTagName("TD")
for(t=0;t<InfoIcon.length;t++){
if(InfoIcon[t].className.match("windowbg") && InfoIcon[t].width=="20" && InfoIcon[t].vAlign=="middle"){
InfoIcon[t].style.display="none"
}}
</script>
<script type="text/javascript" defer="defer">
// Font Fix / Font Scaling - CCWorld
var fonts = document.getElementsByTagName("font");
for (i=0; i<fonts.length; i++){
if (fonts.item(i).size.match(/\d/)){
fonts.item(i).className = "fontFix" + fonts.item(i).size.replace("+", "Plus").replace("-", "Minus");}}
</script>
<style type="text/css">
.fontFix1, .fontFixMinus2, .nav, .nav:link, .nav:visited, .nav:hover { font-size: 10px !important; }
.fontFix2, .fontFixMinus1, a, td { font-size: 10px !important; }
.fontFix3 { font-size: 16px; }
.fontFix4, .fontFixPlus1 { font-size: 22px; }
.fontFix5 { font-size: 24px; }
.fontFix6 { font-size: 36px; }
.fontFix7 { font-size: 52px; }
</style>
<script type="text/javascript">
//Convert Buttons to Text by hpmad
//Do not redistribute without permission from creator
var img = document.getElementsByTagName('img');
for(i=0;i<img.length;i++){
if(img[i].src.match(/s(\d+).images.proboards.com\/buttons/i) || img[i].src.match(/search2.gif|newpoll/i)){
img[i].alt = img[i].alt.replace(/(\[|\])/g,'');
var font = document.createElement('font'); font.style.fontSize = '7pt';
font.style.fontWeight = 'bold'; font.className = 'button';
font.appendChild(document.createTextNode(img[i].alt));
img[i].parentNode.replaceChild(font,img[i]);
i--;
}
}
</script>
<script type="text/javascript">
<!--
function spellChecker( textObject ) {
this.popUpUrl = '/speller/spellchecker.html';
this.popUpName = 'spellchecker';
this.popUpProps = "menu=no,width=440,height=350,top=70,left=120,resizable=yes,status=yes";
this.spellCheckScript = '/speller/server-scripts/spellchecker.pl';
this.replWordFlag = "R";
this.ignrWordFlag = "I";
this.replAllFlag = "RA";
this.ignrAllFlag = "IA";
this.fromReplAll = "~RA";
this.fromIgnrAll = "~IA";
this.wordFlags = new Array();
this.currentTextIndex = 0;
this.currentWordIndex = 0;
this.spellCheckerWin = null;
this.controlWin = null;
this.wordWin = null;
this.textArea = textObject;
this.textInputs = arguments;
this._spellcheck = _spellcheck;
this._getSuggestions = _getSuggestions;
this._setAsIgnored = _setAsIgnored;
this._getTotalReplaced = _getTotalReplaced;
this._setWordText = _setWordText;
this._getFormInputs = _getFormInputs;
this.openChecker = openChecker; this.startCheck = startCheck;
this.checkTextBoxes = checkTextBoxes;
this.checkTextAreas = checkTextAreas;
this.spellCheckAll = spellCheckAll;
this.ignoreWord = ignoreWord;
this.ignoreAll = ignoreAll;
this.replaceWord = replaceWord;
this.replaceAll = replaceAll;
this.terminateSpell = terminateSpell;
this.undo = undo;
window.speller = this;
}
function checkTextBoxes() {
this.textInputs = this._getFormInputs( "^text$" );
this.openChecker();
}
function checkTextAreas() {
this.textInputs = this._getFormInputs( "^textarea$" );
this.openChecker();
}
function spellCheckAll() {
this.textInputs = this._getFormInputs( "^text(area)?$" );
this.openChecker();
}
function openChecker() {
this.spellCheckerWin = window.open( this.popUpUrl, this.popUpName, this.popUpProps );
if( !this.spellCheckerWin.opener ) {
this.spellCheckerWin.opener = window;
}
}
function startCheck( wordWindowObj, controlWindowObj ) {
this.wordWin = wordWindowObj;
this.controlWin = controlWindowObj;
this.wordWin.resetForm();
this.controlWin.resetForm();
this.currentTextIndex = 0;
this.currentWordIndex = 0;
this.wordFlags = new Array( this.wordWin.textInputs.length );
for( var i=0; i<this.wordFlags.length; i++ ) {
this.wordFlags[i] = [];
}
this._spellcheck();
return true;
}
function ignoreWord() {
var wi = this.currentWordIndex;
var ti = this.currentTextIndex;
if( !this.wordWin ) {
alert( 'Error: Word frame not available.' );
return false;
}
if( !this.wordWin.getTextVal( ti, wi )) {
alert( 'Error: "Not in dictionary" text is missing.' );
return false;
}
if( this._setAsIgnored( ti, wi, this.ignrWordFlag )) {
this.currentWordIndex++;
this._spellcheck();
}
}
function ignoreAll() {
var wi = this.currentWordIndex;
var ti = this.currentTextIndex; if( !this.wordWin ) {
alert( 'Error: Word frame not available.' );
return false;
}
var s_word_to_repl = this.wordWin.getTextVal( ti, wi );
if( !s_word_to_repl ) {
alert( 'Error: "Not in dictionary" text is missing' );
return false;
}
this._setAsIgnored( ti, wi, this.ignrAllFlag );
for( var i = ti; i < this.wordWin.textInputs.length; i++ ) {
for( var j = 0; j < this.wordWin.totalWords( i ); j++ ) {
if(( i == ti && j > wi ) || i > ti ) {
if(( this.wordWin.getTextVal( i, j ) == s_word_to_repl ) && ( !this.wordFlags[i][j] )) {
this._setAsIgnored( i, j, this.fromIgnrAll ); }
} } }
this.currentWordIndex++;
this._spellcheck();}function replaceWord() {
var wi = this.currentWordIndex; var ti = this.currentTextIndex; if( !this.wordWin ) {
alert( 'Error: Word frame not available.' );
return false; }
if( !this.wordWin.getTextVal( ti, wi )) {
alert( 'Error: "Not in dictionary" text is missing' );
return false; } if( !this.controlWin.replacementText ) {
return; } var txt = this.controlWin.replacementText;
if( txt.value ) { var newspell = new String( txt.value );
if( this._setWordText( ti, wi, newspell, this.replWordFlag )) {
this.currentWordIndex++; this._spellcheck();
}
}}function replaceAll() {
var ti = this.currentTextIndex;
var wi = this.currentWordIndex; if( !this.wordWin ) {
alert( 'Error: Word frame not available.' ); return false; }
var s_word_to_repl = this.wordWin.getTextVal( ti, wi ); if( !s_word_to_repl ) {
alert( 'Error: "Not in dictionary" text is missing' );
return false;
}
var txt = this.controlWin.replacementText;
if( !txt.value ) return;
var newspell = new String( txt.value ); this._setWordText( ti, wi, newspell, this.replAllFlag );
for( var i = ti; i < this.wordWin.textInputs.length; i++ ) {
for( var j = 0; j < this.wordWin.totalWords( i ); j++ ) {
if(( i == ti && j > wi ) || i > ti ) {
if(( this.wordWin.getTextVal( i, j ) == s_word_to_repl ) && ( !this.wordFlags[i][j] )) {
this._setWordText( i, j, newspell, this.fromReplAll );
}
}
}
}
this.currentWordIndex++;
this._spellcheck();}function terminateSpell() {
var msg = "Spell check complete:\n\n";
var numrepl = this._getTotalReplaced(); if( numrepl == 0 ) {
if( !this.wordWin ) {
msg = "";
} else {
if( this.wordWin.totalMisspellings() ) {
msg += "No words changed.";
} else {
msg += "No misspellings found.";
}
} } else if( numrepl == 1 ) {
msg += "One word changed.";
} else {
msg += numrepl + " words changed.";
}
if( msg ) {
msg += "\n"; alert( msg );
}
if( numrepl > 0 ) {
for( var i = 0; i < this.textInputs.length; i++ ) {
if( this.wordWin ) {
if( this.wordWin.textInputs[i] ) {
this.textInputs[i].value = this.wordWin.textInputs[i];
}
}
}
}
this.spellCheckerWin.close();
return true;
}function undo() {
var ti = this.currentTextIndex;
var wi = this.currentWordIndex;
if( this.wordWin.totalPreviousWords( ti, wi ) > 0 ) {
this.wordWin.removeFocus( ti, wi ); do {
if( this.currentWordIndex == 0 && this.currentTextIndex > 0 ) {
this.currentTextIndex--;
this.currentWordIndex = this.wordWin.totalWords( this.currentTextIndex )-1;
if( this.currentWordIndex < 0 ) this.currentWordIndex = 0;
} else { if( this.currentWordIndex > 0 ) {
this.currentWordIndex--;
}
}
} while (
this.wordWin.totalWords( this.currentTextIndex ) == 0 || this.wordFlags[this.currentTextIndex][this.currentWordIndex] == this.fromIgnrAll || this.wordFlags[this.currentTextIndex][this.currentWordIndex] == this.fromReplAll );
var text_idx = this.currentTextIndex;
var idx = this.currentWordIndex;
var preReplSpell = this.wordWin.originalSpellings[text_idx][idx];
if( this.wordWin.totalPreviousWords( text_idx, idx ) == 0 ) {
this.controlWin.disableUndo(); }
switch( this.wordFlags[text_idx][idx] ) {
case this.replAllFlag :
for( var i = text_idx; i < this.wordWin.textInputs.length; i++ ) {
for( var j = 0; j < this.wordWin.totalWords( i ); j++ ) {
if(( i == text_idx && j >= idx ) || i > text_idx ) {
var origSpell = this.wordWin.originalSpellings[i][j];
if( origSpell == preReplSpell ) {
this._setWordText ( i, j, origSpell, undefined );
}
}
}
}
break;
case this.ignrAllFlag :
for( var i = text_idx; i < this.wordWin.textInputs.length; i++ ) {
for( var j = 0; j < this.wordWin.totalWords( i ); j++ ) {
if(( i == text_idx && j >= idx ) || i > text_idx ) {
var origSpell = this.wordWin.originalSpellings[i][j];
if( origSpell == preReplSpell ) {
this.wordFlags[i][j] = undefined;
}
}
}
}
break;
case this.replWordFlag :
this._setWordText ( text_idx, idx, preReplSpell, undefined );
break; }
this.wordFlags[text_idx][idx] = undefined;
this._spellcheck(); }}function _spellcheck() {
var ww = this.wordWin;
if( this.currentWordIndex == ww.totalWords( this.currentTextIndex) ) {
this.currentTextIndex++;
this.currentWordIndex = 0;
if( this.currentTextIndex < this.wordWin.textInputs.length ) {
this._spellcheck();
return;
} else {
this.terminateSpell();
return;
}
}
if( this.currentWordIndex > 0 ) {
this.controlWin.enableUndo();
}
if( this.wordFlags[this.currentTextIndex][this.currentWordIndex] ) {
this.currentWordIndex++;
this._spellcheck();
} else {
var evalText = ww.getTextVal( this.currentTextIndex, this.currentWordIndex );
if( evalText ) {
this.controlWin.evaluatedText.value = evalText;
ww.setFocus( this.currentTextIndex, this.currentWordIndex );
this._getSuggestions( this.currentTextIndex, this.currentWordIndex );
}
}
}function _getSuggestions( text_num, word_num ) {
this.controlWin.clearSuggestions();
var a_suggests = this.wordWin.suggestions[text_num][word_num];
if( a_suggests ) {
for( var ii = 0; ii < a_suggests.length; ii++ ) {
this.controlWin.addSuggestion( a_suggests[ii] );
}
}
this.controlWin.selectDefaultSuggestion();
}
function _setAsIgnored( text_num, word_num, flag ) {
this.wordWin.removeFocus( text_num, word_num );
this.wordFlags[text_num][word_num] = flag;
return true;
}
function _getTotalReplaced() {
var i_replaced = 0;
for( var i = 0; i < this.wordFlags.length; i++ ) {
for( var j = 0; j < this.wordFlags[i].length; j++ ) {
if(( this.wordFlags[i][j] == this.replWordFlag ) || ( this.wordFlags[i][j] == this.replAllFlag ) || ( this.wordFlags[i][j] == this.fromReplAll )) {
i_replaced++; } } }
return i_replaced;
}
function _setWordText( text_num, word_num, newText, flag ) {
this.wordWin.setText( text_num, word_num, newText );
this.wordFlags[text_num][word_num] = flag;
return true;
}
function _getFormInputs( inputPattern ) {
var inputs = new Array();
for( var i = 0; i < document.forms.length; i++ ) {
for( var j = 0; j < document.forms[i].elements.length; j++ ) {
if( document.forms[i].elements[j].type.match( inputPattern )) {
inputs[inputs.length] = document.forms[i].elements[j];
}
}
}
return inputs;
}
function openSpellCheck(){
if(document.postForm)
var speller = new spellChecker(document.postForm.subject,document.postForm.message);
else
var speller = new spellChecker(document.getElementsByName('message')[0]);
speller.openChecker();
}
// -->
</script>
<script type="text/javascript">
<!--
/* spell check with quick reply */
var mes = document.getElementsByName('message');
if(mes[0] && !document.postForm) {
var qrForm = mes[0].parentNode;
var pre = document.createElement('font');
pre.innerHTML = '<input type="button" value="Spell Check" onclick="openSpellCheck();">';
qrForm.insertBefore(pre, qrForm.lastChild.previousSibling)
}
//-->
</script>
<script type="text/javascript">
<!--
var i = document.getElementsByTagName('i');
for(t=0; t<i.length; t++)
if(i[t].innerHTML == 'Last Edit:')
i[t].parentNode.style.display = 'none';
//-->
</script>
<script type="text/javascript">
<!--
// Remove attachment from posting page..
if(document.postForm)
{
document.postForm.attachment.parentNode.parentNode.style.display = 'none';
}
// -->
</script>
<script type="text/javascript">
/* Code Tag Modification by hpmad
Do not repost or claim as your own without permission
This header must remain intact */
var table = document.getElementsByTagName('table');
if(location.href.match(/action=(display|recent|pmview|search2)/i)){
for(i=0;i<table.length;i++){
if(table[i].className=='code'){
var codeArea = table[i].firstChild.firstChild.firstChild.firstChild.innerHTML;
codeArea = codeArea.replace(/&nb+sp;/gi,' ');
codeArea = codeArea.replace(/&a+mp;/gi,'&');
codeArea = codeArea.replace(/\t/gi,'&nb+sp;&nb+sp; ')
codeArea = codeArea.replace(/<br\s?\/?>/gi,'\n');
table[i].parentNode.parentNode.parentNode.parentNode.parentNode.innerHTML = '<font size="1"><b>Code:</b></font><br><center><form><textarea class="codeArea" style="font-size: 8pt;" readonly name="codeArea" cols="40" rows="7">'+codeArea+'</textarea><br><input type="button" value="Highlight Code" onclick="javascript:this.form.codeArea.focus();this.form.codeArea.select();"></form></center>';
i--;
}
}
}
</script>
MAIN FOOTER
<script>
//Remove "Topics and Posts" column from main page
//wooper
var TD = document.getElementsByTagName("TD")
for(i=0;i<TD.length;i++){
if(TD[i].width == "1%" && TD[i+1].width == "1%")
{
TD[i].style.display ="none";
TD[i+1].style.display ="none";
}
}
</script>
<script type="text/javascript">
<!--
var TD = document.getElementsByTagName('td');
for(t=0; t<TD.length; t++)
{
if(TD[t].colSpan == '2' && TD[t].innerHTML.match('Forum Name'))
{
TD[t].colSpan = '1';
}
if(TD[t].width == '8%' && TD[t].className == 'windowbg')
{
TD[t].style.display = "none";
}
}
// -->
</script>
<script type="text/javascript">
<!--
/* remove Forum Name | Topics | Posts...
and add thread & post info by california */
var td=document.getElementsByTagName("td");
if(location.href.match(/\/?((index\.cgi)?\??(action=(ma.+ad|logout|home))?(#.+)?)?$/)){
for(i=0;i<td.length;i++){
if(td[i].width=="1%" && td[i].innerHTML.match(/\d/)){
if(td[i+1].width.match(/^(1|7)%$/)){
td[i].innerHTML+="<br />threads";
td[i].width="8%";
}else{
td[i].innerHTML+="<br />posts";
td[i].width="7%";
}
}
if(td[i].width=="8%" && !td[i].innerHTML.match(/thread/)){
td[i].width="4%";
}
if(td[i].className=="titlebg" && td[i].innerHTML.match(/Forum Name/i)){
td[i].parentNode.style.display="none";
}
}
}
//-->
</script>
<script>
//remove info center icons
var InfoIcon=document.getElementsByTagName("TD")
for(t=0;t<InfoIcon.length;t++){
if(InfoIcon[t].className.match("windowbg") && InfoIcon[t].width=="20" &&
InfoIcon[t].vAlign=="middle"){
InfoIcon[t].style.display="none"
}}
</script>
<!--Sub Boards on Main Page-->
<script type="text/javascript">
<!--
/*
Sub Boards listing in board cells
Created by ProBoards.com
http://support.proboards.com - for support.
*/
if(location.href.match(/\/(index\.cgi(\?(action=home)?|#\w+)?)?$/i)) {
var exclude = ["archive"];
var boardCell = document.getElementsByTagName('td');
var boards = new Array ();
var subboards = new Array ();
var forumJumpOpts = document.getElementById('forumjump').getElementsByTagName('option');
var boardNumber = 0;
var c = 0;
for (a=0;a<forumJumpOpts.length;a++) {
if (forumJumpOpts[a].innerHTML.match(/^- (.*)$/) && (forumJumpOpts[a+1] && forumJumpOpts[a+1].innerHTML.match(/--- (.*)$/))) {
forumJumpOpts[a].value.match(/board\=(.*)$/);
if (exclude.join("-").match(new RegExp("(^|-)"+RegExp.$1+"(-|$)","i")))
continue;
boards.push(RegExp.$1);
subboards[boardNumber] = new Array ();
while (forumJumpOpts[a+1] && forumJumpOpts[a+1].innerHTML.match(/--- (.*)$/)) {
subboards[boardNumber].push(RegExp.$1+'-|-'+forumJumpOpts[a+1].value);
a++;
}
boardNumber++;
}
}
for (b=6;b<boardCell.length;b++) {
var board = 'board='+boards[c]+'$';
if (boardCell[b].width == "66%" && boardCell[b].getElementsByTagName('a')[0].href.match(board) && subboards[c]) {
for (d=0;d<subboards[c].length;d++)
boardCell[b].innerHTML += ((d == 0) ? '<br />[ <font size="1">Sub Boards:</font>' : ',') + ' <a href="'+subboards[c][d].split("-|-")[1]+'" class="nav">'+subboards[c][d].split("-|-")[0]+'</a>' + ((d == subboards[c].length-1) ? ' ]' : '');
c++
}
}
}
// -->
</script>
<!--End Subboards on Main Page-->
<script type="text/javascript">
//Remove info center titlebar
if( this.location.href.match(/\.com(\/(index\.cgi(\?|#\w+)?)?)?$/))
{
var T = document.body.getElementsByTagName("td");
for(t=0;t<T.length;t++){
if(T[t].className == "titlebg" && T[t].innerHTML.match(/Info\sCenter/))
T[t].parentNode.style.display = "none";
}}
</script>
<script type="text/javascript">
/*
Second Member Group In Mini Profile V3
Coded by The Dog Monster
Do Not Edit Or Repost Without Permission
Main Footer Portion
*/
script('gAdminAll')
if(location.href.match(/group=(.+?)(\b|\&)/)){
r=RegExp.$1
if(location.href.match(/number=(\d+)/)){
s=RegExp.$1
}
switch(r){
case "gpref": script('gAdminPref'); break;
case "modify1": script('gAdminGM'); break;
case "modify2": script('gAdminGM2'); break;
case "delete1": script('gAdminGD'); break;
case "delete2": script('gAdminGD2'); break;
case "create": script('gAdminGC'); break;
}
}
if(location.href.match(/star=(.+?)(\b|\&)/)){
r=RegExp.$1
if(location.href.match(/number=(\d+)/)){
s=RegExp.$1
}
switch(r){
case "modify1": script('gAdminSM'); break;
case "modify2": script('gAdminSM2'); break;
case "delete1": script('gAdminSD'); break;
case "delete2": script('gAdminSD2'); break;
case "add": script('gAdminSC'); break;
}
}
if(document.referrer.match(/(group|star)=(.+?)(\b|&)/)){
rec={$1: RegExp.$1, $2: RegExp.$2, $3: document.referrer}
script('gAdminRF')
}
</script>
<script type="text/javascript">
<!--
if(document.addEventListener && document.modifyForm && document.modifyForm.password){
var iPassField=document.modifyForm.password;
window.addEventListener('load', function(){
iPassField.value='';
}, false);
}
//-->
</script>
<script type="text/javascript">
<!--
// Category or title text to image
var tCat = document.getElementsByTagName("td");
function textToImage(text,image){
for(t = 0; t < tCat.length; t ++){
var re = new RegExp("<b>" + text + "</b>","i");
if(tCat.item(t).className.match(/^(cat|title)bg/i) && tCat.item(t).innerHTML.match(re)){
tCat.item(t).innerHTML = tCat.item(t).innerHTML.replace(re, "<img src='" + image + "'>");
}
}
}
textToImage("TEXT","IMG URL");
textToImage("TEXT","IMG URL");
//-->
</script>