// Javascript-functions for premium-scheidung.com // copyright Markus Knigge // all scripts under GPL function toggle_vis(idname) { if (document.getElementById(idname).style.display == 'block') { document.getElementById(idname).style.display = 'none'; } else { document.getElementById(idname).style.display = 'block'; } } function change_images (imagename) { if (document.getElementById('right_floater').style.display == 'none') { var object = 'media/button_open_map_01.gif'; } else { var object = 'media/button_open_map_02.gif'; } window.document.images[imagename].src = object; } function change_plusminus (imagename,layer) { if (document.getElementById(layer).style.display == 'none') { var object = 'media/plus.gif'; } else { var object = 'media/minus.gif'; } window.document.images[imagename].src = object; } // Graphic Popup function graphic(pic,cs,height,width) { window.open("image.php?cs="+cs+"&pic="+pic+"","picture","scrollbars=no,status=yes,resizeable=no,width="+width+",height="+height+""); } // Help Popup function help(help,cs) { window.open("help.php?cs="+cs+"&help="+help+"","help","scrollbars=no,status=yes,resizeable=yes,width=283,height=170"); } // Chat Popup function chat_start() { window.open("chat/index.php","chat","scrollbars=no,status=yes,resizeable=no,width=780,height=600"); } // Lexikon Popup function lexikon(begriff,cs) { //alert(begriff); window.open("lexikon.php?cs="+cs+"&begriff="+begriff+"","lexikon","scrollbars=yes,resizeable=yes,width=302,height=500"); } // Anfahrt Popup function anfahrt(address,description,cs) { //alert(begriff); window.open("google_anfahrt.php?cs="+cs+"&address="+address+"&description="+description+"","anfahrt","scrollbars=no,resizeable=no,width=400,height=438"); } // Message Popup //function lexikon(mess_id,cs) { // window.open("lexikon.php?cs="+cs+"&begriff="+begriff+"","lexikon","scrollbars=yes,resizeable=yes,width=302,height=500"); //} // weiterleitung ala javascript .. function go_to(URL) { self.location.href = URL; //alert(URL); } // change attributes by mouseover ... not used by the time // use with: onMouseOver="farbe(this)" onMouseOut="farbe_2(this)" function farbe(theCell) { tdId=document.getElementById(theCell.id); currentCol = tdId.getAttribute('bgcolor'); newCol = tdId.setAttribute('bgcolor', 'F0A490', 0); } function farbe_2(theCell) { tdId=document.getElementById(theCell.id); currentCol = tdId.getAttribute('bgcolor'); newCol = tdId.setAttribute('bgcolor', 'D1D1D1', 0); } // not used by the time function go() { var h = t01.clientHeight; //window.resizeTo(380,h+50); //window.resizeTo(h+100); } // change something in a apopup window ... not used by the time function navChange(formName, popupName, targetName) { var liste = document[formName].elements[popupName]; if (liste.selectedIndex != 0) { location.href = targetName + liste.options[liste.selectedIndex].value; } }