

 

	function leave_comment(include_file, div_id, comment_txt, name_txt)
	{ 
	
		
		var banned_words = new Array();
		  	banned_words[0] = "fuck";
  			banned_words[1] = "pussy";
  			banned_words[2] = "cock";
  			banned_words[3] = "milfs";
  			banned_words[4] = "xxx";
  			banned_words[5] = "cunt";
  			banned_words[6] = "cum";
  			banned_words[7] = "ass";
  			banned_words[8] = "fuck,";
	
	
 		
	  
			if (comment_txt == '' || comment_txt == ' ' || comment_txt == '  ')
			{
				alert('please type a comment');
				return
			}
		
			if (name_txt == '' || name_txt == ' ' || name_txt == '  ')
			{
				alert('please type a name');
				return
			}
		
		
		
		
		var req = null; 
		document.getElementById(div_id).innerHTML="Started...";
 
		if (window.XMLHttpRequest)
		{req = new XMLHttpRequest();} 
		else if (window.ActiveXObject) 
		{
			try {req = new ActiveXObject("Msxml2.XMLHTTP");} 
			catch (e)
			{try {req = new ActiveXObject("Microsoft.XMLHTTP");} catch (e) {}}
        }
		req.onreadystatechange = function()
		{ 
			document.getElementById(div_id).innerHTML="Wait server...";
			if(req.readyState == 4)
			{
				if(req.status == 200)
				{
					document.getElementById(div_id).innerHTML = req.responseText;
				}	
				else	
				{document.getElementById(div_id).innerHTML = "Error: returned status code " + req.status + " " + req.statusText;}	
			} 
		}; 
		req.open("GET", include_file, true); 
		req.send(null);
	} 
	
/////////////////// 


	function SwapInclude(include_file, div_id)
	{ 

		var req = null; 
		document.getElementById(div_id).innerHTML="Started...";
 
		if (window.XMLHttpRequest)
		{req = new XMLHttpRequest();} 
		else if (window.ActiveXObject) 
		{
			try {req = new ActiveXObject("Msxml2.XMLHTTP");} 
			catch (e)
			{try {req = new ActiveXObject("Microsoft.XMLHTTP");} catch (e) {}}
        }
		req.onreadystatechange = function()
		{ 
			document.getElementById(div_id).innerHTML="Wait server...";
			if(req.readyState == 4)
			{
				if(req.status == 200)
				{
					//document.ajax.dyn.value="Received:" + req.responseText;	
					document.getElementById(div_id).innerHTML = req.responseText;
				}	
				else	
				{document.getElementById(div_id).innerHTML = "Error: returned status code " + req.status + " " + req.statusText;}	
			} 
		}; 
		req.open("GET", include_file, true); 
		req.send(null);
	} 