// rollover functions
function pp_rollover(anImage) { 
	if (document.images) {
		img_src = new String(anImage.src);
		img_src = (img_src.substring(0,img_src.length-4)) + "_f2.gif";
		anImage.src = img_src;
	}
}	

function pp_rollout(anImage) { 
	if (document.images) {
		img_src = new String(anImage.src);
		img_src = (img_src.substring(0,img_src.length-7)) + ".gif";
		anImage.src = img_src;
	}
}	


// popup window function
function pp_openWindow(theURL,winName,features) { //v2.0
  newWindow = window.open(theURL,winName,features);
  newWindow.focus();
}


// debugging functions 
function imageGetter() {   
  var msgWindow=window.open();
  for (var i = 0; i < document.images.length; i++) {
    msgWindow.document.write("images[" + i + "] name = '" 
		      + document.images[i].name 
					+ "' - src = " + document.images[i].src + "<BR>"); 
  }
}

function valueGetter(aForm) {   
  if (aForm.elements.length > 0) {
    var msgWindow=window.open();
    for (var i = 0; i < aForm.elements.length; i++) {
      msgWindow.document.write(
          "element[" + i + "] is " + 
          aForm.elements[i].name + " = " + 
          aForm.elements[i].value + "<br>"); 
    }
  }
}

