// JavaScript Document
jsHover = function() {
	var hEls = document.getElementById("nav").getElementsByTagName("LI");
	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);

function checkForTax(){
	var f = document.getElementById('paypalform');
	if(f){
		f.submit();
	}
	var c = document.getElementById('user_country');
	if(!c){
		return;
	}
	var tva = document.getElementById('user_tva');
	if(c.options[c.selectedIndex].value == 223){
		if(!tva){
			return;
		}
		tva.readOnly = true;
		tva.value = 'VAT';
	}
	else{
		if(!tva){
			return;
		}
		tva.readOnly = false;
		var args = checkForTax.arguments;
		if(args.length == 0){
			tva.value = '';
		}
	}
	
}
