/**
 * Displays an confirmation box beforme to submit a "DROP/DELETE/ALTER" query.
 * This function is called while clicking links
 *
 * @return  boolean  whether to run the query or not
 */
function confirmLink(inProject)
{

//    var is_confirmed = confirm(confirmMsg + ' :\n' + theSqlQuery);
    var is_confirmed = confirm('"' +inProject + '" Löschen?');

    return is_confirmed;
} // end of the 'confirmLink()' function



var bookmarkTitle="LYYFE - Die Umwelt Community";
var pageURL=location.href;

/**
 * Fügt die Seite als Lesezeichnen hinzu
 */

function AddLesezeichen() {
if (navigator.platform.substring(0,3) == 'Win'&&
navigator.appName.substring(0,3)=='Mic' ) {
window.external.AddFavorite(pageURL,bookmarkTitle );
} else if (window.sidebar&&window.sidebar.addPanel){
 window.sidebar.addPanel(bookmarkTitle,pageURL,"");
} 
}



/**
 * BLOCK Mit PopUp Layer
 *
 */

var onSub = false;
var timerID;

function switchBut(graID) {
if(!onSub) {
      leGraphique = "butInfo" + graID;      
      cible = document.getElementById(leGraphique);
         if (cible.style.display == "none"){
            cible.style.display="block";           
	         } else {
            cible.style.display="none";
         }  
}  
}

function hideAll() {

clearTimeout(timerID);

if(document.getElementById('butInfo1')) document.getElementById('butInfo1').style.display="none";
if(document.getElementById('butInfo2')) document.getElementById('butInfo2').style.display="none";
//document.getElementById('butRechts4').style.display="none";
//document.getElementById('butRechts5').style.display="none";

}

function showInfo(id) {
	hideAll();
	switchBut(id); 
}

function checkAndHide(id) {
        functionWithParameter = "switchBut('"+id+"')";
	timerID = window.setTimeout(functionWithParameter, 500);
}

function setOnSub() {
onSub = true;
//alert(onSub);
window.clearTimeout(timerID);
}


function quitBut(id) { 
onSub = false;
switchBut(id);

}


function PopUPScroll( id,breite,hoehe) {

url = id;
StrOpen="source=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width="+breite+",height="+hoehe;

 popupWindow = window.open(url, "DetFen", StrOpen);


if (popupWindow)
 {
 if (popupWindow.focus)
   {
    popupWindow.focus();
 	}
 }
}







