
		// CREATED 02/25/2004
		// FUNCTIONS TO CHECK IF:
		// 1 On page load, check language and set the proper word SEARCH on the field
		// 2 Check if the field has a value other than 'Search' or an empty one to submit the form
		// 3 Field on Blur and on Focus to change background color

		// 1
		function getQS(){

			tmpVar = location.search
			tmpVar = tmpVar.replace( "?", "" )
			tmpVar = tmpVar.split( "&" )

			if (tmpVar!=0){
				for (i=0; i<tmpVar.length; i++){
					if( "plang" == tmpVar[i].split("=")[0]){
						plangVar = tmpVar[i].split("=")[1];
					}
				}
				if (plangVar=="es"){document.search.query.value='Buscar'};
				if (plangVar=="pt-br"){document.search.query.value='Busca'};
				if (plangVar=="en"){document.search.query.value='Search'};
			}else{
				document.search.query.value='Buscar';
			}
		}

		onload=getQS;

		// 2
		function checkField(theForm){
			if (theForm.query.value=='Buscar'||theForm.query.value=='Busca'||theForm.query.value=='Search'||theForm.query.value==''){
				theForm.query.focus();
				return (false);
			}else{
				theForm.submit();
				return (true);
			}
		return (true);
		}


		// 3
		function oBlur(theField){
			theField.style.backgroundColor='white';
		}

		function oFocus(theField){
			if(theField.value=='Buscar'||theField.value=='Busca'||theField.value=='Search'){
				theField.value='';
			}
			theField.style.backgroundColor='lightyellow';
		}



