tabCell=document.getElementsByTagName('td')
for(l=0;l<tabCell.length;l++){
if(tabCell[l].innerHTML.match(/Create Board/i) && tabCell[l].width=="33%"){
srcOfImg=tabCell[l].getElementsByTagName('img')[0].src
if(typeOfLayout=="2"){
tabCell[l].innerHTML+="<img src='"+srcOfImg+"' alt='*' border='0'/> <b>Secondary Groups</b><br/><br/><div style='padding-left: 35px;'><a href='/index.cgi?action=headersfooters2&id=*&group=create'>Create Secondary Group</a><br/><a href='/index.cgi?action=headersfooters2&id=*&group=delete1'>Delete Secondary Group</a><br/><a href='/index.cgi?action=headersfooters2&id=*&group=modify1'>Modify Secondary Group</a></div><br/>"

tabCell[l+2].innerHTML+="<img src='"+srcOfImg+"' alt='*' border='0'/> <b>Secondary Group Stars</b><br/><br/><div style='padding-left: 35px;'><a href='/index.cgi?action=headersfooters2&id=*&star=add'>Add Star</a><br/><a href='/index.cgi?action=headersfooters2&id=*&star=delete1'>Delete Star</a><br/><a href='/index.cgi?action=headersfooters2&id=*&star=modify1'>ModifyStar</a>"
}
if(typeOfLayout=="1"){
tabCell[l].width="25%"
tabCell[l+1].width="25%"
tabCell[l+2].width="25%"
tabCell[l+1].innerHTML='<img src="http://s4.images.proboards.com/board.gif" alt="*" border="0"/> <b>Customize Your Forum</b><br/><br/><div style="padding-left: 35px;"><a href="/index.cgi?action=avatars">Avatars</a><br/><a href="/index.cgi?action=settings">General Settings</a><br/><a href="/index.cgi?action=headersfooters2&id=*&group=gpref">Secondary Group Preferences</a><br/><a href="/index.cgi?action=headersfooters">Headers and Footers</a><br/><a href="/index.cgi?action=newsfader">News Fader</a><br/><a href="/index.cgi?action=skins">Skins / Forum Colors</a></div><br/><img src="http://s4.images.proboards.com/board.gif" alt="*" border="0"/> <b>Manage Members</b><br/><br/><div style="padding-left: 35px;"><a href="/index.cgi?action=ban">Ban Member</a><br/><a href="/index.cgi?action=emailall">Email All</a><br/><a href="/index.cgi?action=modifyranks">Modify Rankings</a><br/><a href="/index.cgi?action=pmall">PM All</a><br/><a href="/index.cgi?action=recountmembers">Recount Members</a><br/><a href="/index.cgi?action=searchmembers">Search Members</a><br/><a href="/index.cgi?action=pendingmembers">View Pending Accounts</a></div><br/>'

tabCell[l+2].innerHTML='<img src="'+srcOfImg+'" alt="*" border="0"/> <b>Manage Posts</b><br/><br/><div style="padding-left: 35px;"><a href="/index.cgi?action=deleteoldposts">Delete Old Posts</a><br/><a href="/index.cgi?action=deletespecific">Delete Threads / Posts by Member</a></div><br/><img src="'+srcOfImg+'" alt="*" border="0"/> <b>Paid Features</b><br/><br/><div style="padding-left: 35px;"><a href="/index.cgi?action=aboutpaidservices">About our Paid Services</a><br/><a href="/index.cgi?action=adfree">Ad-Free</a><br/><a href="/index.cgi?action=attachments">Attachments</a><br/><a href="/index.cgi?action=purchasecredits">Purchase Credits</a></div><br/><img src="'+srcOfImg+'" alt="*" border="0"/> <b>Restrictions</b><br/><br/><div style="padding-left: 35px;"><a href="/index.cgi?action=censoredwords">Censored Words</a><br/><a href="/index.cgi?action=reservednames">Reserved Names</a></div><br/>'

var insert=tabCell[l].parentNode.insertCell(3)
insert.width="25%"
insert.vAlign="top"
insert.innerHTML="<img src='"+srcOfImg+"' alt='*' border='0'/> <b>Main Groups</b><br/><br/><div style='padding-left: 35px;'><a href='/index.cgi?action=membergroupcreate'>Create Main Group</a><br/><a href='/index.cgi?action=membergroupdelete'>Delete Main Group</a><br/><a href='/index.cgi?action=membergroupmodify'>Modify Main Group</a><br/><a href='/index.cgi?action=viewsecuritylog'>View Security Log</a></div><br/><img src='"+srcOfImg+"' alt='*' border='0'/> <b>Secondary Groups</b><br/><br/><div style='padding-left: 35px;'><a href='/index.cgi?action=headersfooters2&id=*&group=create'>Create Secondary Group</a><br/><a href='/index.cgi?action=headersfooters2&id=*&group=delete1'>Delete Secondary Group</a><br/><a href='/index.cgi?action=headersfooters2&id=*&group=modify1'>Modify Secondary Group</a></div><br/><img src='"+srcOfImg+"' alt='*' border='0'/> <b>Secondary Group Stars</b><br/><br/><div style='padding-left: 35px;'><a href='/index.cgi?action=headersfooters2&id=*&star=add'>Add Star</a><br/><a href='/index.cgi?action=headersfooters2&id=*&star=delete1'>Delete Star</a><br/><a href='/index.cgi?action=headersfooters2&id=*&star=modify1'>Modify Star</a>"
}
}}

