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('<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 align="center">')
document.write('<table cellPadding="0" cellSpacing="0" width="96%" border=0>')
document.write('<tr><td colSpan="2"><font face="Tahoma, Arial, Helvetica, sans-serif" color="#003399" style="font-size:14px;"><b>Your Wedding photo shoot will be held at</b></font></td></tr>')
document.write('<tr><td colSpan="2">&nbsp;</td></tr>')
document.write('</table>')
document.write('<table cellPadding="2" cellSpacing="1" width="96%" 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;">Local attractions that includes Mount Faber, National Museum etc</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;">Neighboring countries like Malaysia, Bintan etc</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;">Exotic destinations such as Paris, Rome etc</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 height="10"></td></tr>')
document.write('<tr><td align="center"><a href="javascript:Vote(256)"><img src="/sg/html/en-us/templates/landingpage/3250000/images/vote.gif" title="Vote Now!" border="0"></a></td>')
document.write('<td align="left"><a href="javascript:Result(256)"><img src="/sg/html/en-us/templates/landingpage/3250000/images/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></form>')
