function hint(aMsg)
    {
    window.status = aMsg;
    window.defaultstatus = aMsg;
    return true;
    }
function setImage(aDoc, anImage, aSource)
    {
    aDoc.images[anImage].src = aSource; 
    }
function swapImage(anImage, aSource)
{
    document.images[anImage].src = aSource; 
}
// für popup fenster
function openPopup(aURL)
    {
        aWin = window.open(aURL, 'wndStandard', 'width=607,height=590,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,') ;
        aWin.focus();
    }


function openPopupUp(aURL, windowname, width, height, scrollbars, resizeable) 
	{
	    window.open(aURL, windowname, 'width='+width+',height='+height+',toolbar=no,location=no,status=no,menubar=no,scrollbars='+scrollbars+',resizable='+resizeable+',directories=no,') ;
	}

// JS-Funktion for Cookies
function getCookieOrDefault(cookieName, defaultReturn) 
    {
    // if cookie could not be read the defaultvalue is returned
    //alert(cookieName);
    var myReturn = getCookie(cookieName);
    if (myReturn == "") 
        {
        return defaultReturn;
        }
    else 
        {
        return myReturn;
        }
    }
// gets a cookie from the cookie string, returns cookie value or
// empty string if cookie is not present
function getCookie(cookieName) 
    {
    // add equation sign which separates cookie name from cookie data
    cookieName += "=";
    // look for cookie name
    var cookieNameStart = document.cookie.indexOf(cookieName);
    // return empty string if cookie name was not found
    if (cookieNameStart == -1)
        {
        return "";
        }
    // determine start of cookie data
    var cookieValueStart = cookieNameStart + cookieName.length;
    // look for end delimiter of cookie data
    var cookieValueEnd = document.cookie.indexOf(";", cookieValueStart);
    // assume the value ends at cookie string end, if ";" was not found
    if (cookieValueEnd == -1)
        {
        cookieValueEnd = document.cookie.length;
        }
    return document.cookie.substring(cookieValueStart, cookieValueEnd);
    }

var frn_newsticker = 'width=632,height=440,resizable=yes';
 
function frn_openWin(theURL,winName,features,w,h) {
  if ( w != "" && w != undefined ) {
    breite = RegExp("(width=[0-9]+)");
    if (  features.search("width=") >= 0 ) { 
      features = features.replace(breite,"width="+w);
    } else {
      features = features + ",width=" + w + "";
    }
  }
  if ( h != "" && h != undefined ) {
    hoehe = RegExp("(height=[0-9]+)");
    if ( features.search("height=") >= 0 ) {
      features = features.replace(hoehe, "height=" + h);
    } else {
      features = features + ",height=" + h + "";
    }
  }
  Fenster = window.open(theURL,winName,features);
  // Fenster.focus();
}