scVote = function (num, val) {

	num = parseInt(num);
	val = parseInt(val);

	var id = 'button_scvote_' + num + '_';
	
	if (val == 1) {
		document.getElementById(id + 1).className = 'scvote_1_on';
		document.getElementById(id + 2).className = 'scvote_2_off';
	}
	else if (val == 0) {
		document.getElementById(id + 1).className = 'scvote_1_off';
		document.getElementById(id + 2).className = 'scvote_2_on';
	}
	
	document.forms['form_scoringgame'].elements['f_vote_' + num].value = val;
}

function popup (url) {
	 win = window.open(url, "scgamepopup", "width=450,height=290,location=no,resizable=yes");
	 win.focus();
	 return false;
}



