﻿function pickandclickurlaub() {
        var selection = document.menuform.menu.selectedIndex;
        var newloc = null;
	if (selection==0) newloc='#';
	if (selection==1) newloc='#';
	if (selection==2) newloc='http://www.schrotundkorn.de/urlaub/ud_bis_3.htm';
	if (selection==3) newloc='http://www.schrotundkorn.de/urlaub/ud_3bis5.htm';
 	if (selection==4) newloc='http://www.schrotundkorn.de/urlaub/ud_5bis7.htm';
	if (selection==5) newloc='http://www.schrotundkorn.de/urlaub/ud_7.htm';
	if (selection==6) newloc='http://www.schrotundkorn.de/urlaub/ud_8_9.htm';
	if (selection==7) newloc='http://www.schrotundkorn.de/urlaub/ueu_dk.htm';
	if (selection==8) newloc='http://www.schrotundkorn.de/urlaub/ueu_fra.htm';
	if (selection==9) newloc='http://www.schrotundkorn.de/urlaub/ueu_gre.htm';
	if (selection==10) newloc='http://www.schrotundkorn.de/urlaub/ueu_gb.htm';
	if (selection==11) newloc='http://www.schrotundkorn.de/urlaub/ueu_irl.htm';
	if (selection==12) newloc='http://www.schrotundkorn.de/urlaub/ueu_ita.htm';
	if (selection==13) newloc='http://www.schrotundkorn.de/urlaub/ueu_aut.htm';
	if (selection==14) newloc='http://www.schrotundkorn.de/urlaub/ueu_por.htm';
	if (selection==15) newloc='http://www.schrotundkorn.de/urlaub/ueu_swe.htm';
	if (selection==16) newloc='http://www.schrotundkorn.de/urlaub/ueu_ch.htm';
	if (selection==17) newloc='http://www.schrotundkorn.de/urlaub/ueu_esp.htm';
	if (selection==18) newloc='http://www.schrotundkorn.de/urlaub/ueu_tur.htm';
	if (selection==19) newloc='http://www.schrotundkorn.de/urlaub/ueu_allg.htm';
	if (selection==20) newloc='http://www.schrotundkorn.de/urlaub/u_welt.htm';
	if (selection==21) newloc='#';
	if (selection==22) newloc='#';
	if (selection==23) newloc='#';
	if (selection==24) newloc='#';
	if (selection==25) newloc='#';
	if (selection==26) newloc='http://www.schrotundkorn.de/urlaub02/ud_bis_3.htm';
	if (selection==27) newloc='http://www.schrotundkorn.de/urlaub02/ud_3bis5.htm';
 	if (selection==28) newloc='http://www.schrotundkorn.de/urlaub02/ud_5bis7.htm';
	if (selection==29) newloc='http://www.schrotundkorn.de/urlaub02/ud_7.htm';
	if (selection==30) newloc='http://www.schrotundkorn.de/urlaub02/ud_8_9.htm';
	if (selection==31) newloc='http://www.schrotundkorn.de/urlaub02/ueu_dk.htm';
	if (selection==32) newloc='http://www.schrotundkorn.de/urlaub02/ueu_fra.htm';
	if (selection==33) newloc='http://www.schrotundkorn.de/urlaub02/ueu_gre.htm';
	if (selection==34) newloc='http://www.schrotundkorn.de/urlaub02/ueu_gb.htm';
	if (selection==35) newloc='http://www.schrotundkorn.de/urlaub02/ueu_irl.htm';
	if (selection==36) newloc='http://www.schrotundkorn.de/urlaub02/ueu_ita.htm';
	if (selection==37) newloc='http://www.schrotundkorn.de/urlaub02/ueu_aut.htm';
	if (selection==38) newloc='http://www.schrotundkorn.de/urlaub02/ueu_por.htm';
	if (selection==39) newloc='http://www.schrotundkorn.de/urlaub02/ueu_swe.htm';
	if (selection==40) newloc='http://www.schrotundkorn.de/urlaub02/ueu_ch.htm';
	if (selection==41) newloc='http://www.schrotundkorn.de/urlaub02/ueu_esp.htm';
	if (selection==42) newloc='http://www.schrotundkorn.de/urlaub02/ueu_tur.htm';
	if (selection==43) newloc='http://www.schrotundkorn.de/urlaub02/ueu_allg.htm';
	if (selection==44) newloc='http://www.schrotundkorn.de/urlaub02/u_welt.htm';
	if (selection==45) newloc='#top';
				if (newloc) setTimeout("location = \'" + newloc + "\'", 0);}



