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?shop=<? echo $shop; ?>','_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.form1.agbread.checked == false)
		{
		alert("Bitte bestä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 BOBBopenEXTwin(url,w,h)
	{
	window.open(url,'_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;
                        }
        }



//
// Notizblockfunktion mit AJAX
//

    var http_request = false;

    function macheRequest(url) {

        http_request = false;

        if (window.XMLHttpRequest) { // Mozilla, Safari,...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
                // zu dieser Zeile siehe weiter unten
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

        if (!http_request) {
            alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen');
            return false;
        }
        http_request.onreadystatechange = alertInhalt;
        http_request.open('GET', url, true);
        http_request.send(null);

    }

    function alertInhalt() {

        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
                // alert(http_request.responseText);
                alert('gewünschte Seite wurde dem Notizblock hinzugefügt.');
            } else {
                alert('Kann Seite nicht zum Notizblock hinzufügen.');
            }
        }

    }
//
// Ende Notizblockfunktion mit AJAX
//
