<!--

	function setCookie(name, value, expires, path, domain, secure) {
	  var curCookie = name + "=" + escape(value) +
	      ((expires) ? "; expires=" + expires.toGMTString() : "") +
	      ((path) ? "; path=" + path : "") +
	      ((domain) ? "; domain=" + domain : "") +
	      ((secure) ? "; secure" : "");
	  document.cookie = curCookie;
//	  alert("TEST - encryption cookie set - "+escape(value));
	}


	function mainSearch() {
		document.forms[0].action="/home/search.php";
		document.forms[0].method="post";
		document.forms[0].submit();
	}

	function login() {
		document.forms[0].hidLoginFunction.value="login";
		document.forms[0].action="/membersarea/login.php";
		document.forms[0].method="post";
		document.forms[0].submit();
	}
	
	function forgottenPassword() {
		document.forms[0].action="/membersarea/forgottenpassword.php";
		document.forms[0].method="post";
		document.forms[0].submit();
	}

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-27849150-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

-->
