
	var home_arrow_off 	= new Image();
	var home_arrow_on	= new Image();
	
	home_arrow_off.src	= '../images/btn/btn_arrow_white_off.gif';
	home_arrow_on.src	= '../images/btn/btn_arrow_white_on.gif';
	
	function arrow_on(x)
	{
		if (document.images) 
		{
			document[x].src = home_arrow_on.src;
		} 
	}


	function arrow_off(x)
	{
		if (document.images) 
		{
			document[x].src = home_arrow_off.src;
		}
	}
	
	// die Formvalidators
	
	// reqexp string match routine
	function isValidZip(pc)
	{
		var zipPattern 	=	"^\\d{5}$|^\\d{5}\-\\d{4}$|^[a-zA-Z][0-9][a-zA-Z]\\s?[0-9][a-zA-Z][0-9]$";
		var oRegExp 	= 	new RegExp(zipPattern);	
		return oRegExp.test(pc);
	}
	
	// Check whether string s is empty.
	function isEmpty(s)
	{   
		return ((s == null) || (s.length == 0))
	}
	
	// routine used on locate for
	function checkLocatorForm(f)
	{
		if(isEmpty(f.postalCode.value))
		{
			alert('Please enter a valid US or Canadian postal code.');
			f.postalCode.focus();	
			return false;
		}	
		else
		{
			if(isValidZip(f.postalCode.value))
			{
				return true;
			}
			else
			{
				alert('You have entered an invalid US or Canadian postal code. \n Please check your entry.');
				f.postalCode.focus();
				return false;	
			}
				
		}
	}