function stopError() {return true;}//window.onerror=stopError;function _doWindow (u,width,height,name) {var newwin=window.open(u,name,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+width+',height='+height)}function  _doExtractCookie (name) {//get local db id cookie first if exist else try global onetmp_cookie='';tmp_cookievalue=_doGetCookie('onimod_'+name); if (tmp_cookievalue!=null) {tmp_cookie=tmp_cookievalue}tmp_cookievalue=_doGetCookie('onimod_'+onimod_dbid+'_'+name); if (tmp_cookievalue!=null) {tmp_cookie= tmp_cookievalue}if(tmp_cookie=='' | tmp_cookie==null) {return null} else {return tmp_cookie}}function  _doGetCookie (name) {var bites=document.cookie.split("; ");for (var i=0; i<bites.length;i++) {nextbite=bites[i].split("=");if (nextbite[0]==name) if (unescape(nextbite[1])!="undefined") {return unescape(nextbite[1])} else {return null}}return null;}function _doSetCookie (name,value,type,scope) {if (value==null | value=='null' | value=='') {return ''} else {var expdate=new Date(); expdate.setTime(expdate.getTime()+365*24*60*60*1000); if (scope!='') {name='onimod_'+onimod_dbid+'_'+name} else {name='onimod_'+name}if (type=='session') {document.cookie=name+'='+value+'; path=/'}else {document.cookie=name+'='+value+'; expires='+expdate.toGMTString()+'; path=/'}}}function delete_cookie (name, path) {var expiration_date=new Date();expiration_date.setYear(expiration_date.getYear ()-1);expiration_date=expiration_date.toGMTString();var cookie_string=escape (name)+"=; expires="+expiration_date;if (path!=null) {cookie_string+="; path="+path}document.cookie=cookie_string}function urlDecode(str){    str=str.replace(new RegExp('\\+','g'),' ');    return unescape(str);}function urlEncode(str){    str=escape(str);    str=str.replace(new RegExp('\\+','g'),'%2B');    return str.replace(new RegExp('%20','g'),'+');}function _dogetURLParameter (queryString,parameterName) {var parameterName=parameterName+"=";queryString=urlDecode(queryString);if (queryString.length>0) {begin=queryString.indexOf(parameterName);if (begin!=-1) {begin+=parameterName.length;end=queryString.indexOf ("&",begin);if (end==-1) {end=queryString.length};return unescape(queryString.substring(begin,end))};return "null"}}function _doGenerateRandom(n) {return randomnumber=Math.floor(Math.random()*n)}function strLeft(sourceStr, keyStr){return (sourceStr.indexOf(keyStr) == -1 | keyStr=='') ? '' : sourceStr.split(keyStr)[0];}function strRight(sourceStr, keyStr){idx = sourceStr.indexOf(keyStr);return (idx == -1 | keyStr=='') ? '' : sourceStr.substr(idx+ keyStr.length);}//logoff erase cookiesfunction _doLogoff() {_doSetCookie('username','no','session','');_doSetCookie('password','no','session','');delete_cookie('profilechecked','/');_doSetCookie('autologin','no','','');}//live previewfunction _UpdateContentPreview () {if ( _doExtractCookie ('disablelivepreview')!='YES') {var DivElement = document.getElementById("ContentPreview");if (document.forms[0].Content.value=='') {DivElement.innerHTML=''} else {	tmp_preview=document.forms[0].Content.value.replace(new RegExp("(<)", "g"),'&lt;')	tmp_preview=tmp_preview.replace(new RegExp("(>)", "g"),'&gt;')	DivElement.innerHTML = '<span class="doctitles">'+text_preview+'<br></span>' + hl(tmp_preview)}}}//quote parentfunction quote(mode) {if (mode!='') {var selectedText=document.selection ; if (selectedText.type=='Text') {var newRange = selectedText.createRange(); tmp_text=newRange.text} else {return true}}else {var tmp_text=onimod_parenttext}tmp_text=tmp_text.replace(new RegExp("(<BR>)", "g"),'\n')document.forms[0].Content.focus();document.forms[0].Content.value = document.forms[0].Content.value+'[QUOTE]'+tmp_text+'[/QUOTE]';_UpdateContentPreview ()}//Session and lastvisitif (_doExtractCookie('sessionid')==null) {_doSetCookie('sessionid', _doGenerateRandom(10000000000),'session','');if (_doExtractCookie('prelastvisit')==null) {_doSetCookie('lastvisit','','persist','1')} else {_doSetCookie('lastvisit',_doExtractCookie('prelastvisit'),'persist','1')}}if (window.onimod_serverdatetime!=null) {_doSetCookie('prelastvisit',onimod_serverdatetime,'persist','1')}function _doWebboardGoToList() {filter=_doExtractCookie('filter');if (filter==null) {nextpage='nofilter'} else {nextpage=filter}if (nextpage=='nofilter') {targetviewsuffix='';restrict=''} else {targetviewsuffix='Categorized';restrict='&RestrictToCategory='+nextpage}if (onimod_ui=='webboardactive') {targetview='WebBoardMainActive'} else {targetview='WebBoardMain'}if (nextpage!='') {document.location.href='/'+onimod_webdbname+'/'+targetview+targetviewsuffix+'?OpenView'+restrict}}function _doBlogGoToList() {document.location.href='/'+onimod_webdbname+'/BlogMain?OpenView'}function _doPicto(p, size) {if (size=='s') {s='12'} else {s='16'};if (p != 'blank') {document.write('&nbsp;<IMG SRC="/'+onimod_webdbname+'/picto'+p+'.gif" HEIGHT="'+s+'" WIDTH="'+s+'" '+' ALIGN=MIDDLE BORDER=0 ALT="'+p+'">&nbsp;')}else {document.write('&nbsp;<IMG SRC="/icons/ecblank.gif" HEIGHT=10 WIDTH=10 ALIGN=MIDDLE BORDER=0>')}}function _doPictoR(p, size) {if (size=='s') {s='12'} else {s='16'};if (p != 'blank') {return '&nbsp;<IMG SRC="/'+onimod_webdbname+'/picto'+p+'.gif" HEIGHT="'+s+'" WIDTH="'+s+'" '+' ALIGN=MIDDLE BORDER=0 ALT="'+p+'">&nbsp;'}else {return '&nbsp;<IMG SRC="/icons/ecblank.gif" HEIGHT=10 WIDTH=10 ALIGN=MIDDLE BORDER=0>'}}//alt rowsvar ialt=false;function _doAltRow(datedoc) { onimod_docnumber+=1;if (ialt) {document.write('<TR CLASS="viewrow1'+_doNSLVStyle(datedoc) +'">'); ialt=false;} else {document.write('<TR CLASS="viewrow2'+_doNSLVStyle(datedoc)+'">'); ialt=true;}}function _AltRow(datedoc) { onimod_docnumber+=1;if (ialt) { ialt=false; return '<TR CLASS="viewrow1'+_doNSLVStyle(datedoc) +'">';} else {ialt=true;return '<TR CLASS="viewrow2'+_doNSLVStyle(datedoc)+'">'; }}//new since last visitfunction _doNSLVStyle(date) { var tmpdatelastvisit=_doExtractCookie('lastvisit');if(tmpdatelastvisit<date |  tmpdatelastvisit==null |  tmpdatelastvisit=='') {return 'new'} else {return ''}}function _doCatCell(Category) { tmpbgcolor='';document.write('<TD'+tmpbgcolor+' TITLE="'+Category+'" CLASS="Category'+Category+'"><IMG SRC="/icons/ecblank.gif" width=1 height=1></TD>')}//topic lockingvar onimod_topicislocked='';// REPLYfunction _doReplyLink(unid) {if (onimod_topicislocked!='YES') {//return '<A HREF="/'+onimod_webdbname+'/ResponseWeb?OpenForm&ParentUNID='+unid+'"><IMG SRC="/'+onimod_webdbname+'/ui_newrespsmall.gif?OpenImageResource" ALT="'+text_replyhere+'" BORDER=0 ALIGN=CENTER></A>&nbsp;<A HREF="/'+onimod_webdbname+'/ResponseWeb?OpenForm&ParentUNID='+unid+'" CLASS="viewmain">'+text_replyhere+'</A>'}return '<A HREF="/'+onimod_webdbname+'/ResponseWeb?OpenForm&ParentUNID='+unid+'"><IMG SRC="/'+onimod_webdbname+'/ui_newrespsmall.gif?OpenImageResource" ALT="'+text_replyhere+'" TITLE="'+text_replyhere+'" BORDER=0 ALIGN=CENTER></A>&nbsp;<A HREF="/'+onimod_webdbname+'/ResponseWeb?OpenForm&ParentUNID='+unid+'" CLASS="viewmain"></A>'}else {return ''}}function _doReplyBlogLink(unid) {if (onimod_topicislocked!='YES') {return '<A HREF="/'+onimod_webdbname+'/ResponseWeb?OpenForm&ParentUNID='+unid+'" class="viewmaindate">'+text_reply+'</A>'} else {return ''}}//MODERATEfunction _doModerateLink(unid) {url_moderate='<A HREF="/'+onimod_webdbname+'/WebAdmin?OpenForm&id='+unid+'" CLASS="viewmain">';icon_moderate='<IMG SRC="/'+onimod_webdbname+'/ui_moderatesmall.gif?OpenImageResource" ALT="'+text_moderate+'" TITLE="'+text_moderate+'" BORDER=0 ALIGN=CENTER>';//if (_doExtractCookie('ismoderator')=='YES') {return url_moderate+icon_moderate+'</A>&nbsp;'+url_moderate+text_moderate+'</A> '} else {return ''}if (_doExtractCookie('ismoderator')=='YES') {return url_moderate+icon_moderate+'</A> '} else {return ''}}// EDITfunction _doEditLink(unid, username, responses) {url_edit='<A HREF="/'+onimod_webdbname+'/WebBoardSub/'+unid+'?EditDocument" CLASS="viewmain">';icon_edit='<IMG SRC="/'+onimod_webdbname+'/ui_editsmall.gif?OpenImageResource" ALT="'+text_edit+'" TITLE="'+text_edit+'" BORDER=0 ALIGN=CENTER>';if (onimod_authenticatedusername!='Anonymous' & onimod_authenticatedusername==username) {//	if (onimod_allowedition=='YES') {return url_edit+icon_edit+'</A>&nbsp;'+url_edit+text_edit+'</A> '}	if (onimod_allowedition=='YES') {return url_edit+icon_edit+'</A> '}	//	else if (onimod_allowedition=='NORESPONSE' & responses=='0') {return url_edit+icon_edit+'</A>&nbsp;'+url_edit+text_edit+'</A> '}	else if (onimod_allowedition=='NORESPONSE' & responses=='0') {return url_edit+icon_edit+'</A> '}	else {return ''}}else {return ''}}// DELETEfunction _doDeleteLink(unid, username, responses) {url_delete='<A HREF="/'+onimod_webdbname+'/DeleteTopic?OpenAgent&idtodelete='+unid+'" CLASS="viewmain">';icon_delete='<IMG SRC="/'+onimod_webdbname+'/ui_deletesmall.gif?OpenImageResource" ALT="'+text_delete+'" TITLE="'+text_delete+'" BORDER=0 ALIGN=CENTER>';if (onimod_authenticatedusername!='Anonymous' & onimod_authenticatedusername==username) {//	if (onimod_allowdeletion=='YES') {return url_delete+icon_delete+'</A>&nbsp;'+url_delete+text_delete+'</A> '}	if (onimod_allowdeletion=='YES') {return url_delete+icon_delete+'</A> '}//	else if (onimod_allowdeletion=='NORESPONSE' & responses=='0') {return url_delete+icon_delete+'</A>&nbsp;'+url_delete+text_delete+'</A> '}	else if (onimod_allowdeletion=='NORESPONSE' & responses=='0') {return url_delete+icon_delete+'</A> '}	else {return ''}}else {return ''}}//dates internatinalisation// thanks to Mike from notestips/mikezillafunction addZero(vNumber){return ((vNumber < 10) ? "0" : "") + vNumber} function _doDate(year, month, day,hour,min) {if (onimod_dateformat=='FR') {document.write(addZero(day)+onimod_dateseparator+addZero(month)+onimod_dateseparator+year)} else {document.write(addZero(month)+onimod_dateseparator+addZero(day)+onimod_dateseparator+year)}if (hour !='' & hour != null) {document.write(' '+addZero(hour)+onimod_timeseparator+addZero(min))}}function _doDate2(sdate) {year=sdate.substring(0,4);month=sdate.substring(4,6);day=sdate.substring(6,8);hour=sdate.substring(8,10);min=sdate.substring(10,12);sec=sdate.substring(12,14);if (onimod_dateformat=='FR') {tmpstring = day+onimod_dateseparator+month+onimod_dateseparator+year} else {tmpstring =  month+onimod_dateseparator+day+onimod_dateseparator+year}if (hour !='' & hour != null) {tmpstring+= ' '+hour+onimod_timeseparator+min}return tmpstring}// Server date format handlingfunction _ds(sdate,returnit) {year=sdate.substring(0,4);month=sdate.substring(4,6);day=sdate.substring(6,8);hour=sdate.substring(8,10);min=sdate.substring(10,12);sec=sdate.substring(12,14);if (onimod_dateformat=='FR') {tmpstring = day+onimod_dateseparator+month+onimod_dateseparator+year} else {tmpstring =  month+onimod_dateseparator+day+onimod_dateseparator+year}if (hour !='' & hour != null) {tmpstring+= ' '+hour+onimod_timeseparator+min}if (returnit=='1') {return tmpstring} else document.write(tmpstring)}//Skin managed browser side so we can cache betterfunction _doSkin() {var tmp_skin=_doExtractCookie('skin') ; if(tmp_skin==null) {tmp_skin='Default'}var tmp_lang=_doExtractCookie('lang') ; if (tmp_lang=='' | tmp_lang==null | tmp_lang=='null') {tmp_lang='us'}//set variablesdocument.write('<script>var onimod_ui=\''+_doExtractCookie('ui')+'\'</script>');document.write('<script>var onimod_skin=\''+tmp_skin+'\'</script>');//then load css and html from skinvar tmp_cssjsversion = '&ExpandSection='+onimod_cssjsversion;if (onimod_httpfilesystemmode=='YES') {	var tmp_libcommand='?Open';	var tmp_libprefix='';	if (_doExtractCookie('gzip')=='1') {var tmp_libpath='domBulletin/gzip'} else {var tmp_libpath='domBulletin'}}else {	var tmp_libpath=onimod_webdbname;	if (_doExtractCookie('gzip')=='1') {var tmp_libcommand='?OpenFileResource';var tmp_libprefix='gzip'} else {var tmp_libcommand='?OpenJavascriptLibrary';var tmp_libprefix=''}	}document.write('<script language="JavaScript" src="/'+ tmp_libpath+'/'+tmp_libprefix+'language_ressources_'+tmp_lang+'.js'+tmp_libcommand+tmp_cssjsversion+'" charset="UTF-8"><\/script>');document.write('<script language="JavaScript" src="/'+ tmp_libpath+'/'+tmp_libprefix+'footer.js'+tmp_libcommand+tmp_cssjsversion+'" charset="UTF-8"><\/SCRIPT>');document.write('<script language="JavaScript" src="/'+onimod_webdbname+'/Skins/'+tmp_skin+'?OpenDocument&Expand=HTMLBefore'+tmp_cssjsversion+'"><\/script>');document.write('<script language="JavaScript" src="/'+onimod_webdbname+'/Skins/'+tmp_skin+'?OpenDocument&Expand=HTMLAfter'+tmp_cssjsversion+'"><\/script>');document.write('<link rel="stylesheet" type="text/css" href="/'+onimod_webdbname+'/Skins/'+tmp_skin+'?OpenDocument&Expand=CSS'+tmp_cssjsversion+'">')}// Open User profilefunction _doProfile(username) {location.replace('/'+onimod_webdbname+'/(UserProfiles)/'+username+'?OpenDocument')}//Session trackingfunction _doSessionTracking() {var tmp_sessiontrackingid=_doExtractCookie('sessiontrackingid');var tmp_category=_doExtractCookie('filter'); //need to track category change for by category tracking in real timeif (window.onimod_username==null | window.onimod_username=='Anonymous' ) {tmp_username='&user='+_doExtractCookie('pseudo')} else {tmp_username='&login&user='+window.onimod_username}i = new Image();if (tmp_sessiontrackingid=='' | tmp_sessiontrackingid==null | tmp_sessiontrackingid=='null') {i.src = '/'+onimod_sessiontrackingdb+'/Session?CreateDocument'+tmp_username+'&filter='+ tmp_category+'&stid='+_doExtractCookie('sessionid')} //not yet a session tracking idelse {i.src = '/'+onimod_sessiontrackingdb+'/SessionsByID/'+tmp_sessiontrackingid+'?SaveDocument'+tmp_username+'&filter='+ tmp_category+'&stid='+tmp_sessiontrackingid}return i}if (onimod_sessiontrackingmode=='YES' & window.onimod_tracksession!=null) {_doSessionTracking()}// truncate stringfunction truncate (s,n) {if (s.length<=n) {return s} else {return s.substr(0,n)+'...'}}//show parentfunction _dSectionExpand(sec) {document.getElementById('cSec'+sec).style.display='none';document.getElementById('xSec'+sec).style.display='';}function _dSectionCollapse(sec) {document.getElementById('xSec'+sec).style.display='none';document.getElementById('cSec'+sec).style.display='';}//render smiley and hyperlinksvar mySmileyArray = new Array(":-)",":)",":-(",":(",";)","8)",":p",":grr:",":beer:",":king:",":book:",":contract:",":cry:",":devil:",":duel:",":fire:",":gun:",":joker:",":redcard:",":scary:",":shout:",":sick:",":wow:",":wall:",":bof:",":idea:",":what:",":sebbw:");var mySmileyImageArray = new Array("happy","happy","sad","sad","fun","cool","tong","angry","beer","king","book","contract","cry","devil","duel","fire","gun","joker","redcard","scary","shout","sick","wow","wall","bof","idea","what","sebbw");var myUBBArray= new Array('\n','[B]','[/B]','[I]','[/I]','[U]','[/U]','[S]','[/S]','[IMG]','[/IMG]','[QUOTE]','[/QUOTE]');var myUBBHTMLArray= new Array(' <BR>','<B>','</B>','<I>','</I>','<U>','</U>','<S>','</S>','<IMG SRC="','">','<table width=95% cellpadding=2 cellspacing=0 border=0><tr><td class="quoted">','</td></tr></table>');function UBBReplace(theString, oldChars, newChars){while (theString.indexOf(oldChars) > -1) {charPosition = theString.indexOf(oldChars) ; theString = '' + (theString.substring(0, charPosition) + newChars + theString.substring((charPosition + oldChars.length), theString.length))}return theString}function hl (originalString) {var returnstring='';if (onimod_ubb=='YES') {for (var i=0; i<myUBBArray.length; i++) {originalString=UBBReplace(originalString,myUBBArray[i],myUBBHTMLArray[i])}}var explode = originalString.split(' ');for (var loop=0; loop<explode.length;loop++)	{if (explode[loop].indexOf('http://')==0) {returnstring+='<A HREF="'+explode[loop].replace( '&nbsp;', '' )+'" target=_blank>'+explode[loop]+'</A> '}else if (explode[loop].indexOf('https://')==0) {returnstring+='<A HREF="'+explode[loop].replace( '&nbsp;', '' )+'" target=_blank>'+explode[loop]+'</A> '}else if (explode[loop].indexOf('ftp://')==0) {returnstring+='<A HREF="'+explode[loop].replace( '&nbsp;', '' )+'" target=_blank>'+explode[loop]+'</A> '}else if (explode[loop].indexOf('www.')==0) {returnstring+='<A HREF="http://'+explode[loop].replace('&nbsp;', '' )+'" target=_blank>'+explode[loop]+'</A> '}else {	if (onimod_smiley=='YES') {		for (var i=0; i<mySmileyArray.length; i++) {			if (explode[loop].indexOf(mySmileyArray[i])!=-1) {				explode[loop]=explode[loop].replace(mySmileyArray[i],'<img src="/'+onimod_webdbname+'/picto'+mySmileyImageArray[i]+'small.gif" alt="'+mySmileyImageArray[i]+'" border=0>')			}		}	}returnstring+= explode[loop]+' ';}}return returnstring+''; }// RSS function _doRSSLink(category) {if (onimod_rss=="YES") {document.write('<A HREF="/'+onimod_webdbname+'/rssfeed.xml?OpenPage&Category='+category+'" alt="'+text_rsscategory+'" title="'+text_rsscategory+'"><img src="rss.gif" border=0"></a>')}}function _doDbRSSLink() {if (onimod_rss=="YES") {document.write('<A HREF="/'+onimod_webdbname+'/rssfeed.xml?OpenPage" alt="'+text_rssall+'" title="'+text_rssall+'"><img src="/'+onimod_webdbname+'/rss.gif" border=0></a>')}}function _doTopicRSSLink(id) {if (onimod_rss=="YES") {return '<A HREF="/'+onimod_webdbname+'/rssfeed.xml?OpenPage&MainId='+id+'" alt="'+text_rsstopic+'" title="'+text_rsstopic+'"><img src="rss.gif" border=0></a>';}}//Webboard sub view html renderingspacer='<IMG SRC="/icons/ecblank.gif" WIDTH=1 HEIGHT=1>';spacer5='<IMG SRC="/icons/ecblank.gif" WIDTH=1 HEIGHT=5>';var htmlstreamprofile='';var htmlstreamprofileST='';var htmlstreamsignature='';//user profile in webboardfunction  VPro(username) {htmlstreamprofile='';htmlstreamprofileST='';htmlstreamsignature='';if(username!='Anonymous' & username!='') {document.write('<SCRIPT language="javascript" SRC="/'+onimod_webdbname+'/(UserProfilesJS)/'+username+'?OpenDocument"><\/SCRIPT>')}}function _VW(docid,docid2,lock,createdserver,sticky,picto,pseudo,userprofile,c1,c2,c3,subject,content,lrd,lrp,responsenumber,docunid) {if (lrd=='' | lrd ==null) {htmlstream=_AltRow(createdserver)} else {htmlstream=_AltRow(lrd)}htmlstream+='<TD TITLE="'+c1+'" CLASS="Category'+c1.replace(new RegExp("( )", "g"),'')+'"><IMG SRC="/icons/ecblank.gif" width=1 height=1></TD><TD>';if (lock=='YES') {htmlstream+=_doPictoR('lock')} else if (sticky=='YES') {htmlstream+=_doPictoR('sticky')} else if (picto=='' | picto=='0') {htmlstream+='&nbsp;'} else {htmlstream+=_doPictoR(picto)};var tmp_boardthreadmode=_doExtractCookie('boardthreadmode');if (tmp_boardthreadmode=='FLAT') {tmp_viewsuffix='Flat'} else {tmp_viewsuffix=''}tmpurl='/'+onimod_webdbname+'/WebBoardSub'+tmp_viewsuffix+'?OpenView&RestrictToCategory='+docid+'&Count=30&ExpandSection='+responsenumber;if (docunid!='' & docunid!= null) {tmpurl+='#'+docunid}htmlstream+='</TD><TD><A HREF="'+tmpurl+'" CLASS="viewmain">';if(sticky=='YES') {htmlstream+='<B>'+subject+'</B>'} else {htmlstream+=subject}htmlstream+='</A></TD><TD ALIGN=CENTER CLASS="viewmain">'+responsenumber;htmlstream+='</TD><TD CLASS="viewmainusername">'+ truncate(pseudo,30) +',<BR><SPAN CLASS="viewmaindate">'+_doDate2(createdserver)+'</SPAN></TD><TD CLASS="viewmainusername">';if (lrp!='') {htmlstream+=truncate(lrp,30) + ' <a CLASS="viewmainusername" href="WebBoardSub?OpenView&RestrictToCategory='+docid+'&Count=-1#'+docid2+'"><IMG SRC="/'+onimod_webdbname+'/icon_lastreply.gif" border=0 ALT="'+lrp+'"></a>'}if (lrp!='') {htmlstream+='<BR><SPAN CLASS="viewmaindate">'+_doDate2(lrd)+'</SPAN></TD></TR>'} else {htmlstream+='&nbsp;'};document.write(htmlstream)}function VSub(docid,lock,createdserver,threadindent,picto,pseudo,userprofile,c1,c2,c3,subject,content,lastmodified,lastmodifier,attachment,responses) {if (lock=='YES') {onimod_topicislocked='YES'};htmlstream=_AltRow(createdserver)+'<TD VALIGN=TOP>'+'<A NAME="'+docid+'"></A>';if (picto=='' | picto=='0') {htmlstream+='&nbsp;'} else if (lock=='YES') {htmlstream+=_doPictoR('lock')} else {htmlstream+=_doPictoR(picto)};htmlstream+='<TD ALIGN=LEFT VALIGN=TOP CLASS="viewmain">';if(userprofile!='Anonymous') {htmlstream+=htmlstreamprofileST} else {htmlstream+=truncate(pseudo,30)};htmlstream+='<SPAN CLASS="viewsmall">'+htmlstreamprofile+'</SPAN>';htmlstream+='</TD><TD ALIGN=LEFT VALIGN=TOP>'+'<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=2 BORDER=0><TR VALIGN=TOP><TD WIDTH=1>'+spacer+'</TD><TD WIDTH=85% CLASS="viewmain"><B>'+subject+'</B>&nbsp;';if(threadindent=='') {htmlstream+=_doTopicRSSLink(docid)}htmlstream+='</TD><TD NOWRAP WIDTH=25% ALIGN=RIGHT CLASS="viewmain">'+ _doModerateLink(docid)+ _doDeleteLink(docid,userprofile,responses)+_doEditLink(docid,userprofile,responses)+_doReplyLink(docid)+'</TD></TR><TR><TD>'+spacer+'</TD><TD WIDTH=100% BGCOLOR=999999 COLSPAN=2>'+spacer+'</TD></TR><TR><TD>'+threadindent+spacer+'</TD><TD COLSPAN=2><SPAN CLASS="viewmaindate">';htmlstream+=_doDate2(createdserver);if (c1!='') {htmlstream+=' - '+c1}; if (c2!='') {htmlstream+=' - '+c2}; if (c3!='') {htmlstream+=' - '+c3};if(lastmodified!='') {htmlstream+='<BR>'+text_lastediteddate+' ' + _doDate2(lastmodified)+' '+text_lasteditedby+' '+lastmodifier}htmlstream+='</SPAN><BR>'+spacer5+'<TABLE WIDTH=100% CELLPADDING=1 CELLSPACING=0 BORDER=0><TR VALIGN=TOP>'+'<TD WIDTH=1 STYLE="border-right: 1px dotted #A9A9A9">'+spacer+'</TD><TD WIDTH=1 CLASS="viewmain">'+spacer+'</TD><TD WIDTH=100% CLASS="viewmain">';htmlstream+=hl(content+'&nbsp;');//signatureif (htmlstreamsignature!='' & onimod_signature=='YES') {htmlstream+='<BR><BR><SPAN CLASS="signature">' +htmlstreamsignature+'</SPAN><BR><BR>'}if (attachment!='') {htmlstream+='<br><img src="/'+onimod_webdbname+'/icon_attach.gif'+'"> <a href="/'+onimod_webdbname+'/0/'+docid+'/$File/'+strLeft(attachment,"#")+'" target=_blank>'+strLeft(attachment,"#")+' ('+strRight(attachment,"#")+' ko)</a><br>'}htmlstream+='</TD></TR></TABLE></TD></TR></TABLE></TD></TR></TD></TR>';document.write(htmlstream)}function VSubPoll(docid,lock,createdserver,threadindent,picto,pseudo,userprofile,c1,c2,c3,subject,content,lastmodified,lastmodifier,attachment,responses) {if (lock=='YES') {onimod_topicislocked='YES'};htmlstream=_AltRow(createdserver)+'<TD VALIGN=TOP>'+'<A NAME="'+docid+'"></A>';if (picto=='' | picto=='0') {htmlstream+='&nbsp;'} else if (lock=='YES') {htmlstream+=_doPictoR('lock')} else {htmlstream+=_doPictoR(picto)};htmlstream+='<TD ALIGN=LEFT VALIGN=TOP CLASS="viewmain">';if(userprofile!='Anonymous') {htmlstream+=htmlstreamprofileST} else {htmlstream+=truncate(pseudo,30)};htmlstream+='<SPAN CLASS="viewsmall">'+htmlstreamprofile+'</SPAN>';htmlstream+='</TD><TD ALIGN=LEFT VALIGN=TOP>'+'<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=2 BORDER=0><TR VALIGN=TOP><TD WIDTH=1>'+spacer+'</TD><TD WIDTH=85% CLASS="viewmain"><B>'+subject+'</B></TD><TD NOWRAP WIDTH=25% ALIGN=RIGHT CLASS="viewmain">'+ _doModerateLink(docid)+ _doDeleteLink(docid,userprofile,responses)+_doEditLink(docid,userprofile,responses)+_doReplyLink(docid)+'</TD></TR><TR><TD>'+spacer+'</TD><TD WIDTH=100% BGCOLOR=999999 COLSPAN=2>'+spacer+'</TD></TR><TR><TD>'+threadindent+spacer+'</TD><TD COLSPAN=2><SPAN CLASS="viewmaindate">';htmlstream+=_doDate2(createdserver);if (c1!='') {htmlstream+=' - '+c1}; if (c2!='') {htmlstream+=' - '+c2}; if (c3!='') {htmlstream+=' - '+c3};if(lastmodified!='') {htmlstream+='<BR>'+text_lastediteddate+' ' + _doDate2(lastmodified)+' '+text_lasteditedby+' '+lastmodifier}htmlstream+='</SPAN><BR>'+spacer5+'<TABLE WIDTH=100% CELLPADDING=1 CELLSPACING=0 BORDER=0><TR VALIGN=TOP>'+'<TD WIDTH=1 STYLE="border-right: 1px dotted #A9A9A9">'+spacer+'</TD><TD WIDTH=1 CLASS="viewmain">'+spacer+'</TD><TD WIDTH=100% CLASS="viewmain">';htmlstream+=hl(content+'&nbsp;');//signatureif (htmlstreamsignature!='' & onimod_signature=='YES') {htmlstream+='<BR><BR><SPAN CLASS="signature">' +htmlstreamsignature+'</SPAN><BR><BR>'}//poll herehtmlstream+='<BR><IFRAME SRC="/'+onimod_webdbname+'/PollVoteWeb?OpenForm&pollid='+docid+'&css='+_doNSLVStyle(createdserver)+'" FRAMEBORDER=0 WIDTH=100% HEIGHT=200></IFRAME>';//end pollif (attachment!='') {htmlstream+='<br><img src="/'+onimod_webdbname+'/icon_attach.gif'+'"> <a href="/'+onimod_webdbname+'/0/'+docid+'/$File/'+strLeft(attachment,"#")+'" target=_blank>'+strLeft(attachment,"#")+' ('+strRight(attachment,"#")+' ko)</a><br>'}htmlstream+='</TD></TR></TABLE></TD></TR></TABLE></TD></TR></TD></TR>';document.write(htmlstream)}//blog mainfunction _VB(docid,docid2,lock,createdserver,sticky,picto,pseudo,userprofile,c1,c2,c3,subject,content,lrd,lrp,responsenumber,docunid,content,attachment,ispoll) {tmpurl='/'+onimod_webdbname+'/BlogSub?OpenView&RestrictToCategory='+docid+'&Count=30&ExpandSection='+responsenumber;htmlstream='<TABLE WIDTH=100% CELLPADDING=3 CELLSPACING=3 CLASS="viewtablebackground"><TR CLASS="viewrow1new" HEIGHT=20 VALIGN=MIDDLE><TD><A HREF="'+tmpurl+'" CLASS="doctitle">';htmlstream+='<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0><TR VALIGN=MIDDLE>'htmlstream+='<TD CLASS="viewrow1new"><A HREF="'+tmpurl+'">'+subject+'</A><span class="viewmaindate">&nbsp;&nbsp;(#'+responsenumber+' - '+_doReplyBlogLink(docid)+')</span></TD><TD ALIGN=RIGHT CLASS="viewrow1new"><span class="viewmaindate">';if (c1!='') {htmlstream+=c1};if (c2!='') {htmlstream+=' - '+c2};if (c3!='') {htmlstream+=' - '+c3};htmlstream+='&nbsp;</span></TD></TR></TABLE>';htmlstream+='</TD></TR><TR CLASS="viewrow2new"><TD><img src="/icons/ecblank.gif" width=1 height=5><BR>';htmlstream+='<SPAN CLASS="doccontent">'+hl(content+'&nbsp;');//signatureif (htmlstreamsignature!='' & onimod_signature=='YES') {htmlstream+='<BR><BR><SPAN CLASS="signature">' +htmlstreamsignature+'</SPAN><BR><BR>'}htmlstream+='</SPAN>';//poll hereif (ispoll) {htmlstream+='<BR><IFRAME SRC="/'+onimod_webdbname+'/PollVoteWeb?OpenForm&pollid='+docid+'&css=new" FRAMEBORDER=0 WIDTH=100% HEIGHT=200></IFRAME>';}//end pollif (attachment!='') {htmlstream+='<br><img src="/'+onimod_webdbname+'/icon_attach.gif'+'"> <a href="/'+onimod_webdbname+'/0/'+docid+'/$File/'+strLeft(attachment,"#")+'" target=_blank>'+strLeft(attachment,"#")+' ('+strRight(attachment,"#")+' ko)</a>'}htmlstream+='<BR><img src="/icons/ecblank.gif" width=1 height=5></TD></TR><TR><TD CLASS="viewrow1new"><SPAN CLASS="viewmaindate">'+pseudo+' - '+_doDate2(createdserver)htmlstream+='</SPAN></TD></TR></TABLE><img src="/icons/ecblank.gif" width=1 height=10>';document.write(htmlstream)}//blog subfunction VBSub(docid,lock,createdserver,threadindent,picto,pseudo,userprofile,c1,c2,c3,subject,content,lastmodified,lastmodifier,attachment, ispoll) {if (threadindent=='') {htmlstream='<TABLE WIDTH=100% CELLPADDING=3 CELLSPACING=3 CLASS="viewtablebackground">';}else {htmlstream='<TABLE WIDTH=100% CELLPADDING=3 CELLSPACING=3>';}htmlstream+='<TR CLASS="viewrow1new" HEIGHT=20 VALIGN=MIDDLE><TD>';htmlstream+='<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0><TR VALIGN=MIDDLE><TD CLASS="viewrow1new">'+subjecthtmlstream+='</TD><TD ALIGN=RIGHT CLASS="viewrow1new"><span class="viewmaindate">';if (threadindent=='') {if (c1!='') {htmlstream+=c1};if (c2!='') {htmlstream+=' - '+c2};if (c3!='') {htmlstream+=' - '+c3}} else {htmlstream+='&nbsp;'}htmlstream+='</span></TD></TR></TABLE></TD></TR>';if (threadindent=='') {htmlstream+='<TR CLASS="viewrow2new"><TD>'} else {htmlstream+='<TR><TD>'}htmlstream+='<img src="/icons/ecblank.gif" width=1 height=5><br><SPAN CLASS="doccontent">'+hl(content+'&nbsp;')+'<BR><img src="/icons/ecblank.gif" width=1 height=5>';//signatureif (htmlstreamsignature!='' & onimod_signature=='YES') {htmlstream+='<BR><BR><SPAN CLASS="signature">' +htmlstreamsignature+'</SPAN><BR><BR>'}htmlstream+='</SPAN>';//poll hereif (ispoll) {htmlstream+='<BR><IFRAME SRC="/'+onimod_webdbname+'/PollVoteWeb?OpenForm&pollid='+docid+'&css='+_doNSLVStyle(lastmodified)+'" FRAMEBORDER=0 WIDTH=100% HEIGHT=200></IFRAME>';}//end pollif (attachment!='') {htmlstream+='<br><img src="/'+onimod_webdbname+'/icon_attach.gif'+'"> <a href="/'+onimod_webdbname+'/0/'+docid+'/$File/'+strLeft(attachment,"#")+'" target=_blank>'+strLeft(attachment,"#")+' ('+strRight(attachment,"#")+' ko)</a><br>'}if (threadindent=='') {htmlstream+='</TD></TR><TR><TD CLASS="viewrow1new"><SPAN CLASS="viewmaindate">';}else {htmlstream+='</TD></TR><TR><TD><SPAN CLASS="viewmaindate">';}htmlstream+=pseudo+' - '+_doDate2(createdserver);htmlstream+='</SPAN></TD></TR></TABLE>';if (threadindent!='') {htmlstream+='<CENTER><HR WIDTH=99% SIZE=1></CENTER>';}htmlstream+='<img src="/icons/ecblank.gif" width=1 height=10>';document.write(htmlstream)}//weboard index pagesfunction _wi2(createdserver,subject,pseudo,docid,maindocid) {htmlstream=_ds(createdserver,1);htmlstream+='<br>'+subject+'<a href="WebBoardSub?OpenView&RestrictToCategory='+maindocid+'&Count=-1#'+docid+'"><IMG SRC="/'+onimod_webdbname+'/icon_lastreply.gif" border=0 ALT="'+subject+'"></A><br>'+pseudo;document.write(htmlstream);}