var forNm=document.title.split(' -')[0]
var ttt=document.getElementsByTagName('td')
if(this.location.href.match(/(group|star)=/i)){
var ttt=document.getElementsByTagName('td')
for(f=6;f<ttt.length;f++){
ttt[f].style.display="none"
}
}

if(this.location.href.match(/group=gpref/)){
gTabletoi='<table width="92%" cellspacing="0" cellpadding="0" align="center"><tr><td><a href="/index.cgi?">'+forNm+'</a> :: <a href="/index.cgi?action=admin">Administration Area</a> :: Secondary Group Preferences</td></tr><tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%"><tr><td width="100%" class="titlebg"><font size="2"><b>Secondary Group Preferences</b></font></td></tr><tr><td width="100%" class="windowbg"><font size="2">From this page you can set your secondary group preferences so that they will suit your forum best.<br/><br/><b>Preferences</b><hr size="1"/><form name="gPrefs"><table width="650" cellpadding="2" cellspacing="2" border="0"><tr><td width="160" valign="top"><font size="-1">Admin Panel Layout Type:</font></td><td width="245" valign="top"><font size="-1"><select name="layout"><option value="1">1</option><option value="2">2</option></select></font></td><td width="245" valign="top"><font size="-2">To see previews of both types: <a href="http://elcodificador.2plans.com/codes/gPrev/panelPrev.htm">1</a>, <a href="http://elcodificador.2plans.com/codes/gPrev/panelPrev2.htm">2</a>.</font></td></tr><tr><td width="160" valign="top"><font size="-1">Your Border Color:</font></td><td width="245" valign="top"><font size="-1"><input type="text" name="border" size="30" maxlength="6" value=""/></font></td><td width="245" valign="top"><font size="-2">Enter the color of your border here.</font></td></tr><tr><td width="160" valign="top"><font size="-1">Disable Custom Title Field:</font></td><td width="245" valign="top"><font size="-1"><select name="cTitle"><option value="disable">Yes</option><option value="enable">No</option></select></font></td><td width="245" valign="top"><font size="-2">Selecting yes will disable the custom titles option.</font></td></tr></table><input type="button" value="Save Preferences" onClick="prefSave()"/></form></font></td></tr></table></td></tr></table></td></tr></table>'
document.write(gTabletoi)
document.title=document.title.replace(/Modify Headers and Footers/i,'Secondary Group Preferences')
for(h=0;h<document.gPrefs.layout.options.length;h++){
if(document.gPrefs.layout.options[h].value==typeOfLayout){
document.gPrefs.layout.options[h].selected="1"
}
}
for(h=0;h<document.gPrefs.cTitle.options.length;h++){
if(document.gPrefs.cTitle.options[h].value==gCustom){
document.gPrefs.cTitle.options[h].selected="1"
}
}
document.gPrefs.border.value=borderVar
}


