
function verify() 
{
  var bOk = true;
  $('input').each( function()
{

if(bOk && this.name == 'what') {
  if( !this.value.replace(/^\s+/g, '').replace(/\s+$/g, '') ) {
    alert('Please enter a Business Category or Name.');
    try { this.focus(); } catch(e) {}
    bOk = false;
  }
  return;
}
if(bOk && this.name == 'where') {
  if( !this.value.replace(/^\s+/g, '').replace(/\s+$/g, '') ) {
    alert('Please enter a City, State or Zip Code.');
    try { this.focus(); } catch(e) {}
    bOk = false;
    return;
  }
  var zc = this.value.replace(/^[\D\s]+/g, '').replace(/[\s\D]+$/g, '');
  if( zc.match(/^\d{5}$/) )return;
  if( zc.match(/\d/) ) {
    alert('Please enter an valid Zip Code (e.g. 98101).');
    try { this.focus(); } catch(e) {}
    bOk = false;
  }
  return;
}
if(bOk && this.name == 'who') {
  if( !this.value.replace(/^\s+/g, '').replace(/\s+$/g, '') ) {
    alert('Please enter First Last Name or Last Name, First.');
    try { this.focus(); } catch(e) {}
    bOk = false;
  }
  return;
}
if(bOk && this.name == 'q') {
  if( !this.value.replace(/^\s+/g, '').replace(/\s+$/g, '') ) {
    alert('Please enter a Web Search Query.');
    try { this.focus(); } catch(e) {}
    bOk = false;
  }
  return;
}
if(bOk && this.name == 'phone') {
  if( !this.value.replace(/^\s+/g, '').replace(/\s+$/g, '') ) {
    alert('Please enter a Phone Number.');
    try { this.focus(); } catch(e) {}
    bOk = false;
    return;
  }
  var ph = this.value.replace(/[\D\s]+/g, '').replace(/^[01]+/, '');
  if( ph.match(/^\d{10}$/) )return;
  if( ph.match(/\d/) ) {
    alert('Please enter an valid Phone Number (e.g. 800-555-1234).');
    try { this.focus(); } catch(e) {}
    bOk = false;
  }
  return;
}
if(bOk && this.name == 'address') {
  if( !this.value.replace(/^\s+/g, '').replace(/\s+$/g, '') ) {
    alert('Please enter an Address.');
    try { this.focus(); } catch(e) {}
    bOk = false;
  }
  return;
}

});

return(bOk);
}