function checkmail(adresse)
	{
	if (adresse.value.indexOf("@",0) == -1)
		{
		alert ("Sie haben keine e-mail-Adresse angegeben oder Ihre angegebene e-mail-Adresse ist falsch !");
		return false;
		}
	}



function npwd()
        {
	window.open('npwd.php','_blank','toolbar=0,width=650,height=200,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0');
        }



function vsinfo()
        {
	window.open('bestellzonen.php?shop=<? echo $shop; ?>','_blank','toolbar=0,width=640,height=600,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0');
        }



function agbcheck()
	{
	if(document.ordercontrolform.agbread.checked == false)
		{
		alert("Bitte best&auml;tigen Sie unsere Lieferbedingungen!");
		return false;
		}
	}



function openshoppic(pic,w,h)
        {
	var shoppic = 'shop/products/'+pic;
	window.open(shoppic,'_blank','toolbar=0,width='+w+',height='+h+',location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0');
        }


function BOBBopenPIC(pic,w,h)
        {
	window.open(pic,'_blank','toolbar=0,width='+w+',height='+h+',location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0');
        }


function BOBBopenWIN(v,w,h)
	{
	window.open('BOBBup.php?'+v,'_blank','height='+h+',width='+w+',scrollbars=1,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0');
	}

function BOBBopenGG(v,w,h)
        {
        window.open('gastgeber.php?'+v,'_blank','height='+h+',width='+w+',scrollbars=1,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0');
        }

function cb()
        {
        if(!document.fdbanmeldung.akzept.checked)
                {
                alert("Bitte akzeptieren Sie die Nutzungsbedingungen!");
                return false;
                } else {
                        return true;
                        }
        }


function dynIFheight() 
	{
   	if(document.all&&!window.opera) 
		{
     		var a=document.all.BoBBinaBox;
     		BoBBinaBox.document.body.scroll='no';
   		} else {
     			var a=document.getElementsByName('BoBBinaBox')[0];
     			a.scrolling='no';
   			}

   	var a=document.getElementsByName('BoBBinaBox')[0];
   	BoBBinaBox.document.getElementsByTagName('body')[0].style.overflow='hidden';
   	var b=BoBBinaBox.document.getElementById('ifcont');

   	if(a.style.height != eval(b.offsetHeight+35)+'px') 
		{
      		a.style.height=eval(b.offsetHeight+35)+'px';
   		}
	}


