///////////////////////////////////
//  Disable Double Posting Code  //
//   By Chocolate570, 02/27/07   //
//Optomized for IE, FF, and Opera//
//         Do Not Edit!          //
///////////////////////////////////
function disDubPost() {
	curPoster=$("#top_info").children("[a:eq(0)]").text();
	curPoster=curPoster.split("[")[0];
	mod=($("a[@href*=/report]").length>0) ? "yes":"no";
	admin=($("a[@href*=/admin]").length>0) ? "yes":"no";
	if(window.location.href.match(/\/post\//i)) { 
		x=$("h2.special").each(function() { 
			if($(this).html().match(/Last 5 Posts/gi)) { 
				lastPoster=$(this).next().children("tbody").children("tr:eq(0)").children(".c_desc:eq(0)").html();		
				lastPoster=lastPoster.split(/\<small\>/i)[0].split(" ")[0];
				if(curPoster==lastPoster){
					if(!passMod&&mod=="yes"&&admin=="no") {
						$("textarea[@name=post]").attr("readOnly",true);					
						$("button:contains(Post Reply)").attr("disabled","disabled").html("Double Posting is Disabled");
					}					if(!passAdmin&&admin=="yes") {
						$("textarea[@name=post]").attr("readOnly",true);					
						$("button:contains(Post Reply)").attr("disabled","disabled").html("Double Posting is Disabled");
					}
				}
			} 
		});
	}
}