
// convert all characters to lowercase to simplify testing
var agt=navigator.userAgent.toLowerCase();

var dom = (document.getElementById) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var ns4 = (document.layers && !dom) ? true : false;
var ns5 = ((agt.indexOf("gecko")>-1) && dom) ? true: false;
var ie5 = ((agt.indexOf("msie")>-1) && dom) ? true : false;
var ie  = (ie4 || ie5 ) ? true : false;
var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;




// rolloverfunction MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}

// état inital des rolloversfunction MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}

// initialisation des menusif(window.event + "" == "undefined") event = null;function HM_f_PopUp(){return false};function HM_f_PopDown(){return false};popUp = HM_f_PopUp;popDown = HM_f_PopDown;

// préchargement des imagesfunction MM_preloadImages() { //v3.0  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 MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}

// pop upfunction MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);}// centrage des popupsfunction PopUpCenter(page,largeur,hauteur,options){	var top=(screen.height-hauteur)/2;	var left=(screen.width-largeur)/2;	window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);}// état initial des champs de textefunction BlurText(BoxName){	if (BoxName.value != BoxName.defaultValue)	{	BoxName.value = BoxName.defaultValue;	}}// initialisation des champs de textefunction FocusText(BoxName){	if (BoxName.value == BoxName.defaultValue)	{	BoxName.value = '';	}}// soumission des formulairesfunction submitData(formulaire){
	window.document.forms[formulaire].submit();}// communication popup > parentfunction PopUpParent(Lien) {	window.opener.document.location.href=Lien;}

//centrage des popupfunction centerWindow( mywin, width, height ) 
{
	var x=0;
	var y=0;
	
	if ( ie  )
	{
		h=document.body.clientHeight;
		w=document.body.clientWidth;

		if (ie4)
		{
			x =  ( ( w - width  ) / 2 ) ;
			y =  ( ( h - height ) / 2 ) ;
		}
		else
		{
			x = window.screenLeft + ( ( w - width  ) / 2 ) ;
			y = window.screenTop  + ( ( h - height ) / 2 ) ;
		}
	}
	else
	{
		x = window.screenX + ( (window.outerWidth- width) / 2 ) ;
		y = window.screenY + ( (window.outerHeight- height) / 2 )  ;
	}
	
	mywin.moveTo(x,y);
}

// affiche le pop-up de la selection des tests

function DisplaySelection()
{
lUrl='../seeSelection.asp' 
owin = window.open( lUrl, 'YourSelection', 'height=700,width=600,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes')
owin.focus()
}


// affiche le pop-up princing

function displayPricing(Nro)
{


if (Nro==1) 
	{
	lUrl='../caddie/pricinginformation.asp'
	owin = window.open( lUrl, 'Pricing', 'height=700,width=600,status=no,toolbar=no,menubar=no,location=no,scrollbars=auto,resizable=yes')
	}
else
	{
	lUrl='../caddie/profilediscount.asp'
	owin = window.open( lUrl, 'ProfilDiscount', 'height=800,width=900,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes')
	}


owin.focus()


}
