﻿function quickLinks( targ, selObj, restore) {
   eval( targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'" );
   if ( restore ) selObj.selectedIndex = 0;
}

// Javascript for  Handling the Dropdown Navagaion in IE
startList = function() {
   if ( document.all && document.getElementById ) {
      navRoot = document.getElementById( "nav" );
      for ( i = 0; i < navRoot.childNodes.length; i++ ) {
         node = navRoot.childNodes[i];
         if ( node.nodeName == "LI" ) {
            node.onmouseover = function() {
               this.className += " over";
            }
            node.onmouseout = function() {
               this.className = this.className.replace
               (" over", "");
            }
         }
      }
   }
}
window.onload = startList;

// toggle visibility
function catalogname( inner ) {
	if ( document.getElementById ) {
		target = document.getElementById( "catalog_name" );
		message = document.getElementById( inner );
		if ( target.innerHTML == "&nbsp;" ) {
		   target.innerHTML = inner;
		} 
		else {
			target.innerHTML = "&nbsp;";
		}
	}		
}

function change( id ) {
	if ( document.getElementById ) {
		target = document.getElementById( id );
		if ( target.className == "" ) {
			target.className = "hit" ;
		}
		else {
			target.className = "";
		}
	}	
}
	
function populate( id ) {
	if ( document.getElementById ) {
		target = document.getElementById( id );
		if ( target.value == "" ) {
			target.value = "1";
		}
		else {
			target.value = "";
		}
	}	
}