function OpenNewWindow(FileName,WindowName)
{
	WindowFeature="Resizable=Yes,ScrollBars=Yes,MenuBar=No,Directories=No,ToolBar=No,Location=No,Status=No,Width=300,Height=350,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 = "/ID/EN/navigation/poll/poll.asp?action=poll&intPollID="+iPollID;
OpenNewWindow(strURL,"poll")
}

function Vote(iPollID) {
var strURL = "/ID/EN/navigation/poll/poll.asp?action=vote&intPollID="+iPollID+"&intOptionID="+GetPollID();
	if (validate_selection() == true) {
		OpenNewWindow(strURL,"poll")
	}
}

function Result(iPollID) {
var strURL = "/ID/EN/navigation/poll/poll.asp?action=result&intPollID="+iPollID;
OpenNewWindow(strURL,"poll")
}

function PastSubjects() {
var strURL = "/ID/EN/navigation/poll/poll.asp?action=subjects";	
OpenNewWindow(strURL,"poll")
}

document.write('<table width="126" border="0" cellspacing="0" cellpadding="0">')
document.write('<tr><td><img src="/ID/EN/V6HTML/Home/Images/FaceLift/SQ-polling.gif" width="126" height="18"></td></tr></table>')  
document.write('<table width="126" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">')
document.write('<tr><td><table width="100%"  border="0" cellspacing="0" cellpadding="0"></table>')
document.write('<table width="90%" border="0" cellspacing="0" cellpadding="2" bgcolor="#FFFFFF" align="center">')
document.write('<form name="poll"><tr><td colspan="2" class="TextVote"><b>Faktor apa yang menurut Anda menjadi faktor penentu dalam mendapatkan pekerjaan ideal?</b></td></tr>')
document.write('<tr><td width="2%" class="TextVote"><input name="radioRecord" type="radio" value="1"></td><td width="98%" class="TextVote">Keterampilan</td></tr>')
document.write('<tr><td class="TextVote"><input type="radio" name="radioRecord" value="2"></td><td class="TextVote">Kerja keras</td></tr>')
document.write('<tr><td class="TextVote"><input type="radio" name="radioRecord" value="3"></td><td class="TextVote">Keberuntungan</td></tr>')
document.write('<tr><td class="TextVote"><input type="radio" name="radioRecord" value="4"></td><td class="TextVote">Punya koneksi</td></tr>')
document.write('<tr><td class="TextVote" valign="top"><input type="radio" name="radioRecord" value="5"></td><td class="TextVote">Moment yang tepat</td></tr>')
document.write('<tr><td colspan="2"><img src="/ID/EN/V6HTML/CommonImages/Home/transparent.gif" width="1" height="2"></td></tr>')
document.write('<tr><td colspan="2" align="center"><a href="javascript:Vote(39)"><img src="/ID/EN/V6HTML/Home/Images/FaceLift/votebutton.gif" width="37" height="17" border="0"></a><img src="/ID/EN/V6HTML/CommonImages/Home/transparent.gif" width="2" height="2"><a href="javascript:Result(39)"><img src="/ID/EN/V6HTML/Home/Images/FaceLift/resultbutton.gif" width="51" height="17" border="0"></a></tr>')
document.write('<tr><td colspan="2" align="center"><a href="javascript:PastSubjects()"><img src="/ID/EN/V6HTML/Home/Images/FaceLift/pastbutton.gif" width="90" height="17" border="0" align="absmiddle"></a></td></tr>')
document.write('<tr><td colspan="2"><img src="/ID/EN/V6HTML/CommonImages/Home/transparent.gif" width="1" height="2"></td></tr></form>')
document.write('</table></td></tr></table>')