﻿function blankFirstName() {
    if (document.Newsletter.Account_FirstName.value == "First Name")
        document.Newsletter.Account_FirstName.value = "";
}

function fillFirstName() {
    if (document.Newsletter.Account_FirstName.value == "")
        document.Newsletter.Account_FirstName.value = "First Name";
}

function blankLastName() {
    if (document.Newsletter.Account_LastName.value == "Last Name")
        document.Newsletter.Account_LastName.value = "";
}

function fillLastName() {
    if (document.Newsletter.Account_LastName.value == "")
        document.Newsletter.Account_LastName.value = "Last Name";
}

function blankEmail() {
    if (document.Newsletter.Account_Email.value=="Email Address")
        document.Newsletter.Account_Email.value="";
}

function fillEmail(){
    if (document.Newsletter.Account_Email.value=="")
        document.Newsletter.Account_Email.value="Email Address";
}

function blankZip(){
    if (document.Newsletter.Address_Postal.value=="Zip Code")
        document.Newsletter.Address_Postal.value="";
}

function fillZip(){
    if (document.Newsletter.Address_Postal.value=="")
        document.Newsletter.Address_Postal.value="Zip Code";
}

function replaceDivContent( whichLayer, newText ){
    var elem;
    if( document.getElementById ) // this is the way the standards work    
        elem = document.getElementById( whichLayer );  
    else if( document.all ) // this is the way old msie versions work   
        elem = document.all[whichLayer]; 
    else if( document.layers ) // this is the way nn4 works  
        elem = document.layers[whichLayer]; 
    elem.innerHTML = newText;
}
