var parameter = "location=no,menubar=no,directories=no,scrollbars=auto";

function dwin(number,dwidth,dheight)
{

var win_image = window.open(image[number],"DESIGN",parameter+",width="+dwidth+",height="+dheight);
win_image.document.bgColor="#2A2C33";

}

function dwinp(number,dwidth,dheight,gallery,scroll)
{


var parameter_p = "location=no,menubar=no,directories=no";
var screen_width = screen.width;
var screen_height = screen.height;

if(screen_width < dwidth || screen_height < dheight)
{

scroll = "yes";

}


var site = image[number].toString();
var site = site.substring(8,(site.length-4));
var spoint = site.indexOf("/") + 1;
var site = "popup/" + gallery + "/" + site.substring(spoint,(site.length)) + ".html";
var win_image = window.open(site,"DESIGN",parameter_p+",width="+dwidth+",height="+dheight+",scrollbars="+scroll);

}


// der tabelle im popup eine ID geben und noch von der javascript funktion aus das bild zuweisen
