function openSite(url,nom,params)
{ 
	window.open(url,'Firmendetails','left=10,top=10,width=710,height=550,scrollbars=yes,toolbars=no,resize=no,status=no');
} 

function openSiteSize(url, pWidth, pHeight)
{
	window.open(url,'Foto','left=10,top=10,width='+pWidth+',height='+pHeight+',toolbars=no,resize=no,status=no');
}

function openPdfSite(url)
{
	window.open(url,'','left=10,top=10,width=800,height=600,scrollbars=yes,toolbars=no,resizable=yes,status=yes');
}

function openImage(imageName,imageWidth,imageHeight,posLeft,posTop) 
{  
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>Detailansicht</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<div style="text-align:center"><img src=\"'+imageName+'\" onclick=\"javascript:window.close();\" alt=\"zum Schliesen ins Bild klicken...\" title=\"zum Schliesen ins Bild klicken...\"></div>');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function openImageText(imageName,imageWidth,imageHeight,posLeft,posTop,pText) 
{ 
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><head><title>Detailansicht</title></head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="10" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<div style="text-align:center"><img border="0" src=\"'+imageName+'\" onclick=\"javascript:window.close();\" alt=\"zum Schliesen ins Bild klicken...\" title=\"zum Schliesen ins Bild klicken...\"></div>');
	newWindow.document.write('<div align="center"><table border="0" cellpadding="0" style="border-collapse: collapse" width="95%"><tr><td><font size="2" face="Arial">'+pText+'</font></td></tr></table></div>');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function openImageTextBorder(imageName,imageWidth,imageHeight,posLeft,posTop,pText,pBorder) 
{ 
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><head><title>Detailansicht</title></head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="10" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<div style="text-align:center"><img border=\"'+pBorder+'\" src=\"'+imageName+'\" onclick=\"javascript:window.close();\" alt=\"zum Schliesen ins Bild klicken...\" title=\"zum Schliesen ins Bild klicken...\"></div>');
	newWindow.document.write('<div align="center"><table border="0" cellpadding="0" style="border-collapse: collapse" width="95%"><tr><td><font size="2" face="Arial">'+pText+'</font></td></tr></table></div>');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function picopen(picid)
{
	f = open("../../bildergalerie.php?uebergabe="+picid,"Detailansicht","left=10,top=10,locationbar=no menubar=no resizable=yes scrollbars=yes");
}


function messageWindow(title, var1)
{
  var width="300", height="100";
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top+'';
  var msgWindow = window.open("","msgWindow", styleStr);
  var head = '<html><head><title>'+title+'</title><link rel="stylesheet" type="text/css" href="/css/mystylediv.css"></script></head>';
  var body = '<body><div align="center">'+title+':<br>'+var1+'<br><form><input type="button" value=" schlie&szlig;en " onClick="self.close()"></form></div></body></html>';
  msgWindow.document.open();
  msgWindow.document.write(head + body);
  msgWindow.document.close();
  msgWindow.focus();
}
