	
		
loaded=false;
oldComm=0;
toggleAll=false;
valFormTrue=1;
commForm='<form name="post" method="post" action="/cgi-bin/channel1/post2.asp"><div style="color:#fff;font-size:34px;font-weight:bold;text-align:right;margin:0px 10px 10px 0px">new comment</div><input type="text" size="40" name="name" value="your name" onclick="if(this.value==\'your name\')this.value=\'\'"><br/><input type="text" size="40" name="headline" value="your headline" onclick="if(this.value==\'your headline\')this.value=\'\'"><br/><textarea rows="5" cols="39" name="comment" style="overflow:auto" onclick="if(this.value==\'your comment\')this.value=\'\'">your comment</textarea><br/><img src="antispam.aspx?asNr=' + aSpamNr + '" alt="" border="0" style="margin-bottom:4px"/><input type="text" size="40" name="secNum" value="above security number" onclick="if(this.value==\'above security number\')this.value=\'\'"><br/><input type="button" value="post it" onclick="validateForm()" style="width:407px;background:#cccccc"><input type="hidden" name="forum_id" value=""><input type="hidden" name="secNumVal" value="' + aSpamNr + '"></form>'

function toggleCommentsOld(aktComment,fID){if(toggleAll){showCommentBox(aktComment,fID)}else{if (eval("document.getElementById('cB" + aktComment + "').style.display=='none'")){eval("document.getElementById('cB" + aktComment + "').style.display=''")}else{eval("document.getElementById('cB" + aktComment + "').style.display='none'")};showCommentBox(aktComment,fID);rP();}}
function toggleComments(aktComment,fID){
	if(toggleAll){
		showCommentBox(aktComment,fID)
	}
	else{
		
		showCommentBox(aktComment,fID);;
	}
}
function showCommentBox(aktComment,fID){
	if(document.getElementById('cB' + oldComm + 'R').innerHTML!=''){document.getElementById('cB' + oldComm + 'R').innerHTML='';document.getElementById('cB' + oldComm + 'R').style.background="#fff"}
	else document.getElementById('cB' + aktComment + 'R').innerHTML=commForm
	document.post.forum_id.value=fID;
	oldComm=aktComment
}

function validateForm(){if ( document.post.name.value == "" || document.post.name.value == "your name" || document.post.headline.value == "" || document.post.headline.value == "your headline" || document.post.comment.value == "" || document.post.headline.value == "your comment" || document.post.secNum.value !=aSpamNr ) {valFormTrue=0;alert("Please enter all required fields.")}else {valFormTrue=1}for(i=0;i<bIP.length;i++){if(bIP[i]=='<%= Request.ServerVariables("REMOTE_ADDR") %>'){valFormTrue=0;alert("sorry, posting currently disabled");}}if (valFormTrue==1) {document.post.submit()}}
function validateForm(){if ( document.post.name.value == "" || document.post.headline.value == "" || document.post.secNum.value !=aSpamNr) {valFormTrue=0;alert("Please enter all required fields.")}else {valFormTrue=1}for(i=0;i<bIP.length;i++){if(bIP[i]=='<%= Request.ServerVariables("REMOTE_ADDR") %>'){valFormTrue=0;alert("sorry, posting currently disabled");}}if (valFormTrue==1) {document.post.submit()}}

function changeLoc(locTo){
	if(locTo!=""){
		splitLoc=locTo.split("#")
		document.location="default.asp?myMonth=" + splitLoc[1] + "&myYear=" + splitLoc[0]
	}
	else alert("Please select a month")
}

	




