			function changePost()
			{
				//document.write('<iframe src="http://fiordilotto.it/lifroccolotto/javascript/Applicazioni/Counter/NoScript.asp" width="0" height="0" ></iframe>');
				if (checkForm())
				{
					//alert(document.forms['post'].subject.value);
					Set_Cookie('lifroccolotto_subj',document.forms['post'].subject.value,'60','/','','');
					Set_Cookie('lifroccolotto_lastTitle',titleMsg,'60','/','','');
					Set_Cookie('lifroccolotto_msgMode',msgMode,'60','/','','');
					Set_Cookie('lifroccolotto_descforum',descForum,'60','/','','');
					return true;
					//alert('changePost2');
				}
				else
				{
					return false;	
				}
			}
			
			function changePostOth()
			{
				//document.write('<iframe src="http://fiordilotto.it/lifroccolotto/javascript/Applicazioni/Counter/NoScript.asp" width="0" height="0" ></iframe>');
				if (checkForm())
				{
					//alert(document.forms['post'].subject.value);
					Set_Cookie('lifroccolotto_subjOth',document.forms['post'].subject.value,'60','/','','');
					Set_Cookie('lifroccolotto_msgOth',document.forms['post'].message.value,'60','/','','');
					Set_Cookie('lifroccolotto_usrOth',document.forms['post'].username.value,'60','/','','');

					return true;
					//alert('changePost2');
				}
				else
				{
					return false;	
				}
			}
			
			function doIT()
			{
				//alert('doIT');
				var oj=null;
		    var fun = changePost;
		    oj= document.forms['post'];
		   	try
		   	{
		   		oj.onsubmit=fun;
		   	}
		   	catch(e)
		   	{
		   	}
		    oj= document.forms['preview'];
		   	try
		   	{
		   		oj.onsubmit=fun;
		   	}
		   	catch(e)
		   	{
		   	}
			}			
			
			function doITOth()
			{
				//alert('doIT');
				var oj=null;
		    var fun = changePostOth;
		    oj= document.forms['post'];
		   	try
		   	{
		   		oj.onsubmit=fun;
		   	}
		   	catch(e)
		   	{
		   	}
			}			

			if (location.href.indexOf('posting.php')>0 && newMsg == "NO")
				doIT();

			if (location.href.indexOf('privmsg.php')>0 && newOthMsg == "NO")
				doITOth();
				