document.onclick = mouseClick;if (navigator.userAgent.indexOf("Windows") != -1) var IExplorer = true;else var IExplorer = false;    /* color wieder herstellen */var save_color;    /* browser enter event umgehen */var Cur_Opt_Link;var norm_image = '';var isVisible = false;function mouseClick (Ereignis) {    if (document.getElementById("ac_results")) {        document.suchfeld.suchwort.focus();        if($('ac_results')) $('ac_results').destroy();        Cur_Opt_Link ='';    }    /* reginale gutscheinverwaltung */    if (document.getElementById("selectDiv") && document.getElementById("selectDiv").style.visibility == "visible") {gutscheinverwaltungHide();}    if (document.getElementById("selectDiv2") && document.getElementById("selectDiv2").style.visibility == "visible") {gutscheinverwaltungHide();}    if (document.getElementById("selectDiv3") && document.getElementById("selectDiv3").style.visibility == "visible") {gutscheinverwaltungHide();}    if (document.getElementById("selectDiv4") && document.getElementById("selectDiv4").style.visibility == "visible") {gutscheinverwaltungHide();}    if (document.getElementById("selectDiv5") && document.getElementById("selectDiv5").style.visibility == "visible") {gutscheinverwaltungHide();}    if (document.getElementById("selectDiv6") && document.getElementById("selectDiv6").style.visibility == "visible") {gutscheinverwaltungHide();}    if (document.getElementById("selectDiv7") && document.getElementById("selectDiv7").style.visibility == "visible") {gutscheinverwaltungHide();}}function gutscheinverwaltungHide() {    if (isVisible) {        if (document.getElementById("selectDiv")) document.getElementById("selectDiv").style.visibility = "hidden";        if (document.getElementById("selectDiv2")) document.getElementById("selectDiv2").style.visibility = "hidden";        if (document.getElementById("selectDiv3")) document.getElementById("selectDiv3").style.visibility = "hidden";        if (document.getElementById("selectDiv4")) document.getElementById("selectDiv4").style.visibility = "hidden";        if (document.getElementById("selectDiv5")) document.getElementById("selectDiv5").style.visibility = "hidden";        if (document.getElementById("selectDiv6")) document.getElementById("selectDiv6").style.visibility = "hidden";        if (document.getElementById("selectDiv7")) document.getElementById("selectDiv7").style.visibility = "hidden";        isVisible = false;    } else isVisible = true;}function Tastendruck(Ereignis) {    /* always make sure browser-side autocomplete is disabled */    document.getElementById('suchwort').setAttribute("autocomplete","off");    var Taste;    if(!Ereignis) Ereignis = window.event;    if (Ereignis.keyCode) Taste = Ereignis.keyCode;  //IE    else if (Ereignis.which) Taste = Ereignis.which; //andere Browser    //key up event    if (Taste == 38) {  	Cur_Opt = document.getElementById("ac_results_selected");  	if (!Cur_Opt) Cur_Opt = document.getElementById("ac_results").firstChild.lastChild;  	else if (Cur_Opt != document.getElementById("ac_results").firstChild.firstChild) {            Cur_Opt.removeAttribute("id");            Cur_Opt.style.backgroundColor = save_color;            //Element davor            Cur_Opt = Cur_Opt.previousSibling;            save_color = Cur_Opt.style.backgroundColor;  	}  	if (Cur_Opt) {            Cur_Opt.setAttribute("id","ac_results_selected");            Cur_Opt_Link = Cur_Opt.firstChild.href;            Cur_Opt.style.backgroundColor = "#FE7500";            ChangeSuchwort(Cur_Opt);  	}    }    //key down event    else if (Taste == 40) {        Cur_Opt = document.getElementById("ac_results_selected");        if (!Cur_Opt) {            Cur_Opt = document.getElementById("ac_results").firstChild.firstChild;            save_color = Cur_Opt.style.backgroundColor;        }        else if (Cur_Opt != document.getElementById("ac_results").firstChild.lastChild) {            Cur_Opt.removeAttribute("id");            Cur_Opt.style.backgroundColor = save_color;            //naechstes Element            Cur_Opt = Cur_Opt.nextSibling;            save_color = Cur_Opt.style.backgroundColor;        }        if (Cur_Opt){            Cur_Opt.setAttribute("id","ac_results_selected");            Cur_Opt_Link = Cur_Opt.firstChild.href;            Cur_Opt.style.backgroundColor = "#FE7500";            ChangeSuchwort(Cur_Opt);        }    }    //key ESC event    else if (Taste == 27) {        document.suchfeld.suchwort.focus();        if($('ac_results')) $('ac_results').destroy();        Cur_Opt_Link ='';    }    //key enter    else if (Taste == 13) {        if (Cur_Opt_Link) window.location.href = Cur_Opt_Link;    }    //suchwort eingeben event    else if (Taste != 38 && Taste != 40 ){        var Param = document.getElementById('suchwort').value;        if(Param.length > 1)getSuchwort('output.php?suchwort=' + escape(Param));    }    if (!IExplorer) {Ereignis.preventDefault();}}function ChangeSuchwort(Cur_Opt) {    suchwort = Cur_Opt.getAttribute("name");    document.getElementById('suchwort').value = suchwort;    /* scroll zum element */    document.getElementById('hintdiv').scrollTop = document.getElementById('ac_results_selected').offsetTop - (document.getElementById('ac_results_selected').scrollHeight * 3);    /* scrollen der Browserseite verhindern.. */    document.suchfeld.suchwort.focus();    document.getElementById('suchwort').focus();}function getSuchwort(strURL) {    var req = new Request.JSON({        method: 'get',        url: strURL,        data: {json: 'yes'},        onComplete: function(response){            var data = response;            if(data != null)$('hintdiv').innerHTML = data;        }    });    req.send();}/* Helper - bei selektiertem GS -> GS ansurfen */function submitHelper(el) {    if(Cur_Opt_Link) window.location.href = Cur_Opt_Link;    else el.form.submit();}function ShowCode(gscode) {    if (document.getElementById('rubbelfeld'+gscode).style.display == 'block') {        document.getElementById('rubbelfeld'+gscode).style.display = 'none';        document.getElementById('rubbelcode'+gscode).style.display = 'block';    }    else {        document.getElementById('rubbelfeld'+gscode).style.display = 'block';        document.getElementById('rubbelcode'+gscode).style.display = 'none';    }}function ShowShop(id, firma) {    //ShowCode(id);    var req = new Request.HTML({        method: 'get',        url: 'info.php?id='+id+'&hide=1',        update: $('rubbelfeld'+id)});    req.send();    var GSshop = window.open('http://www.gutscheine.de/ansicht/'+firma+'/'+id+'/', 'GSshop','toolbar=no, locationbar=no, location=no, statusbar=no, menubar=no, width=1024, height=768, resizable=yes, top=50, scrollbars=yes');    if(GSshop) window.open('http://www.gutscheine.de/info/'+firma+'/'+id+'/', 'GScode','toolbar=no, locationbar=no, location=no, statusbar=no, menubar=no, width=1024, height=148, resizable=yes, top=30, scrollbars=yes');}function DetectBrowser() {	var browser=navigator.appName;	var version=navigator.appVersion.substring(0, 1);	if(browser == "Netscape"){            document.getElementById('downloadff').style.display = 'inline';	}	else if(browser == "Microsoft Internet Explorer" && version >= 4){            document.getElementById('downloadie').style.display = 'inline';	}	else {            document.getElementById('downloadie').style.display = 'inline';            document.getElementById('downloadff').style.display = 'inline';	}}function DetectBrowser2() {	var browser=navigator.appName;	var version=navigator.appVersion.substring(0, 1);	if(browser == "Netscape"){            document.getElementById('downloadff').style.display = 'block';	}	else if(browser == "Microsoft Internet Explorer" && version >= 4){            document.getElementById('downloadie').style.display = 'block';            document.getElementById('downloadff').style.display = 'none';	}}function downloadToolbar(browser) {	if(browser == "firefox") {            document.location.href = "http://www.gutscheine.de/download/firefox/";	}	if(browser == "iexplorer") {            document.location.href = "http://www.gutscheine.de/download/iexplorer/";	}}function showmorecomments(id) {    document.getElementById('morecomments'+id).style.display = 'block';    document.getElementById('showcomments'+id).style.display = 'none';}function mouseoverplz(element) {    obj = $(element);    norm_image = obj.src;    if (obj.src.indexOf('_o') == -1) {        file = obj.src.replace(/(\.gif|jpg|jpeg|png)/, '_o$1');        obj.src = file;    }}function mouseoutplz(element) {    obj = $(element);    obj.src = norm_image;}function mouseoverimg (obj) {    obj = document.getElementById(obj);    if (obj.src.indexOf('_o') == -1) {        file = obj.src.replace(/(\.gif|jpg|jpeg|png)/, '_o$1');        document.getElementById(obj.id).src = file;    }}function mouseoverimgoff (obj) {    obj = document.getElementById(obj);    if (obj.src.indexOf('_o') > -1) {        file = obj.src.replace(/_o/, '');        document.getElementById(obj.id).src = file;    }}function Bg1(IdName){    document.getElementById(IdName).style.backgroundColor = "#F58238";    document.getElementById(IdName).style.color = "#ffffff";    document.getElementById(IdName).style.fontweight = "bold";    document.getElementById(IdName).style.paddingleft = "5px";}function Bg2(IdName) {    document.getElementById(IdName).style.backgroundColor = "";    document.getElementById(IdName).style.color = "";    document.getElementById(IdName).style.fontweight = "";    document.getElementById(IdName).style.paddingleft = "";}function selectToField(text, t_field, div) {    var t_field = document.getElementById(t_field);    t_field.value = text;    showHideDiv(div);}function showHideDiv(div) {    var s_field = document.getElementById(div);    (s_field.style.visibility == "visible") ? (s_field.style.visibility = "hidden") : (s_field.style.visibility = "visible");}function payment(art, file_number) {    try {        req = new XMLHttpRequest();    }    catch (e) {        try {            req = new ActiveXObject("Msxml2.XMLHTTP");        }        catch (e) {            try {                req = new ActiveXObject("Microsoft.XMLHTTP");            }            catch (failed) {                req = null;            }        }    }    if (req) {        req.onreadystatechange = function() {            if (req.readyState == 4) {                if (req.status == 200) document.getElementById('paydiv').innerHTML=req.responseText;            }        }        req.open("GET", "http://vordrucke.gutscheine.de/payment.php?art="+art+"&vordruck="+file_number, true);        req.send(null);    }}/*input*/var offX = -185;        // X offset from mouse positionvar offY = -10;		// Y offset from mouse positionvar onX;		// for testingvar onY;		// for testingvar Cur_Element;	// more brainfunction showUpload(elementId) {    Cur_Element = elementId;    el = document.getElementById(elementId.getAttribute('id')+'-upload');    el.style.position = 'absolute';    el.style.zIndex = 100;    el.style.cursor = 'pointer';    addEvent(elementId);}function addEvent (elementId) {	if (!elementId) return;	if (elementId.addEventListener) {  //FF			elementId.addEventListener('mouseover',follow,false);			elementId.addEventListener('mouseout',function (e) {			document.getElementById(elementId.getAttribute('id')+'-upload').style.left = -10000 + 'px';	  		elementId.removeEventListener('mouseover',arguments.callee,false);	  		this.removeEventListener('mouseout',arguments.callee,false);			},false);	} else if (elementId.attachEvent){	//IE			elementId.attachEvent('onmouseover',follow);			elementId.attachEvent('onmouseout',removeEvent);	}}function removeEvent(evt) {	//IE remove	document.getElementById(Cur_Element.getAttribute('id')+'-upload').style.left = -10000 + 'px';	Cur_Element.detachEvent('onmouseover',follow);	Cur_Element.detachEvent('onmouseout',removeEvent);}function mouseX(evt) {	if (evt.pageX) return evt.pageX;	else if (evt.clientX) return evt.clientX + (document.documentElement.scrollLeft ?  document.documentElement.scrollLeft : document.body.scrollLeft);	else return 0;}function mouseY(evt) {	if (evt.pageY) return evt.pageY;	else if (evt.clientY) return evt.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);	else return 0;}function follow(evt) {	if (document.getElementById) {		var obj = document.getElementById(Cur_Element.getAttribute('id')+'-upload').style;		if (!obj) return;		onX = (parseInt(mouseX(evt))+offX);		onY = (parseInt(mouseY(evt))+offY) ;		obj.left = onX + 'px';		obj.top = onY + 'px';	}}function showImage(el) {	if (el.parentNode.getAttribute("id")+'-upload' == el.getAttribute('id')) {		if(el.previousSibling.previousSibling && el.previousSibling.previousSibling.nodeName == 'IMG') {			el.previousSibling.previousSibling.setAttribute('src','http://www.gutscheine.de/img/check.gif')			el.previousSibling.previousSibling.style.width = '24px';			el.previousSibling.previousSibling.style.height = '24px';			el.previousSibling.previousSibling.style.margin = '30px';		} else {		var newIMG = document.createElement('img');		newIMG.src = 'http://www.gutscheine.de/img/check.gif';		newIMG.style.width = '24px';		newIMG.style.height = '24px';		el.parentNode.appendChild(newIMG);		}	}}var tooltip=function(){    var id = 'tt';    var top = 3;    var left = 3;    var maxw = 1300;    var speed = 10;    var timer = 20;    var endalpha = 95;    var alpha = 0;    var tt,t,c,b,h;    var ie = document.all ? true : false;    return{        show:function(v,w){            if(tt == null){                tt = document.createElement('div');                tt.setAttribute('id',id);                t = document.createElement('div');                t.setAttribute('id',id + 'top');                c = document.createElement('div');                c.setAttribute('id',id + 'cont');                b = document.createElement('div');                b.setAttribute('id',id + 'bot');                tt.appendChild(t);                tt.appendChild(c);                tt.appendChild(b);                document.body.appendChild(tt);                tt.style.opacity = 0;                tt.style.filter = 'alpha(opacity=0)';                document.onmousemove = this.pos;            }            tt.style.display = 'block';            c.innerHTML = v;            tt.style.width = w ? w + 'px' : 'auto';            if(!w && ie){                t.style.display = 'none';                b.style.display = 'none';                tt.style.width = tt.offsetWidth;                t.style.display = 'none';                b.style.display = 'none';            }            if(tt.offsetWidth > maxw){tt.style.width = maxw + 'px'}            h = parseInt(tt.offsetHeight) + top;            clearInterval(tt.timer);            tt.timer = setInterval(function(){tooltip.fade(1)},timer);        },        pos:function(e){            var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY;            var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX;            tt.style.top = (u - h) + 'px';            tt.style.left = (l + left) + 'px';        },        fade:function(d){            var a = alpha;            if((a != endalpha && d == 1) || (a != 0 && d == -1)){                var i = speed;                if(endalpha - a < speed && d == 1){                        i = endalpha - a;                }else if(alpha < speed && d == -1){                        i = a;                }                alpha = a + (i * d);                tt.style.opacity = alpha * .01;                tt.style.filter = 'alpha(opacity=' + alpha + ')';            }else{                clearInterval(tt.timer);                if(d == -1){tt.style.display = 'none'}            }        },        hide:function(){            clearInterval(tt.timer);            tt.timer = setInterval(function(){tooltip.fade(-1)},timer);        }    };}();function $(element_id) {	return document.getElementById(element_id);}function $$(element_name) {	return document.getElementByName(element_name);}function getBrowserName() {	var agent = navigator.appVersion;	var teile = agent.split(";");	return teile[1].replace(/ /g,"");}function callURL(location) {	window.location.href=location;	return;}function testRadio( element ) {	var objElement = document.getElementsByName(element);	objElement[0].checked = true;}function marklist(form_id, box_name, state) {	var parent = document.getElementById(form_id);	if (!parent) {eval('parent = document.' + form_id);}	if (!parent) return;	var rb = parent.getElementsByTagName('input');	for (var r = 0; r < rb.length; r++) {		if (rb[r].name.substr(0, box_name.length) == box_name) {			rb[r].checked = state;		}	}}function setFieldValue(field_element,field_value) {	$(field_element).value = field_value;}function checkInputlength(field_id, max_chars, e) {	if( !max_chars || !$(field_id) ) return 0;	if (!e.which) keyCode = event.keyCode; // ie5+ op5+	else keyCode = e.which; // nn6+	var num_curr_chars = $(field_id).value.length;	if ( num_curr_chars <= max_chars ) {		$(field_id+'_counter').firstChild.nodeValue = max_chars - num_curr_chars;	} else {		$(field_id).value = $(field_id).value.substring(0,max_chars);		$(field_id+'_counter').firstChild.nodeValue = 0;	}}/* * Google Maps */function initialize() {    if (GBrowserIsCompatible()) {        map = new google.maps.Map2(document.getElementById("map"));        map.addControl(new GSmallZoomControl3D());        geocoder = new GClientGeocoder();        geocoder.getLatLng(firstAddress,function(point)        {if (point){                map.setCenter(point, 15,G_NORMAL_MAP);                marker = new GMarker(point);                map.addOverlay(marker);        }});    }}function showAddress(address) {    if (geocoder) {        geocoder.getLatLng(          address,          function(point) {            if (!point) {              alert(address + " nicht gefunden");            } else {              marker = new GMarker(point);              map.addOverlay(marker);              map.panTo(marker.getLatLng());            }          }        );    }}function getPlz(plz,art) {    var container;    if (art == 1) container = 'filidiv';    else if (art == 2) container = 'filidetailsdiv';  try {    req = new XMLHttpRequest();  }  catch (e) {    try {      req = new ActiveXObject("Msxml2.XMLHTTP");    }    catch (e) {      try {        req = new ActiveXObject("Microsoft.XMLHTTP");      }      catch (failed) {        req = null;      }    }  }  if (req) {    req.onreadystatechange = function() {      if (req.readyState == 4) {        if (req.status == 200)  {            if (document.getElementById(container)) document.getElementById(container).innerHTML=req.responseText;            if (art == 1) {                getActiveFid();                pic_fid_index = 2;                if(document.getElementById("filiale-aktiv")) showAddress(document.getElementById("filiale-aktiv").lastChild.previousSibling.value);            }        }      }    }    req.open("GET", "../outputPlz.php?plz="+plz+"&art="+art, true);    req.send(null);  }}function getActiveFid() {    if (document.getElementById("fidactive")) getPlz(document.getElementById("fidactive").value,2);}var pic_fid_index = 2;function getPicturesFid() {    var el = document.getElementById("nextfilialbilder"+pic_fid_index);    if(el.firstChild.getAttribute("id")) {        el.firstChild.src = el.firstChild.getAttribute("id");        el.firstChild.setAttribute("onmouseover", "tooltip.show('<img src="+el.firstChild.getAttribute("id")+" height=280 />');");        el.firstChild.setAttribute("onmouseout", "tooltip.hide();");    }    if(el.firstChild.nextSibling.getAttribute("id")) {        el.firstChild.nextSibling.src = el.firstChild.nextSibling.getAttribute("id");        el.firstChild.nextSibling.setAttribute("onmouseover", "tooltip.show('<img src="+el.firstChild.nextSibling.getAttribute("id")+" height=280 />');");        el.firstChild.nextSibling.setAttribute("onmouseout", "tooltip.hide();");    }    if(el.firstChild.nextSibling.nextSibling.getAttribute("id")) {        el.firstChild.nextSibling.nextSibling.src = el.firstChild.nextSibling.nextSibling.getAttribute("id");        el.firstChild.nextSibling.nextSibling.setAttribute("onmouseover", "tooltip.show('<img src="+el.firstChild.nextSibling.nextSibling.getAttribute("id")+" height=280 />');");        el.firstChild.nextSibling.nextSibling.setAttribute("onmouseout", "tooltip.hide();");    }    el.removeAttribute("id");    pic_fid_index++;}function setActiveFid(el) {    var elAktiv = document.getElementById("fidactive");    elAktiv.setAttribute("id","fidinactive");    elAktiv = document.getElementById("filiale-aktiv");    elAktiv.style.display = "block";    elAktiv.removeAttribute("id");    elAktiv.setAttribute("class", "inaktiv");    el.setAttribute("id","filiale-aktiv");    el.setAttribute("class","aktiv");    el.lastChild.setAttribute("id","fidactive");    if (el.nextSibling.getAttribute("id") == "wrapper_down_clean") {        hidesth("wrapper_down");        showsth("wrapper_down_clean");        showsth('wrapper_up');        hidesth('wrapper_up_clean');    } else {        el.previousSibling.style.display = "none";        el.nextSibling.style.display = "block";    }    if (elAktiv.previousSibling.previousSibling.getAttribute("id") == "wrapper_up_clean") {        showsth('wrapper_up');        hidesth('wrapper_up_clean');    }}function scroll_down() {    if (document.getElementById("filiale-aktiv").nextSibling.nextSibling.nextSibling.style.display == "none" ) {        showsth('wrapper_up');        hidesth('wrapper_up_clean');        var el = document.getElementById("fidactive");        el.setAttribute("id","fidinactive");        el = document.getElementById("filiale-aktiv");        el.removeAttribute("id");        el.setAttribute("class", "inaktiv");        el.style.display='none';        el = el.nextSibling;        el.setAttribute("class", "aktiv");        el.setAttribute("id", "filiale-aktiv");        el.lastChild.setAttribute("id","fidactive");        showAddress(el.lastChild.previousSibling.value);        el.nextSibling.style.display="block";        getActiveFid();        getPicturesFid();        if (el.nextSibling.nextSibling.nextSibling.style.display != "none") {            hidesth("wrapper_down");            showsth("wrapper_down_clean");        }    } else {        hidesth("wrapper_down");        showsth("wrapper_down_clean");    }}function scroll_up() {    if (document.getElementById("filiale-aktiv").previousSibling.style.display == "none" || document.getElementById("filiale-aktiv").nextSibling.getAttribute("id") == "wrapper_down_clean") {        showsth('wrapper_down');        hidesth('wrapper_down_clean');        var el = document.getElementById("fidactive");        el.setAttribute("id","fidinactive");        el = document.getElementById("filiale-aktiv");        el.removeAttribute("id");        el.setAttribute("class", "inaktiv");        el.nextSibling.style.display='none';        el = el.previousSibling;        el.setAttribute("class", "aktiv");        el.setAttribute("id", "filiale-aktiv");        el.lastChild.setAttribute("id","fidactive");        showAddress(el.lastChild.previousSibling.value);        el.style.display="block";        getActiveFid();        if (el.previousSibling.style.display != "none") {            hidesth("wrapper_up");            showsth("wrapper_up_clean");        }    } else {        hidesth("wrapper_up");        showsth("wrapper_up_clean");    }}function showsth(das){if($(das).style.display=='none') $(das).style.display='block';}function hidesth(das){if($(das).style.display=='block') $(das).style.display='none';}function getInfoTip (id, type) {    if(!type) type='gid';    var infoElement  = new Element('div', {id: 'infoTip', 'class' : 'infoTipBox text'});    infoElement.inject(id, 'before');    $('infoTip').fade('hide').fade('in');    var req = new Request.JSON({        method: 'get',        url: 'output.php?'+ type +'='+id,        data: {json: 'yes'},        onRequest: function() {$('infoTip').set('text', 'Lade Daten ..');},        onFailure: function() {$('infoTip').set('text', 'Keine Daten gefunden.');},        onComplete: function(response){            var data = response;            if(data != null)$('infoTip').innerHTML = data;        }    });    req.send();}function killInfoTip() {$('infoTip').dispose();}function slide_box() {    var erweitertSlide = new Fx.Slide('mehr_box').hide();    $('close_box').set({'styles': {'display': 'none'}});    $('show_box').addEvent('click', function(e){        erweitertSlide = new Fx.Slide('mehr_box');        e = new Event(e);        erweitertSlide.toggle(); //show-hide box        e.stop();        $('show_box').set({'styles': {'display': 'none'}});        $('close_box').set({'styles': {'display': 'block'}});    });    $('close_box').addEvent('click', function(e){        erweitertSlide = new Fx.Slide('mehr_box');        e = new Event(e);        erweitertSlide.toggle(); //show-hide box        e.stop();        $('close_box').set({'styles': {'display': 'none'}});        $('show_box').set({'styles': {'display': 'block'}});    });}function slide_box2() {    var erweitertSlide = new Fx.Slide('mehr_box2');    $('show_box2').set({'styles': {'display': 'none','visibility':'hidden'}});    $('show_box2').addEvent('click', function(e){        erweitertSlide = new Fx.Slide('mehr_box2');        e = new Event(e);        erweitertSlide.toggle(); //show-hide box        e.stop();        $('show_box2').set({'styles': {'display': 'none','visibility':'hidden'}});        $('close_box2').set({'styles': {'display': 'block','visibility':'visible'}});    });    $('close_box2').addEvent('click', function(e){        erweitertSlide = new Fx.Slide('mehr_box2');        e = new Event(e);        erweitertSlide.toggle(); //show-hide box        e.stop();        $('close_box2').set({'styles': {'display': 'none','visibility':'hidden'}});        $('show_box2').set({'styles': {'display': 'block','visibility':'visible'}});    });}function regiobox(kind) {   $('regioBox').fade('hide').fade('in');    var req = new Request.HTML({        method: 'get',        url: 'output.php?kind='+kind,        onFailure: function() {$('regioBox').set('text', 'Keine Daten gefunden.');},        update: $('regioBox')});    req.send();    if(kind=="neuste"){        $("neuste").setAttribute("class", "regiolink regio1 markt1");        $("naehe").setAttribute("class", "regiolink regio2");        $("beliebteste").setAttribute("class", "regiolink regio3");    } else if(kind=="naehe") {        $("neuste").setAttribute("class", "regiolink regio1");        $("naehe").setAttribute("class", "regiolink regio2 markt2");        $("beliebteste").setAttribute("class", "regiolink regio3");    } else if(kind=="beliebteste") {        $("neuste").setAttribute("class", "regiolink regio1");        $("naehe").setAttribute("class", "regiolink regio2");        $("beliebteste").setAttribute("class", "regiolink regio3 markt3");    }}function changeLaufzeit(anzahlFilValue) {    var req = new Request.HTML({        method: 'get',        url: 'payment.php?value='+anzahlFilValue,        update: $('laufzeit')});    req.send();    if (anzahlFilValue>0 && anzahlFilValue < 8) {        $('laufzeit').set({'styles': {'display': 'block'}});        $('laufzeit').fade('hide').fade('in');    } else if (anzahlFilValue==0) {$('laufzeit').set({'styles': {'display': 'none'}});}}function changePrize123(auswahl){      var req = new Request.JSON({        url: 'payment.php?getData='+auswahl,        method: 'get',        data: {json: 'yes'},        onComplete: function(response){            var responsedata = response;            $('hinweisfeld').innerHTML = responsedata['0'];            $('preisfeld').innerHTML = responsedata['1'];        }    });    req.send();}function kopiereAngaben() {    $('rplz').value = $('plz').value;    $('rort').value = $('ort').value;    $('ranschrift').value = $('anschrift').value;    $('rfirma').value = $ ('firma').value;    if($('rfirma').value == 'Ihr Firmenname' || $('rfirma').value == '') {        $('rfirma').value = $('vorname').value + ' ' + $('name').value;    }}function fadeImageToForm(elementHide,elementShow){    $(elementHide).set({'styles': {'display': 'none'}});    $(elementShow).fade('hide').fade('in');    $(elementShow).set({'styles': {'display': 'block'}});}