function pickandclick() {
        var selection = document.menuform.menu.selectedIndex;
        var newloc = null;
	if (selection==0) newloc='#';
	if (selection==1) newloc='http://www.schrotundkorn.de/lernen/semi03.htm';
	if (selection==2) newloc='http://www.schrotundkorn.de/lernen/semi02.htm';
	if (selection==3) newloc='http://www.schrotundkorn.de/lernen/semi04.htm';
	if (selection==4) newloc='http://www.schrotundkorn.de/lernen/semi07.htm';
	if (selection==5) newloc='http://www.schrotundkorn.de/lernen/semi05.htm';
	if (selection==6) newloc='http://www.schrotundkorn.de/lernen/semi09.htm';
	if (selection==7) newloc='http://www.schrotundkorn.de/lernen/semi01.htm';
	if (selection==8) newloc='http://www.schrotundkorn.de/lernen/semi06.htm';
	if (selection==9) newloc='#';
	if (selection==10) newloc='#';
	if (selection==11) newloc='#';
	if (selection==12) newloc='#';
	if (selection==13) newloc='http://www.schrotundkorn.de/lernen02/semi03.htm';
	if (selection==14) newloc='http://www.schrotundkorn.de/lernen02/semi02.htm';
 	if (selection==15) newloc='http://www.schrotundkorn.de/lernen02/semi04.htm';
	if (selection==16) newloc='http://www.schrotundkorn.de/lernen02/semi07.htm';
	if (selection==17) newloc='http://www.schrotundkorn.de/lernen02/semi05.htm';
	if (selection==18) newloc='http://www.schrotundkorn.de/lernen02/semi09.htm';
	if (selection==19) newloc='http://www.schrotundkorn.de/lernen02/semi01.htm';
	if (selection==20) newloc='http://www.schrotundkorn.de/lernen02/semi06.htm';
				if (newloc) setTimeout("location = \'" + newloc + "\'", 0);}




function openTafWindow(theURL,winName,features) {
var mLoc=window.location.href;var dTitle=document.title;
dTitle=escape(dTitle);mLoc=escape(mLoc);
var mST=(theURL.indexOf('?')!=-1)?'&fr=':'?fr=';
theURL=theURL+mST+mLoc +'&dt='+dTitle;
var myWin=window.open(theURL,winName,features);
myWin.focus();
}



