function checkvalues()
{
	var this_form;
	this_form ="document.frm1";
    
    document.frm1.phoneno.value=shTrim(document.frm1.phoneno.value);
    
    if(shIsNull(document.frm1.phoneno.value))
    {
        shSelectField(document.frm1.phoneno,"Enter the phone number");
		document.frm1.phoneno.value=" ";
		document.frm1.phoneno.focus();
		return false;
    }
	else if(!shIsNull(document.frm1.phoneno.value))
	{
		if(!shIsNumber(document.frm1.phoneno.value))
		{
			shSelectField(document.frm1.phoneno,"Phone Number should be a Numeric value.");
			document.frm1.phoneno.value=" ";
			document.frm1.phoneno.focus();
			return false;
		}
		if( document.frm1.phoneno.value.length < 4 )
		{
			shSelectField(document.frm1.phoneno,"Value in the Phone Number field is not correct ");
			document.frm1.phoneno.value=" ";
			document.frm1.phoneno.focus();
			return false;
		}
		if( document.frm1.phoneno.value.length > 8)
		{
			shSelectField(document.frm1.phoneno,"Value in the Phone Number field is not correct ");
			document.frm1.phoneno.value=" ";
			document.frm1.phoneno.focus();
			return false;
		}
		
	}
	else
	   return true;
}		
