/*
     IpaScript
     Copyright (c) - Ipanema Software
                     Erwin De Grande
                     http://www.ipanema.de
                     info@ipanema.de
     All rights reserved. Alle Rechte vorbehalten
*/

   parent.browser='nn4';

  if(document.all && !document.getElementById) { parent.browser='ie4'}
  if(document.getElementById && !document.all){ parent.browser='nn6'}
  if(document.all && document.getElementById) { parent.browser='ie5'}


function WriteMenu()
{  mn="Home#Urologen intern#Kontakt#Impressum".split("#")
   lk="start#start#kontakt#impressum".split("#");
   winwo="_top#_top#_top#_top".split("#");
   document.write('<div align="right">');
   document.write('<table border="0" cellspacing="0" cellpadding="0">');
   document.write('<tr>');


   for(j=0;j<mn.length;j++)
     {  link="index.php?Site="+lk[j];
        if(j=="1") {link="fach/index.php"}

        document.write('<td><img border="0" src="images/blanc.gif" width="15" height="10"></td>');
        document.write('<td class="Arial2"><font color="#FFFFFF"><a href="'+link+'" class="Menu" target="'+winwo[j]+'">'+mn[j]+'</a></font></td>');
        document.write('<td><img border="0" src="images/blanc.gif" width="15" height="10"></td>');
        if(j<mn.length-1){ document.write('<td align="center" nowrap class="Arial2"><font color="#FFFFFF">|</font></td>');}
     }

   document.write('</tr>');
   document.write('</table>');
   document.write('</div>');
}


function WriteMenuIntern()
{
  mn="Home#Kontakt#Impressum".split("#")
   lk="start#kontakt#impressum".split("#");
   winwo="_top#_top#_top".split("#");

   document.write('<div align="right">');
   document.write('<table border="0" cellspacing="0" cellpadding="0">');
   document.write('<tr>');


   for(j=0;j<mn.length;j++)
     {  link="index.php?Site="+lk[j];
        if(j=="0") {link="../index.php?Site="+lk[j];}

        document.write('<td><img border="0" src="../images/blanc.gif" width="15" height="10"></td>');

        document.write('<td class="Arial2"><font color="#FFFFFF"><a href="'+link+'" class="Menu" target="'+winwo[j]+'">'+mn[j]+'</a></font></td>');


        document.write('<td><img border="0" src="../images/blanc.gif" width="15" height="10"></td>');
        if(j<mn.length-1){ document.write('<td align="center" nowrap class="Arial2"><font color="#FFFFFF">|</font></td>');}
     }

   document.write('</tr>');
   document.write('</table>');
   document.write('</div>');
  
}


function WriteMenuForum()
{  mn="Home#Urologen intern#Kontakt#Impressum".split("#")
   lk="../../index.php#../index.php#../index.php?Site=kontakt#../index.php?Site=impressum".split("#");

   document.write('<div align="right">');
   document.write('<table border="0" cellspacing="0" cellpadding="0">');
   document.write('<tr>');


   for(j=0;j<mn.length;j++)
     {
        document.write('<td><img border="0" src="../../images/blanc.gif" width="15" height="10"></td>');
        document.write('<td class="Arial2"><font color="#FFFFFF"><a href="'+lk[j]+'" class="Menu" target="_top">'+mn[j]+'</a></font></td>');
        document.write('<td><img border="0" src="../../images/blanc.gif" width="15" height="10"></td>');
        if(j<mn.length-1){ document.write('<td align="center" nowrap class="Arial2"><font color="#FFFFFF">|</font></td>');}
     }

   document.write('</tr>');
   document.write('</table>');
   document.write('</div>');
}

function WriteNavig()
{
      mn="Belegärzte#Aktuelles / News#Themen zur Urologie#Urolgen-Anschriften#Urologisches Lexikon#Operation von A-Z#Nützliches / Link-Tipps#Buch-Tipps".split("#")
      lk="belegarzt#news#themen#blgArzt#lexicon#op#links#buchTipp".split("#");


     document.write('<table border="0" width="100%" cellspacing="0" cellpadding="0">');
     document.write('<tr>');
     document.write('<td width="100%" height="20" colspan="2">&nbsp;</td>');
     document.write('</tr>');
     document.write('<tr>');
     document.write('<td width="100%" class="Arial2" colspan="2" background="../images/htg/buttonLinie.gif"><img border="0" src="../images/htg/buttonLinie.gif" width="11" height="2"></td>');
     document.write('</tr>');

     for(j=0;j<mn.length;j++)
     {  document.write('<tr>');
        document.write('<td width="9%" class="Arial2" bgcolor="#8AB6FF"><p><img border="0" src="images/marke/kugelGold.gif" width="17" height="22"></p></td>');
        document.write('<td width="91%" class="Arial2" bgcolor="#8AB6FF"><a href="index.php?Site='+lk[j]+'" class="Navig" target="_top">'+mn[j]+'</a></td>');
        document.write('</tr>');
        document.write('<tr>');
        document.write('<td width="100%" class="Arial2" colspan="2" background="images/htg/buttonLinie.gif"><img border="0" src="../images/htg/buttonLinie.gif" width="11" height="2"></td>');
        document.write('</tr>');
     }


        document.write('</table>');
}

function toPrint(Nr)
 {
    newWin=window.open('sites/printer.php?ID='+Nr, 'Print', 'scrollbars=yes,width=550,height=450')
    newWin.focus()

 }

function toPrintForum(Nr)
 {
    newWin=window.open('printer.php?ID='+Nr, 'Print', 'scrollbars=yes,width=550,height=450')
    newWin.focus()

 }

function toFind()
{
 if( document.fmFormular.ipaFind.value=="") { alert('Bitte geben Sie einen Suchbegriff ein.');return}

 document.fmFormular.submit()
}
function toFindOP()
{
 if( document.fmOP.ipaFindOP.value=="") { alert('Bitte geben Sie einen Suchbegriff ein.');return}

 document.fmOP.submit()
}

function toBack()
{
   history.go(-1)
}

function toLand()
{  if( KombiValue(frm.Land)=="?" && frm.Name.value=="")
    { alert('Bitte geben Sie den Namen an\noder wählen Sie ein Bundesland aus!'); return;}
    if(KombiValue(frm.Land)!="?") { frm.ipaFindArzt.value=KombiValue(frm.Land)}
    if(frm.Name.value!="") { frm.ipaFindArzt.value=frm.ipaFindArzt.value+'#'+frm.Name.value}
    frm.submit()



}

 function ipaPruefen()
 { tmp=""
   x=0
   if(frm.Name.value=="") { tmp+="- Name muß ausgefüllt sein.\n";}
   if(frm.Ort.value!="" ) { x+=1}
   if( frm.Strasse.value!="") {x+=1}
   if(frm.Telefon.value=="" && frm.Fax.value=="" && frm.Email.value=="" && x<2)
       { tmp+="- Eines der folgenden Felder muß ausgefüllt sein:\n     - Strasse und Ort\n     - Telefon\n     - Fax\n     - Email\n" }

   if(frm.Email.value!="")
           {  if (frm.Email.value.indexOf ('@',0) == -1 || frm.Email.value.indexOf ('.',0) == -1)
                     {  tmp+="- Die Emailadresse ist nicht korrekt.\n"  }
           }
  if(frm.Nachricht.value=="") { tmp+="- Teilen Sie bitte Ihr Anliegen mit."}
   if(tmp!="") { tmp="Bitte korrigieren Sie:\n\n"+tmp; alert(tmp);return;}
   frm.aktion.value="senden";
 frm.submit()

 }




















