function checkTest() {
	var anzahlja=0;
	for (i = 1 ; i <= 12; i++) {
		if (document.deprTest.elements[i-1].checked== true ) {
			anzahlja++;
		}			
	}
	if (anzahlja <=4) document.deprTest.action = "depression/vorliegen_depression/depressionstest/auswertung1/";
	if (anzahlja > 4) document.deprTest.action = "depression/vorliegen_depression/depressionstest/auswertung2/";
	return true;
}

function showLayerEditEmbed(layer) {
	if(document.getElementById(layer).style.display=='none') {
		document.getElementById(layer).style.display = "block";
	}
	else {
		document.getElementById(layer).style.display = "none";
	}
}

function setEmbedString(inputEmbed,pfad) {
	var embedText = '<script type="text/javascript" src="http://www.modulare-konzepte.de/files/embed.php?element='+pfad+'"></script>';
	document.getElementById('inputEmbed'+inputEmbed).value = embedText;
}

/*
function setEmbedString(inputEmbed,pfad,breit,hoch) {
	var embedText = '<img src="http://modulare-konzepte.projekte.gpm.de'+pfad+'" width="'+breit+'" height="'+hoch+'">';
	document.getElementById('inputEmbed'+inputEmbed).value = embedText;
}
*/

function showVideo() {
	document.getElementById("video").style.display = "block";
	document.getElementById("thumbVideo").style.display = "none";
}


