function strTrim(st)
{
var tmp=st;
	while(tmp.charAt(0)==" ")
	{
		tmp=tmp.slice(1);
	}
	while(tmp.charAt(tmp.length - 1)== " ")
	{
		tmp=tmp.slice(0, tmp.length - 1);
	}
	return tmp;	
}
	
function validKeyword(kw)
{
var keyword = strTrim(kw);
	
	if(keyword.length==0)
	{
		//STRING LITERAL//
		alert('Please enter your keyword');
		return false;
	}
	else
		if(keyword.length<2)
		{
			//STRING LITERAL//
			alert('Your keyword must be a minimum of 2 characters');
			return false;
		}
		else
			if(keyword.length>250)
			{
				//STRING LITERAL//
				alert('Your keyword must be less than 250 characters ('+keyword.length+')');
				return false;
			}

	return true;
}