function hoverButton() {
   var obj = new Array(
       document.getElementById("upload_nl"),
	   document.getElementById("controleren_nl"),
	   document.getElementById("naar_versturen_nl"),
	   document.getElementById("volgende_nl"),
	   document.getElementById("noe_een_maken_nl"),
	   document.getElementById("inloggen_nl"),
	   document.getElementById("go_btn"),
	   document.getElementById("aanmelden_white_nl")
  );

   if (obj) {
     
	 for (i=0; i<obj.length; i++) {
         if (obj[i]) {
			tmp = obj[i].className; 
            obj[i].onmouseover = function() {this.className = tmp + '_ov';}
            obj[i].onmouseout = function() {this.className = tmp;}
         }
      }
   }
}


jsHover = function() {
	if ( document.getElementById("gallery") ) {
		var hEls = document.getElementById("gallery").getElementsByTagName("td");
		for (var i=0, len=hEls.length; i<len; i++) {
			hEls[i].onmouseover=function() { this.className+=" jshover"; }
			hEls[i].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
		}
	};
}
if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);
if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", hoverButton);


function show (id_show){
	if ((document.getElementById(id_show))&&(document.getElementById(id_show).style.display=='block')) 
		document.getElementById(id_show).style.display='none';
	else 
		if (document.getElementById(id_show)) 
			document.getElementById(id_show).style.display='block';	
}

function claerValue (tmp){
	if (tmp.value == 'verplicht veld') 
		tmp.value=''; tmp.className='';	
}

function address_form_submit() {
	if (document.address_form.fname.value == 'verplicht veld') {document.address_form.fname.value = '';};
	if (document.address_form.address.value == 'verplicht veld') {document.address_form.address.value = '';};
	if (document.address_form.zip.value == 'verplicht veld') {document.address_form.zip.value = '';};
	if (document.address_form.city.value == 'verplicht veld') {document.address_form.city.value = '';};	
}
function address_form_submit1() {
	if (document.address_form.fname.value == 'verplicht veld') {document.address_form.fname.value = '';};
	if (document.address_form.address.value == 'verplicht veld') {document.address_form.address.value = '';};
	if (document.address_form.zip.value == 'verplicht veld') {document.address_form.zip.value = '';};
	if (document.address_form.city.value == 'verplicht veld') {document.address_form.city.value = '';};	
	document.address_form.submit();
}

function box_form_submit() {
	if (document.box_form.fname.value == 'verplicht veld') {document.box_form.fname.value = '';};
	if (document.box_form.address.value == 'verplicht veld') {document.box_form.address.value = '';};
	if (document.box_form.zip.value == 'verplicht veld') {document.box_form.zip.value = '';};
	if (document.box_form.city.value == 'verplicht veld') {document.box_form.city.value = '';};
	document.box_form.submit();
}

function changing2tab(str) {
	if ( document.getElementById('stap2_ch') ) {
		if ( str == 'OneSide' ) {
			document.getElementById('stap2_ch').className = 'step2_single';
		};
		if ( str == 'DoubleSide' ) {
			document.getElementById('stap2_ch').className = 'step2';
		};
	};	
}

function betaalgegevens_form_submit() {
	if (document.betaalgegevens.fname.value == 'verplicht veld') {document.betaalgegevens.fname.value = '';};
	if (document.betaalgegevens.lname.value == 'verplicht veld') {document.betaalgegevens.lname.value = '';};
	if (document.betaalgegevens.mail.value == 'verplicht veld') {document.betaalgegevens.mail.value = '';};	
	document.betaalgegevens.submit();
}

function pageChanged(page) {
	tab1 = document.getElementById('stap1_ch');
	tab2 = document.getElementById('stap2_ch');
	
	tab2_str = new String(tab2.className);
	if ( tab2_str.indexOf('step2_single') != -1 ) {
		tab2_class = 'step2_single';
	} else {
		tab2_class = 'step2';
	};
	
	if ( page == 0 ) {
		tab1.className = 'step1 active';
		tab2.className = tab2_class;
	} else if ( page == 1 ) {
		tab1.className = 'step1';
		tab2.className = tab2_class+' active';
	};	
}

function pageSelect(page) {
	fleditor = document.getElementById('editorObject');
	fleditor.changePage(page);
//	pageChange(page);
}

function goToStep(step) {
    fleditor = document.getElementById('editorObject');
    fleditor.goToStep(step);
}

function per_date_send() {
	document.betaalgegevens.discount.value = document.some_form.discount1.value;
	document.betaalgegevens.check.value = 'form';
	betaalgegevens_form_submit();
}

function select_pay_method(meth) {
	if ( meth != 1) {
		document.hoe_wil_je_betalen.selected_method.value = meth;
	} else {		
		document.hoe_wil_je_betalen.selected_method.value = meth;
		document.hoe_wil_je_betalen.submit();
	};	
}