var myflag = false; 

function passAction(Action){
  document.Poll.Action.value=Action;
  document.Poll.submit();
}

function launchWindow(AnswerID,Answer,AppID,PageName){
	var URL;
  if ((navigator.appName == "Netscape") && (navigator.appVersion.substring(0, 1) <= "4") && (myflag == true))
   
    {
     alert("you can vote only once\nTo view results, click the 'Current Poll' Results link below.");
    }
  else {
          for (var b = 0; b < document.Poll.answers.length; b++)
            document.Poll.answers[b].disabled = true;

	  URL="/Poll/"+PageName+"?ID="+AnswerID+"&Answer="+Answer+"&AppID="+AppID;
	  rPopUpAWindow('Poll Results','Results',URL,400);
  }
    myflag = true; 
}

function launchCurrentPollWindow(AnswerID,Answer,AppID,PageName){
	var URL;
	URL="/Poll/"+PageName+"?ID="+AnswerID+"&Answer="+Answer+"&AppID="+AppID+"&NoAdd=Y";
	rPopUpAWindow('Poll Results','Results',URL,400);

}
