function showPopup(URL,w,h,resize,scr) {
l = (screen.availWidth-w) / 2;
t = (screen.availHeight-h) / 2;
window.open(URL, "Mail", "height=" + h + ",width=" + w + ",top=" + t + ",left=" + l + ",toolbar=no,status=no,resizable=" + resize + ",scrollbars=" + scr +"");
}
function showF(type,id) {
var obj = document.getElementById(type+'_'+id)
if(obj.style.display=='none'){
obj.style.display='block'
}else{
obj.style.display='none'
}
}
function cOn(td, color) {
if(document.getElementById||(document.all && !(document.getElementById))) {
td.style.backgroundColor= color;
td.style.color = '#FFFFFF';
td.style.cursor = 'pointer';
}
}
function cOut(td,color) {
if(document.getElementById||(document.all && !(document.getElementById))) {
td.style.backgroundColor= color;
td.style.color = ''
}
}
function show(id) {document.getElementById(id).style.display='block'}
function hide(id) {document.getElementById(id).style.display='none'}
function ShowHide(id) {
if (document.getElementById(id).style.display=='none') {
show(id)
} else {
hide(id)
}
}
function gotoNextField(obj,maxLength,strNextobj){
if (obj.value.length == maxLength){
if (document.getElementById(strNextobj) != undefined && document.getElementById(strNextobj) != ''){
document.getElementById(strNextobj).focus()
}
}
}
function setAddress(obj) {
if(obj.options[obj.selectedIndex].value=='nl'){
document.getElementById('block_address_en').style.display='none'
document.getElementById('block_address_nl').style.display='block'
}else{
document.getElementById('block_address_nl').style.display='none'
document.getElementById('block_address_en').style.display='block'
}
}
function setBankGiro(obj) {
//WDS aangepast: Er moet wel controleert worden of het object bestaat, omdat ie niet getoond
if(document.getElementById('block_bankgiro1')){
document.getElementById('block_bankgiro1').style.display='none'
}
if(document.getElementById('block_bankgiro2')){
document.getElementById('block_bankgiro2').style.display='none'
}
if(document.getElementById('block_bankgiro3')){
document.getElementById('block_bankgiro3').style.display='none'
}
if(obj.value==1){
document.getElementById('block_bankgiro1').style.display='block'
}else if (obj.value==2){
document.getElementById('block_bankgiro2').style.display='block'
}
else if (obj.value==3){
document.getElementById('block_bankgiro3').style.display='block';
document.getElementById('frmProfilePayment').action = 'https://ideal.secure-ing.com/ideal/mpiPayInitIng.do'
}
}
function check_allowed(fullmatch, tag) {
var reg = new RegExp('<'+tag.toLowerCase()+'>');
if (!allowedTags.match(reg)) return fullmatch;
return '';
}
var allowedTags = ""
function printme(id) {
var objOut
if(id != '' && id != undefined ){
objOut = document.getElementById(id)
}else{
objOut = document.getElementById("output")
}
if((objOut !=undefined)) {
var out = objOut.innerHTML;
var wh = window.open("","wh","width=640px,height=480px,scrollbars=yes");
wh.document.open();
out = out.replace(/<\/?([a-z]+)(>|.*?[\w'" \/]>)/gi, function($0, $1, allowedTags) { return check_allowed($0, $1); } );
var output = '';
output += '';
output += '';
//output += '<'+'script type="text/javascript" src="js/popup.js">'+'script>';
output += '<'+'script type="text/javascript">';
output += 'var e = document.getElementsByTagName(\'INPUT\'); if (e.length>0) { for(i=0;i';
output += ''+output+'';
output += ' |
'
output += ' |
'
output += '
'+out+' |
';
wh.document.writeln(output);
wh.document.close();
}else{
window.print()
}
}
function display(id,arr) {
if(arr!=undefined) {
var a = arr.split(',')
for(i=0;ihier.
Klik hier om de test nogmaals te doen.";
}