
function chpost() {
	 if ( document.forms[0].author.value == '' || document.forms[0].subject.value == '' || document.forms[0].body.value == '' || document.forms[0].email.value == '') {
			alert('Jokin kenttä täyttämättä.');
	} else {
		document.forms[0].post.value = 1;
		document.forms[0].submit();
	}
}

function quote() {
	document.forms[0].body.value=document.forms[0].body.value + document.forms[0].hide.value; 
	document.forms[0].hide.value='';
}

