I need a function that can tell if a string is in a time format. Something along these lines:
var string1 = "Normal String",
    string2 = "12:00pm";
function timeOrString(str) {
   if (str == A TIME) {
      alert('this is a time');
   }
   else {
      alert('this is a normal string');
   }
}
timeOrString(string1);
timeOrString(string2);
It could be something as simple as telling whether there is a number in the string?