// -----------------------------------------------------------------------------
//  Default JavaScript Functions
//  StdDlg support
//------------------------------------------------------------------------------
function show_help_editpage()
{
  wnd = open("","Hilfe-Editor","width=420,height=520,toolbar=0,location=0,directories=0,status=0,menubar=0," +
       "scrollbars=1,resizable,dependent")
  with(wnd.document)
  {
    open("text/html")
    writeln("<html>")
    writeln("<head><title>Hilfe</title>")
    writeln("<style type=\"text/css\">td { font-size: 14px;  font-family: Courier; }</style>")
    writeln("</head>")
    writeln("<body bgcolor=\"#FFFFFF\" link=\"#000000\" vlink=\"#00FF00\" alink=\"#00FF00\"> <center><font size=\"2\" color=\"#000080\" face=\"Verdana\">Editor Funktionen<br><br>")
    writeln("<img src=\"system/help.gif\"><br><br>")
    writeln("<small>CMS Editor v1.0 bis v1.3  -  ditib-nord, MA</small> </center></font>")
    writeln("</body></html>")
    close()
  }
  wnd.focus()
}

function show_pic_gal()
{
  wnd = open("index.php?action=picgal","Bilder Galerie","width=" + (640) + ",height=" + (640) +
       ",toolbar=0,location=0,directories=0,status=0,menubar=0," +
       "scrollbars=1,resizable,dependent")
  wnd.focus()
}

function show_file_gal()
{
  wnd = open("index.php?action=filegal","Datei Galerie","width=" + (560) + ",height=" + (540) +
       ",toolbar=0,location=0,directories=0,status=0,menubar=0," +
       "scrollbars=1,resizable,dependent")
  wnd.focus()
}


function show_topic_list()
{
  wnd = open("index.php?action=topiclistsub","Topic Liste","width=" + (980) + ",height=" + (600) +
       ",toolbar=0,location=0,directories=0,status=0,menubar=0," +
       "scrollbars=1,resizable,dependent")
  wnd.focus()
}

function show_header_gal()
{
  wnd = open("cmsubdlg.php?action=headergal","Header Galerie","width=" + (690) + ",height=" + (440) +
       ",toolbar=0,location=0,directories=0,status=0,menubar=0," +
       "scrollbars=1,resizable,dependent")
  wnd.focus()
}

function show_editor_gal()
{
  wnd = open("cmsubdlg.php?action=showgal","Header Galerie","width=" + (580) + ",height=" + (560) +
       ",toolbar=0,location=0,directories=0,status=0,menubar=0," +
       "scrollbars=1,resizable,dependent")
  wnd.focus()
}


function show_help_editlist()
{
  wnd = open("","Hilfe","width=" + (620) + ",height=" + (360) +
       ",toolbar=0,location=0,directories=0,status=0,menubar=0," +
       "scrollbars=1,resizable,dependent")

  with(wnd.document)
  {
    open("text/html")
    writeln("<html>")
    writeln("<head><title>Hilfe</title>")
    writeln("<style type=\"text/css\">td { font-size: 14px;  font-family: Courier; }</style>")
    writeln("</head>")
    writeln("<body bgcolor=\"#FFFFFF\" link=\"#000000\" vlink=\"#00FF00\" alink=\"#00FF00\"> <center><font size=\"2\" color=\"#000080\" face=\"Verdana\">")
    writeln("<table border=0 cellspacing=3 cellpadding=3\"><br><br>")
    writeln("<tr><td><u>Syntax:</u></td><td>&nbsp;</td></tr>")
    writeln("<tr><td>[menu]DATEILINK[text]MENUTEXT[end]</td><td>&nbsp;</td></tr>")
    writeln("<tr><td>&nbsp;</td><td>&nbsp;</td></tr>")
    writeln("<tr><td><u>Beispiel:</u></td><td>&nbsp;</td></tr>")
    writeln("<tr><td>[menu]index.html[text]Startseite[end]</td><td>&nbsp;</td></tr>")
    writeln("<tr><td>&nbsp;</td><td>&nbsp;</td></tr>")
    writeln("<tr><td><u>Weiterer Befehl:</u></td><td>&nbsp;</td></tr>")
    writeln("<tr><td>[clear]&nbsp;&nbsp;&nbsp;&nbsp;Leerzeile Einfügen</td><td></td></tr>")
    writeln("</table><br>")
    writeln("<small>CMS Editor - ditib-nord, MA</small> </center></font>")
    writeln("</body></html>")
    close()
  }
  wnd.focus()
}


function show_clipboard()
{
  wnd = open("","Ablage","width=660,height=448,toolbar=0,location=0,directories=0,status=0,menubar=0," +
       "scrollbars=1,resizable,dependent")
  with(wnd.document)
  {
    open("text/html")
    writeln("<html>")
    writeln("<head><title>Hilfe</title>")
    writeln("<style type=\"text/css\">td { font-size: 14px;  font-family: Courier; }</style>")
    writeln("</head>")
    writeln("<body bgcolor=\"#FFFFFF\" link=\"#000000\" vlink=\"#00FF00\" alink=\"#00FF00\">");
    writeln("<center><font size=\"2\" color=\"#000080\" face=\"Verdana\"><small>&nbsp;<br></small>Ablage<br><small>Editieren und Bereinigen nach 'Copy and Paste'<br></small><br>")
    writeln("<textarea id=\"text\" name=\"text\" style=\"width:97%;\" maxlength=\"32000\" rows=\"20\">");
    writeln("</textarea>");
    writeln("<textimg src=\"system/help.gif\"><br><br>")
    writeln("<small>CMS Editor v1.0 bis v2.0  -  ditib-nord, MA</small> </center></font>")
    writeln("</body></html>")
    close()
  }
  wnd.focus()
}


function copy_to_clipboard()
{
  holdtext.innerText = copytext.innerText;
  Copied = holdtext.createTextRange();
  Copied.execCommand("Copy");
}


function show_help_page(page_Id)
{
  wnd = open("cmsubdlg.php?action="+page_Id,"Help","width=" + (780) + ",height=" + (600) +
       ",toolbar=0,location=0,directories=0,status=0,menubar=0," +
       "scrollbars=1,resizable,dependent")
  wnd.focus()
}



function open_download(go_url)
{
  wnd = open("download/"+go_url,"Download","width=" + (860) + ",height=" + (680) +
       ",toolbar=0,location=0,directories=0,status=0,menubar=0," +
       "scrollbars=1,resizable,dependent")
  wnd.focus()
}




function open_root_directory(go_url)
{
  wnd = open(go_url,"Directory","width=" + (860) + ",height=" + (680) +
       ",toolbar=0,location=0,directories=0,status=0,menubar=0," +
       "scrollbars=1,resizable,dependent")
  wnd.focus()
}








