g=false;j=document;k=j.forms;o=j.all;q=true;z=alert;ca=Array;ch=window;cj=isNaN;cn=confirm;cz=eval;gc=Math;gf=open;gg=close;gj=parseInt;HOST=ch.location.host;mcHost=(HOST.indexOf("www")>-1)||(HOST.indexOf(".com")==-1)?HOST:"www."+HOST;DOMAIN_URL="http://"+HOST;cgibin=DOMAIN_URL+"/cgi-bin/";var data=new ca();ads=new ca("cm.jpg","http://www.buycrimson.com/","ck.gif","http://www.coopandkate.com/","ct.gif","http://www.endthedrought.com/","ct-cody.gif","http://www.endthedrought.com/","tb.jpg","http://portraitsbyjtb.com/","wwlsec.jpg","http://wwlsecs.com/debut","stubhub.jpg","http://www.stubhub.com/?ticket_finder=6473","y.gif","http://ymcatusc.org/","ff.jpg","http://www.footballfanatics.com/?partner_id=191");bix=2*gc.round(gc.random()*((ads.length/2)-1));helpLink='<a class="navBar" href="/mb/help.html">Help</a>';headerTemplate='<img class="logo" src="/mb/logo.gif"><p class="hdrTitle">%title%</p><p class="hdrSubtitle">%subtitle%</p><a href="'+ads[bix+1]+'">'+(ads[bix].indexOf(".swf")>-1?'<table class="ad"><tr><td><object width="125" height="85"><param name="movie" value="/mb/ads/'+ads[bix]+'"></param><param name="wmode" value="transparent"></param><embed src="/mb/ads/'+ads[bix]+'" type="application/x-shockwave-flash" wmode="transparent" width="125" height="85"></embed></object></td></tr></table>':'<img class="ad" src="/mb/ads/'+ads[bix]+'">')+'</a><p class="navBar">[<a class="navBar" href="/index.html">Home</a>][<a class="navBar" href="https://'+mcHost+'/members/login.html">Membership</a>][<a class="navBar" href="/contact.html">Contact</a>][<a class="navBar" href="/mb/postingpolicy.html">Posting policy</a>]['+helpLink+']';topic=new ca("Tide football","Tide basketball","Tide baseball","Other Tide sports","General (Quad)","Ticket exchange","Video exchange");namePrefix=new ca("r","","","r","r","r","");forumName=new ca("The Huddle","The Backboard","The Dugout","All Sports","The Quad","Ticket Exchange","Video Exchange");forumPurpose=new ca("Serious Discussion of Tide Football","Serious Discussion of Tide Basketball","Serious Discussion of Tide Baseball","Serious Discussion of Tide Sports","General Discussion","Not-for-Profit Exchange of Tide Tickets","Not-for-Profit Sharing of Game Videos");rt=g;gotoButton='<select name="nav" id="nav" onchange="onClickGoToForum(this);"><option value="0">Go to...</option><option value="4">All Sports</option><option value="1">Huddle</option><option value="2">Backboard</option><option value="3">Dugout</option><option value="5">Quad</option><option value="6">Ticket Exchange</option><option value="7">Video Exchange</option></select> ';cancelButton=' <input type="button" value="Cancel" id="cancel" onClick="onClickCancel();"> ';newThreadButton=' <input type="button" value="New Thread" id="post" onClick="return onClickNewThread();"> ';searchButton=' <input type="button" value="Search" id="search" onclick="return onClickSearch();"> ';helpButton='';noticesButton=' <input type="button" value="Notices" id="notices" onClick="onClickShowNotices();"> ';ignoreButton=' <input type="button" value="Ignore" id="ignore" onclick="return onClickIgnore();"> ';bodyVisible=q;repliesVisible=q;topMsgID=0;cmdEdit="E";cmdPost="P";cmdReply="R";cmdDelete="D";RECORD_SIZE=9;LEVEL_OFS=0;ID_OFS=1;PARENT_ID_OFS=2;AUTHOR_ID_OFS=3;TOPIC_ID_OFS=4;SUBJECT_OFS=5;AUTHOR_NAME_OFS=6;TIME_OFS=7;BODY_OFS=8;TOP_THREAD_IDX=1;ADMIN_NAME="TI";ADMIN_PSEUDO_ID=-1;DEFAULT_PATH="/mb/";INDEX_PATH="/mb/msg/";INDEX_URL_PATH=DOMAIN_URL+INDEX_PATH;MSG_PATH="/mb/msg/";MSG_URL_PATH=DOMAIN_URL+MSG_PATH;DEFAULT_COOKIE_PATH="/";DEFAULT_COOKIE_DOMAIN="";DEFAULT_COOKIE_DAYS=365;cq="ixURL";gd="thdURL";cr="lastURL";cs="msgsubj";ct="msgbody";cu="ignore";ck="search";cv="link";cw="repliesvis";uix=0;DL_DIV_NAME_OFS=uix++;DL_LAYER_NAME_OFS=uix++;DL_CLASS_NAME_OFS=uix++;DL_MAX_LINES_OFS=uix++;DL_OBJ_STR_IX_OFS=uix++;hdrDLData=new ca("hdrDiv","hdrContainer,hdr","header",5,0);bdyDLData=new ca("bdyDiv","bdyContainer,bdy","body",(data.length/RECORD_SIZE)+500,0);staDLData=new ca("staDiv","staContainer,sta","statusbar",1,0);tbrDLData=new ca("tbrDiv","tbrContainer,tbr","toolbar",1,0);frmDLData=new ca("frmDiv","frmContainer,frm","formDL",10,0);uix=0;PT_INDEX=uix++;PT_THREAD=uix++;PT_RESUBMIT=uix++;PT_STATUS=uix++;PT_PREVIEW=uix++;PT_IGNORE_LIST=uix++;PT_DELETION_NOTICE=uix++;PT_SEARCH=uix++;PT_SUSPEND=uix++;pageType=PT_INDEX;PH_STATUS="%status%";PH_MSGID="%msgid%";PH_THREADID="%threadid%";BROWSING_STATUS=" ";defaultTopicID=0;forumID=0;pageNo=0;numPages=0;function ge(){var value=ch.location.hash.substring(1);if((value.length==0)||cj(value)==q){value=ch.location.search.substring(1);if((value.length==0)||cj(value)==q)value=data[TOP_THREAD_IDX]}return value}LINK_OPTION_HASH="h";LINK_OPTION_SEARCH="s";LINK_OPTION_MARK_VISITED="m";linkOption=LINK_OPTION_HASH;searchOrHash="#";function initLinkOption(option){if(option==null)linkOption=cb(cv);else linkOption=option;searchOrHash="#";if(linkOption==null)linkOption=LINK_OPTION_HASH;else if(linkOption==LINK_OPTION_SEARCH)searchOrHash="?";return linkOption}function setLinkOption(option){setCookie(cv,option);initLinkOption(option);}function initRepliesVisibleOption(option){if(option==null){var c=cb(cw);if(c=="0")repliesVisible=g;else repliesVisible=q}else repliesVisible=option;return repliesVisible}function setRepliesVisibleOption(option){setCookie(cw,option?"1":"0");initRepliesVisibleOption(option);}function initOptions(){initLinkOption();initRepliesVisibleOption();}function radio(name,value,checked,action,cl){return'<input type="radio" name="'+name+'" id="'+name+'" value="'+value+'"'+(checked?' checked':'')+(action.length==0?'':' onClick="'+action+'"')+'>'+cl}function input(type,name,value,action,cl,trailingSpace){return'<input type="'+type+'" name="'+name+'" id="'+name+'" value="'+value+'"'+(action.length==0?'':' onClick="'+action+'"')+'>'+cl+(trailingSpace?" ":"");}function button(name,value,action,trailingSpace){return input("button",name,value,action,"",trailingSpace);}function onClickLinks(){showStatusBar("");var choice="this.form.choice.value";var action=choice+"=this.value";var name="link";var str='<div class="form" id="linkOptionDiv"><form id="linkOptionForm"><h3>Link option</h3> For an explanation of the choices, please read the '+helpLink+'.<p>';str+=radio(name,LINK_OPTION_HASH,linkOption==LINK_OPTION_HASH,action,"Fast links<br>");str+=radio(name,LINK_OPTION_MARK_VISITED,linkOption==LINK_OPTION_MARK_VISITED,action,"Fast links with autoclicking<br>");str+=radio(name,LINK_OPTION_SEARCH,linkOption==LINK_OPTION_SEARCH,action,"Slow links");str+=input("hidden","choice",linkOption,"","");str+='<p>';str+=button("setOption","Set option","setLinkOption("+choice+");showIndexPageBody();",q);str+=' ';str+=button("cancel","Cancel","showIndexPageBody();",g);str+='</p></form></div>';showPageBody(str);return g}function onClickGoToForum(navSelect){forum=navSelect.options[navSelect.selectedIndex].value;if(forum>0){location.href=INDEX_URL_PATH+namePrefix[forum-1]+forum+'-1.html'}}function showPageNavBar(where){if(numPages>1){j.write('<div name="pageNavBar'+where+'" id="pageNavBar'+where+'" class="pageNavBar">');if(pageNo>1)j.write('<a class="pageNavBar" href="'+namePrefix[forumID-1]+forumID+'-'+(pageNo-1)+'.html">Previous</a> ');for(cg=1;cg<=numPages;cg++){var c="pageNavBar";if(cg==pageNo)c+="Hit";j.write(' <a class="'+c+'" href="'+namePrefix[forumID-1]+forumID+'-'+cg+'.html">'+cg+'</a> ');}if(pageNo<numPages)j.write('<a class="pageNavBar" href="'+namePrefix[forumID-1]+forumID+'-'+(pageNo+1)+'.html">Next</a>');j.write('</div>');}}function cx(topicID){return"Topic: "+topic[topicID-1]}function gl(dlData){ce(j,dlData,"");}function ce(doc,dlData,contents){if(doc.getElementById){dlData[DL_OBJ_STR_IX_OFS]=DL_DIV_NAME_OFS;doc.write("<div class=\""+dlData[DL_CLASS_NAME_OFS]+"\" name=\""+dlData[DL_DIV_NAME_OFS]+"\" id=\""+dlData[DL_DIV_NAME_OFS]+"\">"+contents+"</div>");}else{dlData[DL_OBJ_STR_IX_OFS]=DL_LAYER_NAME_OFS;var layerNames=dlData[dlData[DL_OBJ_STR_IX_OFS]].split(",");doc.write("<ilayer name=\""+layerNames[0]+"\" id=\""+layerNames[0]+"\"><layer class=\""+dlData[DL_CLASS_NAME_OFS]+"\" name=\""+layerNames[1]+"\" id=\""+layerNames[1]+"\">");doc.write("<table width=\"100%\"><tr><td>");var numLines=dlData[DL_MAX_LINES_OFS];doc.write(contents);for(line=1;line<numLines;line++)doc.write("&nbsp;<br>");doc.write("</td></tr></table>");doc.write("</layer></ilayer>");}}function cd(msgID){var ix=0;while((ix<data.length-RECORD_SIZE)&&(data[ix+ID_OFS]!=msgID))ix+=RECORD_SIZE;return ix}function ci(msgIndex){var ix=msgIndex;while(ix>0&&data[ix+LEVEL_OFS]!=0)ix-=RECORD_SIZE;return ix}function gm(msgIndex){return data[ci(msgIndex)+ID_OFS]}function msgToStrGivenIndex(ix,thdID,showMsgBody){var eomOrNot=((pageType==PT_INDEX)&&(data[ix+BODY_OFS].length==0))?" -EOM-":"";var msgID=data[ix+ID_OFS];var str;var hdrLiClass="msgHeaderReply";var hdrSubjAClass="subjectReply";if(data[ix+PARENT_ID_OFS]==0){hdrLiClass="msgHeaderMain";hdrSubjAClass="subjectMain"}str='<li class="'+hdrLiClass+'">';if(thdID==0)str+='<div class="msgHeaderThd"><a class="'+hdrSubjAClass+'" href="'+searchOrHash+msgID+'" onClick="onClickShowThread('+msgID+');">';else{str+="<div class=\"msgHeaderIx\">";str+='<a class="'+hdrSubjAClass+'" href="';str+=MSG_URL_PATH+thdID+'.html'+searchOrHash+msgID+'">';}str+=data[ix+SUBJECT_OFS]+'</a>'+eomOrNot+' <a class="author" href="">'+data[ix+AUTHOR_NAME_OFS]+'</a> '+data[ix+TIME_OFS]+'</div></li>';if(showMsgBody==q)str+='<div class="msgbody">'+toHTML(data[ix+BODY_OFS])+'</div>';return str}function searchResultsToString(){var ix=0;var str="<ul>";while(ix<data.length-RECORD_SIZE){str+=msgToStrGivenIndex(ix,data[ix+TOPIC_ID_OFS],g);ix+=RECORD_SIZE}str+="</ul>";return str}function msgToString(id,showMsgBody){return"<ul>"+msgToStrGivenIndex(cd(id),0,showMsgBody)+"</ul>"}function subthreadToString(id,showMsgBody,allLevels){var str="";var ix=0;var level=0;var ixLimit=data.length-RECORD_SIZE;if(id==-1){ix=data.length-RECORD_SIZE;ixLimit=data.length}else if(id>0){ix=cd(id);level=data[ix+LEVEL_OFS]}var stopLevel=level;var indentLevel=level-1;var indentCount=0;var initialIx=ix;var thdID=0;var parentID=0;var ignoring=g;var ignoringLevel=0;while(ix<ixLimit&&(initialIx==0||initialIx==ix||data[ix+LEVEL_OFS]>stopLevel)){if(ignoring){if(ignoringLevel>=data[ix+LEVEL_OFS])ignoring=g}if(!ignoring&&(data[ix+AUTHOR_ID_OFS]<0)){ignoring=q;ignoringLevel=data[ix+LEVEL_OFS]}if(!ignoring){level=data[ix+LEVEL_OFS];if(allLevels==q||level==stopLevel){if(level>indentLevel){str+="<ul>";indentLevel=level;indentCount++}while(indentLevel>level){str=str+"</ul>";indentLevel--;indentCount--}parentID=data[ix+PARENT_ID_OFS];if(parentID==0){thdID=data[ix+ID_OFS]}str+=msgToStrGivenIndex(ix,id==0?thdID:0,showMsgBody);}}ix+=RECORD_SIZE}while(indentCount>0){str=str+"</ul>";indentCount--}return str}function cy(cm){var lyrStr="";if(cm.indexOf(",")!=-1){var arObjStr=cm.split(",");for(var i=0;i<arObjStr.length;i++)if(i==(arObjStr.length-1))lyrStr+="document.layers[\""+arObjStr[i]+"\"]";else lyrStr+="document.layers[\""+arObjStr[i]+"\"]."}else{var arObjStr=new ca();arObjStr[0]=cm}if(j.getElementById){return j.getElementById(arObjStr[arObjStr.length-1]);}else if(o){return o[arObjStr[arObjStr.length-1]]}else if(j.layers){return cz(lyrStr);}else return null}function writeToLayer(layer,message){if(o||j.getElementById){layer.innerHTML=message}else{layer.document.open();layer.document.write(message);layer.document.close();}}function showThread(msgID,showMsgBody,allLevels){showPageBody(subthreadToString(msgID,showMsgBody,allLevels));}function ga(showTopic,addCancelBtn,showRestrictedTopics){var form='<div class="form" id="postDiv"><form id="postForm" method=post action="'+cgibin+'mbmsgaction.cgi" onSubmit="return validatePostForm(this);"><h3>Required</h3><table><!-- showtopic --><tr><td>Topic:</td><td><select name="topicID" id="topicID"><option value="0">Select the most appropriate topic</option><option value="1">Tide football</option><option value="2">Tide basketball</option><option value="3">Tide baseball</option><option value="4">Other Tide sports</option><option value="5">General (Quad)</option><!-- rtopic --><option value="6">Ticket exchange</option><!-- rtopic --><option value="7">Video exchange</option></select></td></tr><!-- showtopic --><tr><td>Subject:</td><td><input type="text" name="subject" id="subject" size="80" maxlength="80"> <input type="button" name="restore" id="restore" value="Restore" onClick="restoreMsg(this.form);"></td></tr></table><h3>Optional</h3><table><tr><td colspan="2">Message (Please be civil):</td></tr><tr><td colspan="2"><textarea cols="80" rows="15" name="body" id="body"></textarea></td></tr></table><table><tr><td><input type="button" name="addLink" id="addLink" value="Add link" onClick="addLinkCode(this.form);"></td><td>Link URL:</td><td><input type="text" name="linkURL" id="linkURL" size="50"></td></tr><tr><td></td><td>Link title:</td><td><input type="text" name="linkTitle" id="linkTitle" size="50"></td></tr><tr><td><input type="button" name="addImage" id="addImage" value="Add image" onClick="addImageCode(this.form);"></td><td>Image URL:</td><td><input type="text" name="imageURL" id="imageURL" size="50"></td></tr></table><table><tr><td align="center"><input type="button" name="preview" id="preview" value="Preview" onClick="showPreview(this.form);"> <input type=submit value="Post"><!-- cancel --></td></tr></table><input type="hidden" name="returnPath" id="returnPath"><input type="hidden" name="msgID" id="msgID" value="0"><input type="hidden" name="authorID" id="authorID"><input type="hidden" name="threadID" id="threadID" value="0"><!-- hidetopic --><input type="hidden" name="topicID" id="topicID"><!-- hidetopic --><input type="hidden" name="cmd" id="cmd" value="P"></form></div>';if(showTopic==q){form=form.replace(/<!-- hidetopic -->.+<!-- hidetopic -->/,"");if(showRestrictedTopics==g)form=form.replace(/<!-- rtopic -->.+<!-- rtopic -->/,"");}else form=form.replace(/<!-- showtopic -->.+<!-- showtopic -->/,"");if(addCancelBtn==q)return form.replace(/<!-- cancel -->/,cancelButton);else return form}function showMsgWithPostForm(msgID,reply,addCancelBtn,cmd){var msgIx=cd(msgID);var threadIx=ci(msgIx);var threadID=data[threadIx+ID_OFS];var showTopic=(reply==g)&&(threadID==msgID);showPageBody(subthreadToString(msgID,q,g)+ga(showTopic,addCancelBtn,g));var f="postForm";k[f].authorID.value=data[msgIx+AUTHOR_ID_OFS];k[f].topicID.value=data[threadIx+TOPIC_ID_OFS];k[f].threadID.value=threadID;k[f].msgID.value=msgID;k[f].cmd.value=cmd}function toHTML(text){re=/\cM/g;text=text.replace(re,"");re=/\n{2,}/g;text=text.replace(re,"<p>");re=/\n/g;text=text.replace(re,"<br>");return text}function toTextArea(text){re=/<p>/g;text=text.replace(re,"\n\n");re=/<br>/g;text=text.replace(re,"\n");return text}function alertAndFocus(field,name){if(field.value.length==0){z("Please enter \""+name+"\"");field.focus();return q}else return g}function gh(form){return'<a href="'+form.linkURL.value+'">'+form.linkTitle.value+'</a>'}function gi(form){return'<img src="'+form.imageURL.value+'">'}function addLinkCode(form){if(alertAndFocus(form.linkURL,"Link URL")||alertAndFocus(form.linkTitle,"Link title"));else{form.body.value=form.body.value+gh(form);form.linkURL.value="";form.linkTitle.value="";form.body.focus();}}function restoreMsg(form){if(cn("Restore the last message that you submitted?")){form.subject.value=cb(cs);form.body.value=cb(ct);}}function addImageCode(form){if(alertAndFocus(form.imageURL,"Image URL"));else{form.body.value=form.body.value+gi(form);form.imageURL.value="";form.body.focus();}}function validatePostForm(form){if(alertAndFocus(form.subject,"subject"))return g;if(form.topicID.selectedIndex==0){z("Please choose a topic.");form.topicID.focus();return g}form.body.value=form.body.value.replace(/^\s*|\s*$/g,"");form.body.value=form.body.value.replace(/\\/g,"");form.subject.value=form.subject.value.replace(/^\s*|\s*$/g,"");form.subject.value=form.subject.value.replace(/\\/g,"");form.subject.value=form.subject.value.replace(/<(\/|\w)/g,"< $1");if(form.body.value.length>0&&form.body.value.length<10){if(cn("The Message field is not required. Is it okay to remove it?"))form.body.value=""}if(badWordFound(form))return g;if(form.imageURL.value.length>0||form.linkURL.value.length>0||form.linkTitle.value.length>0){if(cn("At least one of the link and image fields has a value. If you continue before adding the link or image to your messsage, the values will be lost."));else return g}form.returnPath.value=cf();setCookie(cs,form.subject.value);setCookie(ct,form.body.value);return q}function setTopicSubjectBody(formName,index){k[formName].subject.value=data[index+SUBJECT_OFS];k[formName].body.value=toTextArea(data[index+BODY_OFS]);k[formName].topicID.value=data[index+TOPIC_ID_OFS]}function setPostFormValues(msgID){var ix=cd(msgID);setTopicSubjectBody("postForm",ix);}function showStatusBar(status){var layer=cy(staDLData[staDLData[DL_OBJ_STR_IX_OFS]]);if(layer)writeToLayer(layer,status);else ce(j,staDLData,status);}function onClickShowAll(){showStatusBar(BROWSING_STATUS);showThread(topMsgID=data[TOP_THREAD_IDX],bodyVisible,q);return g}function onClickShowThread(msgID){showStatusBar(BROWSING_STATUS);topMsgID=msgID;showThread(topMsgID,bodyVisible,repliesVisible);return g}function onClickReply(){showStatusBar("Replying to message shown ...");bodyVisible=q;showMsgWithPostForm(topMsgID,q,q,cmdReply);return g}function onClickReturnToIndex(){var p=cb(cq);if(p==null)z("This feature requires cookies.");else location.href=DOMAIN_URL+p}function onClickNewThread(){showStatusBar("Starting a new thread ...");showPageBody(ga(q,q,rt));var f="postForm";k[f].topicID.value=defaultTopicID;k[f].cmd.value=cmdPost;return g}function onClickEdit(){showStatusBar("Editing the message shown ...");showMsgWithPostForm(topMsgID,g,q,cmdEdit);setPostFormValues(topMsgID);return g}function onClickIgnore(){showStatusBar("");var f="ignoreForm";if(pageType==PT_INDEX){showPageBody(co(g,g));}else{var topMsgIx=cd(topMsgID);var aid=data[topMsgIx+AUTHOR_ID_OFS];showPageBody(subthreadToString(topMsgID,q,g)+co(g,aid>0));k[f].ignoreID.value=aid;k[f].msgID.value=topMsgID}k[f].returnPath.value=cf();return g}function onClickDelete(){var form='<div class="form" id="deleteDiv"><form id="deleteForm" method=post action="'+cgibin+'mbmsgaction.cgi">Only the author and board moderators can delete the message.<p>Do you want to delete it?<input type=submit value="Yes, delete it"><!-- cancel --><input type="hidden" name="returnPath" id="returnPath"><input type="hidden" name="msgID" id="msgID"><input type="hidden" name="authorID" id="authorID"><input type="hidden" name="threadID" id="threadID"><input type="hidden" name="cmd" id="cmd" value="D"><input type="hidden" name="topicID" id="topicID"></form></div>';showStatusBar("");showPageBody(subthreadToString(topMsgID,q,g)+form.replace(/<!-- cancel -->/,cancelButton));var topMsgIx=cd(topMsgID);var threadIx=ci(topMsgIx);var f="deleteForm";k[f].msgID.value=topMsgID;k[f].threadID.value=data[threadIx+ID_OFS];k[f].authorID.value=data[topMsgIx+AUTHOR_ID_OFS];k[f].topicID.value=data[threadIx+TOPIC_ID_OFS];k[f].returnPath.value=cf();return g}function onClickRequestRemoval(){var form='<div class="form" id="requestRemovalDiv"><form id="requestRemovalForm" method=post action="'+cgibin+'mbrequestremoval.cgi">To remove your own message, please click the Delete button above.<p>Comment (optional):<br><textarea cols="45" rows="6" name="comment" id="comment"></textarea><p><input type=submit value="Request removal"><input type="button" value="Cancel" id="cancel" onClick="onClickCancel();"><input type="hidden" name="msgID" id="msgID"><input type="hidden" name="threadID" id="threadID"><input type="hidden" name="topicID" id="topicID"></form>';showStatusBar("");showPageBody(subthreadToString(topMsgID,q,g)+form.replace(/<!-- cancel -->/,cancelButton));var topMsgIx=cd(topMsgID);var threadIx=ci(topMsgIx);var f="requestRemovalForm";k[f].msgID.value=topMsgID;k[f].threadID.value=data[threadIx+ID_OFS];k[f].topicID.value=data[threadIx+TOPIC_ID_OFS];return g}function onClickShowNotices(){showStatusBar("");var form='<div class="form" id="showNoticesDiv"><form id="showNoticesForm" action="'+cgibin+'mbnoticeaction.cgi" method=post>When one of your posts is deleted, whether or not in conjunction with a suspension of posting privileges, a deletion notice is issued. You will not be allowed to post again, until all suspensions have expired and all notices have been read. If you submit a message for posting, at a time when a suspension has not expired or a deletion notice has not been read, you will be presented with a list of all outstanding deletion notices. If you would like to review outstanding deletion notices now, click the button below.<p><input type=submit value="Show deletion notices"><!-- cancel --></p><input type="hidden" name="returnPath" id="returnPath">';form=form.replace(/<!-- cancel -->/,cancelButton);showPageBody(form);k["showNoticesForm"].returnPath.value=cf();return g}function onClickShowDeletedMsg(mid){topMsgID=mid;showPageBody(msgToString(topMsgID,q));}function onClickToggleBodyVisible(){showStatusBar(BROWSING_STATUS);bodyVisible=!bodyVisible;showThreadToolBar();showThread(topMsgID,bodyVisible,q);return g}function onClickToggleRepliesVisible(){showStatusBar(BROWSING_STATUS);setRepliesVisibleOption(!repliesVisible);showIndexToolBar();showThread(topMsgID,g,repliesVisible);return g}function badWordFound(form){var words=new ca("asshole","a$$hole","bastard","dumbass","dumba$$","dumbose","cocksucker","cum","effing","effin","fubar","fuck","fuk","f'ing","f'n","f-ing","f'd","f'ed","fu","jackass","jacka$$","lmfao","mf","milf","milfs","mofo","mofos","moron","phuck","pussy","pu$$y","rmftr","retard","screw you","shit","slime","wgaf","wtf","stfu","w t f");index=0;doNotContinue=g;var word;while((index<words.length)&&(doNotContinue==g)){word=words[index];var target=word.replace(/\$/g,"\\$");re=new RegExp("\\b"+target+"\\b","i");if(form.subject.value.match(re)||form.body.value.match(re)){if(word.indexOf("retard")>-1)doNotContinue=!cn("Please don't use the  word \"retard\" in a derogatory fashion. Continue posting ?");else{z("WARNING!\n\nPlease do not use the word (or phrase or abbreviation) \""+word+"\" or any equally offensive substitute in your post.\n\nPlease do not use vulgar language and do not attack others.\n\nIf you ignore this warning, you may lose your posting privileges.");doNotContinue=q}}index++}return doNotContinue}function setCookie(name,value,days,path,domain,secure){days=(days)?days:DEFAULT_COOKIE_DAYS;path=(path)?path:DEFAULT_COOKIE_PATH;domain=(domain)?domain:DEFAULT_COOKIE_DOMAIN;var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var e="; expires="+date.toGMTString();var p="; path="+path;var d="; domain="+domain;var cookie=name+"="+escape(value)+((days)?e:"")+((path)?p:"")+((domain)?d:"")+((secure)?";secure":"");j.cookie=cookie}function cb(name){var dc=j.cookie;var prefix=name+"=";var begin=dc.indexOf(prefix);if(begin==-1)return null;var end=j.cookie.indexOf(";",begin);if(end==-1)end=dc.length;return unescape(dc.substring(begin+prefix.length,end));}IGNORE_RECORD_SIZE=2;IGNORE_ID_OFS=0;IGNORE_NAME_OFS=1;IGNORE_ID_SEPARATOR="@";function markIgnore(){var ids=IGNORE_ID_SEPARATOR+cb(cu)+IGNORE_ID_SEPARATOR;ids.replace(/,/g,IGNORE_ID_SEPARATOR);for(var ix=0;ix<data.length-RECORD_SIZE;ix+=RECORD_SIZE){if(ids.indexOf(IGNORE_ID_SEPARATOR+data[ix+AUTHOR_ID_OFS]+IGNORE_ID_SEPARATOR)>-1){data[ix+AUTHOR_ID_OFS]=-data[ix+AUTHOR_ID_OFS]}}}function saveIgnoreListInCookie(){var cookie="";for(var ix=0;ix<data.length;ix+=IGNORE_RECORD_SIZE){if(ix>0)cookie+=IGNORE_ID_SEPARATOR;cookie+=data[ix+IGNORE_ID_OFS]}setCookie(cu,cookie);}function validateIgnoreListForm(form){if(pageType!=PT_IGNORE_LIST)return q;var checkedCnt=0;for(var ix=0;ix<data.length;ix+=IGNORE_RECORD_SIZE){var id=data[ix+IGNORE_ID_OFS];if(cz("form.id"+id+".checked")==q)checkedCnt++}if(checkedCnt==0){z("You have not checked any names.");return g}else return q}function onClickCancel(){showStatusBar(BROWSING_STATUS);if(pageType==PT_INDEX){showIndexToolBar();showThread(0,g,repliesVisible);}else if(pageType==PT_THREAD){showThreadToolBar();showThread(topMsgID,bodyVisible,q);}return g}function cc(title,subtitle){if(subtitle.length==0)subtitle="&nbsp;";return headerTemplate.replace(/\%title%/g,title).replace(/\%subtitle\%/g,subtitle);}function co(updating,allowInsert){var str='<div class="form" id="ignoreDiv"><form id="ignoreForm" action="'+cgibin+'mbignoreaction.cgi" method=post onSubmit="return validateIgnoreListForm(this);">';if(updating){str+='Check the names of the posters you want to remove from the ignore list.';str+='<p><table>';for(var ix=0;ix<data.length;ix+=IGNORE_RECORD_SIZE){var ignoreID=data[ix+IGNORE_ID_OFS];str+='<tr><td><input type="checkbox" name="id'+ignoreID+'" id="id'+ignoreID+'" value="'+ignoreID+'">'+data[ix+IGNORE_NAME_OFS]+'</td></tr>'}str+='</table></p>';str+='<p><input type=submit value="Remove checked names from the list" onClick="cmd.value=\'U\'"></p>'}else{str+='This feature requires cookies and is available only to members.';if(allowInsert){str+='What would you like to do? ';str+='<p><input type=submit value="Ignore all posts by the poster above" onClick="cmd.value=\'I\'"></p>'}else str+='<p>Click the button below to view the list of posters you are ignoring. To add a poster to your ignore list, you must click on a message by that poster, then click the Ignore button.';str+='<p><input type=submit value="View the list of all ignored posters" onClick="cmd.value=\'V\'"></p>';str+='<p><input type="button" value="Cancel" id="cancel" onClick="onClickCancel();"></p>'}str+='<input type="hidden" name="ignoreID" id="ignoreID">';str+='<input type="hidden" name="returnPath" id="returnPath">';str+='<input type="hidden" name="msgID" id="msgID">';str+='<input type="hidden" name="cmd" id="cmd">';str+='</form></div>';return str}function initIgnoreListView
(mid){pageType=PT_IGNORE_LIST;var msgID=gj(mid);saveIgnoreListInCookie();showHeader(cc("Ignore List",""));showStatusBar(" ");showToolBar(helpButton+gotoButton);showPageBody(co(q,g));var f="ignoreForm";k[f].returnPath.value=cf();k[f].msgID.value=msgID}function initUpdateIgnoreListView
(status){saveIgnoreListInCookie();if(status!=PH_STATUS)z(status);location.href=DOMAIN_URL+cf();}function redirect
(status,threadID){if(status!=PH_STATUS)z(status);location.href=DOMAIN_URL+((threadID==PH_THREADID)?cf():MSG_PATH+threadID+".html");}function initResubmitView
(cmd,error){pageType=PT_RESUBMIT;showHeader(cc(cx(data[TOPIC_ID_OFS]),""));showStatusBar(error);showToolBar(helpButton+gotoButton);topMsgID=data[TOP_THREAD_IDX];if(cmd==cmdEdit){showMsgWithPostForm(topMsgID,g,g,cmd);setPostFormValues(-topMsgID);}else if(cmd==cmdReply){showMsgWithPostForm(topMsgID,q,g,cmd);setPostFormValues(-topMsgID);}else if(cmd==cmdPost){showMsgWithPostForm(0,g,g,cmd);setPostFormValues(0);}}function initStatusView
(status){showHeader(cc("TI Forums",""));if(status==PH_STATUS)status="Choose a forum";showStatusBar(status);pageType=PT_STATUS;showToolBar(helpButton+gotoButton);}function setLastPathCookies(gb){re=/\.html/;if(ch.location.pathname.match(re)){setCookie(gb,ch.location.pathname);setCookie(cr,gb);}}function cf(){var p=cb(cb(cr));if(p==null)p=DEFAULT_PATH;return p}function showIndexPageBody(){showPageBody(subthreadToString(0,g,repliesVisible));}function initIndexView
(id,pages,pgno,defTopicID,status){forumID=id;numPages=pages;pageNo=pgno;defaultTopicID=defTopicID;setLastPathCookies(cq);pageType=PT_INDEX;markIgnore();initOptions();showHeader(cc(forumName[forumID-1],forumPurpose[forumID-1]));if(status==PH_STATUS)status=BROWSING_STATUS;showStatusBar(BROWSING_STATUS);if(status.length>1)z(status);showIndexToolBar();showPageNavBar("Top");showIndexPageBody();showPageNavBar("Bottom");}SEARCH_PAIR_SEPARATOR="@";function validateSearchForm(form){if(form.name.value.length==0&&form.list.options[form.list.selectedIndex].value==0){z("Please type a name or choose one from the list.");return g}return q}function option(value,name,selected){return'<option value="'+value+'"'+((selected==q)?' selected>':'>')+name+'</option>'}function onClickSearch(){showStatusBar("");var topMsgIx=0;if(pageType==PT_INDEX){while(topMsgIx<data.length-RECORD_SIZE&&data[topMsgIx+AUTHOR_ID_OFS]<0)topMsgIx+=RECORD_SIZE;if(topMsgIx>data.length-RECORD_SIZE-1)topMsgIx=0;topMsgID=data[topMsgIx]}else topMsgIx=cd(topMsgID);var aid=data[topMsgIx+AUTHOR_ID_OFS];var aname=data[topMsgIx+AUTHOR_NAME_OFS];var sel='<select name="list" id="list" onChange="f=this.form; l=f.list; f.name.value=l.options[l.selectedIndex].text">';sel+=option(0,'Select a name',g);var selected=g;if(aname!=ADMIN_NAME){selected=q;sel+=option(aid,aname,q);}var markSelected=!selected&&(aname==ADMIN_NAME);selected=markSelected?q:selected;sel+=option(ADMIN_PSEUDO_ID,ADMIN_NAME,markSelected);var c=cb(ck);if(c){var a=c.split(SEARCH_PAIR_SEPARATOR);var ix=0;while(ix<a.length){markSelected=!selected&&a[ix]==aid;selected=markSelected?q:selected;sel+=option(a[ix],a[ix+1],markSelected);ix+=2}}sel+="</select>";showPageBody(((pageType==PT_THREAD)?subthreadToString(topMsgID,q,g):'')+'<div class="form" id="searchDiv"><form id="searchForm" action="'+cgibin+'mbsearchaction.cgi" method=post onSubmit="return validateSearchForm(this);">Type a screen name or choose one from the list. <p><input type="text" name="name" id="name" maxlen="25" onChange="this.form.list.selectedIndex=0"><br>'+sel+'</p><p><input type=submit value="Search"></p></form></div>');return g}function initSearchView
(count,status){pageType=PT_SEARCH;var name=data[AUTHOR_NAME_OFS];if(count>0&&name!=ADMIN_NAME){var id=data[AUTHOR_ID_OFS];var c=cb(ck);var newCookie="";var inserted=g;if(c){var a=c.split(SEARCH_PAIR_SEPARATOR);var ix=0;while(ix<a.length){if((name<=a[ix+1])&&!inserted){if(newCookie.length>0)newCookie+=SEARCH_PAIR_SEPARATOR;newCookie+=id+SEARCH_PAIR_SEPARATOR+name;inserted=q}if(id!=a[ix]){if(newCookie.length>0)newCookie+=SEARCH_PAIR_SEPARATOR;newCookie+=a[ix]+SEARCH_PAIR_SEPARATOR+a[ix+1]}ix+=2}}if(!inserted){if(newCookie.length>0)newCookie+=SEARCH_PAIR_SEPARATOR;newCookie+=id+SEARCH_PAIR_SEPARATOR+name}if(newCookie.length<4000)setCookie(ck,newCookie);}showHeader(cc("Search Results",""));showStatusBar(count+" messages found");showToolBar(gotoButton);showPageBody(searchResultsToString());if(status!=PH_STATUS)z(status);}function initThreadView
(mid,status){pageType=PT_THREAD;setLastPathCookies(gd);markIgnore();var msgID=ge();if(mid!=PH_MSGID)msgID=gj(mid);if(cj(msgID)||msgID==0)msgID=data[ID_OFS];var hdrTitle;if((data.length==RECORD_SIZE)){hdrTitle="Choose a Forum";status="The thread has been deleted.";topMsgID=0}else{defaultTopicID=data[TOPIC_ID_OFS];hdrTitle=cx(defaultTopicID);topMsgID=msgID;if(data[cd(topMsgID)+AUTHOR_ID_OFS]<0){if(data[AUTHOR_ID_OFS]<0)topMsgID=0;else topMsgID=data[ID_OFS];}}showHeader(cc(hdrTitle,""));showStatusBar(BROWSING_STATUS);if(status!=PH_STATUS)z(status);if(topMsgID==0)showToolBar(gotoButton);else{showThreadToolBar();initLinkOption();showThread(topMsgID,bodyVisible,q);if(linkOption==LINK_OPTION_MARK_VISITED){for(var ix=0;ix<data.length-RECORD_SIZE;ix+=RECORD_SIZE){location.href="#"+data[ix+ID_OFS]}location.href="#"+topMsgID;}}}function showPreview(form){if(!validatePostForm(form))return g;var previewWin=gf("","previewWin","");previewWin.document.writeln('<html>');previewWin.document.writeln('<head>');previewWin.document.writeln('<title>Post Preview</title>');previewWin.document.writeln('<link rel=stylesheet href="/mb/style.css" type="text/css">');previewWin.document.writeln('</head>');previewWin.document.writeln('<body class="msgPage">');ce(previewWin.document,hdrDLData,cc("Post Preview",""));ce(previewWin.document,staDLData,"Previewing");ce(previewWin.document,tbrDLData,' <input type="button" value="Close preview window" id="close" onclick="window.close();"> <input type="button" value="Post" id="post" onclick="window.opener.document.forms[\'postForm\'].submit();window.close();"> ');var ix=data.length-RECORD_SIZE;data[ix+SUBJECT_OFS]=form.subject.value;data[ix+BODY_OFS]=form.body.value;data[ix+TOPIC_ID_OFS]=form.topicID.value;ce(previewWin.document,bdyDLData,subthreadToString(-1,q,q));previewWin.document.writeln('</body>');previewWin.document.writeln('</html>');previewWin.document.close();}function initPreview(){pageType=PT_PREVIEW}function showLayer(dlArray,contents){var layer=cy(dlArray[dlArray[DL_OBJ_STR_IX_OFS]]);if(layer)writeToLayer(layer,contents);else ce(j,dlArray,contents);}function showHeader(header){showLayer(hdrDLData,header);}function showStatusBar(status){showLayer(staDLData,status);}function showToolBar(buttons){showLayer(tbrDLData,'<table><tr><td><form action="" name=actions id=actions>'+buttons+'</form></td></tr></table>');}function showPageBody(contents){showLayer(bdyDLData,contents);}function showIndexToolBar(){showToolBar(button("toggleRepliesVisible",repliesVisible?"Hide replies":"Show replies","onClickToggleRepliesVisible();",q)+ignoreButton+newThreadButton+noticesButton+searchButton+button("links","Links","return onClickLinks();",q)+gotoButton);}function showThreadToolBar(){var replyBtn=' <input type="button" value="Reply" id="reply" onclick="return onClickReply();"> ';var editBtn=' <input type="button" value="Edit" id="edit" onclick="return onClickEdit();"> ';var deleteBtn=' <input type="button" value="Delete" id="delete" onclick="return onClickDelete();"> ';var removeBtn=' <input type="button" value="Request removal" id="requestRemoval" onclick="return onClickRequestRemoval();"> ';var returnBtn=' <input type="button" value="Return" id="return" onclick="return onClickReturnToIndex();"> ';var showAllBtn=' <input type="button" value="Show all" id="showAll" onclick="return onClickShowAll();"> ';var vis="Hide";if(!bodyVisible)vis="Show";var visBtn=' <input type="button" value="'+vis+' body" id="toggleBodyVisible" onclick="return onClickToggleBodyVisible();"> ';showToolBar(replyBtn+editBtn+deleteBtn+removeBtn+ignoreButton+showAllBtn+visBtn+newThreadButton+noticesButton+searchButton+returnBtn+gotoButton);}var sdata;SD_ID_OFS=0;SD_TYPE_OFS=1;SD_DURATION_OFS=2;SD_EXPIRATION_OFS=3;SD_REASON_OFS=4;SD_COMMENT_OFS=5;SD_MSG_ID_OFS=6;SD_ADMIN_ID_OFS=7;SD_READ_OFS=8;SD_REC_SIZE=9;function validateDeletionNoticeForm(form){var checkedCnt=0;for(var ix=0;ix<sdata.length;ix+=SD_REC_SIZE){var id=sdata[ix+SD_ID_OFS];if(cz("form.id"+id+".checked")==q)checkedCnt++}if(checkedCnt==0){z("You have not checked any notices.");return g}else return q}function gk(){var str='<div class="form" id="deletionNoticeFormDiv"><form id="deletionNoticeForm" method=post action="'+cgibin+'mbmarkread.cgi">Please read and check unread deletion/suspension notices, then submit the form. You will not be allowed to post again, until all suspensions have expired and all notices have been read.';str+='<table><tr class="colHdrs"><th>Read</th><th>View</th><th>Type</th><th>Duration</th><th>Expires</th><th>Reason</th><th>Comment</th></tr>';for(var ix=0;ix<sdata.length;ix+=SD_REC_SIZE){var id=sdata[ix+SD_ID_OFS];var mid=sdata[ix+SD_MSG_ID_OFS];var deletion=sdata[ix+SD_TYPE_OFS]=='D';if(sdata[ix+SD_READ_OFS])str+='<tr><td>Read';else str+='<tr><td><input type="checkbox" name="id'+id+'" id="id'+id+'" value="'+id+'">';str+='</td><td><input type="radio" value="'+mid+'" name="view" id="view" onclick="onClickShowDeletedMsg('+mid+');">'+'</td><td>'+(deletion?'Deletion':'Suspension')+'</td><td>'+(deletion?'n/a':sdata[ix+SD_DURATION_OFS])+'</td><td>'+(deletion?'n/a':sdata[ix+SD_EXPIRATION_OFS])+'</td><td>'+sdata[ix+SD_REASON_OFS]+'</td><td>'+sdata[ix+SD_COMMENT_OFS]+'</td></tr>'}str+='<tr><td colspan="2"><input type=submit value="Submit"></td></tr><input type="hidden" name="returnPath" id="returnPath"></table></form></div>';return str}function initDeletionNoticesView
(admin){pageType=PT_DELETION_NOTICE;showHeader(cc("Deletion Notices",""));showStatusBar("");showToolBar(helpButton+gotoButton);topMsgID=data[ID_OFS];showPageBody(msgToString(topMsgID,q));ce(j,frmDLData,gk());var f="deletionNoticeForm";k[f].returnPath.value=cf();k[f].view[0].checked=q}
