function validate_contactform() {
        var contact = $("contactform");
        var requireds = [ [$("Firstname"),$("lblFirstname"),"First Name"]
                        , [$("Lastname"),$("lblLastname"),"Last Name"]
                        , [$("Email"),$("lblEmail"),"Email Address"]
                        , [$("OriginZip"),$("lblOriginZip"),"Origin Zip Code"]
                        , [$("DestinationZip"),$("lblDestinationZip"),"Destination Zip Code"]
                        ]
        var errors = [];
	var i = 0;
	try {
		$A(requireds).each(function(req) {
			elem = req[0];
			lbl = req[1];
			txt = req[2];
			if (null != lbl) {
				lbl.removeClassName("required");
			}
			if (null != elem 
					&& (null == elem.value || 0 == elem.value.length)
					&& null != txt ) {
				errors[i++] = txt;
				lbl.addClassName("required");
			}
        	});
	} catch (err) { }
	if (errors.length > 0) {
		alert( "The following fields are required:\n" + $A(errors).join("\n"));
        	return false;
	}
        return true;
}