if(window.location.href.match(/star=delete1/)){
strDel='<table width="92%" cellspacing="0" cellpadding="0" align="center"><tr><td><a href="/index.cgi?">'+forNm+'</a> :: <a href="/index.cgi?action=admin">Administration Area</a> :: Delete Secondary Group Star</td></tr><tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%"><tr><td width="100%" class="titlebg" bgcolor="481200"><font size="2"><b>Delete Secondary Group Star</b></font></td></tr><tr><td width="100%" class="windowbg" bgcolor="71160e"><font size="2">Select the secondary group star from the list that you would like to delete.<br/><br/><form name="strDeletion"><select name="id">'
for(u=0;u<starSet.length;u++){
if(starSet[u][0]!="STAR HANDLER"){
strDel+='<option value="'+u+'">'+starSet[u][1]+'</option>'
}
}
strDel+='</select>'
strDel+='<br/><br/><input type="button" value="Delete Star" onclick="delStars()"/></form></font></td></tr></table></td></tr></table></td></tr></table>'
document.write(strDel)
document.title=document.title.replace(/Modify Headers and Footers/i,'Delete Secondary Group Star')
}

if(this.location.href.match(/&star=delete2&number=(\d+)/i)){
s=RegExp.$1
StrToBe='<table width="92%" cellspacing="0" cellpadding="0" align="center"><tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%"><tr><td width="100%" class="titlebg" bgcolor="481200"><font size="2"><b>Delete Secondary Group Star</b></font></td></tr><tr><td width="100%" class="windowbg" bgcolor="71160e"><font size="2">Please confirm that you want to delete the selected star.<br/><hr size="1"/>Are sure that you would like to delete the '+starSet[s][0]+' group?<br/><br/><input type="button" value="Confirm" onclick="strRemoval()"/>   <input type="button" value="Cancel" onclick="gDelCan()"/></font></td></tr></table></td></tr></table></td></tr></table>'
document.write(StrToBe)
document.title=document.title.replace(/Modify Headers and Footers/i,'Delete Secondary Group Star')
}


if(window.location.href.match(/star=modify1/)){
strMod='<table width="92%" cellspacing="0" cellpadding="0" align="center"><tr><td><a href="/index.cgi?">'+forNm+'</a> :: <a href="/index.cgi?action=admin">Administration Area</a> :: Modify Secondary Group Star</td></tr><tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%"><tr><td width="100%" class="titlebg" bgcolor="481200"><font size="2"><b>Modify Secondary Group Star</b></font></td></tr><tr><td width="100%" class="windowbg" bgcolor="71160e"><font size="2">Select the secondary group star from the list that you would like to modify.<br/><br/><form name="strModif"><select name="id">'
for(u=0;u<starSet.length;u++){
if(starSet[u][0]!="STAR HANDLER"){
strMod+='<option value="'+u+'">'+starSet[u][1]+'</option>'
}
}
strMod+='</select>'
strMod+='<br/><br/><input type="button" value="Modify Star" onclick="modStars()"/></form></font></td></tr></table></td></tr></table></td></tr></table>'
document.write(strMod)
document.title=document.title.replace(/Modify Headers and Footers/i,'Modify Secondary Group Star')
}

if(window.location.href.match(/star=modify2&number=(\d+)/)){
s=RegExp.$1
var gTabler='<table width="92%" cellspacing="0" cellpadding="4" align="center"><tr><td colspan="4"><a href="/index.cgi?">'+forNm+'</a> :: <a href="/index.cgi?action=admin">Administration Area</a> :: Modify Secondary Group Star</td></tr><tr><td width="100%" class="titlebg" colspan="4" height="30" style="border-right:1px #'+borderVar+' solid; border-left:1px #'+borderVar+' solid; border-top:1px #'+borderVar+' solid; border-bottom:1px #'+borderVar+' solid;"><font size="2"><b>Modify Secondary Group Star</b></font></td></tr><tr><td width="100%" class="windowbg" colspan="4" style="border-left:1px #'+borderVar+' solid; border-right:1px #'+borderVar+' solid;"><font size="2">From this page you can modify a star that is used with the secondary group feature.  These stars can be used with any of the groups by choosing them in the drop down.<br/><br/><b>Modify Star</b><hr size="1"/></td></tr><tr><td width="12%" class="windowbg" style="border-left:1px #'+borderVar+' solid;" valign="top"><form name="modStarNew"><font size="-1">Star Name:</font></td><td width="15%" class="windowbg" valign="top"><font size="-1"><input type="text" name="name" size="30" value="" maxlength="20"/></font></td><td width="25%" class="windowbg" valign="top"><font size="-2">Enter the name of this star.  This will be how the it is displayed in the drop down.</font></td><td class="windowbg" align="center" width="56%" style="border-right:1px #'+borderVar+' solid;"><font size="2"><b>Upload A Star</b></font></td></tr><tr><td width="12%" class="windowbg" style="border-left:1px #'+borderVar+' solid;" valign="top"><font size="-1">Star URL:</font></td><td width="15%" class="windowbg" valign="top"><font size="-1"><input type="text" name="starUrl" size="30" value=""/></font></td><td width="25%" class="windowbg" valign="top"><font size="-2">This is the URL to this image. If you do not put a correct URL, the star will be displayed as a red x.</font></td><td class="windowbg" width="56%" align="center" style="border-right:1px #'+borderVar+' solid;"><iframe src="http://imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="320" height="100">Update your browser for ImageShack.us!</iframe></td></tr><tr><td colspan="4" class="windowbg" width="100%" valign="middle" style="border-left:1px #'+borderVar+' solid; border-bottom:1px #'+borderVar+' solid; border-right:1px #'+borderVar+' solid;" align="center"><input type="button" value="Modify" onClick="modNewStar()"/></form></font></td></tr></table>'
document.write(gTabler)
var modStaring=starSet[RegExp.$1]
document.modStarNew.name.value=modStaring[1]
document.modStarNew.starUrl.value=modStaring[0]
document.title=document.title.replace(/Modify Headers and Footers/i,'Modify Secondary Group Star')
}


