



	function MM_preloadImages() { //v3.0
	/* Functions that handle preload. */

	 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

	}


	function openWindow(){
		var i = document.getElementById('client_web_access').selectedIndex;
		var value = document.getElementById('client_web_access').options[i].value;
		window.open(value);
	}



		function adobeFlashCheck(flash_object, iWidth, iHeight, sFrame) {
		<!--
			//alert(sFrame)
		if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
			alert("This page requires AC_RunActiveContent.js.");
		} else {
			var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
			if(hasRightVersion) {  // if we've detected an acceptable version
				// embed the flash movie
				AC_FL_RunContent(
							 
					'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
					'width', iWidth,
					'height', iHeight,
					'src', flash_object,
					'quality', 'high',
					'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
					'align', 'middle',
					'play', 'true',
					'loop', 'false',
					'scale', 'showall',
					'wmode', 'transparent',
					'devicefont', 'false',
					'id', 'homepage_flash',
					'FlashVars','StopFrame=' + sFrame,
					'bgcolor', '#ffffff',
					'name', 'homepage_flash',
					'menu', 'false',
					'allowScriptAccess','sameDomain',
					'allowFullScreen','false',
					'movie', flash_object,
					'salign', ''
					); //end AC code
			} else {  // flash is too old or we can't detect the plugin
				var alternateContent = 'Alternate HTML content should be placed here.'
					+ 'This content requires the Adobe Flash Player.'
					+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
				document.write(alternateContent);  // insert non-flash content
			}
		}
		
		
		// -->
}


		function addFlyoutMenus() {
		
		//This is a fix for IE 6.0
		// javascript from drop_downs.js
		//startList = function() {
		if (document.all&&document.getElementById) {
		var navRoot = document.getElementById("main_navigation_list");
		//alert(navRoot);
		for (i=0; i<navRoot.childNodes.length; i++) {
			//if (i==1) alert(navRoot.childNodes.length);	
			node = navRoot.childNodes[i];
			
			if (node.nodeName=="LI") {
				//alert(node.className);	
				node.onmouseover=function() {
				//alert('test');
				//alert("test");
				this.className+=" over";
				//alert(this.className);
				}
				node.onmouseout=function() {
				this.className=this.className.replace(" over", "");
				//alert(this.className);
				}
				}
			}
		}
//		}
		//window.onload=startList();

}



	function swapLang(obj) {
		var sPath=location.href;
		var sPathNew;

		var rEn=/\/healthcare-returns-management\//i;
		var rFr=/\/healthcare-returns-management_fr\//i;
		var sEn='/healthcare-returns-management/';
		var sFr='/healthcare-returns-management_fr/';
	
		if (sPath.search(rEn) > 0) {
		    sPath = sPath.replace(rEn,sFr);
		}
		else if (sPath.search(rFr) > 0) {
		    sPath = sPath.replace(rFr,sEn);
		}
		obj.href=sPath;
		return true;
	}



function validateForm(){ //contact us form
//	alert(document.contact_form.First_Name.value.length)//.First_Name);
	
	if ( 
	    //document.contact_form.strCAPTCHA.value.length == 0 || 
		document.contact_form.first_name.value.length == 0 
		|| document.contact_form.last_name.value.length == 0
		|| document.contact_form.last_name.value.length == 0
		|| document.contact_form.Company.value.length == 0
		|| document.contact_form.Title.value.length == 0
		|| document.contact_form.Address.value.length == 0
		|| document.contact_form.Email.value.length == 0
		|| document.contact_form.City.value.length == 0
		|| document.contact_form.State.value.length == 0
		|| document.contact_form.Zip.value.length == 0
		|| document.contact_form.Phone.value.length == 0
		|| document.contact_form.Country.value.length == 0
		){		
		alert('Please populate all fields marked with an "*" !');
		return false;
	}

	//return true;
}