function openPollWindow() {
	myWindowHandle = window.open('about:blank','pollWindow','width=250,height=120');
}

function validate() {
	var choices = document.videolineup.user_choice;
		for (var i=0; i < choices.length; i++)
		{
			if (choices[i].checked)
			{
				openPollWindow();
				//setTimeout('document.videolineup.submit()',500);
				//document.videolineup.submit();
				return;
			}
		}
			
		alert("Please select your favorite video."); return false;
}


function playDigorDisVideos( iVideoID, countryCode) {
	 	var videoplayer_path = "http://mv."+countryCode+".music.yahoo.com/player/player.asp";
		var targetWindow = ( common_playvideos_isBlank(self.name) ) ? common_playvideos_targetWindow : self.name;
		var sPopupCheckerURL = '';			
	// filtering
		common_playvideos_videoID = iVideoID;		
				
	// build param list
		var params = 'cid=' + common_playvideos_clientID + '&vid=' + common_playvideos_videoID + '&sx=' + common_playvideos_show + '&ps=' + common_playvideos_skinID + '&tw=' + targetWindow;
		//sPopupCheckerURL is the redirect - really need to pass this in
		params += "&redirectURL=" + escape(sPopupCheckerURL);
		
		var sPlayerURL = videoplayer_path + '?' + params;
	//open player	
		var videoWin = window.open( sPlayerURL , 'videoPlayerWindow', 'WIDTH=690,HEIGHT=520');
		common_popup_checkForNewWindow(videoWin, sPopupCheckerURL, common_playvideos_getPopupErrorUrl() + params);
		
}

function common_playvideos_isBlank( what )	{ return (typeof what == 'undefined' || what == null || what == 'undefined' || what == ''); }
function common_playvideos_getPopupErrorUrl()	{ return common_playvideos_popup_error_path + '?showtext=Y&'; };
