// Ensure the order tracking entered is a number
	function validateentry(myForm)
		{		
			var orderidchecker=myForm.TrackIDEdit.value;
			var intCheck;
			var foundNumber;

			if (!orderidchecker.length==0) {
				for(i=0; i<orderidchecker.length; i++) {
					currChar=orderidchecker.charAt(i);
					for(j=0; j<=9; j++) {
						if (currChar==j) {
							foundNumber=true;
							break;
						}
						foundNumber=false;
					}
					
					if (!foundNumber) break;
				}
				intCheck=foundNumber;
			} else {
				intCheck=false;
			}
			
			if (!intCheck) {
				alert("Your orderID must be a number");
				return false;
				}
					else
						{
							return true;
						}
		}
// this is for the buy button form on the department page
	function buyhighligher_on(theitem)
	{
		if(document.getElementById)
		{
			thelink = document.getElementById(theitem + "_link");
			theinput = document.getElementById(theitem + "_input");
		}
		// else check document.all
			
		if(thelink) thelink.className = 'buy_over';
		if(theinput) theinput.className = 'buy_over';
	}		

	function buyhighligher_off(theitem)
	{
		//if(document.getElementById)
		//{
			thelink = document.getElementById(theitem + "_link");
			theinput = document.getElementById(theitem + "_input");
		//}
		// else check document.all
			
		if(thelink) thelink.className = 'buy';
		if(theinput) theinput.className = 'buy';
	}

// this is for the buy button form on the product page
	function ppagebuyhighligher_on(theitem)
	{
		if(document.getElementById)
		{
			theinput = document.getElementById(theitem + "_input");
		}
		// else check document.all
		if(theinput) theinput.className = 'ppagebuy_over';
	}		

	function ppagebuyhighligher_off(theitem)
	{
		//if(document.getElementById)
		//{
			theinput = document.getElementById(theitem + "_input");
		//}
		// else check document.all
		if(theinput) theinput.className = 'ppagebuy';
	}	

// this is for the top menu shown throughout the site
	function menuhighligher_on(theitem)
		{
			if(document.getElementById)
			{
				thetd = document.getElementById(theitem + "_td");
			    thelink = document.getElementById(theitem + "_link");
			}
			// else check document.all
			
			if(thetd) thetd.className = 'SDLDeptMenuItemtbl_over';
			if(thelink) thelink.className = 'SDLDeptMenuItemlnk_menuhi';

		}
		
	function menuhighligher_off(theitem)
	{
		//if(document.getElementById)
		//{
			thetd = document.getElementById(theitem + "_td");
		    thelink = document.getElementById(theitem + "_link");
		//}
		// else check document.all
		
		if(thetd) thetd.className = 'SDLDeptMenuItemtbl';
		if(thelink) thelink.className = 'SDLDeptMenuItemlnk';
	}
	
// this is for the left menu shown throughout the site
	function menuhighligher_left_on(theitem)
		{
			if(document.getElementById)
			{
				thetd = document.getElementById(theitem + "_td");
			    thelink = document.getElementById(theitem + "_link");
			}
			// else check document.all
			
			if(thetd) thetd.className = 'SDLDeptMenuItemtbl_over_left';
			if(thelink) thelink.className = 'SDLDeptMenuItemlnk_menuhi_left';

		}
		
	function menuhighligher_left_off(theitem)
	{
		//if(document.getElementById)
		//{
			thetd = document.getElementById(theitem + "_td");
		    thelink = document.getElementById(theitem + "_link");
		//}
		// else check document.all
		
		if(thetd) thetd.className = 'SDLDeptMenuItemtbl_left';
		if(thelink) thelink.className = 'SDLDeptMenuItemlnk_left';
	}

	
// this is for the moreinfo form on the department page
	function moreinfohighligher_on(theitem)
		{
			if(document.getElementById)
			{
			    theinput = document.getElementById(theitem + "_input");
			}
			// else check document.all
			
			if(theinput) theinput.className = 'moreinfo_over';

		}
		
	function moreinfohighligher_off(theitem)
	{
		//if(document.getElementById)
		//{
		    theinput = document.getElementById(theitem + "_input");
		//}
		// else check document.all
		
		if(theinput) theinput.className = 'moreinfo';
	}
