 		function store()
		{
			for (var i = 0; i < document.forms[0].questions.length; i++)
			{
				if (document.forms[0].questions[i].checked)
				{
					setCookie("vote", theDate());
					getClientData(document.forms[0].questions[i].value);
				}
			}
		}
		
		var ajax = new sack();
		var currentClientID=false;
		
		function getClientData(val)
		{
			var clientId = val;
			if(clientId!=currentClientID){
				currentClientID = clientId;
				ajax.requestFile = 'getPoll.php?getClientId='+clientId;	// Specifying which file to get
				ajax.onCompletion = showClientData;	// Specify function that will be executed after file has been found
				ajax.runAJAX();		// Execute AJAX function			
			}
		}
		
		function showClientData()
		{
			//var formObj = document.forms['workwatch'];
			eval(ajax.response);
		}
		
		function setCookie(name, value) {
			document.cookie = name + "=" + escape(value) + "; path=/" + "; expires=Friday, <?php $objWORKWATCH->setDate();?> 00:00:00 GMT;";
		}
		
		function getCookie(name)
		{
			var nameEQ = name + "=";
			var ca = document.cookie.split(';');
			for(var i=0;i < ca.length;i++)
			{
				var c = ca[i];
				while (c.charAt(0)==' ')
					c = c.substring(1,c.length);
				if (c.indexOf(nameEQ) == 0)
					return c.substring(nameEQ.length,c.length);
			}
			return null;
		}
		
		function checkCookie()
		{
			// uncomment for test sets a cookie at start, need to change the expire time to older than today
			//setCookie("vote", "blah");
			
			if(getCookie('check') == null)
			{
				getClientData('index');
			}
			else
			{
				if(getCookie('vote') != null)
				{
					getClientData('index');
				}
				else
				{
					getClientData('null');
				}
			}
		}
		
		function theDate()
		{
			var d = new Date();
			return d.getDate() + '-' + d.getMonth() + '-' + d.getFullYear();
		}