// Framebreaker
function framebreaker() { if (!top.frames.length) document.location="/frameset"+window.location.pathname+window.location.search; }

// Status-Message
function st(message) { window.status=message; return(true); }

// Popup öffnen
function popup(url,width,height,buttons,scrollbars)
 {
   if ((buttons!=1) && (buttons!=0)) buttons=0;
   if ((scrollbars!=1) && (scrollbars!=0)) scrollbars=1;
   now=new Date(); fname="hebezonepopup"+now.getMilliseconds();
   whandle=window.open(url,fname,"width="+width+",height="+height+",resizable=no,location=no,menubar=no,toolbar="+(buttons?"yes":"no")+",status=no,top=1,scrollbars="+(scrollbars?"yes":"no"))
   whandle.focus();
 }

// Buttons
function ltxt(text) {	document.write('<a href="javascript:top.history.back();" onmouseover="st(\''+text+'\');" onmouseout="st(\'\');">'+text+'</a>'); }
function limg(text,src) {	document.write('<a href="javascript:top.history.back();" onmouseover="st(\''+text+'\');" onmouseout="st(\'\');"><img src="'+src+'" alt="'+text+'" border="0"></a>'); }
function ext_button(number) { document.write("<a href=\"#\" onclick=\"top.close();\"><input type=\"button\" class=\"td09\" style=\"width:140px\" value=\"Fenster schließen\" name=\"B3\" onclick=\"top.close();\"></a>"); }

// Detailansichten
function pdetail(width,height,id) { popup("/php/misc/detailpopup.php?id="+id,width,height,0,0); }
function pdetail_link(width,height,id) { document.write('<a href="javascript:pdetail('+width+','+height+',\''+id+'\');">'); }
function pdetail_close_link(text) { document.write('<a href="javascript:top.close();">'+text+'</a>'); }
