// Global JavaScript Document
<!--
if (parent != window)
 parent.location.href=window.location.href
// -->
window.name = "jacquielawson_main";

function show_window(strPage)
{
 var new_window = window.open(strPage, "jacquielawson_popup", "height=550,width=500,scrollbars=yes,menubar=no");
 if (new_window == null)
  alert("Sorry, we were unable to open a pop-up window containing the requested page.  If you have software which is designed to suppress pop-up advertisements, please disable it when visiting jacquielawson.com.");
 else
  new_window.focus();
}


// Login Form outside the header
function setfocus(){
    document.getElementById('frmLogonBox').fldEmail.focus();
 }

// logout users
function logOutHeader() {
window.location="/logoff.asp";
}

// join us link
function joinHeader() {
window.location="/join1.asp";
}

// toogle Logon Form fields
function toogleText(element) {
    var uEmail = document.getElementById("fldEmail").value;
    var uPass = document.getElementById("fldPassword").value;
    var dEmail = "E-mail address";
    var dPass = "Password";
    var inputTxt = document.getElementById('passTxt');
    var inputPass = document.getElementById('fldPassword');	

    if (element.id == 'fldEmail') {
      if (element.defaultValue == uEmail) {
        element.value = "";
      } else if (element.value == '') {
        element.value = dEmail;
      }
    } else if (element.id == 'passTxt') {

      inputTxt.style.display = 'none';
      inputPass.style.display = '';
      inputPass.focus();
    } else if (element.value == '') {

      inputTxt.style.display = '';
      inputPass.style.display = 'none'; 
    }
}

var showExpDate = function() {
    if(!(typeof(MagicCookie) === undefined)) {
        if (expdate) {
        var expdate = MagicCookie.getCookieValue('expdate');
        document.getElementById('expdate').innerHTML = expdate;
        }
    }
    else {
        return "";
    }
}()

