//Javascript Functions, touchdesign 5 Oktober

//Variablen
var confirmMsg  = 'Hinweis:';

function confirmLink(theLink, theSqlQuery)
{
    if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(confirmMsg + ' \n' + theSqlQuery);
    if (is_confirmed) {
        theLink.href += '&is_js_confirmed=1';
    }

    return is_confirmed;
}

function open_window (url,name,breite,hoehe,stat,scroll) {

  POS_left = (screen.width) ? (screen.width-breite)/2 : 0;
  POS_top = (screen.height) ? (screen.height-hoehe)/2 : 0;

  var fenster=window.open(url, name, "width="+breite+",height="+hoehe+",top="+POS_top+",left="+POS_left+",status="+stat+",scrollbars="+scroll+",resizable=yes").focus();

}

function weiterleitung(newSite) {

     window.location = newSite;

}

function CountMax() {

     var wert,max;
     max = 200;
     wert = max-document.QuickSearch.info.value.length;
     if (wert < 0) {

		alert("Es dürfen nicht mehr als " + max + " Zeichen eingegeben werden!");
		document.QuickSearch.info.value = document.QuickSearch.info.value.substring(0,max);
		wert = max-document.eingabe.info.value.length;
		document.QuickSearch.rv_counter.value = wert;

     } else {

       document.QuickSearch.rv_counter.value = max - document.QuickSearch.info.value.length;

     }

}
