<!-- Hide
function onError(form_object, input_object, object_value, error_message)
    {
	alert(error_message);
       	return false;	
    }
function hasValue(obj, obj_type)
    {
    if (obj_type == "TEXT" || obj_type == "PASSWORD" || obj_type == "TEXTAREA")
	{
    	if (obj.value.length == 0) 
      		return false;
    	else 
      		return true;
    	}
	}
	
function validateForm(chkthis)
    {
    if  (!hasValue(chkthis.person, "TEXT" )) 
        {
        if  (!onError(chkthis, chkthis.person, chkthis.person.value, "Please type in your name!"))
            {
            return false; 
            }
        }
		
    if  (!hasValue(chkthis.email, "TEXT" ))
        {
        if  (!onError(chkthis, chkthis.email, chkthis.email.value, "Please ensure you have supplied an e-mail address!"))
            {
            return false; 
            }
        }
if (!TestEmail(chkthis, chkthis.email, chkthis.email.value))
        {
        if  (!onError(chkthis, chkthis.email, chkthis.email.value, "Please ensure you have supplied a valid email address!"))
            {
            return false;
            }
        }
		
    if  (!hasValue(chkthis.telno, "TEXT" ))
        {
        if  (!onError(chkthis, chkthis.telno, chkthis.telno.value, "Please ensure you have supplied a telephone number!"))
            {
            return false; 
            }
        }

if (!IsNumeric(chkthis, chkthis.telno, chkthis.telno.value))
        {
        if  (!onError(chkthis, chkthis.telno, chkthis.telno.value, "Please ensure you have supplied a valid telephone number!"))
            {
            return false;
            }
        }
				
    if  (!hasValue(chkthis.message, "TEXTAREA" )) 
        {
        if  (!onError(chkthis, chkthis.message, chkthis.message.value, "Please type in your Message!"))
            {
            return false; 
            }
        }	
    return true;
    }
//-->
