function DeleteCheck (frage) {
  var chk = window.confirm(frage);
  return (chk);
}

function DeleteSubmit (frage,url) {
  var chk = window.confirm(frage);
  if(chk == true){
  	window.location.href = url;
  } else {
  	return (chk);
  }
}

function showmydiv(id){
        if(document.getElementById(id).style.display == ""){
                document.getElementById(id).style.display = "none";
                document.images["mimg"+id].src = "design/media/icons/expandoff.png";
        } else {
        	for(i=1;i<50;i++){
			if( !document.getElementById('x'+i) ) break;
            	document.getElementById('x'+i).style.display = "none";
                document.images["mimgx"+i].src = "design/media/icons/expandoff.png";
            }
            document.getElementById(id).style.display = "";
            document.images["mimg"+id].src = "design/media/icons/expandon.png";
        }
}


/*
function changem(id){
	if(document.getElementById("m"+id).style.display == ""){
		document.getElementById("m"+id).style.display = "none";
		document.images["mimg"+id].src = "expandoff.png";
	} else {
		for(i=1;i<3;i++){
			document.getElementById("m"+i).style.display = "none";
			document.images["mimg"+i].src = "expandoff.png";
		}
		document.getElementById("m"+id).style.display = "";
		document.images["mimg"+id].src = "expandon.png";
	}
}
function changep(id){
	if(document.getElementById("p"+id).style.display == ""){
		document.getElementById("p"+id).style.display = "none";
		document.images["pimg"+id].src = "expandoff.png";
	} else {
		for(i=1;i<3;i++){
			document.getElementById("p"+i).style.display = "none";
			document.images["pimg"+i].src = "expandoff.png";
		}
		document.getElementById("p"+id).style.display = "";
		document.images["pimg"+id].src = "expandon.png";
	}
}
*/

