	if (document.images) { 
	  img1on=new Image();
  	img1on.src="http://www.penvol.org/images/nav_pv_on.jpg";
		img2on=new Image();
    img2on.src="http://www.penvol.org/images/nav_lh_on.jpg";
		img3on=new Image();
    img3on.src="http://www.penvol.org/images/nav_rh_on.jpg";
		img4on=new Image();
    img4on.src="http://www.penvol.org/images/nav_mw_on.jpg";
		img5on=new Image();
    img5on.src="http://www.penvol.org/images/nav_sh_on.jpg";
    
     
	  img1off=new Image();
  	img1off.src="http://www.penvol.org/images/nav_pv_off.jpg";
		img2off=new Image();
    img2off.src="http://www.penvol.org/images/nav_lh_off.jpg";
		img3off=new Image();
    img3off.src="http://www.penvol.org/images/nav_rh_off.jpg";
		img4off=new Image();
    img4off.src="http://www.penvol.org/images/nav_mw_off.jpg";
		img5off=new Image();
    img5off.src="http://www.penvol.org/images/nav_sh_off.jpg";
		}

function imgOn(imgName) { 
   if (document.images){ 
   document[imgName].src = eval(imgName + "on.src"); 
    } } 
function imgOff(imgName) { 
   if (document.images) { 
   document[imgName].src = eval(imgName + "off.src"); 
    } }

// function to open remote popup windows in different named windows.
function remote(url,name,parms) {
	var remote = window.open(url,name,parms); 
	remote.opener = self; 
	remote.focus();
	}

// function to link to URL in opener window and close popup.
// this is used in popup windows opened with remote function.
function linkthis(url){
	opener.location.href = url;
	window.close();
	}

/*
* Author: Eric Lee (eric@xtremeconcepx.com)
* name: writeTextBox
* function: Writes a line of cross-browser and cross-platform input text box code
* return: nothing
*/
function writeTextBox(fieldname,win_ie_size,win_ns_size,mac_ie_size,mac_ns_size,maxlengthsize){
	var formString = "";
	var browserName=navigator.appName;
	if (navigator.appVersion.indexOf("PPC") != -1){
	if (browserName=="Netscape"){
		formString = "<input type='text' size='"+ mac_ns_size +"' name='"+ fieldname +"' maxlength='"+ maxlengthsize +"' value=''>";
			document.write (formString);
			}
		else{
		formString = "<input type='text' size='"+ mac_ie_size +"' name='"+ fieldname +"' maxlength='"+ maxlengthsize +"' value=''>";
			document.write (formString);
			}
		}
		else{
		if (browserName=="Netscape"){
			formString = "<input type='text' size='"+ win_ns_size +"' name='"+ fieldname +"' maxlength='"+ maxlengthsize +"' value=''>";
				document.write (formString);
				}
			else{
			formString = "<input type='text' size='"+ win_ie_size +"' name='"+ fieldname +"' maxlength='"+ maxlengthsize +"' value=''>";
			document.write (formString);
			}
		}
	return;
}