/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Philip Myers :: http://virtualipod.tripod.com/bookmark.html */

function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}

function swap(targetId){
  
  if (document.getElementById)
        {
        target = document.getElementById(targetId);
        
            if (target.style.display == "none")
                {
                target.style.display = "";
                } 
            
            else 
                {
                target.style.display = "none";
                }
                
        }
}


<!-- Begin
function checkEmail() {
missinginfo = "";
if (document.email.name.value == "") {
missinginfo += "\n     -  Name";
}
if ((document.email.email.value == "") || 
(document.email.email.value.indexOf('@') == -1) || 
(document.email.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  E-mail address";
}
if (document.email.address.value == "") {
missinginfo += "\n     -  Postal address";
}
if (document.email.privacystatement.checked == false) {
missinginfo += "\n     -  Agreement to the privacy statement";
}
if (missinginfo != "") {
missinginfo ="You failed to correctly fill in your:\n" +
missinginfo + "\n\nPlease enter this information before sending.";
alert(missinginfo);
return false;
}
else return true;
}
//  End -->



