function confirmationPopup(headline, apply_label, apply_msg) {
	
	
	
		//document.getElementById("tpm_head").innerHTML="<h1>"+headline+"</h1>";
		document.getElementById("tpm_cont").innerHTML="<p>"+apply_msg+"</p><p style='color:#900;'><span style='font-weight:bold;'>ACHTUNG:</span> Diese Aktion kann nicht mehr rückgängig gemacht werden!</p>";
		document.getElementById("apply_popup").innerHTML="<form method='post' action=''><input style='cursor:pointer;' class='profile_update_buttons' type='submit' name='"+apply_label+"' value='' /></form>";
		document.getElementById("tpm").style.display="block";
	
	// then create and show the popup and insert the correct callback function
}

function confirmationPopupVideo(headline, apply_label, apply_msg, video_id) {
	
	
	
		//document.getElementById("tpm_head").innerHTML="<h1>"+headline+"</h1>";
		document.getElementById("tpm_cont").innerHTML="<p>"+apply_msg+"</p><p style='color:#900;'><span style='font-weight:bold;'>ACHTUNG:</span> Diese Aktion kann nicht mehr rückgängig gemacht werden!</p>";
		document.getElementById("apply_popup").innerHTML="<form method='post' action=''><input type='hidden' name='delete_video_id' value='"+video_id+"' /><input style='cursor:pointer;' class='profile_update_buttons' type='submit' name='"+apply_label+"' value='' /></form>";
		document.getElementById("tpm").style.display="block";
	
	// then create and show the popup and insert the correct callback function
}

function toggleME(what)
{
	if ( document.getElementById(what).style.display == 'block' ) {
	document.getElementById(what).style.display = 'none';
	document.getElementById('single_video').style.display ='block';
	}
	else {
	document.getElementById(what).style.display = 'block';
	document.getElementById('single_video').style.display ='none';
	}
} 

function changeVotingBg(ringos){
	document.getElementById('bg-votingringos').style.backgroundImage = 'url(../../img/votinglarge/voting_overlay_'+ringos+'.png)';
}

function resetVotingBg(){
	document.getElementById('bg-votingringos').style.backgroundImage = 'url(../../img/votinglarge/voting_overlay_0.png)';
}

function setVote(ringos){
	document.getElementById('bg-votingringos-fixed').style.backgroundImage = 'url(../../img/votinglarge/voting_overlay_'+ringos+'.png)';
	document.getElementById('vote').selectedIndex = (ringos-1);
}

function ringosset(){
	if(document.getElementById('vote').selectedIndex == 5){
		return false;
	}
	else{
		return true;
	}
}
function hide_votefail(){
	document.getElementById('failvote').style.display = "none";
	document.getElementById('voting-block').style.display = "block";
}
