/*-----------------------------------------------------*/
/*                                                     */
/* 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);
}


function Bildwechsel(a,b)
		{
			str = "window.document."+a+".src="+b+".src";
			//alert(str);
			eval(str);
			// window.document.Ganzeigen.src=Ganzeigen.src;
			// window.document..src=Bildobjekt.src;
		}
		
