// JavaScript Document
function Trim(str){	
	while(str.charAt(0) == (" ") )	{	
		str = str.substring(1);	
	}	
	while(str.charAt(str.length-1) == " " )	{	
		str = str.substring(0,str.length-1);	
	}	
	return str;
}



function check(){
	namanya=Trim(document.formshout.name.value);
	katanya=Trim(document.formshout.yousay.value);
	if (namanya=='' || katanya=='') {
		alert("Formulir Pesan Singkat belum terisi dengan benar !");
	} else {
		document.formshout.name.value=namanya;
		cleartext();
	}
}


function cleartext() {
document.formshout.submit();

document.formshout.name.value='';
document.formshout.email.value='';
document.formshout.yousay.value='';
}


function addS(textToAdd)
{
document.formshout.mem_avatar.value = textToAdd;}



-->