function getRefQuery () {
  var Refer = document.referrer
  if ( ! Refer ) return false
  q = Refer.match(/(q(([^=]*)|kw)?|xt)=([^"&;]+)/)
  if ( ! q ) return false

//----- no cross-script hacking, please
  var qry = unescape( q[ ( q.length - 1 ) ] )
  qry = qry.replace(/</g, '&lt;')
  qry = qry.replace(/>/g, '&gt;')
  qry = qry.replace(/:/g, ' ')
  qry = qry.replace(/\./g, ' ')
  qry = qry.replace(/\+/g, ' ')

    var plaintext = ""; var i=0; var c=c1=c2=0;
    while(i<qry.length)
        {
        c = qry.charCodeAt(i);
        if (c<128) {
            plaintext += String.fromCharCode(c);
            i++;}
        else if((c>191) && (c<224)) {
            c2 = qry.charCodeAt(i+1);
            plaintext += String.fromCharCode(((c&31)<<6) | (c2&63));
            i+=2;}
        else {
            c2 = qry.charCodeAt(i+1); c3 = qry.charCodeAt(i+2);
            plaintext += String.fromCharCode(((c&15)<<12) | ((c2&63)<<6) | (c3&63));
            i+=3;}
        }

  if ( ! qry.match(/\w/) ) return false
  return ("<table border=\"0\" width=\"154\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"br1highlight\"></td></tr><tr><td height=\"22\" class=\"menupassivehead\">&nbsp;<a href=\"#\" class=\"navigate\">mehr Infos zu ...</a></td></tr><tr><td class=\"br1highlight\"></td></tr><tr><td><tr><td bgcolor=\"#FFFFF0\" valign=\"middle\" class=\"menupassivehell\" height=\"22\"><i><b>"+plaintext+"</b></i> <font size=\"1\">gefunden!</font></td></tr><tr><tr><td class=\"br1highlight\"></td></tr><tr><td bgcolor=\"#FFFFF0\"><DIV STYLE=\"position:relative; left:0; top:0; width:150; height:180; clip:rect(0,0,0,0);\"><IFRAME name=\"bewertung\" SRC=\"http://www.naturkost.de/cgi-bin/sucheliste/search.pl?Match=1&Realm=All&Terms="+plaintext+"\"WIDTH=\"150\" HEIGHT=\"180\" FRAMEBORDER=\"0\" SCROLLING=\"auto\"></IFRAME></td></tr><tr><td class=\"br1highlight\"></td></tr></table><br>")
}



function getRefQueryBreit () {
  var Refer = document.referrer
  if ( ! Refer ) return false
  q = Refer.match(/(q(([^=]*)|kw)?|xt)=([^"&;]+)/)
  if ( ! q ) return false

//----- no cross-script hacking, please
  var qry = unescape( q[ ( q.length - 1 ) ] )
  qry = qry.replace(/</g, '&lt;')
  qry = qry.replace(/>/g, '&gt;')
  qry = qry.replace(/:/g, ' ')
  qry = qry.replace(/\./g, ' ')
  qry = qry.replace(/\+/g, ' ')

    var plaintext = ""; var i=0; var c=c1=c2=0;
    while(i<qry.length)
        {
        c = qry.charCodeAt(i);
        if (c<128) {
            plaintext += String.fromCharCode(c);
            i++;}
        else if((c>191) && (c<224)) {
            c2 = qry.charCodeAt(i+1);
            plaintext += String.fromCharCode(((c&31)<<6) | (c2&63));
            i+=2;}
        else {
            c2 = qry.charCodeAt(i+1); c3 = qry.charCodeAt(i+2);
            plaintext += String.fromCharCode(((c&15)<<12) | ((c2&63)<<6) | (c3&63));
            i+=3;}
        }

  if ( ! qry.match(/\w/) ) return false
  return ("<table width=\"450\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#FFFFFF\"><tr><td height=\"19\" align=\"left\" valign=\"bottom\"><em class=\"headline\">Sie suchen Informationen zu <i>\&bdquo;"+plaintext+"\"</i>?</em><br><img src=\"http://www.naturkost.de/bilder/green.gif\" alt=\"1\" width=\"450\" height=\"1\"></td></tr><tr><td><br class=br8>Vielleicht helfen Ihnen die folgenden Artikel weiter:</td><td></td></tr><tr><td class=\"br1highlight\"></td></tr><tr valign=\"top\"><td><DIV STYLE=\"position:relative; left:0; top:0; width:450; height:230; clip:rect(0,0,0,0);\"><IFRAME name=\"bewertung\" SRC=\"http://www.naturkost.de/cgi-bin/sucheiframe/search.pl?Match=1&Realm=All&Terms="+plaintext+"\"WIDTH=\"450\" HEIGHT=\"230\" FRAMEBORDER=\"0\" SCROLLING=\"auto\" STYLE=\"border-style:dotted; border-width:1px\"></IFRAME></td></tr></table><br>")
}


function getRefQueryRezeptBild () {
  var Refer = document.referrer
  if ( ! Refer ) return false
  q = Refer.match(/(terms|Terms(([^=]*)|kw)?|p)=([^"&;]+)/)
  if ( ! q ) return false

//----- no cross-script hacking, please
  var qry = unescape( q[ ( q.length - 1 ) ] )
  qry = qry.replace(/</g, '&lt;')
  qry = qry.replace(/>/g, '&gt;')
  qry = qry.replace(/:/g, ' ')
  qry = qry.replace(/\./g, ' ')
  qry = qry.replace(/\+/g, ' ')

  if ( ! qry.match(/\w/) ) return false
  return ("<br><table border=\"0\" width=\"154\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><IFRAME name=\"bewertung\" SRC=\"http://www.naturkost.de/cgi-bin/datenbanken/rezepte.cgi?searchstring="+qry+"\"WIDTH=\"152\" HEIGHT=\"280\" FRAMEBORDER=\"0\" SCROLLING=\"no\"></IFRAME></td></tr></table><br>")
}


function getRefQueryRezeptBildG () {
  var Refer = document.referrer
  if ( ! Refer ) return false
  q = Refer.match(/(q(([^=]*)|kw)?|xt)=([^"&;]+)/)
  if ( ! q ) return false

//----- no cross-script hacking, please
  var qry = unescape( q[ ( q.length - 1 ) ] )
  qry = qry.replace(/</g, '&lt;')
  qry = qry.replace(/>/g, '&gt;')
  qry = qry.replace(/:/g, ' ')
  qry = qry.replace(/\./g, ' ')
  qry = qry.replace(/\+/g, ' ')

    var plaintext = ""; var i=0; var c=c1=c2=0;
    while(i<qry.length)
        {
        c = qry.charCodeAt(i);
        if (c<128) {
            plaintext += String.fromCharCode(c);
            i++;}
        else if((c>191) && (c<224)) {
            c2 = qry.charCodeAt(i+1);
            plaintext += String.fromCharCode(((c&31)<<6) | (c2&63));
            i+=2;}
        else {
            c2 = qry.charCodeAt(i+1); c3 = qry.charCodeAt(i+2);
            plaintext += String.fromCharCode(((c&15)<<12) | ((c2&63)<<6) | (c3&63));
            i+=3;}
        }

  if ( ! qry.match(/\w/) ) return false
  return ("<br><table border=\"0\" width=\"154\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><IFRAME name=\"bewertung\" SRC=\"http://www.naturkost.de/cgi-bin/datenbanken/rezepte.cgi?searchstring="+plaintext +"\"WIDTH=\"152\" HEIGHT=\"280\" FRAMEBORDER=\"0\" SCROLLING=\"no\"></IFRAME></td></tr></table><br>")
}




function getRefQueryRezept () {
  var Refer = document.referrer
  if ( ! Refer ) return false
  q = Refer.match(/(q(([^=]*)|kw)?|xt)=([^"&;]+)/)
  if ( ! q ) return false

//----- no cross-script hacking, please
  var qry = unescape( q[ ( q.length - 1 ) ] )
  qry = qry.replace(/</g, '&lt;')
  qry = qry.replace(/>/g, '&gt;')
  qry = qry.replace(/:/g, ' ')
  qry = qry.replace(/\./g, ' ')
  qry = qry.replace(/\+/g, ' ')

    var plaintext = ""; var i=0; var c=c1=c2=0;
    while(i<qry.length)
        {
        c = qry.charCodeAt(i);
        if (c<128) {
            plaintext += String.fromCharCode(c);
            i++;}
        else if((c>191) && (c<224)) {
            c2 = qry.charCodeAt(i+1);
            plaintext += String.fromCharCode(((c&31)<<6) | (c2&63));
            i+=2;}
        else {
            c2 = qry.charCodeAt(i+1); c3 = qry.charCodeAt(i+2);
            plaintext += String.fromCharCode(((c&15)<<12) | ((c2&63)<<6) | (c3&63));
            i+=3;}
        }

  if ( ! qry.match(/\w/) ) return false
  return ("<table border\=\"0\" width\=\"154\" cellspacing\=\"0\" cellpadding\=\"0\"><tr><td height\=\"22\" class\=\"menupassivehead\">&nbsp;<a href\=\"#\" class\=\"navigate\">Rezepte mit ...</a></td></tr><tr><td class\=\"br1highlight\"></td></tr><tr><td><tr><td bgcolor\=\"#FFFFF0\" valign\=\"middle\" class\=\"menupassivehell\" height\=\"22\"><i><b>"+plaintext+"</b></i> <font size\=\"1\">gefunden!</font></td></tr><tr><tr><td class\=\"br1highlight\"></td></tr><tr><td><span class\='normal10grau'><DIV STYLE\=\"position:relative; left:0; top:0; width:152; height:180; clip:rect(0,0,0,0);\"><IFRAME name\=\"bewertung\" SRC\=\"http://www.naturkost.de/cgi-bin/ksearch-rezepte/ksearch2.cgi?terms\="+plaintext+"\"WIDTH\=\"152\" HEIGHT\=\"180\" FRAMEBORDER\=\"0\" SCROLLING\=\"auto\"></IFRAME></td></tr><tr><td class\=\"br1highlight\"></td></tr></table><br>")
}




function getRefQueryIntern () {
  var Refer = document.referrer
  if ( ! Refer ) return false
  q = Refer.match(/(terms|Terms(([^=]*)|kw)?|p)=([^"&;]+)/)
  if ( ! q ) return false

//----- no cross-script hacking, please
  var qry = unescape( q[ ( q.length - 1 ) ] )
  qry = qry.replace(/</g, '&lt;')
  qry = qry.replace(/>/g, '&gt;')
  qry = qry.replace(/:/g, ' ')
  qry = qry.replace(/\./g, ' ')
  qry = qry.replace(/\+/g, ' ')

  if ( ! qry.match(/\w/) ) return false
  return ("<table border=\"0\" width=\"154\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"br1highlight\"></td></tr><tr><td height=\"22\" class=\"menupassivehead\"><table cellpadding=\"2\"><tr><td class=\"menupassivehead\">mehr Infos zu... </a><i><b>&bdquo;"+qry+"&ldquo;</b></i> gefunden!</td></tr></table></td></tr><tr><tr><td class=\"br1highlight\"></td></tr><tr><td><span class='normal10grau'><DIV STYLE=\"position:relative; left:0; top:0; width:152; height:180; clip:rect(0,0,0,0);\"><IFRAME name=\"bewertung\" SRC=\"http://www.naturkost.de/cgi-bin/sucheliste/search.pl?Realm=All&Terms="+qry+"\"WIDTH=\"152\" HEIGHT=\"180\" FRAMEBORDER=\"0\" SCROLLING=\"auto\"></IFRAME></td></tr><tr><td class=\"br1highlight\"></td></tr></table><br>")
}



function decode_utf8(utftext) {
    var plaintext = ""; var i=0; var c=c1=c2=0;
    while(i<utftext.length)
        {
        c = utftext.charCodeAt(i);
        if (c<128) {
            plaintext += String.fromCharCode(c);
            i++;}
        else if((c>191) && (c<224)) {
            c2 = utftext.charCodeAt(i+1);
            plaintext += String.fromCharCode(((c&31)<<6) | (c2&63));
            i+=2;}
        else {
            c2 = utftext.charCodeAt(i+1); c3 = utftext.charCodeAt(i+2);
            plaintext += String.fromCharCode(((c&15)<<12) | ((c2&63)<<6) | (c3&63));
            i+=3;}
        }
    return plaintext;
}




function Newsletter()
{
 MeinFenster =
 window.open("http://www.naturkost.de/mailer/lists/", "Zweitfenster", "width=780,height=350,scrollbars,resizeable");
 MeinFenster.focus();
}

function Jugendseite1()
{
 MeinFenster =
 window.open("http://www.schrotundkorn.de/jugendseite/rot.jpg", "Zweitfenster", "width=800,height=851,scrollbars,resizeable");
 MeinFenster.focus();
}


function Jugendseite2()
{
 MeinFenster =
 window.open("http://www.schrotundkorn.de/jugendseite/agapi.jpg", "Zweitfenster", "width=800,height=851,scrollbars,resizeable");
 MeinFenster.focus();
}



function Abonnieren()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/indexsukabo.html", "Zweitfenster", "width=618,height=595,scrollbars,status,resizeable");
 MeinFenster.focus();
}

function Shop()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/indexshop.html", "Zweitfenster", "width=618,height=595,scrollbars,status,resizeable");
 MeinFenster.focus();
}

function Laeden()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/adressen/iladen.html", "Zweitfenster", "width=750,height=495,scrollbars,status,resizeable");
 MeinFenster.focus();
}


function Seminare()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/adressen/iseminare.html", "Zweitfenster", "width=750,height=495,scrollbars,status,resizeable,location=no");
 MeinFenster.focus();
}

function Hersteller()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/adressen/index.html", "Zweitfenster", "width=750,height=495,scrollbars,status,resizeable");
 MeinFenster.focus();
}

function Lieferservice()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/adressen/ilieferservice.html", "Zweitfenster", "width=750,height=495,scrollbars,status,resizeable");
 MeinFenster.focus();
}

function Dienstleister()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/adressen/idienstleister.html", "Zweitfenster", "width=750,height=495,scrollbars,status,resizeable");
 MeinFenster.focus();
}

function Urlaub()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/adressen/iurlaub.html", "Zweitfenster", "width=750,height=495,scrollbars,status,resizeable");
 MeinFenster.focus();
}


function y2k(number)
{return(number<1000)?number+1900:number;}
var monat=new Array("01","02","03","04","05","06","07","08","09","10","11","12");
var heute=new Date();
function writeDate()
{return heute.getDate()+"."+monat[heute.getMonth()]+"."+y2k(heute.getYear());}