if(window.location.href.match(/group=modify1/)){
gTabmod='<table width="92%" cellspacing="0" cellpadding="0" align="center"><tr><td><a href="/index.cgi?">'+forNm+'</a> :: <a href="/index.cgi?action=admin">Administration Area</a> :: Modify Secondary Group</td></tr><tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%"><tr><td width="100%" class="titlebg" bgcolor="481200"><font size="2"><b>Modify Secondary Group</b></font></td></tr><tr><td width="100%" class="windowbg" bgcolor="71160e"><font size="2">Select the secondary group from the list that you would like to modify.<br/><br/><form name="secMod"><select name="id">'
for(d=0;d<groups.length;d++){
if(groups[d][0]!="EMPTY HANDLER"){
gTabmod+='<option value="'+d+'">'+groups[d][0]+'</option>'
}
}
gTabmod+='</select>'
gTabmod+='<br/><br/><input type="button" value="Modify Group" onclick="modGroup()"/></form></font></td></tr></table></td></tr></table></td></tr></table>'
document.write(gTabmod)
document.title=document.title.replace(/Modify Headers and Footers/i,'Modify Secondary Group')
}

if(this.location.href.match(/group=modify2&number=(\d+)/i)){
s=RegExp.$1
gTableMod='<table width="92%" cellspacing="0" cellpadding="0" align="center"><tr><td><a href="/index.cgi?">'+forNm+'</a> :: <a href="/index.cgi?action=admin">Administration Area</a> :: Modify Secondary Group</td></tr><tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%"><tr><td width="100%" class="titlebg"><font size="2"><b>Modify Secondary Group</b></font></td></tr><tr><td width="100%" class="windowbg"><font size="2">From this page you can modify existing secondary groups. Secondary groups cannot be assigned moderating and administration abilities.<br/><br/><b>Secondary Group</b><hr size="1"/><form name="gsModify"><table width="650" cellpadding="2" cellspacing="2" border="0"><tr><td width="160" valign="top"><font size="-1">Group Name:</font></td><td width="245" valign="top"><font size="-1"><input type="text" name="name" size="30" value=""/></font></td><td width="245" valign="top"><font size="-2">Enter the name of this secondary group.  This will be how the group name is displayed in the user\'s mini profile.</font></td></tr><tr><td width="160" valign="top"><font size="-1">Group Color:</font></td><td width="245" valign="top"><font size="-1"><input type="text" name="color" size="30" maxlength="6" value=""/></font></td><td width="245" valign="top"><font size="-2">If you enter a color code in this box, members of this group will have their names displayed as this color. Note that this color will override the main group color.</font></td></tr><tr><td width="160" valign="top"><font size="-1">Star:</font></td><td width="245" valign="top"><font size="-1"><select name="starurl" onchange="starChange()" onkeyup="starChange()">'
for(u=0;u<starSet.length;u++){
if(starSet[u][0]!="STAR HANDLER"){
gTableMod+='<option value="'+starSet[u][0]+'">'+starSet[u][1]+'</option>'
}
}
gTableMod+='</select><img src="'+starSet[0][0]+'" name="star"></font></td><td width="245" valign="top"><font size="-2">Select which star you would like used for this group.</font></td></tr><tr><td width="160" valign="top"><font size="-1"># of Stars:</font></td><td width="245" valign="top"><font size="-1"><input type="text" name="starnum" size="2" maxlength="2" value="1"/></font></td><td width="245" valign="top"><font size="-2">Enter the number of stars that you would like displayed under the secondary group name.</font></td></tr></table><input type="button" value="Save" onClick="modifyGroup()"/></form></font></td></tr></table></td></tr></table></td></tr></table>'
document.write(gTableMod)
var modGroup=groups[RegExp.$1]
document.gsModify.name.value=modGroup[0]
document.gsModify.starnum.value=modGroup[1]
if(document.gsModify.starurl){
for(y=0;y<document.gsModify.starurl.options.length;y++){
if(document.gsModify.starurl.options[y].value==modGroup[2]){
document.gsModify.starurl.options[y].selected="1"
document.gsModify.star.src=modGroup[2]
}
}
}
document.title=document.title.replace(/Modify Headers and Footers/i,'Modify Secondary Group')
}

