function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}
function toggleLayerDeux( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'inline':'none';
  vis.display = (vis.display==''||vis.display=='inline')?'none':'inline';
}

var shp_voornaam = "";
var shp_achternaam = "";
var shp_bedrijf = "";
var adres = "";
var postcode = "";
var woonplaats = "";
var landIndex = 0;


function InitSaveVariables(form) {
shp_voornaam = form.shp_voornaam.value;
shp_achternaam = form.shp_achternaam.value;
shp_bedrijf = form.shp_bedrijf.value;
adres = form.adres.value;
postcode = form.postcode.value;
woonplaats = form.woonplaats.value;
landIndex = form.land.selectedIndex;
land = form.land[landIndex].value;
}

function ShipToBillPerson(form) {
if (form.copy.checked) {
InitSaveVariables(form);
form.shp_voornaam.value = form.fca_voornaam.value;
form.shp_achternaam.value = form.fca_achternaam.value;
form.shp_bedrijf.value = form.fca_bedrijf.value;
form.adres.value = form.fca_adres.value;
form.postcode.value = form.fca_postcode.value;
form.woonplaats.value = form.fca_woonplaats.value;
form.land.selectedIndex = form.fca_land.selectedIndex;
}
else {
form.shp_voornaam.value = shp_voornaam;
form.shp_achternaam.value = shp_achternaam;
form.shp_bedrijf.value = shp_bedrijf;
form.adres.value = adres;
form.postcode.value = postcode;
form.woonplaats.value = woonplaats;
form.land.selectedIndex = landIndex;
   }
}

function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}



	