22. marts 2013 - 17:44
#7
Nej, selvfølgelig ikke :)
Her er hele kildekoden.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Tilbud nr. 422313R2 - Kerteminde Søsports Center - KERTEMINDE SØSPORTS CENTER</title>
<style type="text/css">
<!--
body {
margin-bottom : 0px;
margin-left : 0px;
margin-right : 0px;
margin-top : 0px;
font-family : Geneva, Arial, Helvetica, sans-serif;
}
a, a:visited, a:active {
text-decoration: underline;
color : #363636;
}
a:hover {
text-decoration: underline;
color : #363636;
}
a.title, a.title:visited, a.title:active, a.title:hover {
text-decoration: underline;
color : #26354C;
font-size: 16px;
}
div { font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; }
td.menu {
font-size: 11px;
line-height: 16px;
color: #363636;
text-align: left;
}
td.title {
font-size: 20px;
color: #26354C;
text-align: left;
padding-bottom : 10px;
}
td.subtitle {
font-size: 16px;
color: #26354C;
text-align: left;
}
td.content {
font-size: 11px;
line-height: 16px;
color: #363636;
text-align: justify;
}
td.legend {
font-size: 13px;
color: #363636;
font-weight: bold;
border-bottom: 1px solid #e9e9e9;
padding-top : 5px;
padding-bottom : 5px;
}
td.shortcut {
font-size: 10px;
color: #363636;
padding-top : -2px;
padding-bottom : 5px;
}
td.listend {
border-top: 1px solid #e9e9e9;
}
td.list0 {
font-size: 11px;
color: #363636;
background-color: #f9f9f9;
padding-top : 5px;
padding-bottom : 5px;
}
td.list1 {
font-size: 11px;
color: #363636;
background-color: #efefef;
padding-top : 5px;
padding-bottom : 5px;
}
ul { margin-top: 0px; margin-bottom: 10px; }
td.menuspace {
height: 5;
background-color: #efefef;
border-bottom: 1px solid #cdcdcd;
font-size : 11px;
font-weight: bold;
color : #363636;
}
td.contenttopleft {
height: 35;
background-color: #efefef;
border-left: 1px solid #cdcdcd;
border-bottom: 1px solid #cdcdcd;
font-size : 20px;
font-weight: bold;
color : #363636;
}
td.contenttopright {
height: 35;
background-color: #efefef;
border-bottom: 1px solid #cdcdcd;
border-right: 1px solid #cdcdcd;
font-size : 20px;
font-weight: bold;
color : #363636;
}
td.contentbottom {
background-color: #ffffff;
border-bottom: 1px solid #cdcdcd;
border-right: 1px solid #cdcdcd;
border-left: 1px solid #cdcdcd;
font-size : 12px;
color : #363636;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
}
td.menu {
height: 40;
background-color: #efefef;
border-bottom: 1px solid #cdcdcd;
padding-left: 5px;
font-size : 11px;
font-weight: bold;
color : #363636;
}
td.menu1 {
height: 40;
background-color: #ffffff;
border-bottom: 1px solid #cdcdcd;
padding-left: 5px;
font-size : 11px;
font-weight: bold;
color : #363636;
}
input.submit {
width: 100;
height: 22;
background-color: #efefef;
border: 1px solid #cdcdcd;
font-size : 11px;
font-weight: bold;
color : #363636;
}
input.submit2 {
width: 150;
height: 22;
background-color: #efefef;
border: 1px solid #cdcdcd;
font-size : 11px;
font-weight: bold;
color : #363636;
}
input.minisubmit {
width: 50;
height: 20;
background-color: #efefef;
border: 1px solid #cdcdcd;
font-size : 10px;
font-weight: bold;
color : #363636;
}
input.listform, select.listform {
width: 190;
background-color: #f3f3f3;
border: 1px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
input.listformsmall{
width: 32;
background-color: #f3f3f3;
border: 1px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
input.listformx, select.listformx {
width: 190;
background-color: #ffffff;
border: 0px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
input.listformy, select.listformy, input.listformxy, select.listformxy {
width: 190;
background-color: #E8EF94;
border: 0px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
input.inputsmall {
width: 145;
background-color: #f3f3f3;
border: 1px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
input.submitsmall {
width: 40;
height: 17;
background-color: #efefef;
border: 1px solid #cdcdcd;
font-size : 9px;
font-weight: bold;
color : #363636;
}
textarea.listform {
width: 335;
height: 40;
background-color: #f3f3f3;
border: 1px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
textarea.listform2 {
width: 190;
height: 100;
background-color: #f3f3f3;
border: 1px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
textarea.listformx {
width: 335;
height: 40;
background-color: #ffffff;
border: 0px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
textarea.listform2x {
width: 190;
height: 100;
background-color: #ffffff;
border: 0px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
textarea.listformy, textarea.listformxy {
width: 335;
height: 40;
background-color: #E8EF94;
border: 0px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
textarea.listform2y, textarea.listform2xy {
width: 190;
height: 100;
background-color: #E8EF94;
border: 0px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
textarea.listformwide {
width: 535;
height: 75;
background-color: #f3f3f3;
border: 1px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
textarea.listformwidex {
width: 535;
height: 75;
background-color: #ffffff;
border: 0px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
textarea.listformwidez {
border-color:#CdCdCd;
background-color:#FFFFFF;
border:1 px solid #cdcdcd;
font-size:11px;
color:#363636;
border-style:solid;
}
textarea.listformwidey, textarea.listformwidexy {
width: 535;
height: 75;
background-color: #E8EF94;
border: 0px solid #cdcdcd;
font-size : 11px;
color : #363636;
}
#left {
width: 135px;
float : left;
font-size : 13px;
color : #363636;
}
#right {
left: 175px;
width: 790px;
font-size : 11px;
color : #363636;
}
#right td {
font-size : 11px;
color : #363636;
}
-->
</style>
<script language="JavaScript" type="text/javascript">
<!--
function openWin(windowURL, windowName) {
return window.open(windowURL, windowName, 'width=1000,height=700,toolbar=0,location=0,directories=0,status=1,menuBar=0,scrollBars=1,resizable=0');
}
function openSmall(windowURL, windowName) {
return window.open(windowURL, windowName, 'width=600,height=500,toolbar=0,location=0,directories=0,status=1,menuBar=0,scrollBars=1,resizable=1');
}
function setVal(f, v) {
document.forms['ds'].elements[f].value = v;
}
function nyObject(){}
function goPage(no, knap) {
var omraade = 'tilbud3';//Siden man kommer fra
var page = no;
//alert(omraade);
if (omraade == 'tilbud9') test_levering(knap);
if (page == 'tilbud9') performBeregn();
if (omraade == 'tilbud8') //if (page == 'tilbud8') performBeregn(false);
performBeregn(false);
document.forms['ds'].elements['nextpage'].value = no;
if (page != 'tilbud1') {
document.forms['ds'].submit();
}
}
/*
function goPage(no) {
var omraade = 'tilbud3';
var page = no;
if (omraade == 'ordre9') test_levering();//performBeregn();
if (page == 'ordre9') performBeregn();
if (omraade == 'ordre8'){//if(page == 'ordre8'){
performBeregn(false);
}
document.forms['ds'].elements['nextpage'].value = no;
if (page != '13') {//for ikke at tilføje aftalen 2 gange, da der i forvejen er kørt en submit på sidens form
document.forms['ds'].submit();
}
}
*/
function goPageAndReload(no) {
document.forms['ds'].elements['nextpage'].value = no;
document.forms['ds'].elements['reload'].value = '1';
document.forms['ds'].submit();
}
function focusNewKunde(ref) {
opener.location.href = ref;
opener.focus();
}
function goSave() {
var no = 3;
if (no == '9') {
performBeregn();
no = '#9';
}
if (no == '8') performBeregn(false);
document.forms['ds'].elements['nextpage'].value = no;
document.forms['ds'].submit();
}
function beregnSave() {
var no = 3;
//alert(no);
if (no == '9') {
no = '#9';
}
document.forms['ds'].elements['nextpage'].value = no;
document.forms['ds'].submit();
}
function valider() {
var fejl = "";
var page = 'tilbud3';
if (page == 'tilbud2'){
if (ds.r38.value < 1 || ds.r38.value > 10 || ds.r39.value < 1 || ds.r39.value > 10)
fejl += "Du har valgt en højde, som enten er for stor eller lille\n";
if (ds.r38.value == "")
fejl += "Angiv venligst højde\n";
if (ds.r40.value < 0 || ds.r40.value > 80 || ds.r41.value < 0 || ds.r41.value > 80)
fejl += "Du har valgt en taghældning som enten er for lille eller for stor\n";
if (ds.r40.value == "")
fejl += "Angiv venligst taghældning\n";
if (ds.r53b.value == "" )
fejl += "Vælg venligst overfladebehandling\n";
if (ds.r55.value == "" )
fejl += "Vælg venligst produktionsmetode";
}
if (fejl != "") {
alert(fejl);
//} else{ //Denne kode er nok skyld i dobbelt oprettelse af tilbud
//document.forms['ds'].submit();
}
}
-->
</script>
</head>
<body>
<div id="left" onClick="valider();">
<!--
style="position:relative;top:expression(this.offsetParent.scrollTop);"
-->
<table width="135" border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td colspan="2" id="2" class="menuspace"><img src="/gfx/transparent.gif" width="1" height="1" alt="" border="0"></td>
</tr>
<tr>
<td colspan="2" id="2" class="menu" onClick="goPage(1, this);">Kunde og bygherre</td>
</tr>
<tr>
<td colspan="2" id="2" class="menu" onClick="goPage(2, this);">Bygningsgeometri</td>
</tr>
<tr>
<td colspan="2" id="2" class="menu1" onClick="goPage(3, this);">Beregnings-forudsætninger</td>
</tr>
<tr>
<td colspan="2" id="2" class="menu" onClick="goPage(5, this);">Beklædning</td>
</tr>
<tr>
<td colspan="2" id="2" class="menu" onClick="goPage(9, this);">Kalkulation</td>
</tr>
<tr>
<td colspan="2" id="2" class="menu" onClick="goPage('#9', this);">Forudsætninger og forbehold</td>
</tr>
<tr>
<td colspan="2" id="2" class="menu" onClick="goPage('10', this);">Indgåede aftaler journal / logbog</td>
</tr>
<tr>
<td colspan="2" id="2" class="menu" onClick="goPage(11, this);">Udskriv og afslut</td>
</tr>
<tr>
<td colspan="2" class="menuspace"><img src="/gfx/transparent.gif" width="1" height="1" alt="" border="0"></td>
</tr>
<tr>
<td colspan="2" class="menu" onClick="goSave();">Gem</td>
</tr>
<tr>
<td class="menu" onClick="goPage(3, this);"><a href="\\srv-fil2\DS Spærsalg\Tilbud\422000-422999\422313\" target="new"><b>Tilbuds-mappe</b></a></td>
</tr>
<tr>
<td colspan="2" class="menu"><b>Filliste:</b></td>
</tr>
<tr>
<td colspan="2" ><iframe name="stifinder" width="135" height="427" src="/stifinder.php?root=Tilbud/422313"></iframe></td>
</tr>
</table>
</div>
<div id="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td class="contenttopleft" align="left"> Beregningsforudsætninger</td>
<td class="contenttopright" align="right">Tilbud Nr. 422313 Rev. 2 </td>
</tr>
<tr>
<td class="contentbottom" colspan="2"><script>
function hitR57(felt) {
}
function valider() {
var fejl = "";
if (ds.r45.value == "" ){
fejl += "Angiv venligst en normklasse\n";
}
//if (ds.r49a.selectedIndex == 0 ){
if (ds.r45d.value == "" || ds.r45d.value == "Vælg norm ..." ){
fejl += "Angiv venligst en konsekvensklasse\n";
}
if (ds.r45e.value == "" || ds.r45e.value == "Vælg norm ..." ){
fejl += "Angiv venligst en anveldelseskategori\n";
}
if (ds.r45f.value == "" || ds.r45f.value == "Vælg norm ..." ){
fejl += "Angiv venligst en produktionskategori\n";
}
if (ds.r46.value == "" ){
fejl += "Angiv venligst en terrænklasse\n";
}
if (ds.r47.value == "" ){
fejl += "Angiv venligst en basisvindhastighed\n";
}
if (fejl != "") {
alert(fejl);
} else {
ds.submit();
}
}
</script>
<form action="/salg_tilbud_process.php" method="post" name="ds" id="ds" style="display:inline;" autocomplete="off">
<input type="hidden" name="thispage" value="3">
<input type="hidden" name="nextpage" value="5">
<input type="hidden" name="eid" value="30551">
<table width="100%" border="0" cellspacing="1" cellpadding="1" align="right">
<tr>
<td>Normgrundlag :</td>
<td width="17%">
<select name="r45" size="1" class="listform" onChange="populateQuickies(false);" style="width: 135px;">
<option value=""></option>
<option value="1">Dansk</option>
<option value="2">GL NA Eurocode</option>
<option value="3">DS 412 (1983)</option>
<option value="4">Færøsk</option>
<option value="5">Svensk</option>
<option value="6">Norsk</option>
<option value="7">DIN</option>
<option value="8">Eurocode DK NA:2007</option>
<option value="9">Andet</option>
<option value="10">DIN 1055-4:1986-08 bzw. -5:1975-06</option>
<option value="11">SS EN 1993</option>
<option value="12" selected>Eurocode DK NA:2012</option>
</select>
</td>
<td width="13%">Traverskran :</td>
<td width="14%">
<input type="checkbox" name="r58e" value="1">Tag
</td>
<td width="17%">Afstand fra udv. ben</td>
<td width="15%"><input type="text" name="r58a" value="" class="listform" style="width: 50px"> m</td>
</tr>
<tr>
<td>Konsekvensklasse :<br /> Sikkerhedsklasse :</td>
<td>
<select name="r45d" size="1" class="listform" onChange="populateUdf(true);ds.r45h.value=ds.r45d.value;" style="width: 70px;"></select>
<img src="/gfx/transparent.gif" width="5" height="1" alt="" border="0">
<input type="hidden" name="r45h" value="CC1" class="listform" style="width: 60px;">
<!-- Til konsekvensklasse er skjult som standard-->
<select name="r49a" size="1" id="sikkerhed" class="listform" onChange="ds.r49.value=ds.r49a.value" style="width: 40px; visibility:hidden;"></select>
<img src="/gfx/transparent.gif" width="5" height="1" alt="" border="0">
<input type="text" name="r49" value="CC1_Lav" class="listform" style="width: 60px;">
</td>
<td> </td>
<td><input type="checkbox" name="r58f" value="2">Ben</td>
<td>Konsolhøjde :</td>
<td><input type="text" name="r58b" value="" class="listform" style="width: 50px"> m</td>
</tr>
<tr>
<td>Anvendelseskategori:</td>
<td>
<select name="r45e" size="1" class="listform" onChange="populateUdf(true);" style="width: 70px;">
<option value=""></option>
<option value="SC1" selected>SC1</option>
<option value="SC2">SC2</option>
</select>
</td>
<td>Egenlast :</td>
<td><input type="text" name="r58c" value="" class="listform" style="width: 50px"> kN</td>
<td>Nyttelast :</td>
<td><input type="text" name="r58d" value="" class="listform" style="width: 50px"> kN</td>
</tr>
<tr>
<td>Produktionskategori:</td>
<td>
<select name="r45f" size="1" class="listform" onChange="populateUdf(true);" style="width: 70px;">
<option value=""></option>
<option value="PC1" selected>PC1</option>
<option value="PC2">PC2</option>
</select>
</td>
</tr>
<tr>
<td>Udførelsesklasse:</td>
<td><input type="text" name="r45g" value="EXC1" class="listform" style="width: 50px">
<!--<td>Kontrolklasse :</td>-->
<select name="r50" size="1" class="listform" style="width: 50px; visibility:hidden">
<option value="1" selected>Normal</option>
<option value="2">Høj</option>
</select>
</td>
</tr>
<tr>
<td>Terrænklasse :</td>
<td><select name="r46a" size="1" class="listform" onChange="ds.r46.value=ds.r46a.value" style="width: 70px;"></select><img src="/gfx/transparent.gif" width="5" height="1" alt="" border="0"><input type="hidden" name="r46" value="0.05" class="listform" style="width: 60px;"></td>
</tr>
<tr>
<td><img src="/gfx/transparent.gif" width="1" height="1" alt="" border="0"></td>
<td colspan="5" style="border-bottom: 1px solid #cdcdcd;"><img src="/gfx/transparent.gif" width="1" height="1" alt="" border="0"></td>
</tr>
<tr>
<td>Basisvindhastighed :</td>
<td><select name="r47b" size="1" class="listform" onChange="ds.r47.value=ds.r47b.value" style="width: 70px;"></select><img src="/gfx/transparent.gif" width="5" height="1" alt="" border="0"><input type="hidden" name="r47" value="24" class="listform" style="width: 60px;"></td>
<td>Løbekat :</td>
<td> </td>
<td>Afstand fra udv. ben :</td>
<td><input type="text" name="r59" value="" class="listform" style="width: 50px"> m</td>
</tr>
<tr>
<td>Kar. hastighedstryk :</td>
<td><input type="text" name="r47a" value="" class="listform" style="width: 50px"> kN/m<sup>2</sup></td>
<td>Egenlast :</td>
<td><input type="text" name="r59a" value="" class="listform" style="width: 50px"> kN</td>
<td>Nyttelast :</td>
<td><input type="text" name="r59b" value="" class="listform" style="width: 50px"> kN</td>
</tr>
<tr>
<td><img src="/gfx/transparent.gif" width="1" height="1" alt="" border="0"></td>
<td colspan="5" style="border-bottom: 1px solid #cdcdcd;"><img src="/gfx/transparent.gif" width="1" height="1" alt="" border="0"></td>
</tr>
<tr>
<td>Bygningen er :</td>
<td><input type="checkbox" name="r57b" value="1" onClick="hitR57(r57b);">Åben bygning</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input type="checkbox" name="r57c" value="3" onClick="hitR57(r57b);">Delvist åben</td>
<td>Løsvare</td>
<td><input type="text" name="r60" value="" class="listform" style="width: 80px"></td>
<td>Last</td>
<td><input type="text" name="r60a" value="" class="listform" style="width: 50px"> kN/m<sup>3</sup></td></td>
</tr>
<tr>
<td> </td>
<td><input type="checkbox" name="r57d" value="2" checked onClick="hitR57(r57b);">Lukket bygning</td>
<td>Friktionsvinkel :</td>
<td><input type="text" name="r61" value="" class="listform" style="width: 50px"> <sup>º</sup></td>
<td>Skræntvinkel :</td>
<td><input type="text" name="r61a" value="" class="listform" style="width: 50px"> <sup>º</sup></td>
</tr>
<tr>
<td>Beskrivelse :</td>
<td><textarea rows="5" name="r57a" class="listform" style="width:135px; height:40px;"></textarea></td>
<td>Højde :</td>
<td><input type="text" name="r60b" value="" class="listform" style="width: 50px"> m</td>
<td valign="top">Elementhøjde :</td>
<td valign="top">
<input type="text" name="r62" value="" class="listform" style="width: 50px"> m<br>
<input type="checkbox" name="r62a" value="1"> Fastholdt bund
</td>
</tr>
<tr>
<td><img src="/gfx/transparent.gif" width="1" height="1" alt="" border="0"></td>
<td colspan="5" style="border-bottom: 1px solid #cdcdcd;"><img src="/gfx/transparent.gif" width="1" height="1" alt="" border="0"></td>
</tr>
<tr>
<td>Kar. snelast :</td>
<td><select name="r48a" size="1" class="listform" onChange="ds.r48.value=ds.r48a.value" style="width: 70px;"></select><img src="/gfx/transparent.gif" width="5" height="1" alt="" border="0"><input type="hidden" name="r48" value="1.00" class="listform" style="width: 60px;"></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Topo.-faktor, C<sub>top</sub> :</td>
<td><select name="r48b" size="1" class="listform" onChange="ds.r48c.value=ds.r48b.value" style="width: 110px;"></select>
<img src="/gfx/transparent.gif" width="5" height="1" alt="" border="0">
<input type="hidden" name="r48c" value="1.25 (afskærmet)" class="listform" style="width: 60px;"></td>
</tr>
<tr>
<td>Venstre facade mod :</td>
<td><select name="r48d" size="1" class="listform" onChange="ds.r48e.value=ds.r48d.value" style="width: 70px;"></select>
<img src="/gfx/transparent.gif" width="5" height="1" alt="" border="0">
<input type="hidden" name="r48e" value="N" class="listform" style="width: 60px;"></td>
</tr>
<tr>
<td>Snesæk :</td>
<td>
<input type="checkbox" name="r56v" value="1">v
<input type="checkbox" name="r56h" value="2">h
<input type="checkbox" name="r56d" value="3">b
<input type="checkbox" name="r56e" value="4" checked>i
</td>
<td>Dæk (mezzanin) :</td>
<td><input type="checkbox" name="r63f" value="1">Tag</td>
<td>Afstand fra udv. ben :</td>
<td><input type="text" name="r63a" value="" class="listform" style="width: 50px"> m</td>
</tr>
<tr>
<td>Forskel : <input type="text" name="r56a" value="" class="listform" style="width: 25px"> m</b></td>
<td>Taghældning : <input type="text" name="r56b" value="" class="listform" style="width: 25px"> <sup>º</sup></b></td>
<td> </td>
<td><input type="checkbox" name="r63e" value="2">Ben</td>
<td>Konsolhøjde :</td>
<td><input type="text" name="r63b" value="" class="listform" style="width: 50px"> m</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>Egenlast :</td>
<td><input type="text" name="r63c" value="" class="listform" style="width: 50px"> kN/m<sup>2</sup></td>
<td>Nyttelast :</td>
<td><input type="text" name="r63d" value="" class="listform" style="width: 50px"> kN/m<sup>2</sup></td>
</tr>
<tr>
<td>Evt. anden last :</td>
<td colspan="6">
<textarea cols="5" rows="5" name="r64" class="listform" style="width:645px; height:50px;"></textarea></td>
</tr>
<tr>
<td colspan="6"><img src="/gfx/transparent.gif" width="1" height="10" alt="" border="0"><br><input type="submit" name="submit2" class="submit" value="Fortsæt" onClick="valider();"></td>
</tr>
</table>
</form>
<script language="JavaScript" type="text/javascript">
<!--
//Konsekvensklasse
var k0 = new Array()
k0[0]=new Option("","Vælg norm ...")
var k1 = new Array();
k1[0]=new Option("CC1","CC1")
k1[1]=new Option("CC2","CC2")
k1[2]=new Option("CC3","CC3")
var k2 = new Array();
k2[0]=new Option("CC2","CC2")
k2[1]=new Option("CC1","CC1")
k2[2]=new Option("CC3","CC3")
var k3 = new Array();
k3[0]=new Option("CC2","CC2")
k3[1]=new Option("CC1","CC1")
var k4 = new Array();
k4[0]=new Option("CC2","CC2")
var k5 = new Array();
k5[0]=new Option("CC2","CC2")
k5[1]=new Option("CC1","CC1")
k5[2]=new Option("CC3","CC3")
var k6 = new Array();
k6[0]=new Option("CC2","CC2")
k6[1]=new Option("CC1","CC1")
k6[2]=new Option("CC3","CC3")
var k7 = new Array();
k7[0]=new Option("CC2","CC2")
var k8 = new Array();
k8[0]=new Option("CC1","CC1")
k8[1]=new Option("CC2","CC2")
k8[2]=new Option("CC3","CC3")
var k9 = new Array();
k9[0]=new Option("CC2","CC2")
var k11 = new Array();
k11[0]=new Option("CC2","CC2")
k11[1]=new Option("CC1","CC1")
k11[2]=new Option("CC3","CC3")
var k12 = new Array();
k12[0]=new Option("CC1","CC1")
k12[1]=new Option("CC2","CC2")
k12[2]=new Option("CC3","CC3")
var t0 = new Array()
t0[0]=new Option("","Vælg norm ...")
var t1 = new Array();
t1[0]=new Option("0,05","0,05")
t1[1]=new Option("0,3","0,3")
t1[2]=new Option("0,01","0,01")
t1[3]=new Option("1,00","1,00")
var t2 = new Array();
t2[0]=new Option("0,05","0,05")
var t3 = new Array();
t3[0]=new Option("0,05","0,05")
var t4 = new Array();
t4[0]=new Option("0,05","0,05")
var t5 = new Array();
t5[0]=new Option("0,05","0,05")
t5[1]=new Option("0,3","0,3")
t5[2]=new Option("0,01","0,01")
t5[3]=new Option("1,00","1,00")
var t6 = new Array();
t6[0]=new Option("0,05","0,05")
t6[1]=new Option("0,3","0,3")
t6[2]=new Option("0,01","0,01")
t6[3]=new Option("1,00","1,00")
var t7 = new Array();
t7[0]=new Option("0,3","0,3")
t7[1]=new Option("0,05","0,05")
t7[2]=new Option("0,01","0,01")
var t8 = new Array();
t8[0]=new Option("0,05","0,05")
t8[1]=new Option("0,3","0,3")
t8[2]=new Option("0,01","0,01")
t8[3]=new Option("1,00","1,00")
var t11 = new Array();
t11[0]=new Option("0,05","0,05")
t11[1]=new Option("0,3","0,3")
t11[2]=new Option("0,01","0,01")
t11[3]=new Option("1,00","1,00")
var t12 = new Array();
t12[0]=new Option("0,05","0,05")
t12[1]=new Option("0,30","0,30")
t12[2]=new Option("1,00","1,00")
t12[3]=new Option("0,01","0,01")
t12[4]=new Option("0,003","0,003")
var b0 = new Array()
b0[0]=new Option("","Vælg norm ...")
var b1 = new Array();
b1[0]=new Option("24","24")
b1[1]=new Option("27","27")
var b2 = new Array();
b2[0]=new Option("51","51")
var b3 = new Array();
b3[0]=new Option("43","43")
b3[1]=new Option("37","37")
var b4 = new Array();
b4[0]=new Option("42,5","42,5")
b4[1]=new Option("51","51")
b4[2]=new Option("55","55")
var b5 = new Array();
b5[0]=new Option("21","21")
b5[1]=new Option("22","22")
b5[2]=new Option("23","23")
b5[3]=new Option("24","24")
b5[4]=new Option("25","25")
b5[5]=new Option("26","26")
var b6 = new Array();
b6[0]=new Option("22","22")
b6[1]=new Option("23","23")
b6[2]=new Option("24","24")
b6[3]=new Option("25","25")
b6[4]=new Option("26","26")
b6[5]=new Option("27","27")
b6[6]=new Option("28","28")
b6[7]=new Option("29","29")
b6[8]=new Option("30","30")
b6[9]=new Option("31","31")
b6[10]=new Option("32","32")
b6[11]=new Option("33","33")
b6[12]=new Option("34","34")
b6[13]=new Option("35","35")
b6[14]=new Option("36","36")
var b7 = new Array();
b7[0]=new Option("27","27")
var b8 = new Array();
b8[0]=new Option("24","24")
b8[1]=new Option("27","27")
var b11 = new Array();
b11[0]=new Option("21","21")
b11[1]=new Option("22","22")
b11[2]=new Option("23","23")
b11[3]=new Option("24","24")
b11[4]=new Option("25","25")
b11[5]=new Option("26","26")
var b12 = new Array();
b12[0]=new Option("24","24")
b12[1]=new Option("27","27")
var s0 = new Array()
s0[0]=new Option("","Vælg norm ...")
var s1 = new Array();
s1[0]=new Option("0,9","0,9")
s1[1]=new Option("1,3","1,3")
s1[2]=new Option("1,6","1,6")
s1[3]=new Option("1,5","1,5")
s1[4]=new Option("0,0","0,0")
s1[5]=new Option("1,2","1,2")
var s2 = new Array();
s2[0]=new Option("1,0","1,0")
s2[1]=new Option("2,0","2,0")
s2[2]=new Option("1,78","1,78")
s2[3]=new Option("1,44","1,44")
s2[4]=new Option("1,87","1,87")
s2[5]=new Option("1,56","1,56")
s2[6]=new Option("2,4","2,4")
s2[7]=new Option("2,93","2,93")
s2[8]=new Option("2,50","2,50")
s2[9]=new Option("1,4","1,4")
s2[10]=new Option("6,0","6,0")
s2[11]=new Option("4,0","4,0")
s2[12]=new Option("1,80","1,80")
s2[13]=new Option("3,00","3,00")
var s3 = new Array();
s3[0]=new Option("1,0","1,0")
s3[1]=new Option("1,2","1,2")
s3[2]=new Option("1,5","1,5")
s3[3]=new Option("1,6","1,6")
var s4 = new Array();
s4[0]=new Option("1,0","1,0")
var s5 = new Array();
s5[0]=new Option("1,0","1,0")
s5[1]=new Option("1,5","1,5")
s5[2]=new Option("2,0","2,0")
s5[3]=new Option("2,5","2,5")
s5[4]=new Option("3,0","3,0")
s5[5]=new Option("3,5","3,5")
s5[6]=new Option("4,0","4,0")
s5[7]=new Option("4,5","4,5")
var s6 = new Array();
s6[0]=new Option("1,5","1,5")
s6[1]=new Option("2,0","2,0")
s6[2]=new Option("2,5","2,5")
s6[3]=new Option("3,0","3,0")
s6[4]=new Option("3,5","3,5")
s6[5]=new Option("4,0","4,0")
s6[6]=new Option("4,5","4,5")
s6[7]=new Option("5,0","5,0")
s6[8]=new Option("5,5","5,5")
s6[9]=new Option("6,0","6,0")
s6[10]=new Option("6,5","6,5")
s6[11]=new Option("7,0","7,0")
s6[12]=new Option("7,5","7,5")
s6[13]=new Option("8,0","8,0")
s6[14]=new Option("8,5","8,5")
s6[15]=new Option("9,0","9,0")
s6[16]=new Option("9,5","9,5")
s6[17]=new Option("10,0","10,0")
var s7 = new Array();
s7[0]=new Option("0,65","0,65")
s7[1]=new Option("0,75","0,75")
s7[2]=new Option("0,85","0,85")
s7[3]=new Option("0,90","0,90")
s7[4]=new Option("1,00","1,00")
s7[5]=new Option("1,10","1,10")
s7[6]=new Option("1,15","1,15")
s7[7]=new Option("1,25","1,25")
s7[8]=new Option("1,50","1,50")
s7[9]=new Option("1,55","1,55")
s7[10]=new Option("1,60","1,60")
s7[11]=new Option("1,80","1,80")
s7[12]=new Option("1,85","1,85")
s7[13]=new Option("2,00","2,00")
s7[14]=new Option("2,10","2,10")
var s8 = new Array();
s8[0]=new Option("0,90","0,90")
s8[1]=new Option("1,00","1,00")
var s11 = new Array();
s11[0]=new Option("1,0","1,0")
s11[1]=new Option("1,5","1,5")
s11[2]=new Option("2,0","2,0")
s11[3]=new Option("2,5","2,5")
s11[4]=new Option("3,0","3,0")
s11[5]=new Option("3,5","3,5")
s11[6]=new Option("4,0","4,0")
s11[7]=new Option("4,5","4,5")
var s12 = new Array();
s12[0]=new Option("1,00","1,00")
var ss0 = new Array()
ss0[0]=new Option("","Vælg norm ...")
var ss1 = new Array();
ss1[0]=new Option("Lav","Lav")
ss1[1]=new Option("Normal","Normal")
ss1[2]=new Option("Høj","Høj")
var ss2 = new Array();
ss2[0]=new Option("Normal","Normal")
ss2[1]=new Option("Lav","Lav")
ss2[2]=new Option("Høj","Høj")
var ss3 = new Array();
ss3[0]=new Option("Normal","Normal")
ss3[1]=new Option("Lav","Lav")
var ss4 = new Array();
ss4[0]=new Option("Normal","Normal")
var ss5 = new Array();
ss5[0]=new Option("Normal","Normal")
ss5[1]=new Option("Lav","Lav")
ss5[2]=new Option("Høj","Høj")
var ss6 = new Array();
ss6[0]=new Option("Normal","Normal")
ss6[1]=new Option("Lav","Lav")
ss6[2]=new Option("Høj","Høj")
var ss7 = new Array();
ss7[0]=new Option("Normal","Normal")
var ss8 = new Array();
ss8[0]=new Option("CC1_Lav","CC1_Lav")
ss8[1]=new Option("CC2_Middel","CC2_Middel")
ss8[2]=new Option("CC3_Høj","CC3_Høj")
var ss9 = new Array();
ss9[0]=new Option("Normal","Normal")
var ss11 = new Array();
ss11[0]=new Option("CC2_Middel","CC2_Middel")
ss11[1]=new Option("CC1_Lav","CC1_Lav")
ss11[2]=new Option("CC3_Høj","CC3_Høj")
var ss12 = new Array();
ss12[0]=new Option("CC1_Lav","CC1_Lav")
ss12[1]=new Option("CC2_Middel","CC2_Middel")
ss12[2]=new Option("CC3_Høj","CC3_Høj")
var to0 = new Array()
to0[0]=new Option("","Vælg norm ...")
var to12 = new Array();
to12[0]=new Option("1,0 (normal)","1,0 (normal)")
to12[1]=new Option("0,8 (vindblæst)","0,8 (vindblæst)")
to12[2]=new Option("1,25 (afskærmet)","1,25 (afskærmet)")
var fa0 = new Array()
fa0[0]=new Option("","Vælg norm ...")
var fa12 = new Array();
fa12[0]=new Option("N","N")
fa12[1]=new Option("NNØ","NNØ")
fa12[2]=new Option("NØ","NØ")
fa12[3]=new Option("ØNØ","ØNØ")
fa12[4]=new Option("Ø","Ø")
fa12[5]=new Option("ØSØ","ØSØ")
fa12[6]=new Option("SØ","SØ")
fa12[7]=new Option("SSØ","SSØ")
fa12[8]=new Option("S","S")
fa12[9]=new Option("SSV","SSV")
fa12[10]=new Option("SV","SV")
fa12[11]=new Option("VSV","VSV")
fa12[12]=new Option("V","V")
fa12[13]=new Option("VNV","VNV")
fa12[14]=new Option("NV","NV")
fa12[15]=new Option("NNV","NNV")
function populateUdf(kør) {
map = {"CC1":{"SC1":{"PC1":"EXC1","PC2":"EXC2"},"SC2":{"PC1":"EXC2","PC2":"EXC2"}},"CC2":{"SC1":{"PC1":"EXC2","PC2":"EXC2"},"SC2":{"PC1":"EXC3","PC2":"EXC3"}},"CC3":{"SC1":{"PC1":"EXC3","PC2":"EXC3"},"SC2":{"PC1":"EXC3","PC2":"EXC4"}}};
r45d = ds.r45d.value;
r45e = ds.r45e.value;
r45f = ds.r45f.value;
if (r45d != "" && r45e != "" && r45f != "") {// && ds.r45e.value && ds.r45f.value) {
ds.r45g.value = map[r45d][r45e][r45f];
} else {
ds.r45g.value = "";
}
if (ds.r45.value == '1') { for (i=0;i<3;i++) {
if (k1[i].value == ds.r45d.value) {
ds.r49.value = ss1[i].text;
ds.r49a.value = ss1[i].text;
}
}
}if (ds.r45.value == '2') { for (i=0;i<3;i++) {
if (k2[i].value == ds.r45d.value) {
ds.r49.value = ss2[i].text;
ds.r49a.value = ss2[i].text;
}
}
}if (ds.r45.value == '3') { for (i=0;i<2;i++) {
if (k3[i].value == ds.r45d.value) {
ds.r49.value = ss3[i].text;
ds.r49a.value = ss3[i].text;
}
}
}if (ds.r45.value == '4') { for (i=0;i<1;i++) {
if (k4[i].value == ds.r45d.value) {
ds.r49.value = ss4[i].text;
ds.r49a.value = ss4[i].text;
}
}
}if (ds.r45.value == '5') { for (i=0;i<3;i++) {
if (k5[i].value == ds.r45d.value) {
ds.r49.value = ss5[i].text;
ds.r49a.value = ss5[i].text;
}
}
}if (ds.r45.value == '6') { for (i=0;i<3;i++) {
if (k6[i].value == ds.r45d.value) {
ds.r49.value = ss6[i].text;
ds.r49a.value = ss6[i].text;
}
}
}if (ds.r45.value == '7') { for (i=0;i<1;i++) {
if (k7[i].value == ds.r45d.value) {
ds.r49.value = ss7[i].text;
ds.r49a.value = ss7[i].text;
}
}
}if (ds.r45.value == '8') { for (i=0;i<3;i++) {
if (k8[i].value == ds.r45d.value) {
ds.r49.value = ss8[i].text;
ds.r49a.value = ss8[i].text;
}
}
}if (ds.r45.value == '9') { for (i=0;i<1;i++) {
if (k9[i].value == ds.r45d.value) {
ds.r49.value = ss9[i].text;
ds.r49a.value = ss9[i].text;
}
}
}if (ds.r45.value == '10') { for (i=0;i<0;i++) {
if (k10[i].value == ds.r45d.value) {
ds.r49.value = ss10[i].text;
ds.r49a.value = ss10[i].text;
}
}
}if (ds.r45.value == '11') { for (i=0;i<3;i++) {
if (k11[i].value == ds.r45d.value) {
ds.r49.value = ss11[i].text;
ds.r49a.value = ss11[i].text;
}
}
}if (ds.r45.value == '12') { for (i=0;i<3;i++) {
if (k12[i].value == ds.r45d.value) {
ds.r49.value = ss12[i].text;
ds.r49a.value = ss12[i].text;
}
}
} return kør;
}
function populateQuickies(opstart) {
//Fordi sikkerhedsklassen ikke skal ændres automatisk, alt efter vælget i norm, så er de udmærkeret.
for (m=ds.r45d.options.length;m>=0;m--)
ds.r45d.options[m]=null
for (m=ds.r46a.options.length;m>=0;m--)
ds.r46a.options[m]=null
for (m=ds.r47b.options.length;m>=0;m--)
ds.r47b.options[m]=null
for (m=ds.r48a.options.length;m>=0;m--)
ds.r48a.options[m]=null
for (m=ds.r48b.options.length;m>=0;m--)
ds.r48b.options[m]=null
for (m=ds.r48d.options.length;m>=0;m--)
ds.r48d.options[m]=null
for (m=ds.r49a.options.length;m>=0;m--)
ds.r49a.options[m]=null
if (ds.r45.value == '1') { for (i=0;i<3;i++)
ds.r45d.options[i]=new Option(k1[i].text,k1[i].value)
for (i=0;i<4;i++)
ds.r46a.options[i]=new Option(t1[i].text,t1[i].value)
for (i=0;i<2;i++)
ds.r47b.options[i]=new Option(b1[i].text,b1[i].value)
for (i=0;i<6;i++)
ds.r48a.options[i]=new Option(s1[i].text,s1[i].value)
for (i=0;i<0;i++)
ds.r48b.options[i]=new Option(to1[i].text,to1[i].value)
for (i=0;i<0;i++)
ds.r48d.options[i]=new Option(fa1[i].text,fa1[i].value)
for (i=0;i<3;i++)
ds.r49a.options[i]=new Option(ss1[i].text,ss1[i].value)
}
else if (ds.r45.value == '2') { for (i=0;i<3;i++)
ds.r45d.options[i]=new Option(k2[i].text,k2[i].value)
for (i=0;i<1;i++)
ds.r46a.options[i]=new Option(t2[i].text,t2[i].value)
for (i=0;i<1;i++)
ds.r47b.options[i]=new Option(b2[i].text,b2[i].value)
for (i=0;i<14;i++)
ds.r48a.options[i]=new Option(s2[i].text,s2[i].value)
for (i=0;i<0;i++)
ds.r48b.options[i]=new Option(to2[i].text,to2[i].value)
for (i=0;i<0;i++)
ds.r48d.options[i]=new Option(fa2[i].text,fa2[i].value)
for (i=0;i<3;i++)
ds.r49a.options[i]=new Option(ss2[i].text,ss2[i].value)
}
else if (ds.r45.value == '3') { for (i=0;i<2;i++)
ds.r45d.options[i]=new Option(k3[i].text,k3[i].value)
for (i=0;i<1;i++)
ds.r46a.options[i]=new Option(t3[i].text,t3[i].value)
for (i=0;i<2;i++)
ds.r47b.options[i]=new Option(b3[i].text,b3[i].value)
for (i=0;i<4;i++)
ds.r48a.options[i]=new Option(s3[i].text,s3[i].value)
for (i=0;i<0;i++)
ds.r48b.options[i]=new Option(to3[i].text,to3[i].value)
for (i=0;i<0;i++)
ds.r48d.options[i]=new Option(fa3[i].text,fa3[i].value)
for (i=0;i<2;i++)
ds.r49a.options[i]=new Option(ss3[i].text,ss3[i].value)
}
else if (ds.r45.value == '4') { for (i=0;i<1;i++)
ds.r45d.options[i]=new Option(k4[i].text,k4[i].value)
for (i=0;i<1;i++)
ds.r46a.options[i]=new Option(t4[i].text,t4[i].value)
for (i=0;i<3;i++)
ds.r47b.options[i]=new Option(b4[i].text,b4[i].value)
for (i=0;i<1;i++)
ds.r48a.options[i]=new Option(s4[i].text,s4[i].value)
for (i=0;i<0;i++)
ds.r48b.options[i]=new Option(to4[i].text,to4[i].value)
for (i=0;i<0;i++)
ds.r48d.options[i]=new Option(fa4[i].text,fa4[i].value)
for (i=0;i<1;i++)
ds.r49a.options[i]=new Option(ss4[i].text,ss4[i].value)
}
else if (ds.r45.value == '5') { for (i=0;i<3;i++)
ds.r45d.options[i]=new Option(k5[i].text,k5[i].value)
for (i=0;i<4;i++)
ds.r46a.options[i]=new Option(t5[i].text,t5[i].value)
for (i=0;i<6;i++)
ds.r47b.options[i]=new Option(b5[i].text,b5[i].value)
for (i=0;i<8;i++)
ds.r48a.options[i]=new Option(s5[i].text,s5[i].value)
for (i=0;i<0;i++)
ds.r48b.options[i]=new Option(to5[i].text,to5[i].value)
for (i=0;i<0;i++)
ds.r48d.options[i]=new Option(fa5[i].text,fa5[i].value)
for (i=0;i<3;i++)
ds.r49a.options[i]=new Option(ss5[i].text,ss5[i].value)
}
else if (ds.r45.value == '6') { for (i=0;i<3;i++)
ds.r45d.options[i]=new Option(k6[i].text,k6[i].value)
for (i=0;i<4;i++)
ds.r46a.options[i]=new Option(t6[i].text,t6[i].value)
for (i=0;i<15;i++)
ds.r47b.options[i]=new Option(b6[i].text,b6[i].value)
for (i=0;i<18;i++)
ds.r48a.options[i]=new Option(s6[i].text,s6[i].value)
for (i=0;i<0;i++)
ds.r48b.options[i]=new Option(to6[i].text,to6[i].value)
for (i=0;i<0;i++)
ds.r48d.options[i]=new Option(fa6[i].text,fa6[i].value)
for (i=0;i<3;i++)
ds.r49a.options[i]=new Option(ss6[i].text,ss6[i].value)
}
else if (ds.r45.value == '7') { for (i=0;i<1;i++)
ds.r45d.options[i]=new Option(k7[i].text,k7[i].value)
for (i=0;i<3;i++)
ds.r46a.options[i]=new Option(t7[i].text,t7[i].value)
for (i=0;i<1;i++)
ds.r47b.options[i]=new Option(b7[i].text,b7[i].value)
for (i=0;i<15;i++)
ds.r48a.options[i]=new Option(s7[i].text,s7[i].value)
for (i=0;i<0;i++)
ds.r48b.options[i]=new Option(to7[i].text,to7[i].value)
for (i=0;i<0;i++)
ds.r48d.options[i]=new Option(fa7[i].text,fa7[i].value)
for (i=0;i<1;i++)
ds.r49a.options[i]=new Option(ss7[i].text,ss7[i].value)
}
else if (ds.r45.value == '8') { for (i=0;i<3;i++)
ds.r45d.options[i]=new Option(k8[i].text,k8[i].value)
for (i=0;i<4;i++)
ds.r46a.options[i]=new Option(t8[i].text,t8[i].value)
for (i=0;i<2;i++)
ds.r47b.options[i]=new Option(b8[i].text,b8[i].value)
for (i=0;i<2;i++)
ds.r48a.options[i]=new Option(s8[i].text,s8[i].value)
for (i=0;i<0;i++)
ds.r48b.options[i]=new Option(to8[i].text,to8[i].value)
for (i=0;i<0;i++)
ds.r48d.options[i]=new Option(fa8[i].text,fa8[i].value)
for (i=0;i<3;i++)
ds.r49a.options[i]=new Option(ss8[i].text,ss8[i].value)
}
else if (ds.r45.value == '9') { for (i=0;i<1;i++)
ds.r45d.options[i]=new Option(k9[i].text,k9[i].value)
for (i=0;i<0;i++)
ds.r46a.options[i]=new Option(t9[i].text,t9[i].value)
for (i=0;i<0;i++)
ds.r47b.options[i]=new Option(b9[i].text,b9[i].value)
for (i=0;i<0;i++)
ds.r48a.options[i]=new Option(s9[i].text,s9[i].value)
for (i=0;i<0;i++)
ds.r48b.options[i]=new Option(to9[i].text,to9[i].value)
for (i=0;i<0;i++)
ds.r48d.options[i]=new Option(fa9[i].text,fa9[i].value)
for (i=0;i<1;i++)
ds.r49a.options[i]=new Option(ss9[i].text,ss9[i].value)
}
else if (ds.r45.value == '10') { for (i=0;i<0;i++)
ds.r45d.options[i]=new Option(k10[i].text,k10[i].value)
for (i=0;i<0;i++)
ds.r46a.options[i]=new Option(t10[i].text,t10[i].value)
for (i=0;i<0;i++)
ds.r47b.options[i]=new Option(b10[i].text,b10[i].value)
for (i=0;i<0;i++)
ds.r48a.options[i]=new Option(s10[i].text,s10[i].value)
for (i=0;i<0;i++)
ds.r48b.options[i]=new Option(to10[i].text,to10[i].value)
for (i=0;i<0;i++)
ds.r48d.options[i]=new Option(fa10[i].text,fa10[i].value)
for (i=0;i<0;i++)
ds.r49a.options[i]=new Option(ss10[i].text,ss10[i].value)
}
else if (ds.r45.value == '11') { for (i=0;i<3;i++)
ds.r45d.options[i]=new Option(k11[i].text,k11[i].value)
for (i=0;i<4;i++)
ds.r46a.options[i]=new Option(t11[i].text,t11[i].value)
for (i=0;i<6;i++)
ds.r47b.options[i]=new Option(b11[i].text,b11[i].value)
for (i=0;i<8;i++)
ds.r48a.options[i]=new Option(s11[i].text,s11[i].value)
for (i=0;i<0;i++)
ds.r48b.options[i]=new Option(to11[i].text,to11[i].value)
for (i=0;i<0;i++)
ds.r48d.options[i]=new Option(fa11[i].text,fa11[i].value)
for (i=0;i<3;i++)
ds.r49a.options[i]=new Option(ss11[i].text,ss11[i].value)
}
else if (ds.r45.value == '12') { for (i=0;i<3;i++)
ds.r45d.options[i]=new Option(k12[i].text,k12[i].value)
for (i=0;i<5;i++)
ds.r46a.options[i]=new Option(t12[i].text,t12[i].value)
for (i=0;i<2;i++)
ds.r47b.options[i]=new Option(b12[i].text,b12[i].value)
for (i=0;i<1;i++)
ds.r48a.options[i]=new Option(s12[i].text,s12[i].value)
for (i=0;i<3;i++)
ds.r48b.options[i]=new Option(to12[i].text,to12[i].value)
for (i=0;i<16;i++)
ds.r48d.options[i]=new Option(fa12[i].text,fa12[i].value)
for (i=0;i<3;i++)
ds.r49a.options[i]=new Option(ss12[i].text,ss12[i].value)
}
else {
for (i=0;i<k0.length;i++)
ds.r45d.options[i]=new Option(k0[i].text,k0[i].value)
for (i=0;i<t0.length;i++)
ds.r46a.options[i]=new Option(t0[i].text,t0[i].value)
for (i=0;i<b0.length;i++)
ds.r47b.options[i]=new Option(b0[i].text,b0[i].value)
for (i=0;i<s0.length;i++)
ds.r48a.options[i]=new Option(s0[i].text,s0[i].value)
for (i=0;i<to0.length;i++)
ds.r48b.options[i]=new Option(to0[i].text,to0[i].value)
for (i=0;i<fa0.length;i++)
ds.r48d.options[i]=new Option(fa0[i].text,fa0[i].value)
for (i=0;i<ss0.length;i++)
ds.r49a.options[i]=new Option(ss0[i].text,ss0[i].value)
}
if (ds.r45d.options.length == 0)
ds.r45d.options[0]=new Option('','');
if (ds.r46a.options.length == 0)
ds.r46a.options[0]=new Option('','');
ds.r46a.options[0].selected=true;
if (ds.r47b.options.length == 0)
ds.r47b.options[0]=new Option('','');
ds.r47b.options[0].selected=true;
if (ds.r48a.options.length == 0)
ds.r48a.options[0]=new Option('','');
ds.r48a.options[0].selected=true;
if (ds.r48b.options.length == 0)
ds.r48b.options[0]=new Option('','');
ds.r48b.options[0].selected=true;
if (ds.r48d.options.length == 0)
ds.r48d.options[0]=new Option('','');
ds.r48d.options[0].selected=true;
if (ds.r49a.options.length == 0)
ds.r49a.options[0]=new Option('','');
/* HACK, for at få sikkerhedsklassen til at vise en tom, som standard men ikke bruge den.
Skulle der have været indført en tom sikkerhedsklasse, ville det før meget stor indflydelse
på alle de tidligere oprettede tilbud/ordre, der så skulle have lagt en til deres værdi for
sikkerhedsklassen
*/
//ds.r49a.options.value="";
ds.r49a.options[0].selected=true;
if (opstart) {
ds.r45d.value = ds.r45h.value;
ds.r49a.value = ds.r49.value;
ds.r47b.value = ds.r47.value;
ds.r46.value = ds.r46.value.replace('.',',');
ds.r48.value = ds.r48.value.replace('.',',');
ds.r46a.value = ds.r46.value;
ds.r48a.value = ds.r48.value;
ds.r48b.value = ds.r48c.value.replace('.',',');
ds.r48d.value = ds.r48e.value
} else {
ds.r45h.value = ds.r45d.value;
ds.r49.value = ds.r49a.value;
ds.r47.value = ds.r47b.value;
ds.r46.value = ds.r46a.value;
ds.r48.value = ds.r48a.value;
ds.r48c.value = ds.r48b.value;
ds.r48e.value = ds.r48d.value;
}
}
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--
populateQuickies(true);
//-->
</script>
</td>
</tr>
</table>
</div>
<script language="JavaScript" type="text/javascript">
<!--
function setClass() {
var fields = new Array(
'2','8','11','12','13','15','99','100','104','105','109','110','114','115','119','120','124','125','129',
'130','134','135','139','140','144','145','149','150','154','155','159','160','164','165','169','45g',
'170','174','175','179','180','184','185','189','190','194','195','199','200','204','205','209',
'210','214','215','219','220','224','225','229','230','234','235','236','238','240','244','246',
'248','249','250','251','252','256','257','261','262','266','267','271','272','276','277','281',
'282','286','287','291','292','296','297','301','302','306','307','311','312','316','317','318',
'320','336','344','347','356','359','368','371','379','382','391','396','399','401b','401d','401e',
'401g','401h','401i','401j','401k','401l','401m','402','407','410','412','415','418','417b','417d','417e','417g','417h',
'417i','417j','417k','417l','417m','421','421a','424','424a','426','426a','427','427b','427d','427f','427g','427i','427ii','427j','427k','427v','427vv',
'427w','427ww','427t','428','428a','427l','427n','427o','427q','427qq','427r','427s','427u','431','433','435','435b',
'435d','435e','435g','435h','435i','435j','435k','435l','435m','436','439','439a','442','442a','444','444a','445','445b',
'445d','445f','445g','445i','445ii','445j','445k','445t','445l','445n','445o','445q','445qq','445r','445s','445u','445v','445vv','445w','445ww',
'446','446a','449','451','453','453b','453d','453e','453g','453h','453i','453j','453k','453l','453m','454','457','457a',
'459b','459d','459j','459l','459m','459o','459oo','459p','459q','459r','459g','459gg','459h','459i','459e','459t','459u','459tt','459uu','459s',
'460','460a','466','469','471','472b','472d','472e','472g','472h','472i','472j','472k','472l','472m','473','477',
'477a','482','487','500','501','503','504','505a','506','507','508','509','509a','509b','509c','510','510a',
'511','510b','511a','512','513','513a','514','515','516','517','518','518b','520','521','522','523','524',
'525','245','253','258','263','268','273','278','283','288','293','298','303','308','313','10','21',
'337','338','339','340','341','342','370','372','373','374','375','376','377','392','394',
'405','467','468','492','495','490','480','485','497','499c','98','103','108','113','118','123','128',
'133','138','143','148','153','158','163','168','173','178','183','188','193','198','203','208',
'213','218','223','228','233','343','343b','343d','343e','343g','343h','343i','343j','343k','343l','343m',
'378','378b','378d','378e','378g','378h','378i','378j','378k','378l','378m','355','355b','355d','355e','355g','355h','355i','355j','355k','355l','355m',
'367','367b','367d','367e','367g','367h','367i','367j','367k','367l','367m','390','390b','390d','390e','390g','390h','390i','390j','390k','390l','390m',
'395','395b','395d','395e','395g','395h','395i','395j','395k','395l','395m','406','406b','406d','406e','406g','406h','406i','406j','406k','406l','406m',
'462','463','465','465b','465d','465e','465g','465h','465i','465j','465k','465l','465m','411','411b','411d','411e','411g','411h','411i','411j','411k','411l','411m',
'241','242','243','247','96','101','106','111','116','121','126','131','136','141','146','151','156',
'161','166','171','176','181','186','191','196','201','206','211','216','221','226','231',
'257a','257b','257c','257e','257f','257d','257i','257j','257k','257l','257m','262a','262b','262c','262e','262f','262d','262i','262j','262k','262l','262m',
'267a','267b','267c','267e','267f','267d','267i','267j','267k','267l','267m','272a','272b','272c','272e','272f','272d','272i','272j','272k','272l','272m',
'277a','277b','277c','277e','277f','277d','277i','277j','277k','277l','277m','282a','282b','282c','282e','282f','282d','282i','282j','282k','282l','282m',
'287a','287b','287c','287e','287f','287d','287i','287j','287k','287l','287m','292a','292b','292c','292e','292f','292d','292i','292j','292k','292l','292m',
'297a','297b','297c','297e','297f','297d','297i','297j','297k','297l','297m','302a','302b','302c','302e','302f','302d','302i','302j','302k','302l','302m',
'307a','307b','307c','307e','307f','307d','307i','307j','307k','307l','307m','312a','312b','312c','312e','312f','312d','312i','312j','312k','312l','312m',
'317a','317b','317c','317e','317f','317d','317i','317j','317k','317l','317m','318a','318b','318c','318d','318e','318f','318g','318h','318i','318j','318k',
'320b', '530', '531', '532'
);
for (i=0;i<fields.length;i++) {
if (document.ds.elements['r'+fields[i]]) {
document.ds.elements['r'+fields[i]].className = document.ds.elements['r'+fields[i]].className+'x';
document.ds.elements['r'+fields[i]].readOnly = true;
}
}
var felter = new Array('344','379','356','368','391','396','407','466','428','428a','446','446a','436','454','412','473','402','418','460','460a');
for (q=0;q<felter.length;q++) {
if (document.ds.elements['id'+felter[q]]) {
//document.ds.elements['id'+felter[q]].className = document.ds.elements['id'+fields[q]].className+'x';
document.ds.elements['id'+felter[q]].readOnly = true;
}
}
}
function setColor() {
var fields = new Array('38','39','40','41','45','46a','47b','49a','239','249a', '321', '322', '323', '324', '325', '326', '327', '328', '329', '330', '331', '332', '333', '467a', '510c');
for (i=0;i<fields.length;i++) {
if (document.ds.elements['r'+fields[i]]) document.ds.elements['r'+fields[i]].className = document.ds.elements['r'+fields[i]].className+'y';
}
}
function setTabindex() {
var fields = new Array('r9','kns','r14','kns2','r1','r5','r5a','r4','r4a','r6','r7','r18','kns3','bygNavn2','r19','bygAdresse2','r20c','r20','r19a','r9a','r24','r25','r26','r27','r28','r29','r30','r31','r32','r32a','r33','r42','r42a','r43','r44','r43a','r44a','r37','r36','r38','r39','r40','r41','r34','r34a','r34b','r34c','r34d','r34e','r35','r35a','r35b','r35c','r35d','r35e','r35f','r35g','r53b','r54','r55','r54a','r45','r45d','r45e','r45f','r49a','r50','r46a','r47b','r47a','r57b','r57c','r57d','r57a','r48a','r48b','r48d','r56v','r56h','r56d','r56e','r56a','r56b','r58e','r58f','r58c','r59a','r60','r61','r60b','r63f','r63e','r63c','r58a','r58b','r58d','r59','r59b','r60a','r61a','r62','r62a','r63a','r63b','r63d','r64','r65','r66b','r66c','r66a','r68','r69','r70','r72','r73b','r73c','r73a','r75','r77','r78','r76','r71','r334','r335','r343a','r369','r83c','r83aselect','r83b','r378a','r345','r346','r348','r349','r350','r351','r352','r353','r354','r355a','r357','r358','r360','r361','r362','r363','r364','r365','r366','r367a','r380','r381','r383','r384','r385','r386','r387','r388','r389','r390a','regn8','r395a','r403','r404','r406a','r461','r464','r464a','r465a','r419','r422','r423','r425','r419a','r422a','r423a','r425a','r426a','r437','r440','r441','r443','r444','r437a','r440a','r441a','r443a','r444a','r429','r432','r434','r447','r450','r452','r408','r409','r411a','r467a','r470','r472','r397','r398','r400','r401','r413','r414','r416','r417','r455','r456','r458','r459','r455a','r456a','r458a','r459a','r476','r474','r475','r478a','r478b','r478c','r478d','r483','r484','r486','r482a','r482b','r478','r479','r481','r498','r488','r489','r491','r493','r494','r496','r499a','r499b','r499','r510c','r502','r505','r505a','r514a','r515a','r507a','r508a','r516a','r517a','r518a','r518c','r518','r519a','r519','r526','r239','r249a','r321','r254select','r255show','r322','r259select','r260show','r323','r264select','r265show','r324','r269select','r270show','r325','r274select','r275show','r326','r279select','r280show','r327','r284select','r285show','r328','r289select','r290show','r329','r294select','r295show','r330','r299select','r300show','r331','r304select','r305show','r332','r309select','r310show','r333','r314select','r315show','r319','r320a','aftale','aftale_med','aktkode','fak_internt','fak_kunde','r526a','r526b','r526c','r526d','r526n','r541','r526k','r526e','r526f','r526g','r526h','r526l','r526i','r526j','r526m','r96','r97','r98','r116','r117','r118','r126','r127','r128','r136','r137','r138','r146','r147','r148','r156','r157','r158','r166','r167','r168','r101','r102','r103','r121','r122','r123','r131','r132','r133','r141','r142','r143','r151','r152','r153','r161','r162','r163','r171','r172','r173','r106','r107','r108','r176','r177','r178','r186','r187','r188','r196','r167','r168','r206','r207','r208','r216','r217','r218','r226','r227','r228','r111','r112','r113','r181','r182','r183','r191','r192','r193','r201','r202','r203','r211','r212','r213','r221','r222','r223','r231','r232','r233','r237','submit2','rev','kopi','ordre','submit1','udskriv');
var tab = 1;
for (i=0;i<fields.length;i++) {
if (document.ds.elements[''+fields[i]]) document.ds.elements[''+fields[i]].tabIndex = tab++;
}
}
setTimeout('setColor();',10);
setTimeout('setClass();',20);
setTimeout('setTabindex();',30);
//-->
</script>
</body>
</html>