/**
 * @author Music Dreams
 */
function validateError(id,msg) {
	document.getElementById(id).className = "validateError";	
	document.getElementById(id).value = msg;
}
function showConfirmDelete(action,folder,subfolder,id) {	
	
	text = "";
	
	text += "<div><img src='" + assetspath + "stop.png' border='0' title='stop' /></div>";	
		
	if (action == 1) {
		text += "<h1>Wollen Sie diese Seite entgültig löschen?</h1>";
		
	text += "<a href='" + basepath + "page/delete/id/" + id + ".html'><img src='" + assetspath + "yes.png' border='0' title='Löschen'></a>";
	}
	
	if (action == 2) {
		text += "<h1>Wollen Sie diesen Eintrag entgültig löschen?</h1>";
		
		text += "<a href='" + basepath + "page/show/id/guestbook/action/delete/entry/" + id + ".html'><img src='" + assetspath + "yes.png' border='0' title='Löschen'></a>";
		}
	
	if (action == 3) {
		text += "<h1>Wollen Sie dieses Foto entgültig löschen?</h1>";
		
		text += "<a href='" + basepath + "slideshow/delete/event/" + subfolder + "/pic/" + id + ".html'><img src='" + assetspath + "yes.png' border='0' title='Löschen'></a>";
		}
	
	if (action == 4) {
		text += "<h1>Wollen Sie diese Datei entgültig löschen?</h1>";
		
		text += "<a href='" + basepath + "files/deleteFile/folder/assetspub/id/" + id + ".html'><img src='" + assetspath + "yes.png' border='0' title='Löschen'></a>";
		}
	
	if (action == 5) {
		text += "<h1>Wollen Sie diese Datei entgültig löschen?</h1>";
		
		text += "<a href='" + basepath + "files/deleteFile/folder/downloads/id/" + id + ".html'><img src='" + assetspath + "yes.png' border='0' title='Löschen'></a>";
		}
	
	if (action == 6) {
		text += "<h1>Wollen Sie diese Datei entgültig löschen?</h1>";
		
		text += "<a href='" + basepath + "files/deleteFile/folder/" + folder + "/subfolder/" + subfolder + "/id/" + id + ".html'><img src='" + assetspath + "yes.png' border='0' title='Löschen'></a>";
		}
	
	if (action == 7) {
		text += "<h1>Wollen Sie diesen Ordner entgültig löschen?</h1>";
		
		text += "<a href='" + basepath + "files/deleteDir/folder/media/subfolder/" + subfolder + ".html'><img src='" + assetspath + "yes.png' border='0' title='Löschen'></a>";
		}	
	
	text += "<span onclick='closeConfirmDelete()'><img src='" + assetspath + "no.png' border='0' title='Abbrechen' /></span>";	
	
	  document.getElementById("confirmDelete").innerHTML = text; 

	    document.getElementById("confirmDelete").style.height = "850px"; 
	    document.getElementById("confirmDelete").style.display = "block"; 	
}

function closeConfirmDelete() {
	
    document.getElementById("confirmDelete").style.display = "none"; 
}

function changeContent(content) {
	
 document.getElementById("contentEntry").innerHTML = content;  
}
