function AnswersToString(elem){
	var obj=elem;
	var s=new String();
	for(i=0;i<obj.length;i++){
		c=obj[i];
		if (c.checked) s+=c.value+ ',';
	}
	if(s.length>0) s=s.substr(0,s.length-1);
		return s;
		
}

function PollResult(pollid){
	var myheight=450;
	var mywidth= 460;
	var y=(screen.height-myheight)/2;
	var x=(screen.width-mywidth)/2;
	var url = "/explore/poll/popupdisplay.aspx?pollid=" + pollid;
	window.open(url,"PollPopup","width=" +mywidth +",height=" +myheight +",top="+ y +",left=" + x + ",toolbar=no,status=no,menubar=no,scrollbars=yes");
	return false;
	
}

function PollSubmit(pollid){
	var myheight=450;
	var mywidth= 460;
	var y=(screen.height-myheight)/2;
	var x=(screen.width-mywidth)/2;
	var Answers 
	Answers=AnswersToString(form1.elements['mychk_rdo']);
	if (Answers!=''){
		var url = "/explore/poll/popupdisplay.aspx?pollid=" + pollid + "&Answers=" + Answers;
		window.open(url,"PollPopup","width=" +mywidth +",height=" +myheight +",top="+ y +",left=" + x +",toolbar=no,status=no,menubar=no,scrollbars=yes");
	}
	return false;
	}
	
	
	