function Is(){ var agt=navigator.userAgent.toLowerCase(); this.major=parseInt(navigator.appVersion); this.nav=((agt.indexOf('mozilla')!=-1)&&((agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1))); this.nav4=(this.nav&&(this.major==4)); this.nav4up=this.nav&&(this.major >=4); this.ie=(agt.indexOf("msie")!=-1); this.ie4=(this.ie&&(this.major==4)); this.ie4up=this.ie &&(this.major >=4);}var is=new Is(); function init(){ var s; s="<MAP NAME='PrivacyMap'><AREA SHAPE='rect' COORDS='205, 0, 290, 18' HREF=\"javascript:hide('privacy')\"></MAP>"; s+="<IMG BORDER='0' SRC='/images/closex.gif' USEMAP='#PrivacyMap' width='300' height='18'><BR>"; s+="<FONT SIZE=1>This <I>quickVote</I> is being conducted by goVote’s on line ballot system from a secure server.<BR>"; s+="If you choose to participate, goVote guarantees that you will remain anonymous. "; s+="We do not capture your e-mail address, IP address, or any other information about you. "; s+="For more information about our privacy policy, <A HREF=\"/privacy.htm\">click here</A>.</FONT>"; makeTip('privacy',300,s); s="<MAP NAME='DisclaimerMap'><AREA SHAPE='rect' COORDS='205, 0, 290, 18' HREF=\"javascript:hide('disclaimer')\"></MAP>"; s+="<IMG BORDER='0' SRC='/images/closex.gif' USEMAP='#DisclaimerMap' width='300' height='18'><BR>"; s+="<FONT SIZE=1>This <I>quickVote</I> facility has been provided by goVote, for the exclusive use of one of our clients.<BR>"; s+="We have no control over the circumstances in which our clients use this facility, or the questions that they decide to ask.<BR>"; s+="All our clients have been advised that any inappropriate use by them will result in goVote withdrawing this faciility.<BR>"; s+="If you think that this <I>quickVote</I> is being used inappropriately, please let us know promptly, using this link: <A HREF=\"mailto:admin@govote.com.au\">admin@govote.com.au</A>.</FONT>"; makeTip('disclaimer',300,s);} function makeTip(id, width, message){ document.write('<STYLE TYPE="text/css">#'+id+'{width:'+width+';}</STYLE><DIV CLASS="balloon" id="'+id+'">'+message+'</DIV>');} function nil(){} function show(id,pos,top){ if(is.nav4up){ document.layers['privacy'].visibility="hide"; document.layers['disclaimer'].visibility="hide"; document.layers[id].left=window.event.pageX+10; document.layers[id].top=window.event.pageY+10; document.layers[id].visibility="show"; } else{ document.all['privacy'].style.visibility="hidden"; document.all['disclaimer'].style.visibility="hidden"; if(pos=='r'){ document.all[id].style.pixelLeft=(document.body.scrollLeft+window.event.clientX-300); document.all[id].style.pixelTop=(document.body.scrollTop+window.event.clientY-top); } else if(pos=='c'){ document.all[id].style.pixelTop=(document.body.scrollTop+window.event.clientY-top); document.all[id].style.pixelLeft=(document.body.scrollLeft+window.event.clientX-150); } else if(pos=='l'){ document.all[id].style.pixelTop=(document.body.scrollTop+window.event.clientY-top); document.all[id].style.pixelLeft=(document.body.scrollLeft+window.event.clientX); } else if(pos=='rb'){ document.all[id].style.pixelTop=(document.body.scrollTop+window.event.clientY+10); document.all[id].style.pixelLeft=(document.body.scrollLeft+window.event.clientX-300); } else if(pos=='cb'){ document.all[id].style.pixelTop=(document.body.scrollTop+window.event.clientY+10); document.all[id].style.pixelLeft=(document.body.scrollLeft+window.event.clientX-150); } else{ document.all[id].style.pixelTop=(document.body.scrollTop+window.event.clientY+10); document.all[id].style.pixelLeft=(document.body.scrollLeft+window.event.clientX); } document.all[id].style.visibility="visible"; }} function settext(id,s){ if(is.nav4up){ document.all[id].innerHTML=s; } else{ document.all[id].innerHTML=s; }} function hide(id){ if(is.nav4up){ document.layers[id].visibility="hide"; } else{ document.all[id].style.visibility="hidden"; }} function preload(){ qv=new Image(); qv.src="www.govote.com.au/images/submitqv.gif"; qv2=new Image(); qv2.src="www.govote.com.au/images/submitqv2.gif"; qv3=new Image(); qv3.src="www.govote.com.au/images/submitqv3.gif";} function submitForm(QDKVNLVNOEK){ var WSKOKFKYHVH, FKIPGWMPAMI=0, OGTPSBWEJWC, JEZNRSFPLRWC, YPFADDGYMYO, FGEBLJYZM='', KCQCWRMHICAPAP=''; for(WSKOKFKYHVH=0;WSKOKFKYHVH<QDKVNLVNOEK.elements.length;WSKOKFKYHVH++){ YPFADDGYMYO=QDKVNLVNOEK.elements[WSKOKFKYHVH]; if(FKIPGWMPAMI==-1&&YPFADDGYMYO.name!=JEZNRSFPLRWC.name){ window.scrollTo(0,0); JEZNRSFPLRWC.focus(); if(!JEZNRSFPLRWC.QNO||JEZNRSFPLRWC.QNO=='-'){ alert('You need to make a selection...'); } else{ alert('Question '+JEZNRSFPLRWC.QNO+'. You need to make a selection.'); } return; } if(YPFADDGYMYO.type=='radio'){ if(YPFADDGYMYO.name!=JEZNRSFPLRWC.name){FKIPGWMPAMI=-1;} if(YPFADDGYMYO.checked){ FKIPGWMPAMI=YPFADDGYMYO.value; FGEBLJYZM+=YPFADDGYMYO.name+','; KCQCWRMHICAPAP+="'"+FKIPGWMPAMI+"',"; } } if(YPFADDGYMYO.type=='text'){ FKIPGWMPAMI=YPFADDGYMYO.value.replace(/\'/g,'\`'); if(YPFADDGYMYO.TAG)FKIPGWMPAMI=YPFADDGYMYO.TAG.replace(/\'/g,'\`'); OGTPSBWEJWC=FKIPGWMPAMI.replace(/\,/g,'\;'); FGEBLJYZM+=YPFADDGYMYO.name+','; KCQCWRMHICAPAP+="'"+OGTPSBWEJWC+"',"; } if(YPFADDGYMYO.type=='textarea'){ FKIPGWMPAMI=YPFADDGYMYO.value.replace(/\'/g,'\`'); OGTPSBWEJWC=FKIPGWMPAMI.replace(/\,/g,'\;'); FKIPGWMPAMI=OGTPSBWEJWC.replace(/\r\n/g,'<BR>'); FGEBLJYZM+=YPFADDGYMYO.name+','; KCQCWRMHICAPAP+="'"+FKIPGWMPAMI+"',"; } if(YPFADDGYMYO.type.substr(0,6)=='select'){ if(YPFADDGYMYO.selectedIndex==-1){ window.scrollTo(0,0); YPFADDGYMYO.focus(); if(!YPFADDGYMYO.QNO||YPFADDGYMYO.QNO=='-'){ alert('You need to make a selection.'); } else{ alert('Question '+YPFADDGYMYO.QNO+'. You need to make a selection.'); } return; } else{ FKIPGWMPAMI=YPFADDGYMYO.value; } FGEBLJYZM+=YPFADDGYMYO.name+','; KCQCWRMHICAPAP+="'"+FKIPGWMPAMI+"',"; } if(YPFADDGYMYO.type=='checkbox'){ if(YPFADDGYMYO.checked){FKIPGWMPAMI=YPFADDGYMYO.value;}else{FKIPGWMPAMI=0;} FGEBLJYZM+=YPFADDGYMYO.name+','; KCQCWRMHICAPAP+="'"+FKIPGWMPAMI+"',"; } if(YPFADDGYMYO.REQUIRED&&YPFADDGYMYO.value==''){ YPFADDGYMYO.select(); YPFADDGYMYO.focus(); if(!YPFADDGYMYO.QNO||YPFADDGYMYO.QNO=='-'){ alert('Missing value - Please rectify and Send again.'); } else{ alert('Question '+YPFADDGYMYO.QNO+'. \n\nMissing value - Please rectify and Send again.'); } return; } if(YPFADDGYMYO.MASK){ var re=new RegExp(YPFADDGYMYO.MASK); if(!re.exec(YPFADDGYMYO.value)){ YPFADDGYMYO.focus(); if(!YPFADDGYMYO.QNO||YPFADDGYMYO.QNO=='-'){ alert('Missing or incorrect value - Please rectify and Send again.'); } else{ alert('Question '+YPFADDGYMYO.QNO+'. \n\nMissing or incorrect value - Please rectify and Send again.'); } return; } } JEZNRSFPLRWC=YPFADDGYMYO; } if(FKIPGWMPAMI==-1){ window.scrollTo(0,0); JEZNRSFPLRWC.focus(); if(!JEZNRSFPLRWC.QNO||JEZNRSFPLRWC.QNO=='-'){ alert('You need to make a selection...'); } else{ alert('Question '+JEZNRSFPLRWC.QNO+'. You need to make a selection.'); } return; } QDKVNLVNOEK.reset(); QDKVNLVNOEK.elements.cols.value=FGEBLJYZM.substr(0,FGEBLJYZM.length-1); QDKVNLVNOEK.elements.vals.value=KCQCWRMHICAPAP.substr(0,KCQCWRMHICAPAP.length-1); popupWin=window.open('', 'mypopup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=540,height='+QDKVNLVNOEK.elements.PopupHt.value); popupWin.focus(); QDKVNLVNOEK.target='mypopup'; QDKVNLVNOEK.submit();} function viewResults(BCPXMNLBCMH){ BCPXMNLBCMH.elements.action.value='View'; popupWin=window.open('', 'mypopup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=540,height='+BCPXMNLBCMH.elements.PopupHt.value); popupWin.focus(); BCPXMNLBCMH.target='mypopup'; BCPXMNLBCMH.submit();} function popupResults(YMGSGDOZANQ){ popupWin=window.open('http:\/\/www.govote.com.au/qkvote/'+YMGSGDOZANQ.elements.code.value+'.htm', 'mypopup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=560,height=360'); popupWin.opener.top.name='opener'; popupWin.focus();}
