function loadUrl(url){
document.location = url;
}
function doSearch(){
document.location = "/LV/lvcms.nsf/$allwebdocs?SearchView&Query=" + document.forms[0].query.value + "&SearchMax=0&SearchFuzzy=true";
}
function doVsearch(id , skind ){
   var xmlHttp = null;
// Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
if (typeof XMLHttpRequest != 'undefined') {
    xmlHttp = new XMLHttpRequest();
}
if (!xmlHttp) {
    // Internet Explorer 6 und älter
    try {
        xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
        try {
            xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
        } catch(e) {
            xmlHttp  = null;
        }
    }
}
if (xmlHttp) {
    var surl = "/C12575410053673F/vquery?open=open&query=" + id + "&skind=" + skind + "&db=C12575410053673F&rand=" + Math.random();
    xmlHttp.open('GET', surl, true);
    xmlHttp.onreadystatechange = function () {
        if (xmlHttp.readyState == 4) {
            document.getElementById("vsearchbody").innerHTML = xmlHttp.responseText;
        }
    };
    xmlHttp.send(null);
}
}
function getcheckval(){
var skind="";
if (document.forms[0].skind[0].checked == true) {
    skind ="PLZ";
  } else if (document.forms[0].skind[1].checked == true)  {
    skind ="ORT";
  }else{
    skind ="NAME";
  }
   return skind;
}
function showDetails(id){
  var xmlHttp = null;
// Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
if (typeof XMLHttpRequest != 'undefined') {
    xmlHttp = new XMLHttpRequest();
}
if (!xmlHttp) {
    // Internet Explorer 6 und älter
    try {
        xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
        try {
            xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
        } catch(e) {
            xmlHttp  = null;
        }
    }
}
if (xmlHttp) {
    var durl="/C12575410053673F/dquery?open=open&query=" + id + "&rand=" + Math.random();
    xmlHttp.open('GET', durl, true);
    xmlHttp.onreadystatechange = function () {
        if (xmlHttp.readyState == 4) {
             document.getElementById("vsearchbody").innerHTML = xmlHttp.responseText;
        }
    };
    xmlHttp.send(null);
}
}
