FSN#22186 FireFox/Safari compatibiliteit

svn path=/Website/trunk/; revision=5346
This commit is contained in:
Erik Groener
2012-01-11 12:21:26 +00:00
parent a91f2d6313
commit 6ffe86decc
37 changed files with 312 additions and 316 deletions

View File

@@ -1,7 +1,7 @@
<%@language = "javascript" %>
<%
/* $Revision: 11 $
$Modtime: 10-11-10 12:56 $
/* $Revision: 12 $
$Modtime: 11-01-12 8:32 $
File: alg_edit_wp.asp
Description: wijzigen of toevoegen van een werkplek
@@ -73,11 +73,11 @@ if (wp_key > 0)
function enableArea()
{
if( event.srcElement.id != 'fix0' ) {
document.all.wp_opp.disabled = false;
document.getElementById("wp_opp").disabled = false;
} else {
document.all.wp_opp.disabled = true;
document.all.wp_opp.value = "";
document.all.areah.value = 'null';
document.getElementById("wp_opp").disabled = true;
document.getElementById("wp_opp").value = "";
document.getElementById("areah").value = 'null';
}
}
@@ -92,18 +92,18 @@ function isGoodNumber(str, checkInteger)
function checkArea()
{
if( document.all.area.value != ""
&& !isGoodNumber(document.all.area.value, false )
&& parseInt(document.all.wp_opp.value,10) > 0
&& parseInt(document.all.wp_opp.value,10) < 999999.99) {
if( document.getElementById("area").value != ""
&& !isGoodNumber(document.getElementById("area").value, false )
&& parseInt(document.getElementById("wp_opp").value,10) > 0
&& parseInt(document.getElementById("wp_opp").value,10) < 999999.99) {
alert('<%=lcl_estate_wp_bad_area%>');
return false;
}
if( document.all.wp_opp.value != "" ) {
document.all.areah.value = document.all.area.value;
if( document.getElementById("wp_opp").value != "" ) {
document.getElementById("areah").value = document.getElementById("area").value;
} else {
document.all.areah.value = 'null';
document.getElementById("areah").value = 'null';
}
return true;
}

View File

@@ -1,6 +1,6 @@
/*
$Revision: 4 $
$Modtime: 6-07-11 9:59 $
$Revision: 5 $
$Modtime: 11-01-12 8:41 $
File: alg_ruimteafdeling.js
*/
@@ -22,7 +22,7 @@ function onDblClickItem(tr) {
function CreateRow(afd_key, afd_name, bezetting)
{
rowIndex++;
table = document.all.afdbezettingtable;
table = document.getElementById("afdbezettingtable");
// Insert data rows
tr = table.insertRow();
@@ -52,7 +52,7 @@ function CreateRow(afd_key, afd_name, bezetting)
+ "<input type='hidden' id='afd" + rowIndex + "' name='afd" + rowIndex + "' value='" + afd_key + "'></input>";
cell.align = 'left';
document.all.nrRows.value = parseInt(rowIndex) + 1;
document.getElementById("nrRows").value = parseInt(rowIndex) + 1;
}
function delRow(img)
@@ -63,7 +63,7 @@ function delRow(img)
var tr = $(img).closest("tr")[0];
if (tr.myData.afd_key != null)
{
document.all.afdbezettingtable.deleteRow(tr.rowIndex);
document.getElementById("afdbezettingtable").deleteRow(tr.rowIndex);
}
}

View File

