This is my old header
<script type="text/javascript">
<!--
/* move hey x... by elindir */
var pos="0"; // 1 for above buttons, 0 for below
var pclass='titlebg'; //Class of the Box
//Do not edit below
var table = document.getElementsByTagName("table");
var iPM = table[0].insertRow(2-pos).insertCell(0);
var td = document.getElementsByTagName('td');
var PM= td[2].innerHTML;
td[2].style.display="none";
iPM.innerHTML='<table class="'+pclass+'" width="100%" cellspacing="1"><tr><td width="100%"><center>'+PM+'<\/center><\/td><\/tr><\/table>';
// -->
</script>
<style type="text/css">
<!--
.catbg {background-image: url(img88.imageshack.us/img88/3934/image18ub0zj.jpg
); background-repeat: repeat;}
-->
</style>
<style type="text/css">
<!--
td {border: 6 outset; border-color: #0033cc;}
-->
</style>
<style type="text/css">
<!--
BODY
.windowbg {border-style: outset; border-color: #0033cc #0033cc #0033cc #0033cc; border-top-width: 6px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px;}
.windowbg2 {border-style: outset; border-color: #0033cc #0033cc #0033cc #0033cc; border-top-width: 6px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px;}
.titlebg {border-style: outset; border-color: #0033cc #0033cc #0033cc #0033cc; border-top-width: 6px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px;}
.catbg {border-style: outset; border-color:#0033cc #0033cc #0033cc #0033cc; border-top-width: 6px; border-right-width: 6px; border-bottom-width: 2px; border-left-width: 6px;}
-->
</style>
and my old footer
</FONT></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
_____________________
The above are for GLOBAL HEADERS and FOOTERS...
The rest is for the MAIN headers and footers..
<table width="745px" cellpadding="4" cellspacing="1" align="center" class="bordercolor">
<tr>
<td class="titlebg" width="100%" align="center">
<strong>Welcome to the OWC!</strong>
<p>
<img src=""></a></img>
</td>
</tr>
<tr>
<td width="100%" class="windowbg2" vAlign="top" align="center">
<center></center>
<p>
</td>
</tr>
</table>
and main footer here
<script type="text/Javascript">
// Advance Main Page Layout v3.0 by Chris
// Concept Art by Sapphire
// Do not redistribute without permission of the creator
var modText = "Moderated By: "; // Moderator text
// No need to edit
var aTD = document.getElementsByTagName("TD");
if(location.href.match(/action=(change|home)/i) || !location.href.match(/action=/i)){
for(a=0;a<aTD.length;a++){
if(aTD
.className == "titlebg" && aTD.innerHTML.match(/Forum Name/i)){
aTD.parentNode.parentNode.deleteRow(aTD.parentNode.rowIndex);
a--;
} else if(aTD.width == "66%"){
var onoff = aTD[a-1].innerHTML;
var topics = aTD[a+1].firstChild.innerHTML;
var posts = aTD[a+2].firstChild.innerHTML;
var bdat = aTD.firstChild.innerHTML;
var bdes = aTD.lastChild.innerHTML;
if(aTD.lastChild.lastChild.nodeName.toLowerCase() == "i" && bdes.match(/<i>Moderators?.+?)<\/i>/i)){
bdat += "<font size='1'> - [ "+modText+" "+RegExp.$1+" ]</font>";
bdes = bdes.replace(/<i>Moderator.+?<\/i>/i,"");
}
var lp = aTD[a+3].innerHTML.split(/<br\s?\/?>/i);
if(!lp || lp.length < 2)
lp = [];
aTD[a+3].align = "center";
aTD[a+3].width = "25%";
if(lp.length > 0)
aTD[a+3].innerHTML = "<font size='1'>"+lp[2].replace(/in/,"")+"<br /><font size='1'>On: "+lp[0].replace(/on /,"")+"<br /><font size='1'>By: "+lp[1].replace(/by/,"");
var data = "<table width='100%' cellpadding='2' cellspacing='2'><tr><td valign='middle' align='center' width='5%'>"+onoff+"</td>";
data += "<td align='left' valign='middle' width='35%'>"+bdat+"<br /><font size='1'>[ Topics: "+topics+" | Posts: "+posts+" ]</font></td>";
data += "<td align='right' valign='top' width='60%'>"+bdes+"</td></tr></table>";
aTD.innerHTML = data;
aTD.width = "75%";
aTD.parentNode.deleteCell(3);
aTD.parentNode.deleteCell(2);
aTD.parentNode.deleteCell(0);
} else if(aTD.colSpan == 5 && aTD.getElementsByTagName("a"))
aTD.colSpan = 2;
}
}
</script>
<script type="text/javascript">
<!--
/* PM Summary System v0.1
Copyright Ross
support.proboards.com Do not redistribute without permission */
var summaryArray = [];
function extractQuote() {
var message = document.postForm.message.value.replace(/(\n|\r)/gi, '
');
if(message.match(/(^\[quote\](.+?)\[\/quote\]$)/im)) {
summaryArray.push(new Array(document.postForm.to.value, RegExp.$2.replace(/\[(quote|summ=.+?)\].+?\[\/(quote|summ)\]/gi, '').replace(/\[br\]\[br\]/gi,'')));
}
while(message.match(/(\[summ=(.+?)\](.+?)\[\/summ\])/i)) {
summaryArray.push(new Array(RegExp.$2, RegExp.$3));
message = message.replace(RegExp.$1,'');
}
if(location.href.match(/noquote/i)) {
document.postForm.message.value = '';
} else {
document.postForm.message.value = message.replace(/\[br\]/gi, '\n');
}
}
function saveSummary() {
for(s=0; s<summaryArray.length; s++) {
document.postForm.message.value += '[summ='+summaryArray
[0]+']'+summaryArray[1]+'[/summ]';
}
}
function showMessage() {
var td = document.getElementsByTagName('td');
for(i=0; i<td.length; i++) {
if(td.item(i).colSpan == '3' && td.item(i).vAlign == 'top') {
while(td.item(i).innerHTML.match(/(\[summ=(.+?)\](.+?)\[\/summ\])/i)) {
summaryArray.push(new Array(RegExp.$2, RegExp.$3));
td.item(i).innerHTML = td.item(i).innerHTML.replace(RegExp.$1, '');
}
var a = td.item(i-1).getElementsByTagName('a');
a.item(0).href = a.item(1).href+'&noquote';
break;
}
}
}
function previewMessage() {
var td = document.getElementsByTagName('td');
for(i=0; i<td.length; i++) {
if(td.item(i).colSpan == '3' && td.item(i).vAlign == 'top') {
while(td.item(i).innerHTML.match(/(\[summ=(.+?)\](.+?)\[\/summ\])/i)) {
td.item(i).innerHTML = td.item(i).innerHTML.replace(RegExp.$1, '');
}
}
}
}
function parse(mes) {
var ubbc = [
[/\[hr\]/gi, '<hr>'],
[/\[b\](.+?)\[\/b\]/gi, '<b>$1</b>'],
[/\[u\](.+?)\[\/u\]/gi, '<u>$1</u>'],
[/\[i\](.+?)\[\/i\]/gi, '<i>$1</i>'],
[/\[s\](.+?)\[\/s\]/gi, '<s>$1</s>'],
[/\[sub\](.+?)\[\/sub\]/gi, '<sub>$1</sub>'],
[/\[sup\](.+?)\[\/sup\]/gi, '<sup>$1</sup>'],
[/\[left\](.+?)\[\/left\]/gi, '<p align="left">$1</p>'],
[/\[right\](.+?)\[\/right\]/gi, '<p align="right">$1</p>'],
[/\[center\](.+?)\[\/center\]/gi, '<center>$1</center>'],
[/\(.+?)\[\/color\]/gi, '<font color="$1">$2</font>'],
[/\(.+?)\[\/size\]/gi, '<font size="$1">$2</font>'],
[/\(.+?)\[\/font\]/gi, '<font family="$1">$2</font>'],
[/\[move\](.+?)\[\/move\]/gi, '<marquee>$1</marquee>'],
[/\[blockquote\](.+?)\[\/blockquote\]/gi, '<blockquote>$1</blockquote>'],
[/\(.+?)\[\/email\]/gi, '<a href="mailto:$1">$2</a>'],