var flypic;
var composingWIN; 


function show_Image(url)
{
	flypic=window.open("","flypic","menubar=1,toolbar=0,height=500,width=500,screenX=200,screenY=0");
	flypic.moveTo(200,0);
	doc=flypic.document;

	doc.open();
	doc.writeln("<html><head><title>PAS</title></head><body bgcolor='#ffffff'>");
	doc.writeln("<center><img src='"+url+"'><br><br>");
	doc.writeln("<script language=javascript> var offen=true;</script></body></html>");
	doc.close();


flypic.focus()
}

function show_composing(url,w,h)
{
	/*	
	if (composingWIN!=undefined)
		{
		if (!composingWIN.closed)
			{
			composingWIN.close();
			}
		}
	*/
	//string="window.open(\"\",\"composingWIN\",\"menubar=0,toolbar=0,height="+(h+30)+",width="+(w+30)+",screenX=220,screenY=0\");";
	string="window.open(\"\",\"composingWIN\",\"menubar=0,toolbar=0,height=455,width=600\");";
	composingWIN=eval(string);
	
	
	doc=composingWIN.document;
	doc.open();
	doc.writeln("<html><head><title>PAS</title></head><body background='pics/branchen/hgr_loading.gif' bgcolor='#ffffff' link='#777777' vlink='#777777'>");
	doc.writeln("<center><img src='"+url+"' height='"+h+"' width='"+w+"'><br>");
	doc.writeln("<font face='arial' size='1' color='#999999'><a href='#' onClick='self.close()'>Close Window</a></font></body></html>");
	doc.writeln("</body></html>");
	doc.close();


composingWIN.focus()
}


function show_sheet(url)
{
hoehe=(screen.height)-125;
string="window.open(\"" +url+ "\",\"flysheet\",\"height=" +hoehe+ ",width=640,status=0,location=0,menubar=1,scrollbars=1,toolbar=0\")";
var flysheet=eval(string);
flysheet.moveTo(0,0);
flysheet.focus();

}


