// JavaScript Document

// Google Analytics

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1999681-1']);
  _gaq.push(['_setDomainName', '.fsz-lueneburg.de']);
		_gaq.push(['_setAllowHash', false]); // eingefuegt 28.1.2011
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

// Ende Google Analytics


// Aus Mailingwork fuer Newsletter Abmeldeformular (mailingwork.de)
// used by	mehr-newsletter-abmelden-firmen.htm
//									mehr-newsletter-abmelden-privat.htm
function checkFieldsOut ()
{
    var checkOK=true;

    if (document.getElementById('stdOut3').value.match(/^\s*$/)) checkOK=false;

    if (checkOK) document.getElementById('unsubscribe').submit();
    else window.alert("Bitte füllen Sie das E-Mail Feld aus.");
}




// Script zum Ausfuellen der Formulare
// used by 	mehr-anfrage.htm

// Create a global array that will hold the value of each variable,
// keyed by the name of the variable.
var GETDATA = new Array();

// Get the string that follows the "?" in the window's location.
var sGet = window.location.search;
if (sGet) // if has a value...
{
    // Drop the leading "?"
    sGet = sGet.substr(1);
    
    // Generate a string array of the name value pairs.
    // Each array element will have the form "foo=bar"
    var sNVPairs = sGet.split("&");
    
    // Now, for each name-value pair, we need to extract
    // the name and value.
    for (var i = 0; i < sNVPairs.length; i++)
    {
        // So, sNVPairs[i] contains the current element...
        // Split it at the equals sign.
        var sNV = sNVPairs[i].split("=");
        
        // Assign the pair to the GETDATA array.
        var sName = sNV[0];
        var sValue = sNV[1];
        GETDATA[sName] = sValue;
    }
}
				
// Ende Script zum Ausfuellen der Formulare 



