	function startBikefinder(spr_id, bestellnummer) {
		
		if (bestellnummer == '') {
			bestellnummer = '-1';
		}

		if (typeof(bestellnummer) == 'undefined') {
			bestellnummer = '-1';
		}

		var anchor = this.document.createElement('a');
		anchor.setAttribute('rev', 'width: 950px; height: 660px; scrolling: no;');
		if  (bestellnummer != '-1') {
			anchor.setAttribute('href', 'http://' + bikefinder_domain + '.rose.de/configurator.php?bestellnummer=' + bestellnummer + '&lang=' + spr_id);
			anchor.setAttribute('purl', 'http://' + bikefinder_domain + '.rose.de/configurator.php?bestellnummer=' + bestellnummer + '&lang=' + spr_id);
		}
		else {
			anchor.setAttribute('href', 'http://' + bikefinder_domain + '.rose.de/iframe.php?lang=' + spr_id);
			anchor.setAttribute('purl', 'http://' + bikefinder_domain + '.rose.de/iframe.php?lang=' + spr_id);
		}
		anchor.setAttribute('rel', 'lyteframe');
		myLytebox.start(anchor, false, true);
		return false;
	}

	function stopBikefinder() {
		myLytebox.end()
		return false;
	}

	function checkMailadress(adress) {
		if ((adress.match(/^[a-zA-Z0-9_\.-]{2,}@[a-z0-9-]{3,}\.[a-z]{2,4}|museum$/)) && (adress.length > 0)) {
			return true;
		}
		else {
			return false;
		}

	}

	function WaterMark(text, feld, option) {
		if (option == 'enter') {
			if (feld.value == text) {
				feld.value = '';
				feld.className='inputbox';
			}
		}
		
		if (option == 'exit') {
			if (feld.value == '') {
				feld.value = text;
				feld.className='inputbox_watermark';
			}
		}
	}

  function bild_loading(bild) {
    if (window.opera) return false;
    try {
      document.getElementById(bild + '_loading').style.display = 'block';
      document.getElementById(bild).style.display = 'none';
      
      document.getElementById(bild).onload = function() {
        	  
        document.getElementById(this.id + '_loading').style.display = 'none';
        this.style.display = 'block';
        };
    }
    catch (e) {
      document.getElementById(bild).style.display = 'block';
    }
  }
  
	function setMailto(name,domain, style) {
		document.write('<a href=\"mailto:' + name + '@' + domain + '\" style="' + style + '">');
		document.write(name + '@' + domain + '<\/a>');
	}
