// JavaScript Document function checkPage() { var pageTitle = document.title; var newcolor = "Green"; if (pageTitle == "Blog") { var getLink = document.getElementById("link1"); alert(getlink); getLink.style.backgroundColor = newcolor; getLink = document.getElementById("link6"); getLink.style.backgroundColor = newcolor; } if (pageTitle == "Recent Projects") { var getLink = document.getElementById("link2"); getLink.style.backgroundColor = newcolor; getLink = document.getElementById("link7"); getLink.style.backgroundColor = newcolor; } if (pageTitle == "Résumé") { var getLink = document.getElementById("link3"); getLink.style.backgroundColor = newcolor; getLink = document.getElementById("link8"); getLink.style.backgroundColor = newcolor; } if (pageTitle == "Contact Me") { var getLink = document.getElementById("link4"); getLink.style.backgroundColor = newcolor; getLink = document.getElementById("link9"); getLink.style.backgroundColor = newcolor; } if (pageTitle == "About") { var getLink = document.getElementById("link5"); getLink.style.backgroundColor = newcolor; getLink = document.getElementById("link10"); getLink.style.backgroundColor = newcolor; } }function strClear(object){ if(object.value==object.defaultValue){ object.value=""; object.style.color="black"; object.style.backgroundColor="white"; } } function strSet(object){ if(object.value==""){ object.value=object.defaultValue; object.style.color="blue"; object.style.backgroundColor="lightgrey"; } else if(object.value==0){ object.style.color="blue"; object.style.backgroundColor="grey"; } } function valid(object){ }