function changeYesNo(textfield,textfield_yn) {
  if (textfield_yn[0].checked == true && (textfield.value > ""))
    {
    textfield_yn[1].checked = true;
    }
}

function checkCurrentCustomer(textfield,textfield_yn) {
  if (textfield_yn[0].checked == true)
    {
    textfield_yn[1].checked = true;
    }
}

function uncheckCurrentCustomer(textfield,textfield_yn) {
  if (textfield.value == "")
    {
    textfield_yn[0].checked = true;
    }
}

this.name="loginWindow";
function popWin(url)
{
  urlWithEmail = url + "&email=" + document.forms[1].email.value
  var popWin= open(urlWithEmail,"lostPassword",'nostatus,resizable=yes,width=375,height=375,top=20,left=200');
  if (window.focus)
  {
    popWin.focus();
  }
}
function lostPasswordPopWin(url)
{
  urlWithEmail = url + "&email=" + document.forms[2].email.value // This is set to "2" because "0" is the top nav lost password form & "1" is the search form
  var popWin= open(urlWithEmail,"lostPassword",'nostatus,resizable=yes,width=410,height=320,top=20,left=200');
  if (window.focus)
  {
    popWin.focus();
  }
}

