
// LinkSelect(form, sel)
	function LinkSelect(form, sel) {
		c = sel.selectedIndex; adrs = sel.options[c].value;
		if (adrs != "" ) {location.href=adrs;}
	}
	/*
 * IE Fix für SELECT Boxen
 */
function initBreakoutOptions () {
  version =  strpos(navigator.appVersion, 'MSIE ',0);
  if (version != false) {
	ieversion = navigator.appVersion.substring(version+5, version+6);
  } else {
	ieversion = 9;
  }
  if((!window.opera && window.event && ieversion<9)||(navigator.userAgent.indexOf('KHTML')>0)) {
    var mySpans = document.getElementsByTagName('SPAN');
    for (i=0; i< mySpans.length; i++) {
      if(mySpans[i].className == 'breakOutOpt') {
        //mySpans[i].style.position = 'relative';
        mySelect = mySpans[i].getElementsByTagName('SELECT')[0];
        //mySelect.style.position = 'absolute';
        mySelect.onmousedown = function () {                        
          mySelect.style.width = 'auto';
        }
        mySelect.onchange = function () {
		  mySelect.style.width = '124px';
		  c = mySelect.selectedIndex; 
		  adrs = mySelect.options[c].value;
		  if (adrs != "" ) {location.href=adrs;}
        }                
		mySelect.onblur = function () {
          mySelect.style.width = '124px';
        }
      }
    }
  }
}
/*
 * strpos für js
 *
 */
 function strpos (haystack, needle, offset) {
    // Finds position of first occurrence of a string within another  
    // 
    // version: 1109.2015
    // discuss at: http://phpjs.org/functions/strpos    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: Onno Marsman    
    // +   bugfixed by: Daniel Esteban
    // +   improved by: Brett Zamir (http://brett-zamir.me)
    // *     example 1: strpos('Kevin van Zonneveld', 'e', 5);    // *     returns 1: 14
    var i = (haystack + '').indexOf(needle, (offset || 0));
    return i === -1 ? false : i;
}
