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 = "/US/EN/navigation/poll/poll.asp?action=poll&intPollID="+iPollID;
OpenNewWindow(strURL,"poll")
}

function Vote(iPollID) {
var strURL = "/US/EN/navigation/poll/poll.asp?action=vote&intPollID="+iPollID+"&intOptionID="+GetPollID();
	if (validate_selection() == true) {
		OpenNewWindow(strURL,"poll")
	}
}

function Result(iPollID) {
var strURL = "/US/EN/navigation/poll/poll.asp?action=result&intPollID="+iPollID;
OpenNewWindow(strURL,"poll")
}

function PastSubjects() {
var strURL = "/US/EN/navigation/poll/poll.asp?action=subjects";	
OpenNewWindow(strURL,"poll")
}


document.write('<p><form name="poll"><table width="170" border="0" cellspacing="0" cellpadding="0">')
document.write('<tr width="186">')
document.write('<td bgcolor="black" width="200" height="20" class="LFont" align="center"><b> Vote of the week</b></b></td>')
document.write('</tr></table>')
document.write('<table width="160" border="0" cellspacing="0" cellpadding="0"><tr>')
document.write('<td width="10"><img src="/Images/US/EN/HTML/Home/y_line.gif" width="1" height="100%"></td><td width="5">&nbsp;</td>')
document.write('<td>')
document.write('<table border="0" cellPadding="0" cellSpacing="0">')

document.write('<tr><td height="5"></td></tr><tr><td colSpan="3" class="BNFont">What is the <b>ONE</b> thing you like to do most after work to relax yourself?</td></tr>')


	document.write('<tr><td vAlign="top"><input name="radioRecord" type="radio" value="1"></td>')
	document.write('<td class="BNFont">A nice home cooked meal</td></tr>')

	document.write('<tr><td vAlign="top"><input name="radioRecord" type="radio" value="2"></td>')
	document.write('<td class="BNFont">Get a massage</td></tr>')

	document.write('<tr><td vAlign="top"><input name="radioRecord" type="radio" value="3"></td>')
	document.write('<td class="BNFont">Go home and sleep</td></tr>')

	document.write('<tr><td vAlign="top"><input name="radioRecord" type="radio" value="4"></td>')
	document.write('<td class="BNFont">Happy Hour with friends</td></tr>')

	document.write('<tr><td vAlign="top"><input name="radioRecord" type="radio" value="5"></td>')
	document.write('<td class="BNFont">Take a bubble bath</td></tr>')

	document.write('<tr><td vAlign="top"><input name="radioRecord" type="radio" value="6"></td>')
	document.write('<td class="BNFont">Workout at the Gym</td></tr>')


document.write('<tr><td colspan="3">&nbsp;</td></tr>')
document.write('<tr><td colspan="3"><center>')
document.write('<a href="javascript:Vote(3)"><img src="/Images/US/EN/navigation/poll/btn_vote.gif" border="0"></a>&nbsp;')
document.write('<a href="javascript:Result(3)"><img src="/Images/US/EN/navigation/poll/btn_result.gif" border="0"></a><br>')
document.write('<a href="javascript:PastSubjects()"><img src="/Images/US/EN/navigation/poll/btn_past.gif" border="0"></a>')
document.write('</center></td></tr></table>')

document.write('</td></tr>')
document.write('</table></form>')
