﻿function blankName(){
    if (document.Newsletter.Account_Name.value=="Name (optional)")
        document.Newsletter.Account_Name.value="";
}

function fillName(){
    if (document.Newsletter.Account_Name.value=="")
        document.Newsletter.Account_Name.value="Name (optional)";
}

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;
}