var IE = false; var NS = false; if (document.all) IE = true; if (document.layers) NS = true; function setCookie(name,value){document.cookie = name + "=" + escape(value);} function readCookie(name) { if (document.cookie == '') return false; else { var c0, c1; var cookie = document.cookie; c0 = cookie.indexOf(name); if(c0 != -1) { c0 += name.length + 1; c1 = cookie.indexOf(';', c0); if(c1 == -1) c1 = cookie.length; return unescape(cookie.substring(c0,c1)); } else return false; } } function Poll(_name,_application,_id,_question,_answers,_answerIDs,_votes,_sumvotes,_action,_folder,_pollSize,_voteBtn,_resultsBtn) { this.name = _name; this.application= _application; this.id = _id; this.question = _question; this.answers = _answers; this.answerIDs = _answerIDs; this.votes = _votes; this.sumvotes = _sumvotes; this.action = _action; this.pollSize = (_pollSize == "")?"100%":_pollSize; this.folder = _folder; this.voteBtn = _voteBtn; this.resultsBtn = _resultsBtn; } function submitPoll(form,p) { s = -1; for (i=0;i