if (navigator.appName=='Netscape') {NS=true} else {NS=false} if (navigator.appName=='Microsoft Internet Explorer') {IE=true} else {IE=false} IE5=false; if (IE) { v5=navigator.appVersion.indexOf('MSIE') if (v5>=1) { if (parseInt(navigator.appVersion.substring(navigator.appVersion.indexOf('MSIE')+5,navigator.appVersion.length))>=5) {IE5=true}} } // Opens window with errormessage as parameter function errorwindow(errormessage) { errormessage = encodeCharacters(errormessage); MyWin=window.open(htmlpath+"popup.html","NetinsuranceError", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes,resizable=yes, width=607, height=200, left=25, top=25, alwaysRaised=no, z-lock=no") MyWin.document.write('Fejlmeddelelse') MyWin.document.write('') MyWin.document.write('') MyWin.document.write('
') MyWin.document.write('
'+errormessage) MyWin.document.write('
') MyWin.document.write('') MyWin.document.write('
') MyWin.document.close() MyWin.focus();} // Opens window with information as parameter function infowindow(infomessage,imagepath) { infomessage = encodeCharacters(infomessage); MyWin=window.open("","NetinsuranceInfo", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes,resizable=yes, width=587, height=200, left=25, top=25, alwaysRaised=no, z-lock=no") MyWin.document.write('infomeddelelse') MyWin.document.write('') MyWin.document.write('') MyWin.document.write('
') MyWin.document.write('
'+infomessage) MyWin.document.write('
') MyWin.document.write('') MyWin.document.write('
') MyWin.document.close() MyWin.focus();} // Opens window with body part of current window function openPrintwindow() { if (language == 'en') { vindue = 'Print ' + document.title; knap = 'k_closewindow.gif'; msg2 = 'In order to print you must do as described below: - Press the [OK] button - Press on the keys [CTRL] and [P] at the same time'; } else { vindue = 'Udskrift af ' + document.title; knap = 'k_luk.gif'; msg2 = 'For at printe skal du gøre som beskrevet herunder: - Tryk på [OK]-knappen - Tryk på tasterne [CTRL] og [P] samtidig'; } MyWin=window.open(htmlpath+"popup.html","NetinsurancePrint", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes,resizable=yes, width=607, height=300, left=25, top=25, alwaysRaised=no, z-lock=no") MyWin.document.write(''+vindue+'') MyWin.document.write('') MyWin.document.write('') MyWin.document.write('') MyWin.document.write('') MyWin.document.write('') MyWin.document.write('') MyWin.document.write('') MyWin.document.write('
 
') MyWin.document.write(' 
') MyWin.document.write('') MyWin.document.write('') if (document.getElementById("bodymessage")) { print_bodymessage = document.getElementById("bodymessage").innerHTML; if (print_bodymessage.length > 0) { print_bodymessage = printReplace(print_bodymessage); MyWin.document.write('') MyWin.document.write('') } } if (document.getElementById("bodytitle")) { print_bodytitle = document.getElementById("bodytitle").innerHTML; print_bodytitle = printReplace(print_bodytitle); MyWin.document.write('') } if (document.getElementById("bodycontent")) { print_bodycontent = document.getElementById("bodycontent").innerHTML; print_bodycontent = printReplace(print_bodycontent); MyWin.document.write('') } MyWin.document.write('') MyWin.document.write('
 
'+print_bodymessage+'
'+print_bodytitle+'
'+print_bodycontent+'