function oeffnebilderdetails (url) {
  fenster = window.open(url,  "fenster1", "width=810,height=800,scrollbars=yes,resizable=yes");
  fenster.focus();
}
function oeffnedetails (url) {
  fenster = window.open(url,  "fenster1", "width=540,height=290,scrollbars=yes,resizable=yes");
  fenster.focus();
}

function surfto(form) {
var myindex=form.select1.selectedIndex
if (form.select1.options[myindex].value != "0") {
window.open(form.select1.options[myindex].value, target="_self");}
}


function randtext() {
        var quotenumber = 12;
        var randomnumber = Math.random() ;
        var rand1 = Math.round( (quotenumber-1) * randomnumber) + 1 ;
        quotes = new Array
        quotes[1] = '<a href="http://www.leucht-stoff.de/shopdata/go.shopscript?a=DOMU37b&panpid=java"><IMG SRC="http://www.leucht-stoff.de/Shopdaten/Kioto5.jpg" border="0"></a>';
        quotes[2] = '<a href="http://www.leucht-stoff.de/shopdata/go.shopscript?a=MAWA1839&panpid=java"><IMG SRC="http://www.leucht-stoff.de/Shopdaten/Ssymmank.jpg" border="0"></a>';
        quotes[3] = '<a href="http://www.leucht-stoff.de/shopdata/go.shopscript?a=SOMP1511&panpid=java"><IMG SRC="http://www.leucht-stoff.de/Shopdaten/CarmenP.jpg" border="0"></a>';
		quotes[4] = '<a href="http://www.leucht-stoff.de/shopdata/go.shopscript?a=BETE708&panpid=java"><IMG SRC="http://www.leucht-stoff.de/Shopdaten/AsusOffice.jpg" border="0"></a>';
        quotes[5] = '<a href="http://www.leucht-stoff.de/shopdata/go.shopscript?a=CAS193&panpid=java"><IMG SRC="http://www.leucht-stoff.de/Shopdaten/TubularD2.jpg" border="0"></a>';
        quotes[6] = '<a href="http://www.leucht-stoff.de/shopdata/go.shopscript?a=BETE700&panpid=java"><IMG SRC="http://www.leucht-stoff.de/Shopdaten/ClarusBilder.jpg" border="0"></a>';
        quotes[7] = '<a href="http://www.leucht-stoff.de/shopdata/go.shopscript?a=NHA111&panpid=java"><IMG SRC="http://www.leucht-stoff.de/Shopdaten/CageT1.jpg" border="0"></a>';
        quotes[8] = '<a href="http://www.leucht-stoff.de/shopdata/go.shopscript?a=DOMU84&panpid=java"><IMG SRC="http://www.leucht-stoff.de/Shopdaten/ArcusP.jpg" border="0"></a>';
        quotes[9] = '<a href="http://www.leucht-stoff.de/shopdata/go.shopscript?a=LICH1056&panpid=java"><IMG SRC="http://www.leucht-stoff.de/Shopdaten/EiPendel.jpg" border="0"></a>';
		quotes[10] = '<a href="http://www.leucht-stoff.de/shopdata/go.shopscript?a=KPM185&panpid=java"><IMG SRC="http://www.leucht-stoff.de/Shopdaten/Estella3.jpg" border="0"></a>';
        quotes[11] = '<a href="http://www.leucht-stoff.de/shopdata/go.shopscript?a=KPM190&panpid=java"><IMG SRC="http://www.leucht-stoff.de/Shopdaten/LuxorD1.jpg" border="0"></a>';
        quotes[12] = '<a href="http://www.leucht-stoff.de/shopdata/go.shopscript?a=DOMU16&panpid=java"><IMG SRC="http://www.leucht-stoff.de/Shopdaten/PolloS.jpg" border="0"></a>';
		var quote = quotes[rand1];
        return quote;
}

function PopupPic(img){
foto= new Image();
foto.src=(img);
ControlFoto(img);
}

function ControlFoto(img){
if((foto.width!=0)&&(foto.height!=0)){
ViewFoto(img);
}
else{
interval_a="ControlFoto('"+img+"')";
interval_b=setTimeout(interval_a,20);
}
}
function ViewFoto(img){
width=foto.width+20;
height=foto.height+24;

try {
if (output.closed == false) throw "offen";
}
catch (e) {
if (e=="offen") {
output.close();
}
}
output=window.open("","output","left=40,top=40,width="+width+",height="+height+",location=no,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no");
output.document.writeln("<html><head><title>..:: Foto ::..<\/title><\/head>");
output.document.writeln("<body bgcolor=\"white\" text=\"white\" link=\"white\" vlink=\"white\" alink=\"white\" leftmargin=\"0\" marginwidth=\"0\" topmargin=\"0\" marginheight=\"0\">");
output.document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">");
output.document.writeln("<tr><td width=\"100%\" height=\"100%\" align=\"left\" valign=\"top\"><p><a href=\"javascript:self.close()\"><img src=\""+img+"\" width=\""+foto.width+"\" height=\""+foto.height+"\" border=\"10\" alt=\"Bitte klicken, um Fenster zu schließen\"></a><\/p><\/td><\/tr>");
output.document.writeln("<\/table><\/body><\/html>");
output.focus();
}


