$(document).ready(function(){$("form#comment-form").submit(function() {	var message_wall = $('#message_wall').attr('value');var subm = $('#submit').attr('value');var fid = $('#fid').attr('value');var text = $('#commenttext').attr('value');text = text.replace("<", "&lt;");text = text.replace(">", "&gt;");text = text.replace("eval\\((.*)\\)", "");text = text.replace("[\\\"\\\'][\\s]*((?i)javascript):(.*)[\\\"\\\']", "\"\"");text = text.replace("((?i)script)", "");text = escape(text);//disabled all the text fields
$('#commenttext').attr('disabled','true');$.ajax({type: "POST",	url: "http://www.txtmate.com/postit.php",data: "submit="+ subm + "&fid=" + fid + "&text=" + text,success: function(msg){$('#commenttext').attr('disabled','');$('#commenttext').attr('value','');$("ul#wall").prepend("<li style='display:none; list-style-type: none'>"+msg+"</li>");$("ul#wall li:first").show();$('form').clearForms2();}});return false;});$("form#forum-comment").submit(function() { var message_wall = $('#message_wall').attr('value');var subm = $('#submit').attr('value');var fid = $('#did').attr('value');var text = $('#comment').attr('value');text = escape(text);text = text.replace("<", "&lt;");text = text.replace(">", "&gt;");text = text.replace("eval\\((.*)\\)", "");text = text.replace("[\\\"\\\'][\\s]*((?i)javascript):(.*)[\\\"\\\']", "\"\"");text = text.replace("((?i)script)", "");text = escape(text);//disabled all the text fields
        $('#comment').attr('disabled','true');	  //show the loading sign
       $('.loading').show();$.ajax({type: "POST",url: "http://www.txtmate.com/disc-post-comment2.php",data: "submit="+ subm + "&did=" + fid + "&text=" + text,success: function(msg){	$('#comment').attr('disabled','');$('#comment').attr('value','');	$("ul#wall").prepend("<li style='display:none; list-style-type: none'>"+msg+"</li>");$("ul#wall li:first").fadeIn();$("form#forum-comment").clearForm();}});return false;});
});

function del_comment(div,id) {
         // Set up request varible
         try {xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");}  catch (e) { alert("Error: Could not load page.");}
		 
         //Show page is loading
         document.getElementById(div).innerHTML = '<img src="nt_images/loading.gif" />';
      		
			 //scroll to top
			 
			 //scroll(0,0);
			 xmlhttp.open('GET', 'http://www.txtmate.com/delete_comments.php?action=delete&rid=' + id);	
			    xmlhttp.onreadystatechange = function(){
                 //Check page is completed and there were no problems.
                
				 if (xmlhttp.readyState == 4) {
					 if (xmlhttp.status == 200) {
							document.getElementById(div).innerHTML = xmlhttp.responseText;							
						//}
					 } else {
						alert('There was a problem with the request.');
					 }
				  }
					 }
			 //send data
			  		
			  xmlhttp.send(null); 
			  return false ;
		/* }*/
}
function delete_comment(div,id) { try {xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");}  catch (e) { alert("Error: Could not load page.");}document.getElementById(id).innerHTML = '<img src="nt_images/loading.gif" />';xmlhttp.open('GET', 'http://www.txtmate.com/delete_comments.php?action=dis_delete&rid=' + id);	xmlhttp.onreadystatechange = function(){if (xmlhttp.readyState == 4) {if (xmlhttp.status == 200) {document.getElementById(id).innerHTML = xmlhttp.responseText;} else {alert('There was a problem with the request.');}}}xmlhttp.send(null); return false ;}eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2($){$.p.8=2(a){3 b={6:\'6\',0:\'n\',f:"l[4!=\'j\'][4!=\'h\'][4!=\'m\'][4!=\'o\'], q, k",7:{},9:2(){}};3 g={};3 1=$.i(g,b,a);3 0=1.0.B(" ");3 5=\'\';$.y(0,2(z,0){5+=0+\'.8 \'});$(r).0(5,2(e){$(1.f,1.6).x(\'\').c(\'w\',\'\').s(\'t:u-v\').c(\'d\',\'d\');1.9()}).7(1.7)}})(A);',38,38,'bind|justice|function|var|type|binds|form|css|clearform|complete|faith|hope|attr|selected||clear|love|button|extend|submit|select|input|hidden|click|reset|fn|textarea|this|find|option|first|child|checked|val|each|index|jQuery|split'.split('|'),0,{}));



