

//pop

function pop(url,name,str) {
    popwin=window.open(url,'popwin',str);
}

//Popupcenter allgemein + Forum + Polls

function popupcenter(uri) {
    var wi=(window.screen.availWidth)-20;
    var he=(window.screen.availHeight)-40;
    str="width="+wi+",height="+he+",top="+0+",left="+0+",resizable";
    popupWin=window.open(uri,"wincenter",str);
}

//Popupcenter allgemein + Forum + Polls

function popcenter(uri,wi,he,poptype) {
    if(poptype=="narrow"){
        wi=parseInt(wi)+16; he=parseInt(he)+16;
    }else{
        wi=parseInt(window.screen.availWidth*.8); he=parseInt(window.screen.availHeight*.8);
    }
    //alert(uri.indexOf("gal.php"));
    if(uri.indexOf("gal.php")=="-1"){
        uri="../include/zoom.php?path="+uri;
    }
    var w=(window.screen.availWidth-wi)/2-16;
    var h=(window.screen.availHeight-he)/2-16;
    var strscroll=",status=1,resizable=1";
    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);
}


function get_radio_value() {
for (var i=0; i < document.f.Zahlungsweise.length; i++){
   if (document.f.Zahlungsweise[i].checked){
      var rad_val = document.f.Zahlungsweise[i].value;
      return rad_val;
      }
   }
}

//Mengen ändern
function submitcart(){
    document.c.submit();
}

function validate_email(slang){
    var e=document.f.Email.value;
    if(e.indexOf("@") < 1 || e.indexOf(".") < 1 || e.length < 8){
        alert (eval(slang+"_msg[14]"));
        return false;
    }
}