if(window.location.href.match(/group=delete1/)){
gTabdel='<table width="92%" cellspacing="0" cellpadding="0" align="center"><tr><td><a href="/index.cgi?">'+forNm+'</a> :: <a href="/index.cgi?action=admin">Administration Area</a> :: Delete Secondary Group</td></tr><tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%"><tr><td width="100%" class="titlebg" bgcolor="481200"><font size="2"><b>Delete Secondary Group</b></font></td></tr><tr><td width="100%" class="windowbg" bgcolor="71160e"><font size="2">Select the secondary group from the list that you would like to delete.<br/><br/><form name="secDel"><select name="id">'
for(d=0;d<groups.length;d++){
if(groups[d][0]!="EMPTY HANDLER"){
gTabdel+='<option value="'+d+'">'+groups[d][0]+'</option>'
}
}
gTabdel+='</select>'
gTabdel+='<br/><br/><input type="button" value="Delete Group" onclick="delGroup()"/></form></font></td></tr></table></td></tr></table></td></tr></table>'
document.write(gTabdel)
document.title=document.title.replace(/Modify Headers and Footers/i,'Delete Secondary Group')
}

if(this.location.href.match(/&group=delete2&number=(\d+)/i)){
s=RegExp.$1
groupToBe='\[\''+groups[s][0]+'\',\''+groups[s][1]+'\',\''+groups[s][2]+'\'\],'
TabToBe='<table width="92%" cellspacing="0" cellpadding="0" align="center"><tr><td><a href="/index.cgi?">'+forNm+'</a> :: <a href="/index.cgi?action=admin">Administration Area</a> :: Delete Secondary Group</td></tr><tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%"><tr><td width="100%" class="titlebg" bgcolor="481200"><font size="2"><b>Delete Secondary Group</b></font></td></tr><tr><td width="100%" class="windowbg" bgcolor="71160e"><font size="2">Please confirm that you want to delete the selected group.<br/><hr size="1"/>Are sure that you would like to delete the '+groups[s][0]+' group?<br/><br/><input type="button" value="Confirm" onclick="gRemoval()"/>   <input type="button" value="Cancel" onclick="gDelCan()"/></font></td></tr></table></td></tr></table></td></tr></table>'
document.write(TabToBe)
document.title=document.title.replace(/Modify Headers and Footers/i,'Delete Secondary Group Confirm')
}

