Is there a way of trimming the value before checking it so that a space for example would still be NULL "".
if(document.sendmail.emailsubject.value == '')
msg += "Subject cannot be left blank.\n";
error = true;
So I take it there is no nice and simple...
if(document.sendmail.emailsubject.value.Trim() == '' )
From the looks of it I need to put it in a variable and then use some regex?
The native function trim works in some browsers, but regex will also be required