function r_on(i) {
  if (document.images) { 
    if (document[i].src.indexOf("down") < 0) {
      document[i].src = "/_shell/_images/" + i + "_over.gif"; 
    }
  }
}

function r_off(i) {
  if (document.images) { 
    if (document[i].src.indexOf("down") < 0) {
      document[i].src = "/_shell/_images/" + i + ".gif"; 
    }
  }
}


function writeDate() {
  document.write(new Date().getFullYear());
}

function retext(x) {
    var nextyear = new Date();
    nextyear.setFullYear(nextyear.getFullYear() + 1);
    current = $("body").css("font-size");
    current = parseInt(current.substr(0,current.length-2));
    if (current < 10) { current = 10; }
    if (current > 18) { current = 18; }
    current = current + x + "px";
    $("body").css({ "font-size" : current });
    document.cookie = "fontsize=" + current + "; expires=" + nextyear.toGMTString() + "; path=/";    
}

function changeStyle(thisInput,style){
    document.getElementById(thisInput).className = style;
        if(document.getElementById(thisInput).value.length == 0 || document.getElementById(thisInput).value == "* Required *" || document.getElementById(thisInput).value == "* Invalid Email *"){
            document.getElementById(thisInput).value = "";
        }
}

