var subject;

var comment;



function checkComment(form,error)

{

	subject = trimThis(form.subject.value);

	comment= trimThis(form.comment.value);



	if(subject == '' && comment=='')

	{

		return false;

	}

	

	return true;

}



function trimThis(it)

{  

	while(it.charAt(0) == (" ") )

	{

		it = it.substring(1);

	}

	while(it.charAt(it.length-1) == " " )

	{ 

		it = it.substring(0,it.length-1);

	}

	

	return it;

}
