	function jump2form() {
		document.search_form.possible1.select();
		document.search_form.possible1.focus();
		//document.search_form.possible1.style.background ='#FFFFD5';
	}
	
	function isblank(s) {
		for(var i = 0; i < s.length; i++) {
			var c = s.charAt(i);
			if ((c != ' ') && (c != '\n') && (c != '\t')) {
				return false;
			}
		}
		return true;
	}
	
	function searchformcheck() {
		//var d = document.search_form.sType[1].checked;
		var e = document.search_form.possible1.value;
		if ((e == null) || (e == "") || (e == "<search>") || isblank(e)) {
			showWarning('divAlert', 'wrapper')
		}
		else {
			return true;
		}
		return false;
	}
	
	
	function keywordFilled() {
		var s = document.search_form.possible1.value;
		if (s == "<search>")			
		document.search_form.possible1.value = "";
		document.search_form.possible1.style.color="black";	
	}
	


	 function showWarning(el, container)
	     {
	       document.getElementById(el).style.visibility="visible";
	       if(container!=null && document.getElementById(container)!=null)
	         {
	            objContent = document.getElementById(container);
	            objContent.style.filter = "alpha(opacity:40)";
	            objContent.style.MozOpacity = .4;
	          }
	       }

	   function hideWarning(el, container)
	     {
	       document.getElementById(el).style.visibility="hidden";
	       if(container!=null && document.getElementById(container)!=null)
	         {
	            objContent = document.getElementById(container);
	            objContent.style.filter = "alpha(opacity:100)";
	            objContent.style.MozOpacity = 1;
	          }
	       if (el == "divAlert") jump2form();
		   if (el == "divAlertLogin") p_jump2form();
		   }

/*
		function Toggle(objElement)
		{
		   objElement.disabled = (!objElement.disabled)
		   if (document.layers)
		   {
		      if (objElement.disabled && objElement.type.substr(0,6) == "select")
		      {
		         for (intI=0; intI<objElement.options.length; intI++)
		         {
		            objElement.options[intI].frozenStatus = objElement.options[intI].selected
		         }
		      }
		   }
		}
*/
		
		function isblank(s) {
			for(var i = 0; i < s.length; i++) {
				var c = s.charAt(i);
				if ((c != ' ') && (c != '\n') && (c != '\t')) {
					return false;
				}
			}
			return true;
		}
		
		function p_jump2form() {
			var u = document.login_form.username.value;
			var p = document.login_form.password.value;
	
			if ((u == null) || (u == "") || isblank(u)) {
				document.login_form.username.select();
				document.login_form.username.focus();
			}
			
			if ((u != "") && ((p == null) || (p == "") || isblank(p))) {
				document.login_form.password.select();
				document.login_form.password.focus();
			}			
		}


		
		function p_formcheck() {
			var u = document.login_form.username.value;
			var p = document.login_form.password.value;
			if ((u == null) || (u == "") || isblank(u)) {
				showWarning('divAlertLogin', 'wrapper')
			}
			else if ((p == null) || (p == "") || isblank(p)) {
				showWarning('divAlertLogin', 'wrapper')
			}
			else {
				document.getElementById('sign-in').className = 'off';
				return true;
			}
			return false;
		}
