//vetcontact.js

//Stylesheet-Weiche

var B; if(document.all){B='ie';}else{B='ns';}
document.write('<link rel=stylesheet href=../css/'+B+'-de.css type=text/css>');

//Cookies auslesen

function getCookieVal (offset) {
    var endstr = document.cookie.indexOf (";", offset);
    if (endstr == -1)
        endstr = document.cookie.length;
    return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg)
        return getCookieVal (j);
        i = document.cookie.indexOf(" ", i) + 1;
        if (i == 0) break;
    }
    return null;
}

//Um nun einen Cookie zu lesen, rufen Sie im JavaScript einfach folgende Funktion auf:
//var xyz = GetCookie("Name")

var wetter=GetCookie("wetter");


//Cookies setzen

function SetCookie(name){
wert = escape(document.w.ORT.value);
ex = new Date(2050, 00, 01, 00, 00, 00);
ex = ex.toGMTString();
document.cookie = ''+name+' = '+wert+'; expires = '+ex;
}

//forum Boris Bildupload Popup

//Popup allgemein + Forum + Polls

function popup(uri,str) {
    popupWin=window.open(uri,"bild",str);
}

//Popup allgemein + Forum + Polls

function popupcenter(uri,wi,he,str) {
    var w=(window.screen.availWidth-wi)/2-12;
    var h=(window.screen.availHeight-he)/2-24;
    str="width="+wi+",height="+he+",top="+h+",left="+w+","+str;
    
    popupWin=window.open(uri,"wincenter",str);
}

//popcenter (writedoc)

function popcenter(uri,wi,he,poptype) {
    if(poptype=="narrow"){
        wi=parseInt(wi)+16; he=parseInt(he)+20;
    }else{
        wi=parseInt(window.screen.availWidth*.8); he=parseInt(window.screen.availHeight*.8);
    }
    //uri="zoom.php?path="+uri;
    var w=(window.screen.availWidth-wi)/2-16;
    var h=(window.screen.availHeight-he)/2-16;
    var strscroll="";
    if(wi>window.screen.availWidth-24 || he>window.screen.availHeight-24){ strscroll=",scrollbars=1,resizable=1";}
    str="width="+wi+",height="+he+",top="+h+",left="+w+""+strscroll+"";

    zoom=window.open(uri,"zoom",str);
    window.parent.zoom.focus();
}
 
 
//data getselect2 go_getselect2 Fachorganisationen

function go_getselect2(){
var k = document.ds2.k.value;
var d = document.ds2.d.value;
var d2 = document.ds2.d2[document.ds2.d2.selectedIndex].value;
//if(d2){
location.href="vet.php?k="+k+"&d="+d+"&d2="+d2+"";
//}
}

//tmpF, tmpMain Fachgebietsmenue

function goto_fachgebiet(){
var destiny=document.fachgebiet.fachgebiet[document.fachgebiet.fachgebiet.selectedIndex].value;
location.href="../"+destiny+"/";
}



