/* Set input fields to gray only if it is using the default text*/
/* This goes in the module just after the form field */
// if (document.getElementById('text1').value == "Default Text") {
//   document.getElementById('text1').className = "cRed";
// }
// if (document.getElementById('select1').value == "More Default Text") {
//   document.getElementById('select1').className = "cRed";
// }

/* Accept and id and change the class and value */
function pgSet(id,myDefaultValue,selectBox) {
  document.getElementById(id).className = "pgFieldBlack";
  if (document.getElementById(id).value == myDefaultValue) {
    if (selectBox != true) {
	    document.getElementById(id).value = "";
	  }
  }
}
/*  Accept an id and a default value then set a class and reset the
    fiels with the original default value */
function pgReset(id,myDefaultValue,selectBox) {
  myValue = document.getElementById(id);
  if (myValue.value == "" || myValue.value == myDefaultValue) {
    document.getElementById(id).className = "pgFieldGray";
    if (selectBox != true) {
    	myValue.value=myDefaultValue;
    }
  }
}

function pgShowNav(id) {
  var myClassName = document.getElementById(id);
  if (myClassName.className == "displayNone") {
    myClassName.className = "displayBlock";
  } else if (myClassName.className == "displayBlock") {
    document.getElementById(id).className = "displayNone"
  }
}