function validateForm(theForm) {

  // Validation script for field 'first_name' (Your Name)
  if (theForm.first_name.value == "") {
    alert("Please enter a value for the \"First Name\" field.");
    if (theForm.first_name.type != "hidden") { 
        theForm.first_name.focus();
    } 
    return (false);
   }

   if (theForm.first_name.value.length < 1) {
    alert("Please enter at least 1 characters in the \"First Name\" field.");
    if (theForm.first_name.type != "hidden") { 
    	theForm.first_name.focus();
    } 
    return (false);
  }

  if (theForm.first_name.value.length > 50) {
    alert("Please enter at most 50 characters in the \"First Name\" field.");
    if (theForm.first_name.type != "hidden")
       { 
        theForm.first_name.focus();
       } 
    return (false);
  }
  
	// Validation script for field 'last_name' (Your Name)
  if (theForm.last_name.value == "") {
    alert("Please enter a value for the \"Last Name\" field.");
    if (theForm.last_name.type != "hidden") { 
        theForm.last_name.focus();
    } 
    return (false);
   }

   if (theForm.last_name.value.length < 1) {
    alert("Please enter at least 1 characters in the \"Last Name\" field.");
    if (theForm.last_name.type != "hidden") { 
    	theForm.last_name.focus();
    } 
    return (false);
  }

  if (theForm.last_name.value.length > 50) {
    alert("Please enter at most 50 characters in the \"Last Name\" field.");
    if (theForm.last_name.type != "hidden")
       { 
        theForm.last_name.focus();
       } 
    return (false);
  }

  // Email field validation
  // Validation script for field 'email' (Email Address)
  if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    if (theForm.email.type != "hidden")
       { 
        theForm.email.focus();
       } 
    return (false);
  }

  if (theForm.email.value.length < 6)
  {
    alert("Please enter at least 6 characters in the \"Email Address\" field.");
    if (theForm.email.type != "hidden")
       { 
        theForm.email.focus();
       } 
    return (false);
  }

  if (theForm.email.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Email Address\" field.");
    if (theForm.email.type != "hidden")
       { 
        theForm.email.focus();
       } 
    return (false);
  }

  if (theForm.email.value.indexOf("@",1) == -1)
  {
    alert("Not a valid e-mail address.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.indexOf(".",theForm.email.value.indexOf("@")+1) == -1)
  {
    alert("Not a valid e-mail address.");
    theForm.email.focus();
    return (false);
  }

  return (true);

}

var quotes = new Array();

quotes[0]=["Canary Wireless hits another homer with the latest Digital Hotspotter","Wi-Fi Net News"];
/*quotes[1]=["\[The\] Digital Hotspotter has jumped instantly to the head of the line of the roster of Wi-Fi detectors on the market.","Wired Magazine"];
quotes[2]=["The new Digital Hotspotter from Canary Wireless does more than locate nearby Wi-Fi networks: it tells you all about them...","The New York Times"];
quotes[3]=["The Digital Hotspotter from Canary Wireless has caused quite a stir in the WLAN detector market","Tom's Networking"];
quotes[4]=["When it comes to detecting wireless 802.11b/g networks without a computer, the Canary Wireless Digital Hotspotter is the real deal.","Wi-fi Planet"];
*/
function doQuote() {
	var idx = Math.floor(quotes.length * Math.random());
	document.write('<div class="quote">&quot;'+quotes[idx][0]+'&quot;<div class="author">- '+quotes[idx][1]+'</div></div>');
}

function popitup(url) {
	return window.open(url,'_credits','directories=no,location=no,menubar=no,resizable=yes,status=yes,toolbar=no,width=440,height=440');
}