// JavaScript Document
function formValidator(theForm)
{

if (theForm.weight.value <= 0)

{

alert("Please enter a valid weight of your parcel to continue");

theForm.weight.focus()
;
return (false);

}
else if (theForm.length.value <= 0)

{

alert("Please enter a valid length of your parcel to continue");

theForm.length.focus();

return (false);

}

else if (theForm.width.value <= 0)

{

alert("Please enter a valid width of your parcel to continue");

theForm.width.focus();

return (false);

}

else if (theForm.height.value <= 0)

{

alert("Please enter a valid height of your parcel to continue");

theForm.height.focus();
return (false);

}

}