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;
var radioRecord = document.getElementsByName("radioRecord");
	for ( i = 0 ; i < radioRecord.length ; i++) {
		if(radioRecord[i].checked==true)  
			valid_choice = true;
	}	
	
	if (valid_choice == true) {
		return (true);
	}
	else { 
		alert('Please select a choice!');
		return (false);
	 }
}

function GetPollID() {
var radioRecord = document.getElementsByName("radioRecord");
for (var i = 0; i < radioRecord.length; i++) {
	if (radioRecord[i].checked) {	return radioRecord[i].value; }	
}
return 1;
}

function Poll(iPollID) {
var strURL = "http://www.jobsdb.com.sghttp://www.jobsdb.com.sg/SG/EN/navigation/poll/poll.asp?action=poll&intPollID="+iPollID;
OpenNewWindow(strURL,"poll")
}

function Vote(iPollID) {
var strURL = "http://www.jobsdb.com.sg/SG/EN/navigation/poll/poll.asp?action=vote&intPollID="+iPollID+"&intOptionID="+GetPollID();
	if (validate_selection() == true) {
		OpenNewWindow(strURL,"poll")
	}
}

function Result(iPollID) {
var strURL = "http://www.jobsdb.com.sg/SG/EN/navigation/poll/poll.asp?action=result&intPollID="+iPollID;
OpenNewWindow(strURL,"poll")
}

function PastSubjects() {
var strURL = "http://www.jobsdb.com.sg/SG/EN/navigation/poll/poll.asp?action=subjects";	
OpenNewWindow(strURL,"poll")
}



document.write('<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>What are your plans for the year-end holidays?</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;">Taking my family overseas</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;">Going on a trip with my friends to a nearby resort to recharge for the new year</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;">Clearing my leave in Singapore</font></td></tr>')
	
	document.write('<tr><td vAlign="top" style="border-top:1 #cc3300 dashed;"><input name="radioRecord" type="radio" value="4"></td>')
	document.write('<td style="border-top:1 #cc3300 dashed;"><font face="Tahoma, Arial, Helvetica, sans-serif"  style="font-size:12px;">Working!</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="100%" border=0>')


document.write('<tr><td align="center"><a href="javascript:Vote(254)"><img src="/sg/html/en-us/images/newsite/homepage/vote.gif" title="Vote Now!" border="0"></a></td>')
document.write('<td align="left"><a href="javascript:Result(254)"><img src="/sg/html/en-us/images/newsite/homepage/vote_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>')


