function OpenWindowResizableNoMenu(url) {	window.open (url,'',config='height=600,width=762,titlebar=yes,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no');}function OpenWindow(url,width,height) {	url = url + "&URL=" + window.location.hostname + window.location.pathname;	window.open (url,'',config='height=' + height + ',width=' + width + ',titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no');}function submit_poll() {var answer = GetRadioVal(document.PollResult.Answer);if (answer == "" || answer == null) {	alert('You haven\'t chosen a poll answer.');	return false;}var id = document.PollResult.ID.value;SetCookie("DWPPoll" + id, answer, 180);document.PollResult.submit();}function SetCookie (cookieName,cookieValue,nDays) {var today = new Date();var expire = new Date();if (nDays==null || nDays==0) nDays=1;expire.setTime(today.getTime() + 3600000*24*nDays);document.cookie = cookieName+"="+escape(cookieValue)+ ";expires="+expire.toGMTString();}function GetRadioVal(radioObject) {for (var i=0; i < radioObject.length; i++) { if (radioObject[i].checked) { value = radioObject[i].value;return value;} }}
