function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}

function FormValidator(theForm)
{

  if (theForm.FormValue_Email.value == "")
  {
    alert("Please enter your \"email\".");
    theForm.FormValue_Email.focus();
    return (false);
  }

  if (!isEmailAddr(theForm.FormValue_Email.value))
  {
    alert("Please enter a complete email address : yourname@yourdomain.com");
    theForm.FormValue_Email.focus();
    return (false);
  }
   
  if (theForm.FormValue_Email.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"email\" field.");
    theForm.FormValue_Email.focus();
    return (false);
  }
  return (true);
}


function validate()
{

  if (iform.txtSearchString.value == "")
  {
    alert("Please enter a key word to search...");
    iform.txtSearchString.focus();
    return (false);
  }

  
}

function openWin() {
window.open('ship.html', 'xlfreeshipping', 'fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=430,left=50,top=50');

}

function openWinVacancy() {
window.open('vacancy.html', 'xlVacancy', 'fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=450,left=50,top=50');

}

function openWinPaypal() {
window.open('paypal.html', 'xlfreeshipping', 'fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=350,left=50,top=50');

}