// JavaScript Document
function trim( str )
{
	for( lspace=0 ; lspace<str.length ; lspace++ )
		if( str.charAt(lspace)!=' ' )
			break;
	str = str.substring( lspace );
	for( rspace=str.length-1 ; rspace>=0 ; rspace-- )
		if( str.charAt(rspace)!=' ' )
			break;
	str = str.substring( 0, rspace+1 );
	return str;
}
function check()
{
	if(trim(form2.refNo.value)=="")
	{
		alert("Please fill in the Form Reference no to view the form status.");	
		form2.refNo.value = "";
		form2.refNo.focus();
		return false;
	}
	return true;
}
