function OpenPage(href){
	tb_show('', href, '')
}

function OpenChart(href){
	thewidth = 1100;
	theheight = 600;
	var windowprops = "width=" + thewidth + ",height=" + theheight + ",top=0,left=0,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes";          
		OpenWindow = window.open(href,"_blank",windowprops); 
}

function OpenSMSRequest(href){
	thewidth = 700;
	theheight = 500;
	var windowprops = "width=" + thewidth + ",height=" + theheight + ",top=0,left=0,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes";          
	OpenWindow = window.open(href,"_blank",windowprops); 
}
		
<!---Update Poll--->
function showPollStatistic(ans, from){
	var poll = '';
	var act = '';
	poll = document.formUndian.PollID.value;
	var windowprops = "width=400,height=250,top=0,left=0,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no";          
	OpenWindow = window.open("./poll/poll_statistic.cfm?from=" + from + "&action=UpdatePoll&PollID=" + poll + "&answerID=" + ans,"Update",windowprops); 
}

function updateVoting(){
	var count = 0;
	var answer = '';
	var poll = '';
	var from ='';
	poll = document.formUndian.PollID.value;
	for (var i = 0; i < document.formUndian.pollAnswer.length; i++){
		if (document.formUndian.pollAnswer[i].checked){
			count = count + 1;
			answer = document.formUndian.pollAnswer[i].value;
			document.formUndian.pollAnswer[i].checked = "false";
		}
	}

	if (answer == ""){
		alert('Sila buat pilihan sebelum mengundi.')
		return false
	}
	else{
		from = "vote";
		showPollStatistic(answer, from);
	}
}
