function OpenNewWindow(FileName,WindowName)
{
	WindowFeature="Resizable=Yes,ScrollBars=Yes,MenuBar=No,Directories=No,ToolBar=No,Location=No,Status=No,Width=300,Height=200,ScreenX=0,ScreenY=0,Top=0,Left=0"

	newWindow=open(FileName,WindowName,WindowFeature);
	if (newWindow.opener == null) { newWindow.opener = self; }
	if (newWindow.focus) { newWindow.focus(); }
	
}function validate_selection() {
var valid_choice;

	for ( i = 0 ; i < document.poll.radioRecord.length ; i++) {
		if(document.poll.radioRecord[i].checked==true)  
			valid_choice = true;
	}	
	
	if (valid_choice == true) {
		return (true);
	}
	else { 
		alert('Please select a choice!');
		return (false);
	 }
}

function GetPollID() {
for (var i = 0; i < document.poll.radioRecord.length; i++) {
if (document.poll.radioRecord[i].checked) {	return document.poll.radioRecord[i].value }	}
return 1
}

function Poll(iPollID) {
var strURL = "/SG/EN/navigation/poll/poll.asp?action=poll&intPollID="+iPollID;
OpenNewWindow(strURL,"poll")
}

function Vote(iPollID) {
var strURL = "/SG/EN/navigation/poll/poll.asp?action=vote&intPollID="+iPollID+"&intOptionID="+GetPollID();
	if (validate_selection() == true) {
		OpenNewWindow(strURL,"poll")
	}
}

function Result(iPollID) {
var strURL = "/SG/EN/navigation/poll/poll.asp?action=result&intPollID="+iPollID;
OpenNewWindow(strURL,"poll")
}

function PastSubjects() {
var strURL = "/SG/EN/navigation/poll/poll.asp?action=subjects";	
OpenNewWindow(strURL,"poll")
}



document.write('<form name="poll"><table border=0 width=100% cellspacing=0 cellpadding=0 >')
//document.write('<tr><td><IMG SRC="/Images/SG/EN/navigation/Poll/title_weeklypoll.gif" width=91 height=19></td></tr>')
document.write('<tr><td>')
document.write('<table cellPadding="0" cellSpacing="0" width="100%" border=0>')
document.write('<tr><td colSpan="2"><font face="Arial, Helvetica, sans-serif" color="black" size="2"><b>Do you think speaking good English boosts your career prospects?</b></font></td></tr>')
document.write('<tr><td colSpan="2">&nbsp;</td></tr>')
document.write('</table>')
document.write('<table cellPadding="2" cellSpacing="2" width="100%" border=0 >')
	document.write('<tr ><td height="18" width="22"><input name="radioRecord" type="radio" value="1"></td>')
	document.write('<td ><font face="Arial, Helvetica, sans-serif" size="1">Yes</font></td></tr>')

	document.write('<tr><td vAlign="top" height="22"> <input name="radioRecord" type="radio" value="2"></td>')
	document.write('<td><font face="Arial, Helvetica, sans-serif" size="1">No</font></td></tr>')

	<!--document.write('<tr><td vAlign="top" height="22"><input name="radioRecord" type="radio" value="3"></td>')-->
	<!--document.write('<td><font face="Arial, Helvetica, sans-serif" size="1">Be punctual for work </font></td></tr>')-->
	
	<!--document.write('<tr><td vAlign="top" height="22"><input name="radioRecord" type="radio" value="4"></td>')-->
	<!--document.write('<td><font face="Arial, Helvetica, sans-serif" size="1">How to write and speak well for business </font></td></tr>')-->
	
		<!--document.write('<tr><td vAlign="top" height="22"><input name="radioRecord" type="radio" value="5"></td>')-->
	<!--document.write('<td><font face="Arial, Helvetica, sans-serif" size="1">Managing people well  </font></td></tr>')-->

document.write('</table>')
document.write('<table cellPadding="0" cellSpacing="0" width="100%" border=0>')


document.write('<tr><td colSpan="2">&nbsp;</td></tr>')
document.write('<tr><td colspan="2" align=center>')
document.write('<a href="javascript:Vote(223)" style="font-size: x-small;color:#6B6B6B;"><font face="Arial, Helvetica, sans-serif" size="1" color="#6B6B6B"><b>Submit</b></font></a>&nbsp;|&nbsp;')
document.write('<a href="javascript:Result(223)" style="font-size: x-small;color:#6B6B6B;"><font face="Arial, Helvetica, sans-serif" size="1" color="#6B6B6B"><b>View Results</b></font></a><br>')
document.write('<a href="javascript:PastSubjects()" style="font-size: x-small;color:#6B6B6B;"><font face="Arial, Helvetica, sans-serif" size="1" color="#6B6B6B"><b>Previous Polls</b></font></a><br>')
document.write('</td></tr></table>')

document.write('</td></tr>')
document.write('</table></form>')

