function downloadclick(mixid, key){

	var r = new Request(   

		{

			url: "./php/v1/downloadclick.php",

			method: "post", 

			async:false

		}

	);

	r.send("id="+mixid+"&key="+key);

	return true;

}

function validatevote(f){

	for (var i=0; i < f.rank.length; i++){

		if (f.rank[i].checked){

			return true;

		}

	}

	alert("Please choose a score (1 to 5) before clicking submit");

	return false;

}

function view_popout_player(id)
{
var newWin = window.open('http://beatplexity.com/widget/popoutwidget.php?id='+id, 'window', 'width=320,height=110,scrollbars=no,resizable=no,menubar=no,toolbar=no,location=no,directories=no');
if( !newWin )
	{
	newWin = window.open('', 'window', 'width=320,height=110,scrollbars=no,resizable=no,menubar=no,toolbar=no,location=no,directories=no');
	newWin.location.href = 'http://beatplexity.com/widget/popoutwidget.php?id='+id;
	}

}

function register_download()
{
	pageTracker._trackPageview($('downloadURL').href);
}

function popup( url, title, options )
	{
	var newWin = window.open( url, title, options );
	if( !newWin )
		{
		newWin = window.open('',title, options);
		newWin.location.href = url;
		}
	}


// view_popout_player(4586);
