		function NoSubmit(e)
		{
		  var key = window.event ? e.keyCode : e.which;
			if (key == 13) {return false;}
		}
		function filterkey(e)
		{
		  var key = window.event ? e.keyCode : e.which;
			if (key == 34 || key == 37 || key == 39 || key == 60 || key == 62) {return false;}
		}
		function filterkeynumberonly(e)
		{
		  var key = window.event ? e.keyCode : e.which;
		  if (key >= 32 && key <= 47) {return false;}
		  if (key >= 58 && key <= 126) {return false;}
		}
		function filterkeynumberonlywithsubmit(e)
		{
		  var key = window.event ? e.keyCode : e.which;
			if (key == 13) {document.forms[0].submit();}
		  if (key >= 32 && key <= 47) {return false;}
		  if (key >= 58 && key <= 126) {return false;}
		}
		function filterkeynumbercommadash(e)
		{
		  var key = window.event ? e.keyCode : e.which;
		  if (key == 44 || key == 45) {return true;}
		  if (key >= 32 && key <= 47) {return false;}
		  if (key >= 58 && key <= 126) {return false;}
		}

  	function getCookie(name)
    {
       //Without this, it will return the first value 
       //in document.cookie when name is the empty string.
       if(name == '')
          return('');
       
       name_index = document.cookie.indexOf(name + '=');
       
       if(name_index == -1)
          return('');
       
       cookie_value =  document.cookie.substr(name_index + name.length + 1, 
                                              document.cookie.length);
       
       //All cookie name-value pairs end with a semi-colon, except the last one.
       end_of_cookie = cookie_value.indexOf(';');
       if(end_of_cookie != -1)
          cookie_value = cookie_value.substr(0, end_of_cookie);
  
       //Restores all the blank spaces.
       space = cookie_value.indexOf('+');
       while(space != -1)
            { 
            cookie_value = cookie_value.substr(0, space) + ' ' + 
            cookie_value.substr(space + 1, cookie_value.length);
  			 
            space = cookie_value.indexOf('+');
            }
  
       return(unescape(cookie_value));
    }
