function CMS_addEvent(obj, evType, fcn) {
	if (obj.addEventListener) {
		obj.addEventListener(evType, fcn, true);
		return true;
	} else if (obj.attachEvent) {
		var r = obj.attachEvent("on"+evType, fcn);
		return r;
	} else {
		return false;
	}
	return true;
}

CMS_addEvent(window, 'load', function() {
	if(typeof sIFR == "function"){
		sIFR.replaceElement(named({sSelector:"#home h1.titre", sFlashSrc:"/swf/eurostile2.swf", sColor:"#F049A3", sBgColor:"#FFF", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left", sWmode:"transparent"}));
		sIFR.replaceElement(named({sSelector:"#contDec h1.titre", sFlashSrc:"/swf/eurostile.swf", sColor:"#F049A3", sBgColor:"#FFF", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left", sWmode:"transparent"}));
	}
});

function formValidation(theForm){
		if (theForm.First_Name.value == "") {
			alert("Please enter a value for the First Name field.");
			theForm.First_Name.focus();
			return (false);
		}
		if (theForm.Last_Name.value == "") {
			alert("Please enter a value for the Name field.");
			theForm.Last_Name.focus();
			return (false);
		}
		if (theForm.Position.value == ""){
			alert("Please enter a value for the Position field.");
			theForm.Position.focus();
			return (false);
		}
		if (theForm.Company.value == ""){
			alert("Please enter a value for the Company field.");
			theForm.Company.focus();
			return (false);
		}
		if (theForm.Country.selectedIndex < 0){
			alert("Please select one of the Country options.");
			theForm.Country.focus();
			return (false);
		}
		if (theForm.Country.selectedIndex == 0){
			alert("The first Country option is not a valid selection.  Please choose one of the other options.");
			theForm.Country.focus();
			return (false);
		}
		if (theForm.E_mail.value == ""){
			alert("Please enter a value for the E_mail field.");
			theForm.E_mail.focus();
			return (false);
		}
		if (theForm.company_activity.selectedIndex == 0){
			alert("The first \"company_activity\" option is not a valid selection.  Please choose one of the other options.");
			theForm.company_activity.focus();
			return (false);
		}
		return (true);
	}