function OpenNewWindow(FileName,WindowName)
{
	WindowFeature="Resizable=Yes,ScrollBars=Yes,MenuBar=No,Directories=No,ToolBar=No,Location=No,Status=No,Width=300,Height=360,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="Tahoma, Arial, Helvetica, sans-serif" color="#003399" style="font-size:14px;"><b>Do you think an overseas education is better than studying locally?</b></font></td></tr>')
document.write('<tr><td colSpan="2">&nbsp;</td></tr>')
document.write('</table>')
document.write('<table cellPadding="2" cellSpacing="1" width="100%" border=0>')
	document.write('<tr ><td valign="top" style="border-top:1 #cc3300 dashed;width:30px"><input name="radioRecord" type="radio" value="1"></td>')
	document.write('<td valign="top" style="border-top:1 #cc3300 dashed;"><font face="Tahoma, Arial, Helvetica, sans-serif"  style="font-size:12px;">Yes</font></td></tr>')

	document.write('<tr><td vAlign="top" style="border-top:1 #cc3300 dashed;"><input name="radioRecord" type="radio" value="2"></td>')
	document.write('<td style="border-top:1 #cc3300 dashed;"><font face="Tahoma, Arial, Helvetica, sans-serif"  style="font-size:12px;">No</font></td></tr>')

	document.write('<tr><td vAlign="top" style="border-top:1 #cc3300 dashed;"><input name="radioRecord" type="radio" value="3"></td>')
	document.write('<td style="border-top:1 #cc3300 dashed;"><font face="Tahoma, Arial, Helvetica, sans-serif"  style="font-size:12px;">Maybe </font></td></tr>')
	//document.write('<tr><td vAlign="top" style="border-top:1 #cc3300 dashed;"><input name="radioRecord" type="radio" value="3"></td></tr>')
	//document.write('<td style="border-top:1 #cc3300 dashed;"><font face="Tahoma, Arial, Helvetica, sans-serif"  style="font-size:11px;">All of the above  </font></td></tr>')
	//document.write('<tr><td vAlign="top" style="border-top:1 #cc3300 dashed;">&nbsp;</td>')
	//document.write('<td style="border-top:1 #cc3300 dashed;">&nbsp;</td></tr>')
	
	
	
	<!--document.write('<tr><td vAlign="top"><input name="radioRecord" type="radio" value="4"></td>')-->
	<!--document.write('<td><font face="Arial, Helvetica, sans-serif" size="1">Being headhunted </font></td></tr>')-->
	
	<!--document.write('<tr><td vAlign="top"><input name="radioRecord" type="radio" value="5"></td>')-->
	<!--document.write('<td><font face="Arial, Helvetica, sans-serif" size="1">Cold calling companies </font></td></tr>')-->
	
document.write('</table>')
document.write('<table cellPadding="0" cellSpacing="0" width="70%" border=0>')


document.write('<tr><td align="center"><a href="javascript:Vote(162)"><img src="/SG/EN/V6HTML/home/campus/images/btn_vote.gif" title="Vote Now!" border="0"></a></td>')
document.write('<td align="left"><a href="javascript:Result(162)"><img src="/SG/EN/V6HTML/home/campus/images/btn_result.gif" title="View Result" border="0"></a></td></tr>')
//document.write('<a href="javascript:PastSubjects()"><font face="Arial, Helvetica, sans-serif" size="1" color="#6B6B6B"><b>Previous Polls</b></font></a><br>')
document.write('</table>')

document.write('</td></tr>')
document.write('</table></form>')