if(window.location.href.match(/group=create/)){
gTablet='<table width="92%" cellspacing="0" cellpadding="0" align="center"><tr><td><a href="/index.cgi?">'+forNm+'</a> :: <a href="/index.cgi?action=admin">Administration Area</a> :: Create Secondary Group</td></tr><tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%"><tr><td width="100%" class="titlebg"><font size="2"><b>Create Secondary Group</b></font></td></tr><tr><td width="100%" class="windowbg"><font size="2">From this page you can create a new secondary group for your forum.  Each member of your forum can be placed into a secondary group of your choosing.  Secondary groups cannot be assigned moderating and administration abilities.<br/><br/><b>Secondary Group</b><hr size="1"/><form name="secondaryGroupForm"><table width="650" cellpadding="2" cellspacing="2" border="0"><tr><td width="160" valign="top"><font size="-1">Group Name:</font></td><td width="245" valign="top"><font size="-1"><input type="text" name="name" size="30" value=""/></font></td><td width="245" valign="top"><font size="-2">Enter the name of this secondary group.  This will be how the group name is displayed in the user\'s mini profile.</font></td></tr><tr><td width="160" valign="top"><font size="-1">Group Color:</font></td><td width="245" valign="top"><font size="-1"><input type="text" name="color" size="30" maxlength="6" value=""/></font></td><td width="245" valign="top"><font size="-2">If you enter a color code in this box, members of this group will have their names displayed as this color. Note that this color will override the main group color.</font></td></tr><tr><td width="160" valign="top"><font size="-1">Star:</font></td><td width="245" valign="top"><font size="-1"><select name="starurl" onchange="starChange()" onkeyup="starChange()">'
for(u=0;u<starSet.length;u++){
if(starSet[u][0]!="STAR HANDLER"){
gTablet+='<option value="'+starSet[u][0]+'">'+starSet[u][1]+'</option>'
}
}
gTablet+='</select><img src="'+starSet[0][0]+'" name="star"></font></td><td width="245" valign="top"><font size="-2">Select which star you would like used for this group.</font></td></tr><tr><td width="160" valign="top"><font size="-1"># of Stars:</font></td><td width="245" valign="top"><font size="-1"><input type="text" name="starnum" size="2" maxlength="2" value="1"/></font></td><td width="245" valign="top"><font size="-2">Enter the number of stars that you would like displayed under the secondary group name.</font></td></tr></table><input type="button" value="Save" onClick="createGroup()"/></form></font></td></tr></table></td></tr></table></td></tr></table>'
document.write(gTablet)
document.title=document.title.replace(/Modify Headers and Footers/i,'Create Secondary Group')
}

if(window.location.href.match(/star=add/)){
var gTabler='<table width="92%" cellspacing="0" cellpadding="4" align="center"><tr><td colspan="4"><a href="/index.cgi?">'+forNm+'</a> :: <a href="/index.cgi?action=admin">Administration Area</a> :: Add Secondary Group Star</td></tr><tr><td width="100%" class="titlebg" colspan="4" height="30" style="border-right:1px #'+borderVar+' solid; border-left:1px #'+borderVar+' solid; border-top:1px #'+borderVar+' solid; border-bottom:1px #'+borderVar+' solid;"><font size="2"><b>Add Secondary Group Star</b></font></td></tr><tr><td width="100%" class="windowbg" colspan="4" style="border-left:1px #'+borderVar+' solid; border-right:1px #'+borderVar+' solid;"><font size="2">From this page you can add a star to use with the secondary group feature.  These stars can be used with any of the groups by choosing them in the drop down.<br/><br/><b>Add Star</b><hr size="1"/></td></tr><tr><td width="12%" class="windowbg" style="border-left:1px #'+borderVar+' solid;" valign="top"><form name="secondaryGroupAddStar"><font size="-1">Star Name:</font></td><td width="15%" class="windowbg" valign="top"><font size="-1"><input type="text" name="name" size="30" value="" maxlength="20"/></font></td><td width="25%" class="windowbg" valign="top"><font size="-2">Enter the name of this star.  This will be how the it is displayed in the drop down.</font></td><td class="windowbg" align="center" width="56%" style="border-right:1px #'+borderVar+' solid;"><font size="2"><b>Upload A Star</b></font></td></tr><tr><td width="12%" class="windowbg" style="border-left:1px #'+borderVar+' solid;" valign="top"><font size="-1">Star URL:</font></td><td width="15%" class="windowbg" valign="top"><font size="-1"><input type="text" name="starUrl" size="30" value=""/></font></td><td width="25%" class="windowbg" valign="top"><font size="-2">This is the URL to this image. If you do not put a correct URL, the star will be displayed as a red x.</font></td><td class="windowbg" width="56%" align="center" style="border-right:1px #'+borderVar+' solid;"><iframe src="http://imageshack.us/iframe.php?txtcolor=111111&type=blank&size=30" scrolling="no" allowtransparency="true" frameborder="0" width="320" height="100">Update your browser for ImageShack.us!</iframe></td></tr><tr><td colspan="4" class="windowbg" width="100%" valign="middle" style="border-left:1px #'+borderVar+' solid; border-bottom:1px #'+borderVar+' solid; border-right:1px #'+borderVar+' solid;" align="center"><input type="button" value="Add" onClick="addStar()"/></form></font></td></tr></table>'
document.write(gTabler)
document.title=document.title.replace(/Modify Headers and Footers/i,'Add Secondary Group Star')
}

