var repository="http://www.lindegas.de/International/Web/Lg/de/Likelgde.nsf/RepositoryByAlias/Like20Std/$FILE/";
var repository1="http://www.lindegas.de/International/Web/Lg/de/Likelgde.nsf/RepositoryByAlias/Like20Std/$FILE/";
// Will check if site is framed and break out. (Except where there are i-frames, then the name must be "likeframe")
if (window.name != "likeframe") {
    if (window != top) { top.location.href = location.href }
}
// The following JavaScript function will determine if the browsers
// is IE version 4+ or Netscape version 4+
ns = false;
ie = false;
if (parseInt(navigator.appVersion) >= 4) {
    if (navigator.appName == "Microsoft Internet Explorer")
        ie = true;
    if (navigator.appName == "Netscape")
        ns = true;
}
function SubTitleHeader (Subtitle,Next)
{
    document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"line-mt\">");
    document.writeln("<tr><td><img border=\"0\" src=\""+repository+"line.gif\" width=\"30\" height=\"23\"></td>");
    document.writeln("<td class=\"line-txt\" width=\"100%\">"+Subtitle+"</td></tr>");
    document.writeln("<tr class=\"line-bgr\"><td><img border=\"0\" src=\""+repository+"trans.gif\" width=\"1\" height=\"1\"></td>");
    document.writeln("<td><img border=\"0\" src=\""+repository+"trans.gif\" width=\"1\" height=\"1\"></td></tr></table>");
}
function TopNextLinks(Next) {
    document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td align=right>");
    document.writeln("<a href=\"javascript:window.scrollTo(0,0)\" class=\"cont-nav-txt\"><img border=\"0\" src=\""+repository+"pfeil_hoch_trans.gif\" width=\"20\" height=\"12\">Oben</a>")
    if (Next != "") {
    document.writeln("<a href=\"#" + Next + "\" class=\"cont-nav-txt\" ><img border=\"0\" src=\""+repository+"pfeil_next_trans.gif\" width=\"20\" height=\"12\">Weiter</a>")
    }
    document.writeln("<br>")
    document.writeln("</td></tr></table>")
}
popupWins = new Array();
function windowOpener(url, name, args) {
if ( typeof( popupWins[name] ) != "object" ){
popupWins[name] = window.open(url,name,args);
} else {
if (!popupWins[name].closed){
popupWins[name].location.href = url;
} else {
popupWins[name] = window.open(url, name,args);
}
}
popupWins[name].focus();
}
function onClick(){
document.form(0).submit();
}
function doQuickSearch() {
    var ThisForm=document.forms['QuickSearch'];
    if (ThisForm.QuickSearchStr.value != "")    {
        var SortBy="&SearchOrder=4";
        var Start="&Start=1";
        var Count="&Count=100";
    
        document.location=dbPath+"(SearchView)?SearchView&Query=("+ThisForm.QuickSearchStr.value+")"+Start+Count+SortBy;
    }
    else {alert('Bitte geben Sie zuerst einen Suchbegriff ein.')}
}
// Creates code for inserting Flash element
function wFlash(file,w,h) {
    document.writeln("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ")
    document.writeln("codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" ")
    document.writeln("WIDTH=" + w +" HEIGHT=" + h +">")
    document.writeln("<PARAM NAME=movie VALUE=\"" + file + "\">")
    document.writeln("<PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF>")
    document.writeln("<EMBED src=\"" + file + "\" ")
    document.writeln("quality=high bgcolor=#FFFFFF  WIDTH=" + w + " HEIGHT=" + h + " TYPE=\"application/x-shockwave-flash\" ")
    document.writeln("PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">")
    document.writeln("</EMBED></OBJECT>")
}
// Creates code for inserting Windows Media element
function ctrlWindowsMedia(alias,action) {
    if (action == "play") {
        if (ie) {document.all[alias].play()}
    }
    if (action == "pause") {
        if (ie) {document.all[alias].pause()}
    }
    if (action == "stop") {
        if (ie) {document.all[alias].stop();document.all[alias].CurrentPosition = 0}
    }
    if (action == "rewind") {
        if (ie) {document.all[alias].CurrentPosition = 0}
    }
}
function csrWindowsMedia() {
    
}
function wWindowsMedia(alias,file,w,h) {
    document.writeln("<center><table border=0 cellspacing=2 cellpadding=5><tr class=tab-bod><td valign=top align=middle>")
    document.writeln("<object id=\"" + alias + "\" width=\"" + w + "\" height=\"" + h + "\" ")
    document.writeln("classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" ")
    document.writeln("codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902\" ")
    document.writeln("standby=\"Loading Windows Media...\" type=\"application/x-oleobject\">")
    document.writeln("<param name=\"FileName\" value=\"" + dbPath + file + "\">")
    document.writeln("<param name=\"AutoStart\" value=\"true\">")
    document.writeln("<param name=\"ShowControls\" value=\"false\">")
    document.writeln("<embed type=\"application/x-mplayer2\" name=\"" + alias + "\" src=\"" + dbPath + file + "\" width=\"" + w + "\" height=\""+ h +"\" showcontrols=0 loop=false autostart=true ")
    document.writeln("pluginspage=\"http://www.microsoft.com/Windows/MediaPlayer/\"></embed></object>")
    document.writeln("</td><tr class=tab-bod><td valign=top align=right>")
    document.writeln("<img class=\"btnWindowsMedia\" src=\"" + repository1 + "rewind.gif\" border=0 width=15 height=12 onClick=\"ctrlWindowsMedia('" + alias + "','rewind')\">")
    document.writeln("<img class=\"btnWindowsMedia\" src=\"" + repository + "blaettern_rechts.gif\" border=0 width=15 height=12 onClick=\"ctrlWindowsMedia('" + alias + "','play')\">")
    document.writeln("<img class=\"btnWindowsMedia\" src=\"" + repository1 + "pause.gif\" border=0 width=15 height=12 onClick=\"ctrlWindowsMedia('" + alias + "','pause')\">")
    document.writeln("<img class=\"btnWindowsMedia\" src=\"" + repository + "stop.gif\" border=0 width=15 height=12 onClick=\"ctrlWindowsMedia('" + alias + "','stop')\">")
    document.writeln("</td></tr></table></center>")
}
// Cookie functions
function setCookie(cookieName, cookieVal, days) {
    if (!days) days = 1;
    var expDate = new Date();
    expDate.setTime(expDate.getTime() + days*24*60*60*1000);
    var expDateString = expDate.toGMTString();
    document.cookie = cookieName + "="+escape(cookieVal) + ";path=/;expires="+expDateString;
}
function getCookie(cookieName) {
    cookieName = cookieName+"=";
    var allCookies = document.cookie;
    if (allCookies.length > 0) {
        var start = allCookies.indexOf(cookieName);
        if (start != -1) {
            start = start + cookieName.length;
            var end = allCookies.indexOf(";",start);
            if (end == -1) end = allCookies.length;
            return unescape(allCookies.substring(start,end));
        }
    }
    return null;        
}
function delCookie(cookieName) {
    document.cookie = cookieName + "=" + ";path=/;expires=Thu, 01-Jan-70 00:00:01 GMT";
}
// Generates a 30 digit random number used for tracking individual users in statistics
id = getCookie('session')
if (id == null) {
    id = ""
    for (i=0;i<30;i++) {
        tempid = Math.random()*10
        tempid = Math.floor(tempid)
        id = id + tempid
    }
    setCookie('session',id,365)
}



function KeyCheck(myfield,e)
  {
  var keycode;
  if (window.event) keycode = window.event.keyCode;
  else if (e) keycode = e.which;
  else return true;
  if (((keycode>47) && (keycode<58) )  || (keycode==8) ||(keycode==13))
    {
    return true;
    }
  else return false;
  }



<!--
function KeyCheck2(myfield,e)
  {
  var keycode;
  if (window.event) keycode = window.event.keyCode;
  else if (e) keycode = e.which;
  else return true;
  if (((keycode>47) && (keycode<58) )  || (keycode==8) ||(keycode==13) || ((keycode>96) && (keycode<123) )  ||(keycode==45) ||(keycode==95))
    {
    return true;
    }
  else return false;
  }