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';
   		}
	}


//
// Start Infolayer
//

function initTooltip(divId,e) {
	var tooltip = document.getElementById('tooltipMouseover');
	tooltip.style.display = '';
	tooltip.style.width = '350px';
	tooltip.innerHTML = document.getElementById( divId ).innerHTML;
	// document.onclick=followMouse;

	// offset from the cursor
	var offsetx = 20;
	var offsety = 20;
	var posx = 0;
	var posy = 0;
	var tooltip = document.getElementById('tooltipMouseover');
	if (!e) {
		var e = window.event;
	}

	if (e.pageX || e.pageY) {
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY) {
		posx = e.clientX + document.documentElement.scrollLeft;
		posy = e.clientY + document.documentElement.scrollTop;
	}
	if (window.innerWidth || window.innerHeight){ 
		docwidth = window.innerWidth; 
		docheight = window.innerHeight; 
	} else if (document.documentElement.clientHeight || document.documentElement.clientWidth) {
		docwidth = document.documentElement.clientWidth;
		docheight = document.documentElement.clientHeight;
	} else if (document.body.clientWidth || document.body.clientHeight){ 
		docwidth = document.body.clientWidth; 
		docheight = document.body.clientHeight; 
	}
	// if tooltip goes beyond visible area, move it higher by it's width
	if ((docheight - (posy + offsety + tooltip.offsetHeight)) < 0 ) {
		offsety *= -1;
		offsety -= (tooltip.offsetHeight+offsety);
	}
	// same for the width
	if ((docwidth - (posx + offsetx + tooltip.offsetWidth)) < 0 ) {
		offsetx *= -1;
		offsetx -= (tooltip.offsetWidth+offsetx);
	}
	
	tooltip.style.left = posx + offsetx + 'px';
	tooltip.style.top = posy + offsety + 'px';
}

function hideTooltip() {
	var tooltip = document.getElementById('tooltipMouseover');
	document.onmousemove='';
	tooltip.style.display = 'none';
}

document.write("<div id=tooltipMouseover class=tooltipMouseover></div>");
//
// End Infolayer
//
