<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0046)http://amsterdamtranslations.nl/java/forms2.js -->
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904"></HEAD>
<BODY>var bFormChanged = 0; var bIgnoreEnter = 0; function 
SetBtnPressed(fname,iBtn) { try { 
document.forms[fname].elements["iBtnPressed"].value=iBtn; } catch (e) {} } 
function SetKeyHeld(fname, evt) { if (!evt) evt = window.event; iKeys = 0; try { 
iKeys = (evt["shiftKey"] ? 1 : 0) | (evt["ctrlKey"] ? 2 : 0) | (evt["altKey"] ? 
4 : 0) ; var oFld = document.forms[fname].elements['iKeyHeld']; oFld.value = 
iKeys; } catch (e) {} } function SubmitForm2(fname, bSkipChecks, e) { if (!e) e 
= window.event; SetKeyHeld(fname, e); if(!fname) fname = 'DefaultForm'; if 
(typeof(bSkipChecks) == "undefined") bSkipChecks = false; var res; eval('res = 
SubmitForm_'+fname+'(' + bSkipChecks + ');'); if (!res) { eval('try {res = 
UndoFormChanges_'+fname+'(' + bSkipChecks + ');} catch (e) {}'); } return res; } 
function AutoCheckInput2(fname) { eval("var 
missing=((typeof(AutoCheckMissing_"+fname+")=='undefined') ? '' : 
AutoCheckMissing_"+fname+"());"); eval("var 
invalid=((typeof(AutoCheckInvalid_"+fname+")=='undefined') ? '' : 
AutoCheckInvalid_"+fname+"());"); var error = new Array(2); error[0] = missing; 
error[1] = invalid; return(error); } function AutoConvertInput2(fname) { var 
error = ''; eval("try {if (typeof(AutoConvertInput_"+fname+")!='undefined') 
error=AutoConvertInput_"+fname+"();} catch(e) {error='error in 
AutoConvertInput()';}"); return(error); } function SubmitOnEnter2(e,sForm) { if 
(!e) e = window.event; if(e.keyCode == 13) { try { e.keyCode=0; } catch (e) {} 
try {eval('DefaultButton_' + sForm + '(e);'); } catch (e) {} try { 
e.stopPropagation(); } catch (err) { e.cancelBubble=true; } } } function 
DecimalPoint() { try { if(event.keyCode == 44) event.keyCode = 46; } catch (e) 
{} } function CharAllowed(sChar, sAllowed) { return(sAllowed.indexOf(sChar) 
&gt;= 0); } function PrintItem2(fname, iBtn, value) { var sep = 
(document.forms[fname].action.indexOf("?")==-1) ? "?" :"&amp;"; 
document.forms[fname].action += sep + ("PrintItem=" + (value ? value : 1)); 
SetBtnPressed(fname,iBtn); SubmitForm2(fname); } function CopyItem2(fname, iBtn, 
bSkipChecks, evt) { var sep = (document.forms[fname].action.indexOf("?")==-1) ? 
"?" :"&amp;"; document.forms[fname].action += sep + 'CopyItem=1'; 
document.forms[fname].elements['ID'].value='new'; SetBtnPressed(fname,iBtn); 
SubmitForm2(fname,bSkipChecks,evt); } function DeleteItem2(fname, iBtn) { if 
(confirm('Weet u zeker dat u dit item wilt verwijderen?')) { 
SetBtnPressed(fname,iBtn); with(document.forms[fname]) { action += 
((action.indexOf("?")==-1) ? "?" :"&amp;") + 'DeleteItem=1'; submit(); } } } 
function ArchiveItem2(fname,iBtn, evt) { if (confirm('Weet u zeker dat u dit 
item naar het archief wilt verplaatsen?\\nVeranderingen die niet zijn opgeslagen 
zullen verloren gaan.')) { SetBtnPressed(fname,iBtn); 
with(document.forms[fname]) { action += ((action.indexOf("?")==-1) ? "?" 
:"&amp;") + 'ArchiveItem=1'; submit(); } } } function Search2(fname, iBtn, 
bSkipChecks, evt) { try {document.forms[fname].elements["iSearch"].value = 1;} 
catch(e) {} SetBtnPressed(fname,iBtn); SubmitForm2(fname,bSkipChecks,evt); } 
function CloseForm2(bParentRefresh) { var allow=true; try { allow = 
AllowClose(); } catch(e) {} if(allow) { if (typeof(bParentRefresh)!='undefined' 
&amp;&amp; bParentRefresh) parentRefresh(); self.close(); } } function 
DoneForm2() { var allow=true; try {allow=AllowDone();} catch(e) {} if(allow) 
window.history.go(-1); } function CancelForm2() { if(window.opener == null) 
window.history.go(-1); else windowClose(); } function mailPassword2(fname,iBtn, 
e) { var sep = ((document.forms[fname].action.search(/\?/) == -1) ? "?" : 
"&amp;"); document.forms[fname].action += sep + "mailPwd=1"; 
SetBtnPressed(fname,iBtn); SubmitForm2(fname,false,e); } function 
MailInfo2(fname,iBtn, e) { var sep = ((document.forms[fname].action.search(/\?/) 
== -1) ? "?" : "&amp;"); document.forms[fname].action += sep + "mailInfo=1"; 
SetBtnPressed(fname,iBtn); SubmitForm2(fname,false,e); } function 
login2(fname,iBtn, e) { var sep = ((document.forms[fname].action.search(/\?/) == 
-1) ? "?" : "&amp;"); document.forms[fname].action += sep + "login=1"; 
SetBtnPressed(fname,iBtn); SubmitForm2(fname,false,e); } function datePopup(sID, 
bShowTime) { sURL = '/phpcalendar/phpcalendar.html?sID='+ sID; sSelDate = 
(document.getElementById(sID)).value; if (sSelDate.match(/[0123]?\d[\.\- 
][01]?\d[\.\- ](19|20)\d\d/)) { sURL += '&amp;seldate=' + 
escape((document.getElementById(sID)).value); } iHeight = 189; if(bShowTime) { 
sURL += '&amp;bShowTime=1'; iHeight += 25; } calendarwindow = windowOpen(sURL, 
'datePopup', 'height=' + iHeight + ', width=202, left=400, top=300', true); } 
function returnDate(sID, sFullDate) { oFld = document.getElementById(sID); if 
(sFullDate == -1) { } else if (sFullDate == -2) { oFld.value = ''; } else { 
oFld.value = sFullDate; } try { this.eval(sID + '_OnBlur()'); } catch(e) {} try 
{ this.eval(sID + '_OnChange()'); } catch(e) {} } function RemoveFile(FileID, 
Title) { if (confirm('Weet u zeker dat u dit bestand wilt verwijderen?\\n\\n' + 
Title)) { with(document.forms['DefaultForm']) { action += '&amp;RemoveID=' + 
FileID + '&amp;RemoveTitle=' + Title; submit(); } } } function AddFile(FileID, 
Title) { if (confirm('Weet u zeker dat u dit bestand wilt toevoegen?\\n\\n' + 
Title)) { with(document.forms['DefaultForm']) { action += '&amp;AddID=' + FileID 
+ '&amp;AddTitle=' + Title; submit(); } } } function OnKeyPress2(evt, sForm, 
iAction, sExtra) { if (!evt) evt = window.event; if(iAction &amp; 2 ) 
DecimalPoint(); if(bIgnoreEnter) { bIgnoreEnter = false; } else if(iAction &amp; 
1 ) { SubmitOnEnter2(evt, sForm) } if(iAction &amp; 4 ) { if (evt.charCode==null 
|| (evt.charCode &amp;&amp; !evt.keyCode)) { var code = evt.charCode ? 
evt.charCode : evt.keyCode; return CharAllowed( String.fromCharCode(code), 
sExtra ); } } } function DblSelectMove(sForm,sFrom,sTo) { var 
oFrom=document.forms[sForm].elements[sFrom].options; var 
oTo=document.forms[sForm].elements[sTo].options; 
for(nFrom=(oFrom.length-1);nFrom&gt;=0;nFrom--) { if (oFrom[nFrom].selected) { 
var oOpt=oFrom[nFrom]; oFrom[nFrom] = null; oTo[oTo.length]=oOpt; } } } function 
GetSelection(sForm, sSelect) { var oOpt = 
document.forms[sForm].elements[sSelect].options; var aRes = new Array(); for(var 
i=0; i<OOPT.LENGTH; bRes="true;" 3: case break; 
oElm.options[oElm.selectedIndex].value="='');" || 2: ??); ="=" 1: { (iType) 
switch try var oElm="document.forms[fname].elements[sFieldName];" 
CheckMissing(iType,fname,sFieldName) function } oList.remove(i); 
(oList.options[i].selected) if i++) i<oList.length; i="0;" (var for 
oList="document.forms[fname].elements[sElmentName];" sElmentName) 
DelSelListItems(sForm, i); oList.options.add(oOpt, oOpt.text="sText;" 
oOpt.value="mID;" oOpt='document.createElement("OPTION");' false; return 
(oList.options[i].value="=mID)" sText) mID, sElmentName, AddListItem(sForm, 
SelectAll(oList.options); SelAllListItems(fname, 
document.getElementById(?bStayHere?).value="bVal;" SetStayHere(bVal) 
oSel.value="oNow.getHours()+':'+oNow.getMinutes()+':'+oNow.getSeconds();" (oSel) 
Date(); oNow="new" oSel="document.getElementById(sID);" setTimeNow(sID) 
obj[i].selected="true;" i<obj.length; for(i="0;" SelectAll(obj) aRes; ); 
oOpt[i].value aRes.push( (oOpt[i].selected)>0); break; case 4: for (var i=0; 
i<OELM.OPTIONS.LENGTH; bRes="false;" 3: case break; || 2: ??); ="=" 1: { (iType) 
switch try var oElm="oFrm.elements[field];" function } if i++) i="0;" (var for 
false; return if(aElms.length aDates[0]; + ?-? aDates[1]="0" 
oElm.value="trim(oElm.value);" aDates="oElm.value.split('-');" ?); 
aElms="document.forms[fname].elements;" ) !="" (oElm.value .concat(aDates[1]); 
(aDates[1].length="=1)" aDates[0]="0" (aDates[0].length="=1)" 
oFrm="document.forms[fname];" AutoConvert(iType,fname,field) bRes; (e) catch 
aElms[i].checked) && aElms[i].type='="checkbox")' ((aElms[i].type='="radio"' 
aElms[i].tagName.toLowerCase()='="input")' if(aElms[i].name="=sFieldName" 
i<aElms.length; 6: (!ReadHTML(GetEditorID(sFieldName))) 5: 
(oElm.options[i].selected)> 1) { if(aElms[1].length &gt; 0) sTime = aElms[1]; } 
var aTimes = sTime.split(':'); oElm.value += ' ' + aTimes[0] + ':' + aTimes[1]; 
if (iType == 3) oElm.value += ':' + aTimes[2]; } break; case 4: if (oElm.value 
!= '') { var aDates = oElm.value.split('-'); oElm.value = aDates[2] + '-' + 
aDates[1] + '-' + aDates[0]; } break; case 5: if (oElm.value.length == 6) 
oElm.value = oElm.value.substr(0, 4) + ' ' + oElm.value.substr(4, 2); break; 
case 7: var country = oFrm.elements[field+"_Country"]; var area = 
oFrm.elements[field+"_Area"]; var phone = oFrm.elements[field+"_Number"]; 
oElm.value = ''; country.value = country.value.replace(/ /g, ''); if 
(country.value != '') oElm.value += country.value area.value = 
area.value.replace(/ /g, ''); if (area.value != '') { if (oElm.value != '') 
oElm.value += ' '; oElm.value += area.value; } phone.value = 
phone.value.replace(/ /g, ''); if (phone.value != '') { if (oElm.value != '') 
oElm.value += ' '; oElm.value += phone.value; } break; } } catch (e) {} return 
''; } function Combo_onkeydown(e,sName) { if (!e) e = window.event; 
eval('Combo_KeyCode_' + sName + '=' + e.keyCode); Combo_BoxVis = 
eval('Combo_BoxVis_' + sName); if(Combo_BoxVis) { switch(e.keyCode) { case 13: 
bIgnoreEnter = true; break; case 27: try { e.stopPropagation(); } catch (e) { 
e.cancelBubble=true; } break; } } } function Combo_onkeyup(sName, bShowAll) { 
var keyCode = eval('Combo_KeyCode_' + sName); var captions = 
eval('Combo_Captions_' + sName); var IDs = eval('Combo_IDs_' + sName); var text 
= eval('Combo_Text_' + sName); var selectID = eval('Combo_SelectID_' + sName); 
var boxVis = eval('Combo_BoxVis_' + sName); var oCombo = 
document.getElementById(sName + '_combo'); var oTxt = 
document.getElementById(sName + '_Text'); var oBox = 
document.getElementById(sName + '_box'); var oID = 
document.getElementById(sName); if(keyCode == 0) return; var iMatch = -1; var 
iHilite = 'x'; var aMatches = []; if(keyCode == 27 &amp;&amp; boxVis) oTxt.value 
= text; else if(text != oTxt.value) { oID.value = ''; eval('Combo_Text_' + sName 
+ '=\'' + AddSlashes(oTxt.value) + '\''); } oBox.style.width = '' + 
(oCombo.offsetWidth) + 'px'; oBox.style.marginTop = '' + (oCombo.offsetHeight + 
3) + 'px'; oBox.style.display='inline'; oBox.style.overflow='hidden'; var 
sSearch = oTxt.value; sSearch = sSearch.toUpperCase(); iLen = sSearch.length; 
for(i=0; i &lt; captions.length; i++) { sItem = captions[i].substring(0, iLen); 
sItem = sItem.toUpperCase(); if(bShowAll || sItem == sSearch) { if(IDs[i] == 
selectID) { iMatch = i; iHilite = aMatches.length; } aMatches.push(i); } } 
switch(keyCode) { case 13: if(boxVis &amp;&amp; iMatch &gt;= 0) { 
Combo_select(sName, IDs[iMatch]); aMatches = []; iMatch = -1; } break; case 27: 
aMatches = []; iMatch = -1; break; case 38: if(iHilite != 'x') iHilite--; break; 
case 40: if(iHilite != 'x') iHilite++; break; default: selectID = ''; } var 
sList=""; if(aMatches.length &gt; 0) { if(iHilite == "x") iHilite = 0; else 
if(iHilite &lt; 0) iHilite = aMatches.length - 1; else if(iHilite &gt;= 
aMatches.length) iHilite = 0; for(i=0; i &lt; aMatches.length; i++) { sTrClass = 
"clickable"; sID = "trCombo_"+ sName +"_"+ i; if(i == iHilite) { selectID = 
IDs[aMatches[i]]; sTrClass += " highlight"; sID_HiLited = sID; } sList += '
<DIV id="'+ sID +'" class="'+ sTrClass + '" 
onmouseover="SetClassName(this, sName, \'highlight\');" 
onmouseout=ResetClassName(this,sName); onclick="Combo_select(\''+sName+" +? sID 
1);??+ +?\?, IDs[aMatches[i]] ??+ ?,>' + captions[aMatches[i]].htmlEntities() + 
'</DIV>'; } } eval("Combo_SelectID_"+ sName +"='" + selectID + "';"); if(sList 
!= '' &amp;&amp; (!(oTxt.value == '' &amp;&amp; boxVis == 0) || keyCode == -1 || 
keyCode == 40)) { oBox.style.height = ((aMatches.length &gt; 15) ? '300px' : 
''); oBox.innerHTML = sList; Combo_visible(sName, 1); } else 
Combo_visible(sName, 0); Combo_disable(sName, selectID==""); } function 
Combo_onblur(sName) { var keyCode = eval('Combo_KeyCode_' + sName); if(keyCode 
== 9) { Combo_BoxVis = eval('Combo_BoxVis_' + sName); Combo_disable(sName, 
(Combo_BoxVis ? eval('Combo_SelectID_' + sName) : true) ); } 
eval('Combo_KeyCode_' + sName + '=' + 0); } function Combo_visible(sName, vis) { 
oBox = document.getElementById(sName + '_box'); if (document.all) { if (vis) { 
dmHideControl("IFRAME", oBox); dmHideControl("SELECT", oBox); 
dmHideControl("OBJECT", oBox); } else { dmShowControl(oBox); } } 
oBox.style.visibility = (vis ? 'visible' : 'hidden'); eval('Combo_BoxVis_' + 
sName + '=' + vis); } function Combo_onDropDown(sName) { eval('Combo_KeyCode_' + 
sName + '=' + -1); Combo_BoxVis = eval('Combo_BoxVis_' + sName); 
if(Combo_BoxVis) Combo_visible(sName, 0); else Combo_onkeyup(sName, 1); } 
function Combo_select(sName, ID, bFocus) { var Combo_Captions = 
eval('Combo_Captions_' + sName); var Combo_IDs = eval('Combo_IDs_' + sName); var 
iIdx = -1; for(var i=0; i<COMBO_IDS.LENGTH; break; { } i++) if(iIdx iIdx="i;" 
ID) if(Combo_IDs[i]="=">= 0) { var oTxt = document.getElementById(sName + 
'_Text'); var oBox = document.getElementById(sName + '_box'); var oID = 
document.getElementById(sName); oTxt.value = Html2Asc(Combo_Captions[iIdx]); 
oID.value = Combo_IDs[iIdx]; eval("Combo_SelectID_"+ sName + "=oID.value;"); 
eval('Combo_Text_' + sName + '=\'' + AddSlashes(oTxt.value) + '\''); 
Combo_visible(sName, 0); try { eval('Combo_' + sName + '_onSelect(' + oID.value 
+', \''+ AddSlashes(oTxt.value) +'\');'); } catch(e) {} // generate onselect 
event Combo_disable(sName, false); if(bFocus) oTxt.focus(); } else { 
Combo_disable(sName, true); } } function Combo_disable(sName, bDisabled) { var 
oImg = document.getElementById(sName+"_adic"); if (oImg) { oImg.src = 
"/images/form/" + (bDisabled ? "admin_tiny_dis.gif" : "admin_tiny.gif"); } } 
function ComboEnabled(sName) { var oImg = 
document.getElementById(sName+"_adic"); return 
(oImg.src.match("admin_tiny.gif")!=null); } function UpdateComboBoxValue(cmbID, 
valID, newVal) { var oSel = document.getElementById(cmbID); if ( oSel.value == 
valID) { var oTxt = document.getElementById(cmbID+"_Text"); oTxt.value = newVal; 
eval("Combo_Text_" + cmbID + "=newVal;"); } eval("var aIDs = Combo_IDs_" + cmbID 
+ ";"); for (var i=0; i<AIDS.LENGTH; bRes="false;" case break; 2: ??); 1: { 
(iType) switch try var oElm="document.forms[fname].elements[sFieldName];" 
function } if i++) i="0;" (var for return oSel.value="=" 
oSel="document.getElementById(cmbID);" if(aElms.length + 
oElm.value="oElm.value.replace(/\s+/g," aDates="oElm.value.split('-');" ?); 
aElms="oElm.value.split('" ) !="" (oElm.value && (value else ingevoerd.?; juist 
niet is veld datum ?Het ??) g, \-:] [\d (oElm.value.replace( niet.?; bestaat 
ingevoerde ?De if(!bRes) oDate.getFullYear()="=aDates[2])" 
(oDate.getMonth()+1)="=aDates[1]" if(oDate.getDate()="=aDates[0]" 
(aDates[0].valueOf())); 1, - Date((aDates[2].valueOf()),(aDates[1].valueOf()) 
oDate="new" ingevuld.?; geldige geen ?Er 3) < (aDates.length 
^[\d]{1,2}\-[\d]{1,2}\-[\d]{4} (oElm.value.match( (dd-mm-yyyy).?; teken min het 
door gescheiden nummers, uit ?Een [\d\-\s] CheckInvalid(iType,fname,sFieldName) 
1); aCapt.splice(i, aIDs.splice(i, valID) (aIDs[i]="=" i<aIDs.length; +?;?); 
cmbID aCapt='Combo_Captions_"' eval(?var ?;?); aIDs='Combo_IDs_"' ;?); ?="" 
eval(?Combo_Text_? ; oTxt.value="" 
oTxt='document.getElementById(cmbID+"_Text");' ( DeleteComboBoxValue(cmbID, 
+?[i]='newVal;");'> 1) sTime = (aElms[1].length &gt; 0) ? aElms[1] : ''; else 
sTime = ''; var aTimes = sTime.split(':'); if (aDates.length&lt;3 || 
aTimes.length &lt; 2) return 'Er is geen geldige datum ingevuld.'; else { var 
oDate = new Date(aDates[2].valueOf(),aDates[1].valueOf()-1, aDates[0].valueOf(), 
aTimes[0].valueOf(), aTimes[1].valueOf()); if(oDate.getDate()!=aDates[0] || 
(oDate.getMonth()+1)!=aDates[1] || oDate.getFullYear()!=aDates[2] || 
oDate.getHours()!=aTimes[0] || oDate.getMinutes()!=aTimes[1]) return 'De 
ingevoerde datum bestaat niet.'; } } break; case 3: if (oElm.value.replace(/[\d 
\-:]/g, '') != '') return 'Het datum veld is niet juist ingevoerd.'; else if 
(value != '') { var aElms = oElm.value.split(' '); var aDates = 
aElms[0].split('-'); if(aElms.length &gt; 1) sTime = (aElms[1].length &gt; 0) ? 
aElms[1] : ''; else sTime = ''; var aTimes = sTime.split(':'); if 
(aDates.length&lt;3 || aTimes.length &lt; 2) return 'Er is geen geldige datum 
ingevuld.'; else { var oDate = new 
Date(aDates[2].valueOf(),aDates[1].valueOf()-1, aDates[0].valueOf(), 
aTimes[0].valueOf(), aTimes[1].valueOf(), aTimes[2].valueOf()); 
if(oDate.getDate()!=aDates[0] || (oDate.getMonth()+1)!=aDates[1] || 
oDate.getFullYear()!=aDates[2] || oDate.getHours()!=aTimes[0] || 
oDate.getMinutes()!=aTimes[1] || oDate.getSeconds()!=aTimes[2]) return 'De 
ingevoerde datum bestaat niet.'; } } break; case 4: if (value.replace(/[\d:]/g, 
'') != '') return 'Een tijd veld bestaat uit nummers, gescheiden door het : 
teken.'; else if (value != '') { var aDates = value.split(':'); if 
(aDates.length &lt; 3) return 'Er is geen geldige tijd ingevuld.'; else { var 
oDate = new 
Date(0,0,0,aDates[0].valueOf(),aDates[1].valueOf(),aDates[2].valueOf()); 
if(oDate.getSeconds()!=aDates[2] || (oDate.getMinutes())!=aDates[1] || 
oDate.getHours()!=aDates[0]) return 'De ingevoerde tijd bestaat niet.'; } } 
break; case 5: if (oElm.value == '') return ''; m = (oElm.value).match(/^[ 
]*[0-9]{4}[ ]?[A-Za-z]{2}[ ]*$/); if (m == null || oElm.value != m[0]) return 
'Er is geen geldige postcode ingevuld.'; break; case 6: if(oElm.value.match(/^[ 
]*[\+\&amp;\.\-\w]+@[\.\-\w]+\.\w{2,}[ ]*$/)==null &amp;&amp; oElm.value!='') { 
return 'Er is geen geldig email-adres ingevuld.'; } break; case 7: var country = 
sFieldName+'_Country'; var area = sFieldName+'_Area'; var phone = 
sFieldName+'_Number'; var sArea = ''; var sNumber = ''; var sInvChr = 
country.value.replace(/[\d\(\) ]/g, ''); sInvChr += area.value.replace(/[\d\(\) 
]/g, ''); sInvChr += phone.value.replace(/[\d\(\) ]/g, ''); if (sInvChr != '') 
return 'Er zijn ongeldige tekens ingevoerd: ' + sInvChr; if 
(country.value.search(/\-/) != -1) return 'Het landnummer mag alleen nummers 
bevatten.'; else if ( isNaN(country.value) ) return 'Het landnummer mag alleen 
nummers bevatten.'; sArea = area.value.replace(/\(/, ''); sArea = 
sArea.replace(/\)/, ''); if ( sArea.search(/\-/) != -1) return 'Het netnummer 
mag alleen nummers en ronde haakjes bevatten.'; else if ( isNaN(sArea) ) return 
'Het netnummer mag alleen nummers en ronde haakjes bevatten.'; sNumber = 
phone.value.replace(/ /g, ''); if ( sNumber.search(/\-/) != -1) return 'Het 
abboneenummer mag alleen nummers en spaties bevatten.'; else if ( isNaN(sNumber) 
) return 'Het abboneenummer mag alleen nummers en spaties bevatten.'; if 
(country.value!='' &amp;&amp; (sArea=='' || sNumber=='')) return 'Als u een 
landnummer invult, moet u ook een net- en abbonneenummer invullen.'; break; } } 
catch (e) {} return ''; } function ShowFile2(filename) { window.open(filename); 
} function ShowImg2(id, width, height) { width += 10; height += 30; 
windowOpen("/pages/image.html?variant=popup&amp;ID="+id, "prodimg", 
"toolbar=0,resizable=1,width="+width+",height="+height); } function 
DelFile2(fname, id, bShowAlert, iBtn) { if (bShowAlert &amp;&amp; !confirm("Het 
formulier is veranderd. Als u door gaat zullen de veranderingen verloren 
gaan.\nWeet u zeker dat u door wilt gaan?") ) { return; } var oDelFile = 
document.forms[fname].elements["iDelFile"]; oDelFile.value = id; 
SetBtnPressed(fname, iBtn); SubmitForm2(fname); } function Html2Asc(sText) { re 
= /&nbsp;/gi; sText = sText.replace(re, " "); re = /&amp;/gi; sText = 
sText.replace(re, "\&amp;"); re = /€/gi; sText = sText.replace(re, "€"); return 
sText; } function dmHideControl(tagName, origObj) { var x = dmGetX(origObj); var 
y = dmGetY(origObj); var w = origObj.offsetWidth; var h = origObj.offsetHeight; 
for (var i = 0; i &lt; document.all.tags(tagName).length; ++i) { var obj = 
document.all.tags(tagName)[i]; if (!obj || !obj.offsetParent) continue; var ox = 
dmGetX(obj); var oy = dmGetY(obj); var ow = obj.offsetWidth; var oh = 
obj.offsetHeight; if (ox &gt; (x + w) || (ox + ow) &lt; x) continue; if (oy &gt; 
(y + h) || (oy + oh) &lt; y) continue; if(obj.style.visibility == "hidden") 
continue; if (!origObj.cmOverlap) origObj.cmOverlap = new Array(); 
origObj.cmOverlap[origObj.cmOverlap.length] = obj; obj.style.visibility = 
"hidden"; } } function dmShowControl(subMenu) { if (subMenu.cmOverlap) { for 
(var i=0; i&lt;subMenu.cmOverlap.length; ++i) 
subMenu.cmOverlap[i].style.visibility = ""; } subMenu.cmOverlap = null; } 
function dmGetX(obj) { var x = 0; do { x += obj.offsetLeft; obj = 
obj.offsetParent; } while (obj); return x; } function dmGetY(obj) { var y = 0; 
do { y += obj.offsetTop; obj = obj.offsetParent; } while (obj); return y; } 
function OpenImageAdmin(form,field) { 
openPopUp("/pages/adminimages.html?variant=popup&amp;select=1&amp;form="+form+"&amp;field="+field, 
600, 400, "imgadm"); } function ShowSelectedImg2(form,field) { var id = 
document.forms[form].elements[field].value; 
windowOpen("/pages/image.html?variant=popup&amp;resize=1&amp;ID="+id, "prodimg", 
"toolbar=0,resizable=1"); } function DelSelectedImg2(form,field) { 
document.getElementById("showimg_"+field).style.display="none"; 
document.getElementById("delimg_"+field).style.display="none"; 
document.forms[form].elements[field].value = ""; } function selectImage(form, 
field, fileName, docID, label) { 
document.getElementById("showimg_"+field).style.display=""; 
document.getElementById("delimg_"+field).style.display=""; 
document.forms[form].elements[field].value = docID; } function 
allowInt(e,allowNeg) { if (!e) e = window.event; var elm = e.srcElement? 
e.srcElement : e.target; var name = elm.id.match(/[a-z]+/); var code = 
e.charCode ? e.charCode : e.keyCode; if ( isSpecialKey(code) ) { return true; } 
var chars = "1234567890"; if (allowNeg) chars += "-"; return 
OnKeyPress2(e,name,'4',chars); } function allowReal(e,allowNeg) { if (!e) e = 
window.event; var elm = e.srcElement? e.srcElement : e.target; var name = 
elm.id.match(/[a-z]+/); var code = e.charCode ? e.charCode : e.keyCode; if ( 
isSpecialKey(code) ) { return true; } var chars = "1234567890."; if (allowNeg) 
chars += "-"; if (!OnKeyPress2(e,name,'4',chars)) { return false; } if (code==46 
&amp;&amp; elm.value.indexOf(".")!=-1) { return (elm.selectionStart==0 
&amp;&amp; elm.selectionEnd == elm.textLength); } return true; } function 
isSpecialKey(code) { return (code == 8 || code == 9 || code == 13 || code == 35 
|| code == 36 || code == 37 || code == 39 || code == 46 || code == 99); 
}</BODY></HTML>