@@ -1,6 +1,6 @@
/*
$Revision: 11 $
$Modtime: 8-08-11 15:36 $
$Revision: 12 $
$Modtime: 11-01-12 9:34 $
File: bes_bestelling.js
Description: Javascript code voor bes_xxxx_bestelling
@@ -33,7 +33,7 @@ function process_besteller_info(prs_info)
function showPicture(logo_url)
{
var imgObj = document.all.photo;
var imgObj = document.getElementById("photo");
if (imgObj == null) return;
if (logo_url&&logo_url != "")
@@ -55,7 +55,7 @@ function onChangeArtikelgroep()
{
sgBesItem.setValue(-1, "", true, false, null, true)
sgBesItem.CheckJustOne();
clear_item_details();
}

View File

@@ -1,7 +1,7 @@
<%@ LANGUAGE="JavaScript" %>
<% /*
$Revision: 54 $
$Modtime: 23-11-11 14:19 $
$Revision: 55 $
$Modtime: 11-01-12 9:35 $
File: bes_edit_bestelling.asp
Description: Muteerscherm voor bestellingen
@@ -239,7 +239,7 @@ else // nieuwe bestelling. Defaults bepalen
}
}
var frm = window.document.all.item("u2");
var frm = window.document.getElementById("u2");
var prop = $(zelf);
if (prop.length)
{
@@ -327,7 +327,7 @@ else // nieuwe bestelling. Defaults bepalen
{
if (!fronto && !backo)
{ // frontend %>
var frm = window.document.all.item("u2");
var frm = window.document.getElementById("u2");
if (frm.ordernr) {
<% if (show_ordernr == 2)
{ %>

View File

@@ -1,7 +1,7 @@
<%@ LANGUAGE="JavaScript" %>
<% /*
$Revision: 12 $
$Modtime: 21-11-11 9:21 $
$Revision: 13 $
$Modtime: 11-01-12 10:13 $
File: kenmerk_fill.asp
Status:
@@ -78,26 +78,26 @@ function doSubmit()
objReturn[3] = new Array(); // flexkenmerkwaarde omschrijving
objReturn[4] = new Array(); // url
for (var i=1; i<=window.document.all.k_all.value; i++) {
if (window.document.all['k' + i + 'val']) {
for (var i=1; i<=window.document.getElementById("k_all").value; i++) {
if (window.document.getElementById("k" + i + "val")) {
if (window.document.all['k' + i + 'val'].value != "")
if (window.document.getElementById("k" + i + "val").value != "")
{
objReturn[0][objReturn[0].length] = window.document.all['k' + i + 'key'].value;
objReturn[1][objReturn[1].length] = window.document.all['k' + i + 'val'].value;
objReturn[0][objReturn[0].length] = window.document.getElementById('k' + i + 'key').value;
objReturn[1][objReturn[1].length] = window.document.getElementById('k' + i + 'val').value;
var lbl = $("label[for='k" + i + "val']").text();
// skip : (haal dubbele punt van de string af)
lbl = lbl.substring(0, lbl.length - 1)
objReturn[2][objReturn[2].length] = lbl;
if (window.document.all['k' + i + 't'] && window.document.all['k' + i + 't'].value == 'R') {
var opts = window.document.all['k' + i + 'val'].options;
if (window.document.getElementById('k' + i + 't') && window.document.getElementById('k' + i + 't').value == 'R') {
var opts = window.document.getElementById('k' + i + 'val').options;
key = opts(opts.selectedIndex).innerText;
objReturn[3][objReturn[3].length] = key;
}
else {
//alert("key = " + window.document.all['k' + i + 'val'].value);
objReturn[3][objReturn[3].length] = window.document.all['k' + i + 'val'].value;
//alert("key = " + window.document.getElementById('k' + i + 'val').value);
objReturn[3][objReturn[3].length] = window.document.getElementById('k' + i + 'val').value;
}
}
}

View File

@@ -1,7 +1,7 @@
<%@ LANGUAGE="JavaScript" %>
<% /*
$Revision: 14 $
$Modtime: 19-04-11 11:47 $
$Revision: 15 $
$Modtime: 11-01-12 10:19 $
File: bes_retour.asp
Description: Retour van een bestelling door middel van negatieve aantallen
@@ -78,7 +78,7 @@ user.auth_required_or_abort(this_bes.canRetourBES);
if( val == "" || val == 0 || (!isNaN(val) && isGoodNumber(val, true) &&
parseInt(val,10) >= 0 )) {
i = obj.id.substring(3);
remaining = parseInt(document.all['rem'+i].value,10);
remaining = parseInt(document.getElementById('rem'+i).value,10);
if( val == "" ) val = 0;
if( val > remaining ){
alert (LCL.bes.exceed_value_retour);

View File

@@ -1,11 +1,11 @@
/*
$Revision: 3 $
$Modtime: 11-01-10 13:03 $
$Revision: 4 $
$Modtime: 11-01-12 10:29 $
File: bes_search.js
Status: 95%
Description: Javascript functies voor bestand bes_search.asp
Parameters:
Parameters:
Globals:
Context: Javascript script bestand voor bes_search.asp
Note: Merk op dat de kostenplaats er ook altijd bij wordt gezocht, handig met withExtraParamField
@@ -13,23 +13,23 @@
function checkCheckboxesRFO()
{
if (!document.all.rfoNew.checked &&
!document.all.rfoOpen.checked &&
!document.all.rfoDelivered.checked &&
(document.all.rfoClosed && !document.all.rfoClosed.checked))
if (!document.getElementById("rfoNew").checked &&
!document.getElementById("rfoOpen").checked &&
!document.getElementById("rfoDelivered").checked &&
(document.getElementById("rfoClosed") && !document.getElementById("rfoClosed").checked))
{
document.all.rfoNew.checked = true;
document.getElementById("rfoNew").checked = true;
}
}
function checkCheckboxesOpdr()
{
if (!document.all.opdrRej.checked &&
!document.all.opdrOpen.checked &&
!document.all.opdrDelivered.checked &&
!document.all.opdrClosed.checked)
if (!document.getElementById("opdrRej").checked &&
!document.getElementById("opdrOpen").checked &&
!document.getElementById("opdrDelivered").checked &&
!document.getElementById("opdrClosed").checked)
{
document.all.opdrOpen.checked = true;
document.getElementById("opdrOpen").checked = true;
}
}

View File

@@ -1,6 +1,6 @@
/*
$Revision: 4 $
$Modtime: 3-02-10 10:45 $
$Revision: 5 $
$Modtime: 11-01-12 10:26 $
*/
var rowIndex = -1;
@@ -35,7 +35,7 @@ function AddItem(fav_name, bes_item_info, recent_date, recent, fav_key)
function CreateRow(fav_name, bes_item_info, recent_date, recent, fav_key)
{
rowIndex++;
table = document.all.besfavtable;
table = document.getElementById("besfavtable");
// Insert data rows
tr = table.insertRow();
@@ -81,10 +81,10 @@ function delFavourites(img)
{
fav_key = tr.myData.fav_key;
document.all.besfavtable.deleteRow(tr.rowIndex);
document.getElementById("besfavtable").deleteRow(tr.rowIndex);
document.all.itemsInList.value = document.all.itemsInList.value -1;
document.all.item_in_list.innerHTML = document.all.itemsInList.value + " " + lcl_BES_fac_items_inlist
document.getElementById("itemsInList").value = document.getElementById("itemsInList").value -1;
document.getElementById("item_in_list").innerHTML = document.getElementById("itemsInList").value + " " + lcl_BES_fac_items_inlist
$.post("delFavourites.asp?fav_key=" + fav_key);
}

View File

@@ -1,6 +1,6 @@
/*
$Revision: 3 $
$Modtime: 10-02-10 21:04 $
$Revision: 4 $
$Modtime: 11-01-12 10:27 $
*/
function BI(bikey, pkey, akey)
@@ -25,7 +25,7 @@ function checkInput()
val = obj.value;
i = obj.id.substring(3);
remaining = parseInt(document.all['rem'+i].value,10);
remaining = parseInt(document.getElementById('rem'+i).value,10);
if( val == "" || val == 0 || (!isNaN(val) && isGoodNumber(val, true) &&
((remaining > 0 && parseInt(val,10) >= 0) || (remaining < 0 && parseInt(val,10) <= 0)))) {
if( val == "" ) val = 0;

View File

@@ -1,6 +1,6 @@
/*
$Revision: 25 $
$Modtime: 2-01-12 16:45 $
$Revision: 26 $
$Modtime: 11-01-12 10:28 $
File: sel_items_tab.js
Description: Javascript code om client-side de HTML tabel met bestelitems te vullen
@@ -421,7 +421,7 @@ function MakeOrder ()
function Communication()
{
bes_key = document.all.RFO_key.value;
bes_key = document.getElementById("RFO_key").value;
$.post("bes_levopm.asp",
{ bes_key: bes_key },
FcltCallback,
@@ -430,10 +430,10 @@ function Communication()
function showStaffels(pid_key)
{
if (document.all.item('div' + pid_key).style.display == "block")
document.all.item('div' + pid_key).style.display = "none";
else if (document.all.item('div' + pid_key).style.display == "none")
document.all.item('div' + pid_key).style.display = "block";
if (document.getElementById('div' + pid_key).style.display == "block")
document.getElementById('div' + pid_key).style.display = "none";
else if (document.getElementById('div' + pid_key).style.display == "none")
document.getElementById('div' + pid_key).style.display = "block";
}
function PrsStaffelListResult(prs_bedrijf_key)

View File

@@ -1,25 +1,25 @@
/*
$Revision: 1 $
$Modtime: 27-05-09 9:11 $
$Revision: 2 $
$Modtime: 11-01-12 10:34 $
*/
function checkCheckboxes()
{
if (vis_checkout_enable)
{
if (!document.all.bezExpect.checked &&
!document.all.bezInside.checked &&
!document.all.bezDepart.checked)
if (!document.getElementById("bezExpect").checked &&
!document.getElementById("bezInside").checked &&
!document.getElementById("bezDepart").checked)
{
document.all.bezExpect.checked = true;
document.getElementById("bezExpect").checked = true;
}
}
else
{
if (!document.all.bezExpect.checked &&
!document.all.bezClosed.checked)
if (!document.getElementById("bezExpect").checked &&
!document.getElementById("bezClosed").checked)
{
document.all.bezExpect.checked = true;
document.getElementById("bezExpect").checked = true;
}
}
}

View File

@@ -1,6 +1,6 @@
/*
$Revision: 5 $
$Modtime: 5-07-10 13:55 $
$Revision: 6 $
$Modtime: 11-01-12 10:45 $
File: cnt_edit_scope.js
*/
@@ -26,8 +26,8 @@ function updateBld(pautfunction)
{
var locatie_key_str = new Array();
$('#locs :selected').each(function(i, selected)
{
locatie_key_str[i] = $(selected).val();
{
locatie_key_str[i] = $(selected).val();
});
$("#selectblddiv").load("../Shared/loadGebouw.asp",
{ autfunction: + pautfunction,
@@ -133,8 +133,8 @@ function updateGroup(pautfunction)
{
var disc_key_str = new Array();
$('#disc :selected').each(function(i, selected)
{
disc_key_str[i] = $(selected).val();
{
disc_key_str[i] = $(selected).val();
});
$("#srtgroup").load("../Shared/loadGroup.asp",
{ autfunction: pautfunction,
@@ -153,8 +153,8 @@ function updateSrtDeel(pautfunction)
{
var group_key_str = new Array();
$('#srtgroup :selected').each(function(i, selected)
{
group_key_str[i] = $(selected).val();
{
group_key_str[i] = $(selected).val();
});
$("#srtdeelmulti").load("../Shared/loadDeel.asp",
{ autfunction: pautfunction,
@@ -171,8 +171,8 @@ function removeObj()
if (highlitedRowObj > 0)
{
deletingRow = "row" + highlitedRowObj;
index = document.all.item(deletingRow).rowIndex;
document.all.cntobjscope_list.deleteRow(index);
index = document.getElementById("deletingRow").rowIndex;
document.getElementById("cntobjscope_list").deleteRow(index);
highlitedRowObj = -1;
}
}
@@ -182,8 +182,8 @@ function removeObjSort()
if (highlitedRowObjSort > 0)
{
deletingRow = "row" + highlitedRowObjSort;
index = document.all.item(deletingRow).rowIndex;
document.all.cntobjsortscope_list.deleteRow(index);
index = document.getElementById("deletingRow").rowIndex;
document.getElementById("cntobjsortscope_list").deleteRow(index);
highlitedRowObjSort = -1;
}
}
@@ -193,28 +193,28 @@ function removeLoc()
if (highlitedRowLoc > 0)
{
deletingRow = "row" + highlitedRowLoc;
index = document.all.item(deletingRow).rowIndex;
document.all.cntlocscope_list.deleteRow(index);
index = document.getElementById("deletingRow").rowIndex;
document.getElementById("cntlocscope_list").deleteRow(index);
highlitedRowLoc = -1;
}
}
function removeAllObj()
{
document.all.objpass.innerHTML = "<TABLE border=0 cellpadding=0 width=100% cellspacing=1 id='cntobjscope_list'></TABLE>";
document.all.objcnt.value = 0;
document.getElementById("objpass").innerHTML = "<TABLE border=0 cellpadding=0 width=100% cellspacing=1 id='cntobjscope_list'></TABLE>";
document.getElementById("objcnt").value = 0;
}
function removeAllObjSort()
{
document.all.ospass.innerHTML = "<TABLE border=0 cellpadding=0 width=100% cellspacing=1 id='cntobjsortscope_list'></TABLE>";
document.all.oscnt.value = 0;
document.getElementById("ospass").innerHTML = "<TABLE border=0 cellpadding=0 width=100% cellspacing=1 id='cntobjsortscope_list'></TABLE>";
document.getElementById("oscnt").value = 0;
}
function removeAllLoc()
{
document.all.locpass.innerHTML = "<TABLE border=0 cellpadding=0 width=100% cellspacing=1 id='cntlocscope_list'></TABLE>";
document.all.loccnt.value = 0;
document.getElementById("locpass").innerHTML = "<TABLE border=0 cellpadding=0 width=100% cellspacing=1 id='cntlocscope_list'></TABLE>";
document.getElementById("loccnt").value = 0;
}
function addObj()
@@ -223,7 +223,7 @@ function addObj()
var object_text_str = new Array();
//var gebouw_loctext_str = new Array();
$('#objs :selected').each(function(i, selected)
{
{
object_key_str[i] = $(selected).val();
object_text_str[i] = $(selected).text();
//gebouw_loctext_str[i] = $(selected)[0].loc_text;
@@ -231,7 +231,7 @@ function addObj()
for (var i = 0; i < object_key_str.length; i++)
{
if (!itemObjExist( document.all.cntobjscope_list, object_text_str[i])) // && object_key_str[i] != -1)
if (!itemObjExist( document.getElementById("cntobjscope_list"), object_text_str[i])) // && object_key_str[i] != -1)
{
insertObjRow(object_text_str[i], object_key_str[i]);
}
@@ -243,13 +243,13 @@ function addObjSort()
var sorts_key_str = new Array();
var sorts_text_str = new Array();
$('#srtdeelmulti :selected').each(function(i, selected)
{
{
sorts_key_str[i] = $(selected).val();
sorts_text_str[i] = $(selected).text();
});
for (var i = 0; i < sorts_key_str.length; i++)
{
if (!itemObjSortExist(document.all.cntobjsortscope_list, sorts_text_str[i]))
if (!itemObjSortExist(document.getElementById("cntobjsortscope_list"), sorts_text_str[i]))
{
insertObjSortRow(sorts_text_str[i], sorts_key_str[i]);
}
@@ -262,7 +262,7 @@ function addLoc()
var gebouw_text_str = new Array();
var gebouw_loctext_str = new Array();
$('#blds :selected').each(function(i, selected)
{
{
gebouw_key_str[i] = $(selected).val();
gebouw_text_str[i] = $(selected).text();
gebouw_loctext_str[i] = $(selected)[0].loc_text;
@@ -274,14 +274,14 @@ function addLoc()
var locatie_key_str = new Array();
var locatie_text_str = new Array();
$('#locs :selected').each(function(i, selected)
{
{
locatie_key_str[i] = $(selected).val();
locatie_text_str[i] = $(selected).text();
});
for (var i = 0; i < locatie_key_str.length; i++)
{
if (!itemLocExist(document.all.cntlocscope_list, locatie_text_str[i]))
if (!itemLocExist(document.getElementById("cntlocscope_list"), locatie_text_str[i]))
{
insertLocRow(locatie_text_str[i], locatie_key_str[i], "L");
}
@@ -291,7 +291,7 @@ function addLoc()
{
for (var i = 0; i < gebouw_key_str.length; i++)
{
if (!itemBldExist( document.all.cntlocscope_list, gebouw_loctext_str[i], gebouw_text_str[i]) && gebouw_key_str[i] != -1)
if (!itemBldExist( document.getElementById("cntlocscope_list"), gebouw_loctext_str[i], gebouw_text_str[i]) && gebouw_key_str[i] != -1)
{
insertLocRow(gebouw_loctext_str[i] + " (" + gebouw_text_str[i] + ")", gebouw_key_str[i], "G");
}
@@ -383,8 +383,8 @@ function selectLocRow(rownr)
function insertObjRow(name, key)
{
var html = document.all.objpass.innerHTML.substr(0, document.all.objpass.innerHTML.indexOf("</TBODY>"));
j = parseInt(document.all.objcnt.value, 10) + 1;
var html = document.getElementById("objpass").innerHTML.substr(0, document.getElementById("objpass").innerHTML.indexOf("</TBODY>"));
j = parseInt(document.getElementById("objcnt").value, 10) + 1;
html += "<tr id='row" + (j + 1000) + "' OnClick='javascript:selectObjRow(" + (j + 1000) + ");'>"
+ "<td class=selectable align=left id=obj>" + name + "</td>"
@@ -394,16 +394,16 @@ function insertObjRow(name, key)
+ "</td></tr>"
+ "</TBODY></TABLE>";
document.all.objpass.innerHTML = html;
document.all.objcnt.value = j;
document.getElementById("objpass").innerHTML = html;
document.getElementById("objcnt").value = j;
if (parent && parent.ExpandFrame)
parent.ExpandFrame(window.name);
}
function insertObjSortRow(name, key)
{
var html = document.all.ospass.innerHTML.substr(0, document.all.ospass.innerHTML.indexOf("</TBODY>"));
j = parseInt(document.all.oscnt.value, 10) + 1;
var html = document.getElementById("ospass").innerHTML.substr(0, document.getElementById("ospass").innerHTML.indexOf("</TBODY>"));
j = parseInt(document.getElementById("oscnt").value, 10) + 1;
html += "<tr id='row" + (j + 1000) + "' OnClick='javascript:selectObjSortRow(" + (j + 1000) + ");'>"
+ "<td class=selectable align=left id=obsort>" + name + "</td>"
@@ -413,16 +413,16 @@ function insertObjSortRow(name, key)
+ "</td></tr>"
+ "</TBODY></TABLE>";
document.all.ospass.innerHTML = html;
document.all.oscnt.value = j;
document.getElementById("ospass").innerHTML = html;
document.getElementById("oscnt").value = j;
if (parent && parent.ExpandFrame)
parent.ExpandFrame(window.name);
}
function insertLocRow(name, key, type)
{
var html = document.all.locpass.innerHTML.substr(0, document.all.locpass.innerHTML.indexOf("</TBODY>"));
j = parseInt(document.all.loccnt.value, 10) + 1;
var html = document.getElementById("locpass").innerHTML.substr(0, document.getElementById("locpass").innerHTML.indexOf("</TBODY>"));
j = parseInt(document.getElementById("loccnt").value, 10) + 1;
html += "<tr id='row" + j+ "' OnClick='javascript:selectLocRow(" + j + ");'>"
+ "<td class=selectable align=left id=loc>" + name + "</td>"
@@ -435,8 +435,8 @@ function insertLocRow(name, key, type)
+ "</td></tr>"
+ "</TBODY></TABLE>";
document.all.locpass.innerHTML = html;
document.all.loccnt.value = j;
document.getElementById("locpass").innerHTML = html;
document.getElementById("loccnt").value = j;
if (parent && parent.ExpandFrame)
parent.ExpandFrame(window.name);
}

View File

@@ -1,7 +1,7 @@
<%@language="javascript"%>
<% /*
$Revision: 25 $
$Modtime: 5-01-12 9:13 $
$Revision: 26 $
$Modtime: 11-01-12 10:49 $
File: fac_fiatering_list.asp (was bes/rfo_approve.asp)
Description: Overzicht fiatteringsverzoeken
@@ -56,11 +56,11 @@ var showall = getQParamInt("showall", 0) == 1;
<script>
function checkCheckboxes()
{
if (!document.all.copen.checked &&
!document.all.cclose.checked &&
!document.all.creject.checked)
if (!document.getElementById("copen").checked &&
!document.getElementById("cclose").checked &&
!document.getElementById("creject").checked)
{
document.all.copen.checked = true;
document.getElementById("copen").checked = true;
}
}

View File

@@ -1,7 +1,7 @@
<%@language = "javascript" %>
<% /*
$Revision: 5 $
$Modtime: 2-02-11 17:36 $
$Revision: 6 $
$Modtime: 11-01-12 10:51 $
File: fac_usrrap_infobord.asp
Description: Toon een bepaald (usr)rapport en ververs deze regelmatig
@@ -78,7 +78,7 @@ function startSearch()
cmd += "<%=transitParam%>";
if (document.all.activeFrame.value == 2)
if (document.getElementById("activeFrame").value == 2)
window.frames.workFrame3.navigate(cmd);
else
window.frames.workFrame2.navigate(cmd);
@@ -89,15 +89,15 @@ function Activate()
{
d2 = document.getElementById("workFrame2");
d3 = document.getElementById("workFrame3");
if (document.all.activeFrame.value == 2) {
if (document.getElementById("activeFrame").value == 2) {
d2.style.zIndex =-1;
d3.style.zIndex =1;
document.all.activeFrame.value = 3;
document.getElementById("activeFrame").value = 3;
}
else {
d3.style.zIndex =-1;
d2.style.zIndex =1;
document.all.activeFrame.value = 2;
document.getElementById("activeFrame").value = 2;
}
$("#workFrame2").width($(window).width());
$("#workFrame3").width($(window).width());
@@ -106,12 +106,12 @@ function Activate()
}
function startAutoRefreshTimer() {
if (document.all.timeID.value>0) {
clearInterval(document.all.timeID.value);
document.all.timeID.value=-1;
if (document.getElementById("timeID").value>0) {
clearInterval(document.getElementById("timeID").value);
document.getElementById("timeID").value=-1;
}
if (<%=p_refreshrate%> != -1) {
document.all.timeID.value = setInterval('startSearch();', <%=p_refreshrate*1000%>);
document.getElementById("timeID").value = setInterval('startSearch();', <%=p_refreshrate*1000%>);
}
}

View File

@@ -1,7 +1,7 @@
<%@ language="javascript"%>
<% /*
$Revision: 5 $
$Modtime: 10-05-10 17:22 $
$Revision: 6 $
$Modtime: 11-01-12 14:16 $
File: job_edit_job.asp
Description: show detailed information of a job
@@ -14,7 +14,6 @@
*/ %>
<!-- #include file="../../cust/install.inc"-->
<!-- #include file="../Shared/iface.inc"-->
<!-- #include file="../Shared/datetime.inc" -->
<!-- #include file="../Shared/persoonselector.inc" -->
<!-- #include file="../Shared/calendar.inc" -->
@@ -183,9 +182,9 @@ oRs=Oracle.Execute(sql);
}
function changeAction() {
if (document.all.action) {
if (document.getElementById("action")) {
if (document.all.action.value == '1') {
if (document.getElementById("action").value == '1') {
$('#aantal').val("1");
$('#enddate').val("");
$('#interval').val("");
@@ -197,7 +196,7 @@ function changeAction() {
$('#interval').attr("disabled", true);
}
if (document.all.action.value == '2') {
if (document.getElementById("action").value == '2') {
$('#aantal').removeAttr("disabled");
$('#aantal').val("");
@@ -207,7 +206,7 @@ function changeAction() {
$('#interval').removeAttr("disabled");
}
if (document.all.action.value == '3') {
if (document.getElementById("action").value == '3') {
$('#show_enddate').val("");
$('#aantal').removeAttr("disabled");
@@ -226,18 +225,18 @@ function checkInput() {
return false;
}
if (document.all.show_firstdate.value == '') {
if (document.getElementById("show_firstdate").value == '') {
alert("<%=lcl_job_firstdate_empty%>");
return false;
}
if ((document.all.show_enddate.value == '') && (document.all.action.value == '2')) {
if ((document.getElementById("show_enddate").value == '') && (document.getElementById("action").value == '2')) {
alert("<%=lcl_job_enddate_empty%>");
return false;
}
if (document.all.interval) {
interval_value = document.all.interval.value;
if (document.getElementById("interval")) {
interval_value = document.getElementById("interval").value;
if (interval_value != '') {
if (!isGoodInteger(interval_value) || (interval_value < 0)) {
valid = false;
@@ -249,9 +248,9 @@ function checkInput() {
}
}
if (document.all.aantal) {
aantal_value = document.all.aantal.value;
if ((aantal_value != '') || (document.all.action.value == '3')) {
if (document.getElementById("aantal")) {
aantal_value = document.getElementById("aantal").value;
if ((aantal_value != '') || (document.getElementById("action").value == '3')) {
if (!isGoodInteger(aantal_value) || (aantal_value<=0)) {
valid = false;
if( ! valid ) {
@@ -366,12 +365,12 @@ BLOCK_END();
</body>
</html>
<script>
if (document.all.status) {
document.all.status.value = '<%=status%>';
if (document.getElementById("status")) {
document.getElementById("status").value = '<%=status%>';
}
if (document.all.action) {
document.all.action.value = '<%=action%>';
if (document.getElementById("action")) {
document.getElementById("action").value = '<%=action%>';
changeAction();
}
</script>

View File

@@ -1,6 +1,6 @@
/*
$Revision: 17 $
$Modtime: 22-11-11 13:45 $
$Revision: 18 $
$Modtime: 11-01-12 11:17 $
File: fin_edit_factuur.js
*/
@@ -29,7 +29,7 @@ function checkInput()
{
if (selectedItems[i] != null)
{
if (parseFloat(document.all["sum" + i].value.replace(',', '.')) != 0)
if (parseFloat(document.getElementById("sum" + i).value.replace(',', '.')) != 0)
filled_lines++;
else
blank_lines++;

View File

@@ -1,7 +1,7 @@
<%@language = "javascript" %>
<% /*
$Revision: 23 $
$Modtime: 7-12-11 10:37 $
$Revision: 24 $
$Modtime: 11-01-12 11:20 $
File: fin_search.asp
Description: Filterscherm voor overzicht facturen
@@ -90,8 +90,8 @@ var alleenmijnkostenplaatsen = (!authparamsFINFOF && !authparamsFINBOF); // gee
<script language=JavaScript>
function checkboxStatus()
{
if (!document.all.fin_actual.checked && !document.all.fin_deleted.checked )
document.all.fin_actual.checked = true;
if (!document.getElementById("fin_actual").checked && !document.getElementById("fin_deleted").checked )
document.getElementById("fin_actual").checked = true;
}
// Altijd kenmerken. Niet afhankelijk van backoffice rol

View File

@@ -1,6 +1,6 @@
/*
$Revision: 15 $
$Modtime: 11-12-11 12:31 $
$Revision: 16 $
$Modtime: 11-01-12 11:41 $
*/
function FinItem(sum, BTW, btwkey, descr, referentie, row)
@@ -71,7 +71,7 @@ function setPrice(index, sum)
document.forms.u2["oldsum" + index].value = num2curr(new_sum);
document.forms.u2.total.value = num2curr(total);
document.forms.u2.totalBTW.value = num2curr(totalBTW);
document.all.totalBTW_txt.innerHTML = currency_pref + num2curr(parseFloat(totalBTW)) + currency_suff;
document.getElementById("totalBTW_txt").innerHTML = currency_pref + num2curr(parseFloat(totalBTW)) + currency_suff;
}
function CreateRow(sum, BTW, btwkey, sumBTW, descr, ref, ksrt_key, ksrt_oms)
@@ -93,14 +93,14 @@ function CreateRow(sum, BTW, btwkey, sumBTW, descr, ref, ksrt_key, ksrt_oms)
cell = tr.insertCell(-1);
cell.innerHTML = "<input type='text' class='fld'"
+ (canInvLinChange? "" : " readonly ")
+ " onfocus='document.all.descript" + rowIndex + ".select();'"
+ " onfocus='document.descript" + rowIndex + ".select();'"
+ " id='descript" + rowIndex + "' name='descript" + rowIndex + "' maxlength=50 value='" + descr + "'>";
// Create reference field
cell = tr.insertCell(-1);
cell.innerHTML = "<input type='text' class='fldfinref'"
+ (canInvLinChange? "" : " readonly ")
+ " onfocus='document.all.ref" + rowIndex + ".select();'"
+ " onfocus='document.getElementById(""ref" + rowIndex + """).select():'"
+ " id='ref" + rowIndex + "' name='ref" + rowIndex + "' maxlength=30 value='" + ref + "'>";
if (fin_enable_kostensoort != 0)
@@ -130,7 +130,7 @@ function CreateRow(sum, BTW, btwkey, sumBTW, descr, ref, ksrt_key, ksrt_oms)
cell = tr.insertCell(-1);
cell.innerHTML = "<input type='text' class='fldfinsom'"
+ (canInvLinChange? "" : " readonly ")
+ " onfocus='document.all.sum" + rowIndex + ".select();'"
+ " onfocus='document.getElementById(""sum" + rowIndex + """).select();'"
+ (canInvLinChange? " onblur='SumChanged();'" : "")
+ " id='sum" + rowIndex + "' name='sum" + rowIndex + "' maxlength=10 value='" + num2curr(sum) + "'>"
+ "<input type='hidden' id='oldsum" + rowIndex + "' name='oldsum" + rowIndex + "' value='" + num2curr(sum) + "'>";
@@ -173,8 +173,8 @@ function CreateRow(sum, BTW, btwkey, sumBTW, descr, ref, ksrt_key, ksrt_oms)
document.forms.u2.rowIndex.value = rowIndex;
document.forms.u2.total.value = num2curr(total);
document.forms.u2.totalBTW.value = num2curr(totalBTW);
document.all.totalBTW_txt.innerHTML = currency_pref + num2curr(totalBTW) + currency_suff;
document.all["descript" + rowIndex].focus();
document.getElementById("totalBTW_txt").innerHTML = currency_pref + num2curr(totalBTW) + currency_suff;
document.getElementById("descript" + rowIndex).focus();
}
if (canInvLinChange)
@@ -200,13 +200,13 @@ function CancelOrder(index)
totalBTW -= sumBTW_item;
total -= sum_item;
document.forms.u2.totalBTW.value = num2curr(totalBTW);
document.all.totalBTW_txt.innerHTML = currency_pref + num2curr(totalBTW) + currency_suff;
document.getElementById("totalBTW_txt").innerHTML = currency_pref + num2curr(totalBTW) + currency_suff;
document.forms.u2.total.value = num2curr(total);
tr = selectedItems[index].row;
trIndex = tr.rowIndex;
document.all.sel_items.deleteRow(trIndex);
document.getElementById("sel_items").deleteRow(trIndex);
selectedItems[index].row = null;
selectedItems[index] = null;

View File

@@ -1,6 +1,6 @@
/*
$Revision: 1 $
$Modtime: 24-08-11 10:02 $
$Revision: 2 $
$Modtime: 11-01-12 11:42 $
File: ins_deelkoppeling.js
*/
@@ -10,7 +10,7 @@ var rowIndex = -1;
function CreateRow(naar_key, srtdeel_name, naar_name, naar_desc)
{
rowIndex++;
table = document.all.naar_desctable;
table = document.getElementById("naar_desctable");
// Insert data rows
tr = table.insertRow();
@@ -47,7 +47,7 @@ function CreateRow(naar_key, srtdeel_name, naar_name, naar_desc)
+ "<input type='hidden' id='naar" + rowIndex + "' name='naar" + rowIndex + "' value='" + naar_key + "'>";
cell.align = 'left';
document.all.nrRows.value = parseInt(rowIndex) + 1;
document.getElementById("nrRows").value = parseInt(rowIndex) + 1;
}
function delRow(img)
@@ -56,7 +56,7 @@ function delRow(img)
var tr = $(img).closest("tr")[0];
if (tr.myData.naar_key != null)
{
document.all.naar_desctable.deleteRow(tr.rowIndex);
document.getElementById("naar_desctable").deleteRow(tr.rowIndex);
}
}

View File

@@ -1,6 +1,6 @@
/*
$Revision: 17 $
$Modtime: 21-11-11 16:46 $
$Revision: 18 $
$Modtime: 11-01-12 11:43 $
File: INS/ins_list.js
*/
@@ -75,7 +75,7 @@ function checkInput()
(!isNaN(new_val) && isGoodNumber(new_val, true) && parseInt(new_val,10) >= 0))
{
i = obj.id.substring(3);
last_value = parseInt(document.all['last_val' + i].value,10);
last_value = parseInt(document.getElementById("last_val" + i).value,10);
if (new_val == "") new_val = last_value;
if (new_val < last_value)
{

View File

@@ -1,6 +1,6 @@
/*
$Revision: 7 $
$Modtime: 4-07-11 14:16 $
$Revision: 8 $
$Modtime: 11-01-12 11:44 $
*/
// FO en BO functions
@@ -37,11 +37,11 @@ function updateSrtDeel(pautfunction, psrtdeel_str)
function checkLentOut(id)
{
if (!document.all.insLentOut.checked && !document.all.insAvail.checked) {
if (!document.getElementById("insLentOut").checked && !document.getElementById("insAvail").checked) {
if (id == 2)
document.all.insLentOut.checked = true;
document.getElementById("insLentOut").checked = true;
else
document.all.insAvail.checked = true;
document.getElementById("insAvail").checked = true;
}
}

View File

@@ -1,6 +1,6 @@
/*
$Revision: 2 $
$Modtime: 1/14/10 11:56a $
$Revision: 3 $
$Modtime: 11-01-12 11:44 $
*/
function isGoodNumber(str, checkInteger)
{
@@ -38,7 +38,7 @@ function checkInput()
parseInt(new_val,10) >= 0 )) {
i = obj.id.substring(3);
last_value = parseInt(document.all['last_val'+i].value,10);
last_value = parseInt(document.getElementById("last_val"+i].value,10);
if( new_val == "" ) new_val = last_value;
if( new_val < last_value ){
alert(LCL.ins.value_to_low);

View File

@@ -1,7 +1,7 @@
<%@language = "javascript" %>
<% /*
$Revision: 6 $
$Modtime: 23-08-11 15:18 $
$Revision: 7 $
$Modtime: 11-01-12 11:45 $
load outlet or wallplate kenmerken
*/ %>
@@ -96,7 +96,7 @@ parent.u2.desc.value = '<%= safe.jsstring(oRs(0).Value) %>';
oRs.close();
}
%>
var tab = parent.document.all.<%=tablename%>;
var tab = parent.document.getElementById("<%=tablename%>");
var kdd=/^k\d+$/;
var tr,td=null;
@@ -107,7 +107,7 @@ for( i=tab.rows.length-1; i>=0; i-- ) {
}
}
var txt = parent.document.all.theText;
var txt = parent.document.getElementById("theText");
var rowIndex = <%=(start_row-2)%>; // not -1 because there is already 1 or more select/input/text-boxen
if( txt ) rowIndex = txt.rowIndex;

View File

@@ -1,7 +1,7 @@
<%@ LANGUAGE = JavaScript %>
<% /*
$Revision: 10 $
$Modtime: 22-11-11 16:22 $
$Revision: 11 $
$Modtime: 11-01-12 11:47 $
*/ %>
<!-- #include file="../../cust/install.inc" -->
@@ -43,7 +43,7 @@ var srtdeel_key_wallplate = oRs(0).value;
// vroeger in iface.js
function enableButton(id,enable,fn)
{
bb = document.all[id+'_bg'];
bb = document.getElementById(id + "_bg");
if( bb )
{
if( enable ) {
@@ -59,8 +59,8 @@ var srtdeel_key_wallplate = oRs(0).value;
function PortsUploaded(name, port)
{
new_ports = window.frames.hidFrame.opt_ports;
connect = document.all[name + "con"];
sel = document.all[name];
connect = document.getElementById(name + "con");
sel = document.getElementById(name);
sel.options.length = new_ports.length;
for (i in new_ports)
{
@@ -94,8 +94,8 @@ var srtdeel_key_wallplate = oRs(0).value;
function updateCon(name)
{
new_ports = window.frames.hidFrame.opt_ports;
connect = document.all[name + "con"];
sel = document.all[name];
connect = document.getElementById(name + "con");
sel = document.getElementById(name);
sel.options.length = new_ports.length;
for (i in new_ports)
{

View File

@@ -1,6 +1,6 @@
/*
$Revision: 1 $
$Modtime: 1-05-07 14:21 $
$Revision: 2 $
$Modtime: 11-01-12 13:33 $
*/
// Add to <select>
@@ -171,7 +171,7 @@ function autoComplete(s) {
// selects
function autocompleteAllSelects()
{
selects = document.all.tags("SELECT");
selects = document.getElementsByTagName("SELECT");
if (selects.length != null)
{

View File

@@ -1,6 +1,6 @@
/*
$Revision: 4 $
$Modtime: 20-01-11 10:16 $
$Revision: 5 $
$Modtime: 11-01-12 13:36 $
*/
var cur_c = 0;
@@ -77,20 +77,20 @@ function SelChange(
deflt // Default value
) {
if( document.all[fctrl] == null ) return;
if( document.getElementById(fctrl) == null ) return;
// var tt = document.all[fctrl].options[document.all[fctrl].selectedIndex].value;
var tt = parseInt( document.all[fctrl].value, 10 );
// var tt = document.getElementById(fctrl).options[document.getElementById(fctrl).selectedIndex].value;
var tt = parseInt( document.getElementById(fctrl).value, 10 );
//if( pctrl=='stdm' ) deflt=m_stdm;
// Delete old items
var itm=document.all[pctrl].options;
var itm=document.getElementById(pctrl).options;
for(var i=itm.length-1; i>=0; i-- ) {
itm.remove(i);
}
// Insert new items
var j=0; if( emp ) { insOpt( '', -1, -1, document.all[pctrl] ); j++; }
var j=0; if( emp ) { insOpt( '', -1, -1, document.getElementById(pctrl) ); j++; }
var was0 = false, was1 = false, i0 = -1;
var ival = 0;
@@ -102,20 +102,20 @@ function SelChange(
was0 = true; i0=i;
} else {
if( was0 && was1 ) {
insOpt( arr[i0].name, arr[i0].pkey, arr[i0].binding, document.all[pctrl], null );
insOpt( arr[i0].name, arr[i0].pkey, arr[i0].binding, document.getElementById(pctrl), null );
j++;
}
was1 = true; was0 = false;
if( arr[i].pkey == deflt ) ival = j;
insOpt( arr[i].name, arr[i].pkey, arr[i].binding, document.all[pctrl],
insOpt( arr[i].name, arr[i].pkey, arr[i].binding, document.getElementById(pctrl),
pctrl=='r_objs' ? room_obj_selected[arr[i].pkey] : false );
j++;
}
}
}
if(pctrl!='r_objs')document.all[pctrl].selectedIndex = ival;
if(pctrl!='r_objs')document.getElementById(pctrl).selectedIndex = ival;
dec_cc();
// =================================
// alert(pctrl + ' length = ' + arr.length + ' tt=' + tt);

View File

@@ -1,7 +1,7 @@
<%@language = "javascript" %>
<% /*
$Revision: 2 $
$Modtime: 19-01-11 12:36 $
$Revision: 3 $
$Modtime: 11-01-12 13:49 $
File: shared/load_exec_time.asp
Description: Determine exec time from stdmelding
@@ -35,7 +35,7 @@
}
oRs.close();
%>
window.parent.document.all.stdexec_time.value = <%=exec_time%>;
window.parent.document.getElementById("stdexec_time").value = <%=exec_time%>;
window.parent.showExecTime(<%=exec_time%>);
<%
}

View File

@@ -1,6 +1,6 @@
/*
$Revision: 24 $
$Modtime: 16-05-11 12:44 $
$Revision: 25 $
$Modtime: 11-01-12 13:49 $
File: mld_edit_opdr.js
*/
@@ -206,7 +206,7 @@ function DateChanged()
function setImage(id, src)
{
document.all.item(id).src = "../Pictures/" + src;
document.getElementById("id").src = "../Pictures/" + src;
}
function onChangedDienst()

View File

@@ -1,7 +1,7 @@
<%@ LANGUAGE = JavaScript %>
<% /*
$Revision: 6 $
$Modtime: 1-07-11 16:18 $
$Revision: 7 $
$Modtime: 11-01-12 14:17 $
File: msg_edit_message.asp (formerly message.asp)
Description: Muteerscherm voor berichten
@@ -14,7 +14,6 @@
*/ %>
<!-- #include file="../../cust/install.inc"-->
<!-- #include file="../Shared/datetime.inc"-->
<!-- #include file="../Shared/persoonselector.inc" -->
<!-- #include file="../Shared/plaatsselector.inc" -->
<!-- #include file="../Shared/selector.inc" -->
@@ -138,10 +137,10 @@ function checkInput() {
}
function checkNrChar() {
if (document.all.ta_message.value.length > 2000) {
alert('<%=lcl_mes_to_many_char%>' + ' (' + document.all.ta_message.value.length + '). ' + '<%=lcl_mes_less_500%>');
document.all.ta_message.focus();
document.all.ta_message.select();
if (document.getElementById("ta_message").value.length > 2000) {
alert('<%=lcl_mes_to_many_char%>' + ' (' + document.getElementById("ta_message").value.length + '). ' + '<%=lcl_mes_less_500%>');
document.getElementById("ta_message").focus();
document.getElementById("ta_message").select();
}
}

View File

@@ -1,7 +1,7 @@
<%@ LANGUAGE = JavaScript %>
<% /*
$Revision: 9 $
$Modtime: 1-07-11 16:18 $
$Revision: 10 $
$Modtime: 11-01-12 14:15 $
File: msg_portal_edit.asp
Description: Bewerken van een bestaand portal bericht (zal aangemaakt zijn door msg_message.asp?)
@@ -13,13 +13,11 @@
*/ %>
<!-- #include file="../../cust/install.inc"-->
<!-- #include file="../Shared/datetime.inc"-->
<!-- #include file="../Shared/persoonselector.inc" -->
<!-- #include file="../Shared/plaatsselector.inc" -->
<!-- #include file="../Shared/selector.inc" -->
<!-- #include file="../Shared/iface.inc"-->
<!-- #include file="../Shared/calendar.inc"-->
<!-- #include file="../Shared/datetime.inc"-->
<%
FCLTHeader.Requires({plugins:["jQuery"]});
@@ -116,10 +114,10 @@ function msgCancel () {
}
function checkNrChar() {
if (document.all.ta_message.value.length > 2000) {
alert('<%=lcl_mes_to_many_char%>' + ' (' + document.all.ta_message.value.length + '). ' + '<%=lcl_mes_less_500%>');
document.all.ta_message.focus();
document.all.ta_message.select();
if (document.getElementById("ta_message").value.length > 2000) {
alert('<%=lcl_mes_to_many_char%>' + ' (' + document.getElementById("ta_message").value.length + '). ' + '<%=lcl_mes_less_500%>');
document.getElementById("ta_message").focus();
document.getElementById("ta_message").select();
}
}

View File

@@ -1,7 +1,7 @@
<%@ language = "JavaScript" %>
<% /*
$Revision: 6 $
$Modtime: 9-03-11 13:44 $
$Revision: 7 $
$Modtime: 11-01-12 13:52 $
TODO: styling eruit, kostenplaatsselector toepassen. Verder niets.
@@ -30,12 +30,12 @@ var date_to = getQParamDate("date_to", new Date());
}
function checkWhatDate(box) {
if (box==1) {
if (document.all.uitv_date.checked) document.all.exp_date.checked = false;
else document.all.exp_date.checked = true;
if (document.getElementById("uitv_date").checked) document.getElementById("exp_date").checked = false;
else document.getElementById("exp_date").checked = true;
}
else if (box==2) {
if (document.all.exp_date.checked) document.all.uitv_date.checked = false;
else document.all.uitv_date.checked = true;
if (document.getElementById("exp_date").checked) document.getElementById("uitv_date").checked = false;
else document.getElementById("uitv_date").checked = true;
}
}
</script>

View File

@@ -1,6 +1,6 @@
/*
$Revision: 5 $
$Modtime: 23-02-10 9:21 $
$Revision: 6 $
$Modtime: 11-01-12 13:53 $
*/
//function OrderItem(srtdeel_key, amount, dis_key, price, eenheid, veelvoud, received, retour, rowIndex, item_key)
@@ -38,9 +38,9 @@ function AddItem(pprs_key, pprs_name, pdept_name)
if (this.dis_desc == null) dis_desc = "";
table = document.all.sel_items;
table = document.getElementById("sel_items");
if (!receiveInfo && document.all.person.value <= 0)
if (!receiveInfo && document.getElementById("person").value <= 0)
{
alert(LCL.shared.choose_item_first);
return;
@@ -57,7 +57,7 @@ function AddItem(pprs_key, pprs_name, pdept_name)
dept_name = pdept_name;
}
var table = document.all.sel_items
var table = document.getElementById("sel_items")
var rows = document.getElementById('sel_items').getElementsByTagName('tr')
var tablelength = rows.length;
var rowIndex = rows[rows.length-1].rowIndex; // Pak de laatste rowIndex van de tabel
@@ -77,7 +77,7 @@ function AddItem(pprs_key, pprs_name, pdept_name)
function CreateRow(prs_key, prs_name, dept_name, rowIndex, editable)
{
// insert white line
table = document.all.sel_items;
table = document.getElementById("sel_items");
// insert data rows
tr = table.insertRow((rowIndex == -1) ? (-1) : (rowIndex));
@@ -130,7 +130,7 @@ function CancelOrder(id_key)
{
tr = selectedItems[" " + id_key].row;
rowIndex = tr.rowIndex;
document.all.sel_items.deleteRow(rowIndex);
document.getElementById("sel_items").deleteRow(rowIndex);
nrdeleted++;
selectedItems[" " + id_key] = null;
}

View File

@@ -1,7 +1,7 @@
<%@language = "javascript" %>
<% /*
$Revision: 7 $
$Modtime: 26-01-11 10:21 $
$Revision: 8 $
$Modtime: 11-01-12 13:56 $
*/
/*
@@ -39,10 +39,10 @@ var module = getQParam("module", -1);
// Toon gekozen Qlikview
function ShowQlik()
{
ebox = document.all.sel_Qlikview;
ebox = document.getElementById("sel_Qlikview");
eboxval = ebox.options[ebox.selectedIndex].value;
eboxtext = ebox.options[ebox.selectedIndex].text;
if (eboxval != '')
{
cmd = "<%=qvw_ajaxzfcpath%>" + eboxval + "_ajax/default.htm";
@@ -50,7 +50,7 @@ var module = getQParam("module", -1);
} else {
cmd = "../Shared/empty.asp";
}
window.frames.workFrame.navigate(cmd);
}
</script>

View File

@@ -1,21 +1,21 @@
/*
$Revision: 3 $
$Modtime: 26-08-10 14:58 $
$Revision: 4 $
$Modtime: 11-01-12 13:58 $
File: res_search.js
*/
function checkCheckboxes()
{
if (!document.all.res_open.checked && !document.all.res_closed.checked )
if (!document.getElementById("res_open").checked && !document.getElementById("res_closed").checked )
{
document.all.res_open.checked = true;
document.getElementById("res_open").checked = true;
}
if (!document.all.roomcat.checked &&
!document.all.objcat.checked &&
!document.all.artcat.checked)
if (!document.getElementById("roomcat").checked &&
!document.getElementById("objcat").checked &&
!document.getElementById("artcat").checked)
{
document.all.roomcat.checked = true;
document.getElementById("roomcat").checked = true;
}
}

View File

@@ -1,6 +1,6 @@
/*
$Revision: 2 $
$Modtime: 1-07-11 11:25 $
$Revision: 3 $
$Modtime: 11-01-12 13:59 $
File: sle_sleutelcilinder.js
*/
@@ -22,7 +22,7 @@ function onDblClickItem(tr) {
function CreateRow(sle_key, slecil_name)
{
rowIndex++;
table = document.all.sleutelcilindertable;
table = document.getElementById("sleutelcilindertable");
// Insert data rows
tr = table.insertRow();
@@ -46,7 +46,7 @@ function CreateRow(sle_key, slecil_name)
cell.align = "left";
cell.style.whiteSpace = "nowrap";
document.all.nrRows.value = parseInt(rowIndex) + 1;
document.getElementById("nrRows").value = parseInt(rowIndex) + 1;
}
function delRow(img)
@@ -57,7 +57,7 @@ function delRow(img)
var tr = $(img).closest("tr")[0];
if (tr.myData.sle_key != null)
{
document.all.sleutelcilindertable.deleteRow(tr.rowIndex);
document.getElementById("sleutelcilindertable").deleteRow(tr.rowIndex);
}
}

View File

@@ -1,7 +1,7 @@
<%@language = "javascript"%>
<% /*
$Revision: 15 $
$Modtime: 23-11-11 11:24 $
$Revision: 16 $
$Modtime: 11-01-12 13:58 $
File: shared/queuemail.asp
Description: Zet een e-mail notifatie in de queue. Die wordt later verstuurd
@@ -202,7 +202,7 @@ else
if (!new RegExp("<%=safe.jsstring(email_regexp)%>", "ig").test($("#emails").val()))
alert("<%=lcl_invalid_email%>")
else
document.all.u2.submit();
document.getElementById("u2").submit();
}
function queueCancel()

View File

@@ -11,7 +11,7 @@
// use. That means, you can include it in your product, or your web
// site, or any other form where the code is actually being used. You
// may not put the plain javascript up on your site for download or
// include it in your javascript libraries for download.
// include it in your javascript libraries for download.
// If you wish to share this code with others, please just point them
// to the URL instead.
// Please DO NOT link directly to my .js files from your site. Copy
@@ -21,7 +21,7 @@
/* SOURCE FILE: AnchorPosition.js */
/*
/*
AnchorPosition.js
Author: Matt Kruse
Last modified: 10/11/02
@@ -30,7 +30,7 @@ DESCRIPTION: These functions find the position of an <A> tag in a document,
so other elements can be positioned relative to it.
COMPATABILITY: Netscape 4.x,6.x,Mozilla, IE 5.x,6.x on Windows. Some small
positioning errors - usually with Window positioning - occur on the
positioning errors - usually with Window positioning - occur on the
Macintosh platform.
FUNCTIONS:
@@ -44,16 +44,16 @@ getAnchorWindowPosition(anchorname)
NOTES:
1) For popping up separate browser windows, use getAnchorWindowPosition.
1) For popping up separate browser windows, use getAnchorWindowPosition.
Otherwise, use getAnchorPosition
2) Your anchor tag MUST contain both NAME and ID attributes which are the
2) Your anchor tag MUST contain both NAME and ID attributes which are the
same. For example:
<A NAME="test" ID="test"> </A>
3) There must be at least a space between <A> </A> for IE5.5 to see the
3) There must be at least a space between <A> </A> for IE5.5 to see the
anchor tag correctly. Do not do <A></A> with no space.
*/
*/
// getAnchorPosition(anchorname)
// This function returns an object having .x and .y properties which are the coordinates
@@ -66,12 +66,12 @@ function getAnchorPosition(anchorname) {
// Browser capability sniffing
var use_gebi=false, use_css=false, use_layers=false;
if (document.getElementById) { use_gebi=true; }
else if (document.all) { use_css=true; }
else if (document.getElementById) { use_css=true; }
else if (document.layers) { use_layers=true; }
// Logic to find position
if (use_gebi && document.all) {
x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);
y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);
if (use_gebi && document.getElementById) {
x=AnchorPosition_getPageOffsetLeft(document.getElementById(anchorname));
y=AnchorPosition_getPageOffsetTop(document.getElementById(anchorname));
}
else if (use_gebi) {
var o=document.getElementById(anchorname);
@@ -79,8 +79,8 @@ function getAnchorPosition(anchorname) {
y=AnchorPosition_getPageOffsetTop(o);
}
else if (use_css) {
x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);
y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);
x=AnchorPosition_getPageOffsetLeft(document.getElementById(anchorname));
y=AnchorPosition_getPageOffsetTop(document.getElementById(anchorname));
}
else if (use_layers) {
var found=0;
@@ -118,7 +118,7 @@ function getAnchorWindowPosition(anchorname) {
y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;
}
}
else if (document.all) {
else if (document.getElementById) {
x=coordinates.x-document.body.scrollLeft+window.screenLeft;
y=coordinates.y-document.body.scrollTop+window.screenTop;
}
@@ -139,7 +139,7 @@ function AnchorPosition_getPageOffsetLeft (el) {
}
function AnchorPosition_getWindowOffsetLeft (el) {
return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;
}
}
function AnchorPosition_getPageOffsetTop (el) {
var ot=el.offsetTop;
while((el=el.offsetParent) != null) { ot += el.offsetTop; }
@@ -151,7 +151,7 @@ function AnchorPosition_getWindowOffsetTop (el) {
/* SOURCE FILE: PopupWindow.js */
/*
/*
PopupWindow.js
Author: Matt Kruse
Last modified: 02/16/04
@@ -161,20 +161,20 @@ in a certain place. The window can either be a DIV or a separate browser
window.
COMPATABILITY: Works with Netscape 4.x, 6.x, IE 5.x on Windows. Some small
positioning errors - usually with Window positioning - occur on the
Macintosh platform. Due to bugs in Netscape 4.x, populating the popup
positioning errors - usually with Window positioning - occur on the
Macintosh platform. Due to bugs in Netscape 4.x, populating the popup
window with <STYLE> tags may cause errors.
USAGE:
// Create an object for a WINDOW popup
var win = new PopupWindow();
var win = new PopupWindow();
// Create an object for a DIV window using the DIV named 'mydiv'
var win = new PopupWindow('mydiv');
var win = new PopupWindow('mydiv');
// Set the window to automatically hide itself when the user clicks
// Set the window to automatically hide itself when the user clicks
// anywhere else on the page except the popup
win.autoHide();
win.autoHide();
// Show the window relative to the anchor name passed in
win.showPopup(anchorname);
@@ -185,7 +185,7 @@ win.hidePopup();
// Set the size of the popup window (only applies to WINDOW popups
win.setSize(width,height);
// Populate the contents of the popup window that will be shown. If you
// Populate the contents of the popup window that will be shown. If you
// change the contents while it is displayed, you will need to refresh()
win.populate(string);
@@ -205,18 +205,18 @@ win.offsetY = 100;
NOTES:
1) Requires the functions in AnchorPosition.js
2) Your anchor tag MUST contain both NAME and ID attributes which are the
2) Your anchor tag MUST contain both NAME and ID attributes which are the
same. For example:
<A NAME="test" ID="test"> </A>
3) There must be at least a space between <A> </A> for IE5.5 to see the
3) There must be at least a space between <A> </A> for IE5.5 to see the
anchor tag correctly. Do not do <A></A> with no space.
4) When a PopupWindow object is created, a handler for 'onmouseup' is
attached to any event handler you may have already defined. Do NOT define
an event handler for 'onmouseup' after you define a PopupWindow object or
the autoHide() will not work correctly.
*/
*/
// Set the position of the popup window based on the anchor
function PopupWindow_getXYPosition(anchorname) {
@@ -255,11 +255,11 @@ function PopupWindow_refresh() {
if (this.use_gebi) {
document.getElementById(this.divName).innerHTML = this.contents;
}
else if (this.use_css) {
document.all[this.divName].innerHTML = this.contents;
else if (this.use_css) {
document.getElementById(this.divName).innerHTML = this.contents;
}
else if (this.use_layers) {
var d = document.layers[this.divName];
else if (this.use_layers) {
var d = document.layers[this.divName];
d.document.open();
d.document.writeln(this.contents);
d.document.close();
@@ -296,9 +296,9 @@ function PopupWindow_showPopup(anchorname) {
document.getElementById(this.divName).style.visibility = "visible";
}
else if (this.use_css) {
document.all[this.divName].style.left = this.x;
document.all[this.divName].style.top = this.y;
document.all[this.divName].style.visibility = "visible";
document.getElementById(this.divName).style.left = this.x;
document.getElementById(this.divName).style.top = this.y;
document.getElementById(this.divName).style.visibility = "visible";
}
else if (this.use_layers) {
document.layers[this.divName].left = this.x;
@@ -321,7 +321,7 @@ function PopupWindow_showPopup(anchorname) {
this.x = screen.availWidth - this.width;
}
}
var avoidAboutBlank = window.opera || ( document.layers && !navigator.mimeTypes['*'] ) || navigator.vendor == 'KDE' || ( document.childNodes && !document.all && !navigator.taintEnabled );
var avoidAboutBlank = window.opera || ( document.layers && !navigator.mimeTypes['*'] ) || navigator.vendor == 'KDE' || ( document.childNodes && !document.getElementById && !navigator.taintEnabled );
this.popupWindow = window.open(avoidAboutBlank?"":"about:blank","window_"+anchorname,this.windowProperties+",width="+this.width+",height="+this.height+",screenX="+this.x+",left="+this.x+",screenY="+this.y+",top="+this.y+"");
}
this.refresh();
@@ -334,7 +334,7 @@ function PopupWindow_hidePopup() {
document.getElementById(this.divName).style.visibility = "hidden";
}
else if (this.use_css) {
document.all[this.divName].style.visibility = "hidden";
document.getElementById(this.divName).style.visibility = "hidden";
}
else if (this.use_layers) {
document.layers[this.divName].visibility = "hidden";
@@ -359,7 +359,7 @@ function PopupWindow_isClicked(e) {
}
else { return false; }
}
else if (document.all) { // Need to hard-code this to trap IE for error-handling
else if (document.getElementById) { // Need to hard-code this to trap IE for error-handling
var t = window.event.srcElement;
while (t.parentElement != null) {
if (t.id==this.divName) {
@@ -434,7 +434,7 @@ function PopupWindow() {
this.populated = false;
this.visible = false;
this.autoHideEnabled = false;
this.contents = "";
this.url="";
this.windowProperties="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no";
@@ -449,7 +449,7 @@ function PopupWindow() {
this.use_css = false;
this.use_layers = false;
if (document.getElementById) { this.use_gebi = true; }
else if (document.all) { this.use_css = true; }
else if (document.getElementById) { this.use_css = true; }
else if (document.layers) { this.use_layers = true; }
else { this.type = "WINDOW"; }
this.offsetX = 0;
@@ -470,11 +470,11 @@ function PopupWindow() {
/* SOURCE FILE: ColorPicker2.js */
/*
/*
Last modified: 02/24/2003
DESCRIPTION: This widget is used to select a color, in hexadecimal #RRGGBB
form. It uses a color "swatch" to display the standard 216-color web-safe
DESCRIPTION: This widget is used to select a color, in hexadecimal #RRGGBB
form. It uses a color "swatch" to display the standard 216-color web-safe
palette. The user can then click on a color to select it.
COMPATABILITY: See notes in AnchorPosition.js and PopupWindow.js.
@@ -500,7 +500,7 @@ var cp = new ColorPicker('window');
// Write the 'pickColor' function that will be called when the user clicks
// a color and do something with the value. This is only required if you
// want to do something other than simply populate a form field, which is
// want to do something other than simply populate a form field, which is
// what the 'select' function will give you.
function pickColor(color) {
field.value = color;
@@ -509,18 +509,18 @@ function pickColor(color) {
NOTES:
1) Requires the functions in AnchorPosition.js and PopupWindow.js
2) Your anchor tag MUST contain both NAME and ID attributes which are the
2) Your anchor tag MUST contain both NAME and ID attributes which are the
same. For example:
<A NAME="test" ID="test"> </A>
3) There must be at least a space between <A> </A> for IE5.5 to see the
3) There must be at least a space between <A> </A> for IE5.5 to see the
anchor tag correctly. Do not do <A></A> with no space.
4) When a ColorPicker object is created, a handler for 'onmouseup' is
attached to any event handler you may have already defined. Do NOT define
an event handler for 'onmouseup' after you define a ColorPicker object or
the color picker will not hide itself correctly.
*/
*/
ColorPicker_targetInput = null;
function ColorPicker_writeDiv() {
document.writeln("<DIV ID=\"colorPickerDiv\" STYLE=\"position:absolute;visibility:hidden;\"> </DIV>");
@@ -548,15 +548,15 @@ function pickColor(color) {
// This function is the easiest way to popup the window, select a color, and
// have the value populate a form field, which is what most people want to do.
function ColorPicker_select(inputobj,linkname) {
if (inputobj.type!="text" && inputobj.type!="hidden" && inputobj.type!="textarea") {
alert("colorpicker.select: Input object passed is not a valid form input object");
if (inputobj.type!="text" && inputobj.type!="hidden" && inputobj.type!="textarea") {
alert("colorpicker.select: Input object passed is not a valid form input object");
window.ColorPicker_targetInput=null;
return;
}
window.ColorPicker_targetInput = inputobj;
this.show(linkname);
}
// This function runs when you move your mouse over a color block, if you have a newer browser
function ColorPicker_highlightColor(c) {
var thedoc = (arguments.length>1)?arguments[1]:window.document;
@@ -579,7 +579,7 @@ function ColorPicker() {
else {
var divname = arguments[0];
}
if (divname != "") {
var cp = new PopupWindow(divname);
}
@@ -590,7 +590,7 @@ function ColorPicker() {
// Object variables
cp.currentValue = "#FFFFFF";
// Method Mappings
cp.writeDiv = ColorPicker_writeDiv;
cp.highlightColor = ColorPicker_highlightColor;
@@ -627,13 +627,13 @@ function ColorPicker() {
cp_contents += "<BODY MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0><CENTER>";
}
cp_contents += "<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=0>";
var use_highlight = (document.getElementById || document.all)?true:false;
var use_highlight = (document.getElementById)?true:false;
for (var i=0; i<total; i++) {
if ((i % width) == 0) { cp_contents += "<TR>"; }
if (use_highlight) { var mo = 'onMouseOver="'+windowRef+'ColorPicker_highlightColor(\''+colors[i]+'\',window.document)"'; }
else { mo = ""; }
cp_contents += '<TD BGCOLOR="'+colors[i]+'"><FONT SIZE="-3"><A HREF="#" onClick="'+windowRef+'ColorPicker_pickColor(\''+colors[i]+'\','+windowRef+'window.popupWindowObjects['+cp.index+']);return false;" '+mo+' STYLE="text-decoration:none;">&nbsp;&nbsp;&nbsp;</A></FONT></TD>';
if ( ((i+1)>=total) || (((i+1) % width) == 0)) {
if ( ((i+1)>=total) || (((i+1) % width) == 0)) {
cp_contents += "</TR>";
}
}