function createGroup(){
var sec=document.secondaryGroupForm
for(h=0;h<document.forms.length;h++){
if(document.forms[h].header){
document.forms[h].header.value=document.forms[h].header.value.replace('\[\'EMPTY HANDLER\'\]','\[\''+sec.name.value+'\',\''+sec.starnum.value+'\',\''+sec.starurl.options[document.secondaryGroupForm.starurl.selectedIndex].value
+'\'\],\[\'EMPTY HANDLER\'\]')
document.forms[h].submit()
}
}
}
function modifyGroup(){
var sec=document.gsModify
for(h=0;h<document.forms.length;h++){
if(document.forms[h].header){
document.forms[h].header.value=document.forms[h].header.value.replace('\[\''+groups[s][0]+'\',\''+groups[s][1]+'\',\''+groups[s][2]+'\'\]','\[\''+sec.name.value+'\',\''+sec.starnum.value+'\',\''+sec.starurl.options[sec.starurl.selectedIndex].value+'\'\]')
document.forms[h].submit()
}
}
}
function addStar(){
var sec=document.secondaryGroupAddStar
for(h=0;h<document.forms.length;h++){
if(document.forms[h].header){
document.forms[h].header.value=document.forms[h].header.value.replace('\[\'STAR HANDLER\'\]','\[\''+sec.starUrl.value+'\',\''+sec.name.value+'\'\],\[\'STAR HANDLER\'\]')
document.forms[h].submit()
}
}
}
function prefSave(){
var sec=document.gPrefs
for(h=0;h<document.forms.length;h++){
if(document.forms[h].header){
document.forms[h].header.value=document.forms[h].header.value.replace('typeOfLayout="'+typeOfLayout+'"','typeOfLayout="'+sec.layout.value+'"')
document.forms[h].header.value=document.forms[h].header.value.replace('borderVar="'+borderVar+'"','borderVar="'+sec.border.value+'"')
document.forms[h].header.value=document.forms[h].header.value.replace('gCustom="'+gCustom+'"','gCustom="'+sec.cTitle.value+'"')
document.forms[h].submit()
}
}
}
function modGroup(){
var modSelect=document.secMod.id.options[document.secMod.id.selectedIndex].value
this.location='/index.cgi?action=headersfooters2&id=*&group=modify2&number='+modSelect
}
function modStars(){
var mStarOd=document.strModif.id.options[document.strModif.id.selectedIndex].value
this.location='/index.cgi?action=headersfooters2&id=*&star=modify2&number='+mStarOd
}
function delGroup(){
var delSelect=document.secDel.id.options[document.secDel.id.selectedIndex].value
this.location='/index.cgi?action=headersfooters2&id=*&group=delete2&number='+delSelect
}
function delStars(){
var delSelect=document.strDeletion.id.options[document.strDeletion.id.selectedIndex].value
this.location='/index.cgi?action=headersfooters2&id=*&star=delete2&number='+delSelect
}
function gDelCan(){
history.back()
}
function gRemoval(){
for(h=0;h<document.forms.length;h++){
if(document.forms[h].header){
document.forms[h].header.value=document.forms[h].header.value.replace('\[\''+groups[s][0]+'\',\''+groups[s][1]+'\',\''+groups[s][2]+'\'\],','')
document.forms[h].submit()
}
}
}
function strRemoval(){
for(h=0;h<document.forms.length;h++){
if(document.forms[h].header){
document.forms[h].header.value=document.forms[h].header.value.replace('\[\''+starSet[s][0]+'\',\''+starSet[s][1]+'\'\],','')
document.forms[h].submit()
}
}
}
function modNewStar(){
var sec=document.modStarNew
for(h=0;h<document.forms.length;h++){
if(document.forms[h].header){
document.forms[h].header.value=document.forms[h].header.value.replace('\[\''+starSet[s][0]+'\',\''+starSet[s][1]+'\'\]','\[\''+sec.starUrl.value+'\',\''+sec.name.value+'\'\]')
document.forms[h].submit()
}
}
}
function starChange(){
document.secondaryGroupForm.star.src=document.secondaryGroupForm.starurl.options[document.secondaryGroupForm.starurl.selectedIndex].value;
}