/*-----------------------------------------------------*/
/*                                                     */
/* open links in a new window, if they have the        */
/* attribute rel="external_link"                       */
/*                                                     */
/* used to avoid the attribute target"_blank"          */
/* within xhtml strict                                 */
/*                                                     */
/*-----------------------------------------------------*/

function open_external_link() {
    if (!document.getElementsByTagName) return;
    var anchors = document.getElementsByTagName("a");
    for (var i=0; i<anchors.length; i++) {
        var anchor = anchors[i];
        if (anchor.getAttribute("href") &&
            anchor.getAttribute("rel") == "external_link")
        anchor.target = "_blank";
    }
}



/*-----------------------------------------------------*/
/* Open Links in a popup window */
/*-----------------------------------------------------*/

function popup(url, width, height, myparams) {
	var params = "width=" + width + ",height=" + height + ",";
	if (myparams) {
		params += myparams;
	} else {
		params += "toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=no";
	}
	var windowname = "gpdpopup" + Math.floor (Math.random () * 100000);
	var p = window.open (url, windowname, params);
}

/*-----------------------------------------------------*/
/* ROLLOVER-Effect in Navi-Leiste */
/*-----------------------------------------------------*/

function rowOverEffect(object) {
  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
  if (object.className == 'loginlogout') object.className = 'loginlogoutOver';
}

function rowOutEffect(object) {
  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
  if (object.className == 'loginlogoutOver') object.className = 'loginlogout';
}


