<!-- Hide script from old browsers
	
	/* 
	
		Change location with button click
			onclick="JavaScript:self.location.href='http://mysite.com'"
		
		Set Timeout
			setTimeout("UpdateParentClosePopup(#VARIABLES.JSRedirect#)",2000);
			
		Automated Printing
			OnLoad='javascript:window.print();'
			
		Ststus Window Message
			onMouseOver="window.status='';return true;"
	
	*/
	
	// Change Button Text / Disable Button / Submit Form
		function ChangeDisableSubmit(BtnObj,BtnText,DisableBtn,Form) 
			{
				if (BtnText=="") {
					BtnObj.value = 'Processing...';
				}
				else {
					BtnObj.value = BtnText;
				}
				if (DisableBtn=1) {
					BtnObj.disabled = true;
				}
				Form.submit();
			}
	
	// Allows user to bookmark site as a favorite
	
		/*
			<a href="javascript:window.external.AddFavorite('http://www.somesite.com','Some Site')">Bookmark</a>
		*/
	
	// Prevents machines from grabbing e-mail addresses from website
		/*
			<script language="JavaScript">SafeEmail('John_Smith','SomeSite.com','Subject Line','Link Text');</script>
		*/
		
		function SafeEmail(EmailName,DomainName,SubjectLine,VisibleLink){
			if (VisibleLink=="")
			{VisibleLink = EmailName + '@' + DomainName};
			document.write('<a href=mailto:' + EmailName + '@' + DomainName + '?Subject=' + SubjectLine + '>' + VisibleLink + '</a>');
		}
		
	// set the image over and down name convention	
		function P7_setMM2(){ //v2.0 by PVII
		 document.p7TabOver="_over";
		 document.p7TabDown="_down";
		 var dt=false;if(document.getElementsByTagName){dt=true;}if(document.P7TabBar){return;}
		 var i,k=-1,g,x,gg,tl,ts,ti,tm,tt,tsn,tu,el,args=P7_setMM2.arguments;
		 P7TabProp=new Array();for(i=0;i<args.length;i++){P7TabProp[i]=args[i];}
		 P7TabIM=new Array();P7TabSB=new Array();if(dt){tm=document.getElementsByTagName("IMG");
		 }else{tm=document.images;}tm=document.images;tt=new Array();tt=tt.concat(tm);
		 if(document.layers){for(i=0;i<document.layers.length;i++){ti=document.layers[i].document.images;
		 if(ti){tt=tt.concat(ti);}for(x=0;x<document.layers[i].document.layers.length;x++){
		 ti=document.layers[i].document.layers[x].document.images;if(ti){tt=tt.concat(ti);}}}tm=tt;}
		 for(i=0;i<tm.length;i++){tl=tm[i].name; if(dt&&!tl){tl=tm[i].id;}
		 if(tl.indexOf("p7TBim")==0){ts=tl.replace("p7TBim","");
		 tsn="p7TBsub"+ts;k++;P7TabIM[k]=tl;if((g=MM_findObj(tsn))!=null){P7TabSB[k]=tsn;
		 gg=(document.layers)?g:g.style;gg.visibility="hidden";}else{P7TabSB[k]='N';}}}
		 document.P7_TBswapd=new Array();document.P7_TBswapo=new Array();for(i=0;i<P7TabIM.length;i++){
		 g=MM_findObj(P7TabIM[i]);gg=g.src;g.p7TBim=g.src;tu=gg.lastIndexOf(".");
		 g.p7TBimo=gg.substring(0,tu)+document.p7TabOver+gg.substring(tu,gg.length);
		 g.p7TBimd=gg.substring(0,tu)+document.p7TabDown+gg.substring(tu,gg.length);
		 if(P7TabProp[2]>1){document.P7_TBswapo[i]=new Image();document.P7_TBswapo[i].src=g.p7TBimo;}
		 if(P7TabProp[2]>0){if(P7TabProp[2]==3){g.p7TBimd=g.p7TBimo;}document.P7_TBswapd[i]=new Image();
		 document.P7_TBswapd[i].src=g.p7TBimd;}}if((g=MM_findObj('P7TabH'))!=null){gg=(document.layers)?g:g.style;
		 gg.visibility="hidden";}if(dt&&P7TabProp[3]!='none'&&!window.opera){
		 g=document.getElementsByTagName("A");for(i=0;i<g.length;i++){if(g[i].hasChildNodes()){el=g[i].firstChild;
		 while (el){if(el.nodeType==3){gg=el.nodeValue;if(P7TabProp[3]==gg.replace("\n","")){
		 g[i].className=P7TabProp[4];break;}}el=el.firstChild;}}}}document.P7TabBar=true;
		}
		
		
	// trigger layer	
		function P7_trigMM2(bu){ //v2.0 by PVII
		 if(!document.P7TabBar){return;}var i,g,d,dB=-1,tF=false,sF=false;
		 for(i=0;i<P7TabSB.length;i++){sF=false;if((g=MM_findObj(P7TabSB[i]))!=null){g=MM_findObj(P7TabSB[i]);
		 gg=(document.layers)?g:g.style;sF=true;}d=MM_findObj(P7TabIM[i]);if(P7TabIM[i]==P7TabProp[0]){
		 dB=i;}if(P7TabIM[i]==bu){tF=true;if(sF){gg.visibility="visible";}if(P7TabProp[2]>0){
		 if(i==dB){d.src=d.p7TBimd;}else if (P7TabProp[2]>1){d.src=d.p7TBimo;}}if((g=MM_findObj('P7TabH'))!=null){
		 gg=(document.layers)?g:g.style;gg.visibility="visible";}}else{if(sF){gg.visibility="hidden";}
		 if(P7TabProp[2]>0){d.src=d.p7TBim;}}}if(!tF){if(dB>-1){d=MM_findObj(P7TabIM[dB]);
		 if((g=MM_findObj(P7TabSB[dB]))!=null&&P7TabProp[1]==0){gg=(document.layers)?g:g.style;
		 gg.visibility="visible";}if(P7TabProp[2]>0){d.src=d.p7TBimd;}}
		 if((g=MM_findObj('P7TabH'))!=null){gg=(document.layers)?g:g.style;gg.visibility="hidden";}}
		}	
		
	// Snap DHTML Layer to HTML Object
		function P7_Snap() { //v2.63 by PVII
		 var x,y,ox,bx,oy,p,tx,a,b,k,d,da,e,el,tw,q0,xx,yy,w1,pa='px',args=P7_Snap.arguments;a=parseInt(a);
		 if(document.layers||window.opera){pa='';}for(k=0;k<(args.length);k+=4){
		 if((g=MM_findObj(args[k]))!=null){if((el=MM_findObj(args[k+1]))!=null){
		 a=parseInt(args[k+2]);b=parseInt(args[k+3]);x=0;y=0;ox=0;oy=0;p="";tx=1;
		 da="document.all['"+args[k]+"']";if(document.getElementById){
		 d="document.getElementsByName('"+args[k]+"')[0]";if(!eval(d)){
		 d="document.getElementById('"+args[k]+"')";if(!eval(d)){d=da;}}
		 }else if(document.all){d=da;}if(document.all||document.getElementById){while(tx==1){
		 p+=".offsetParent";if(eval(d+p)){x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));
		 }else{tx=0;}}ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);tw=x+ox+y+oy;
		 if(tw==0||(navigator.appVersion.indexOf("MSIE 4")>-1&&navigator.appVersion.indexOf("Mac")>-1)){
		  ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top);}else{
		  w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10;a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b;
		  x=document.body.scrollLeft+event.clientX+bx;y=document.body.scrollTop+event.clientY;}}
		 }else if(document.layers){x=g.x;y=g.y;q0=document.layers,dd="";for(var s=0;s<q0.length;s++){
		  dd='document.'+q0[s].name;if(eval(dd+'.document.'+args[k])){x+=eval(dd+'.left');y+=eval(dd+'.top');
		  break;}}}e=(document.layers)?el:el.style;xx=parseInt(x+ox+a),yy=parseInt(y+oy+b);
		 if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){
		  xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin);}
		 e.left=xx+pa;e.top=yy+pa;}}}
		}		
	
	
		/* Page Loading Function
		<!-- THREE STEPS TO INSTALL PRELOAD PAGE:
		  1.  Copy the coding into the HEAD of your HTML document
		  2.  Add the onLoad event handler into the BODY tag
		  3.  Put the last coding into the BODY of your HTML document  -->

		  STEP ONE: Paste this code into the HEAD of your HTML document
			<SCRIPT LANGUAGE="JavaScript">
			<!-- Original:  Kevin Eskew -->
			
			<!-- This script and many more are available free online at -->
			<!-- The JavaScript Source!! http://javascript.internet.com -->
			
			<!-- Begin
				function PageLoader() {
				if (document.getElementById) {  // DOM3 = IE5, NS6 document.getElementById('PageLoadingMsg').style.visibility = 'hidden'; } else { if (document.layers) {  // Netscape 4 document.PageLoadingMsg.visibility = 'hidden'; } else {  // IE 4 document.all.PageLoadingMsg.style.visibility = 'hidden';
				      }
				   }
				}
			//  End -->
			</script>

		<!-- STEP TWO: Insert the onLoad event handler into your BODY tag (If using the 'AdditionalBodyTags' variable, set the var using the following: <cfset VARIABLES.AdditionalBodyTags='OnLoad="PageLoader();"'>   -->
			<BODY OnLoad="PageLoader()">

		<!-- STEP THREE: Copy this code into the BODY of your HTML document  -->
			<div id="PageLoadingMsg" style="position: absolute; left:5px; top:5px;
			background-color: #FFFFCC; layer-background-color: #FFFFCC; height: 100%; width: 100%;"> 
			
			<table width=100%><tr><td>Page loading ... Please wait.</td></tr></table></div> 
	*/
		function PageLoader() 
		{
			// Preload image used in loading message
				//Image1= new Image(32,32) //width,height
				//Image1.src = "#VARIABLES.DirLevel#images/ProcessingWheel.gif"
			
			if (document.getElementById) 
			{  	
				// DOM3 = IE5, NS6
					var DivObj = document.getElementById('PageLoadingMsg');
					var DivObj2 = document.getElementById('PageContent');
					// Determine if page loading message is already being displayed
						if(DivObj.style.display != "block")
						{
							DivObj.style.display = "block";
							DivObj2.style.display = "none";
						}
						else
						{
							DivObj.style.display = "none";
							DivObj2.style.display = "block";
						}
			}
			else 
			{
				if (document.layers) 
				{  
					// Netscape 4
						var DivObj = 'document.PageLoadingMsg';
						var DivObj2 = 'document.PageContent';
						// Determine if page loading message is already being displayed
							if(DivObj.style.display != "block")
							{
								DivObj.style.display = "block";
								DivObj2.style.display = "none";
							}
							else
							{
								DivObj.style.display = "none";
								DivObj2.style.display = "block";
							}
				}
				else 
				{  
					// IE 4
						var DivObj = 'PageLoadingMsg';
						var DivObj2 = 'document.PageContent';
						// Determine if page loading message is already being displayed
							if(DivObj.style.display != "block")
							{
								DivObj.style.display = "block";
								DivObj2.style.display = "none";
							}
							else
							{
								DivObj.style.display = "none";
								DivObj2.style.display = "block";
							}
			    }
			}
		}
		
	/* LayerMngmnt Function 
		<!-- TWo STEPS TO INSTALL LayerMngmnt:
		  1.  Copy the coding into the HEAD of your HTML document
		  2.  Add the onClick event handler into the submit button  -->

		  STEP ONE: Paste this code into the HEAD of your HTML document
			<SCRIPT LANGUAGE="JavaScript">
			<!-- Original:  Kevin Eskew -->
			
			<!-- Begin
				function LayerMngmnt(LayerName,VisibiltyStatus) {
				if (document.getElementById) // DOM3 = IE5, NS6	{ document.getElementById(LayerName).style.visibility = VisibiltyStatus;}else {if (document.layers) // Netscape 4{ document.LayerName.visibility = VisibiltyStatus;}else // IE 4 { document.all.LayerName.style.visibility = VisibiltyStatus;
			      	  }
			       }		
				}	
			//  End -->
			</script>

		<!-- STEP TWO: Insert the onLoad event handler into your BODY tag (If using the 'AdditionalBodyTags' variable, set the var using the following: <cfset VARIABLES.AdditionalBodyTags='OnLoad="loadImages();"'>   -->
			<input type="button" name="submit" value="Submit" onclick="JavaScript: LayerMngmnt('LayerName','VisibiltyStatus');">
	
	*/	
		
		function LayerMngmnt(LayerName,VisibiltyStatus) 
		{
			if (document.getElementById) // DOM3 = IE5, NS6
				{  
					document.getElementById(LayerName).style.visibility = VisibiltyStatus;
				}
			else 
				{
					if (document.layers) // Netscape 4
						{  
							document.LayerName.visibility = VisibiltyStatus;
						}
					else // IE 4
						{  
							document.all.LayerName.style.visibility = VisibiltyStatus;
			      		}
			    }		
		}	
		
		
	//Opens Custom Pop-Up Window in Center of User's Screen
	/*  To implement this JavaScript, simply cut/paste the following code into your form and enter the desired values for the stated variables 
	    <a href="JavaScript:NewWindow('url','windowname','w','h','scroll','resizable','location','status','menubar','toolbar');">Text or Image Link</a> */
		function NewWindow(url,windowname,w,h,scroll,resizable,location,status,menubar,toolbar){
		  var winl = (screen.width-w)/2;
		  var wint = (screen.height-h)/2;
		  var settings  ='height='+h+',';
		      settings +='width='+w+',';
		      settings +='top='+wint+',';
		      settings +='left='+winl+',';
		      settings +='scrollbars='+scroll+',';
		      settings +='resizable='+resizable+',';
		      settings +='location='+location+',';
		      settings +='status='+status+',';
		      settings +='menubar='+menubar+',';
		      settings +='toolbar='+toolbar+',';
		  win=window.open(url,windowname,settings);
		  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
		}
		
	// Submit Form Data to Pop-Up
		/* 	
			Add the following to your <FORM> tag:
			ONSUBMIT="SubmitToPopUp(this, 'width=300,height=300,resizable=1,scrollbars=1'); return true;" target="PopUp"
			
		*/

		function SubmitToPopUp(FormName,PopUpProperties,PopUpName) {
		  if (!PopUpName)
		    PopUpName = 'formTarget' + (new Date().getTime());
		  	FormName.target = PopUpName;
		  	open ('', PopUpName, PopUpProperties);
		}
		
	//Update Parent Window and Close Pop-up Window
	/* Sample Usage: onClick="return UpdateParentClosePopup('Enter Redirect URL Here');" */
		function UpdateParentClosePopup(RedirectURL)
			{
			opener.location.href=RedirectURL;
			close();	
			}
			
	// Checkbox Changer
			// This script checks and unchecks boxes on a form
			// Checks and unchecks unlimited number in the group...
			// Pass the Checkbox group name...
			// call buttons as so:
			// <input type=button name="CheckAll"   value="Check All" onClick="checkAll(document.myform.list)">
			// <input type=button name="UnCheckAll" value="Uncheck All" onClick="uncheckAll(document.myform.list)">


			function checkAll(field)
			{
			for (i = 0; i < field.length; i++)
				field[i].checked = true ;
			}
			
			function uncheckAll(field)
			{
			for (i = 0; i < field.length; i++)
				field[i].checked = false ;
			}
	
			
	// Confirms User Action
	/* Sample Usage: onClick="return ConfirmAction('Enter Confirmation Text Here');" */
		function ConfirmAction(ConfirmationTxt)
		{
		if (confirm(ConfirmationTxt))
		{return true;}  
		else
		return false;
		}
		
	// Alerts User
	/* Sample Usage: onClick="return Alert('Enter Alert Text Here');" */
		function Alert(AlertTxt)
		{
			alert(AlertTxt)
		}

	// Display Current Date (User's System Date)
        function DisplayDate()
		{
		months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
        now = new Date();
        year = now.getYear();
        if(year < 100) 
			{ year = year + 2000; } 
		else 
			{ if(year >= 100 && year < 2000) { year = year + 1900; } }
        document.write(months[now.getMonth()] + " " + now.getDate() + ", " + year);	
		}
		
	//Prevents user from leaving pop-up in background and not being able to use the link
		window.focus();

	//Preload 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];}}
		}

	//Restore images
		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;
		}

	//Find Document Images and put into array
		function MM_findObj(n, d) { //v4.0
		  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 && document.getElementById) x=document.getElementById(n); return x;
		}	

	//Swap images
		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];}
		}
		
	// JavaScript providing a way in which to provide the end user with a customizable help window
		/*  
		To implement this JavaScript, simply cut/paste the following code into your form and enter the desired values for the stated variables 
		
		Help window w/form input:
			<a onMouseOver="window.status='Click for explanation...';return true;" onMouseOut="window.status='';return true;" href="javascript:HelpInput('FormFieldName???', 'opener.document.FormName???.FieldName???.value', 'HelpMessage???','InputType???','InputSize???','WindowWidth???','WindowHeight???','scroll???','resizable???','location???','status???','menubar???','toolbar???');">Help?</a>
		Help window w/o form input:
			<a onMouseOver="window.status='Click for explanation...';return true;" onMouseOut="window.status='';return true;" href="javascript:HelpNoInput('FormFieldName???','HelpMessage???','WindowWidth???','WindowHeight???','scroll???','resizable???','location???','status???','menubar???','toolbar???');">Help?</a>

		::: Example Usage :::
			<form name="FormName" Action="" Method="Post">
				<input type="text" name="FieldName" size="30" value="FieldName">
				<font face="Arial" size="1">
				Help window w/form input:
					<a onMouseOver="window.status='Click for explanation...';return true;" onMouseOut="window.status='';return true;" href="javascript:HelpInput('FieldName', 'opener.document.FormName.FieldName.value', 'Help Message.','text','30','250','400','yes','yes','no','no','no','yes');">Help?</a>
				Help window w/o form input:
					<a onMouseOver="window.status='Click for explanation...';return true;" onMouseOut="window.status='';return true;" href="javascript:HelpNoInput('FieldName','Help Message.','350','500','yes','yes','no','no','no','yes');">Help?</a>
			</form> 
		*/

		// Opens custom help window with form input built-in
			function HelpInput(FieldName,FieldLocation,HelpMsg,InputType,Size,w,h,scroll,resizable,location,status,menubar,toolbar){
					  var winl = (screen.width-w)/2;
					  var wint = (screen.height-h)/2;
					  var settings  ='height='+h+',';
					      settings +='width='+w+',';
					      settings +='top='+wint+',';
					      settings +='left='+winl+',';
					      settings +='scrollbars='+scroll+',';
					      settings +='resizable='+resizable+',';
					      settings +='location='+location+',';
					      settings +='status='+status+',';
					      settings +='menubar='+menubar+',';
					      settings +='toolbar='+toolbar+',';
			newwin = window.open('','FieldName',settings);
			if (!newwin.opener) newwin.opener = self;
			with (newwin.document)
			{
			open();
			write('<html><head><title>'+FieldName+'</title></head>');
			write('<body onLoad="document.form.box.focus()"><form name=form><font face="Arial" size="2"><b>'+FieldName+'</b><br>' + HelpMsg + '<br>');
			write('<p>You may enter your ' + FieldName + ' here and it will be copied into the form for you.');
			write('<p><center>' + FieldName + ':<br><input type='+InputType+' name=box size='+Size+' onKeyUp=' + FieldLocation + '=this.value>');
			write('<p><input type="button" border="0" value="Close" onClick=window.close()>');
			write('</center></form></font></body></html>');
			close();
			   }
			}
		
		// Opens custom help window without form input
			function HelpNoInput(FieldName,HelpMsg,w,h,scroll,resizable,location,status,menubar,toolbar){
					  var winl = (screen.width-w)/2;
					  var wint = (screen.height-h)/2;
					  var settings  ='height='+h+',';
					      settings +='width='+w+',';
					      settings +='top='+wint+',';
					      settings +='left='+winl+',';
					      settings +='scrollbars='+scroll+',';
					      settings +='resizable='+resizable+',';
					      settings +='location='+location+',';
					      settings +='status='+status+',';
					      settings +='menubar='+menubar+',';
					      settings +='toolbar='+toolbar+',';
			newwin = window.open('','FieldName',settings);
			if (!newwin.opener) newwin.opener = self;
			with (newwin.document)
			{
			open();
			write('<html><head><title>'+FieldName+'</title></head>');
			write('<body><form><font face="Arial" size="2"><b>'+FieldName+'</b><br>' + HelpMsg + '<br>');
			
			write('<p><center><input type="button" border="0" value="Close" onClick=window.close()>');
			write('</center></form></font></body></html>');
			close();
			   }
			}
		
		//Prevents "ENTER" Key From Submitting Form
		/*
		To implement, place this code in your form that you wish to disable the "ENTER" Key:
		
		<SCRIPT LANGUAGE="JavaScript">
			<!-- Begin
				document.onkeypress = onKeyPress;
			//  End -->
		</script>
		
		*/
			function onKeyPress () {
			var keycode;
			if (window.event) keycode = window.event.keyCode;
			else if (e) keycode = e.which;
			else return true;
			if (keycode == 13) {
			alert("Please click on the appropriate button to submit this form.");
			return false
			}
			return true 
			}	
			
		// Drop-Down Link Menu
		/*
			To use, paste this form into your document:
				<form name="form">
					<select name="site" size=1>
						<option value="">Go to....
						<option value="Link???">Menu Text???
					</select>
					<input type=button value="Go!" onClick="javascript:formHandler(this)">
				</form>
		*/	
			function formHandler(form){
			var URL = document.form.site.options[document.form.site.selectedIndex].value;
			window.location.href = URL;
			}		
						
		// Disables input fields based on user's current input
			//	onClick="document.FormName???.FormField???.disabled=document.FormName???.FormField???.readOnly = !this.checked;"
			
				
		// Check for Flash and write browser plugin appropriate code
		/* Example Usage:
			<script language="JavaScript">
				<!-- //
					FlashCheck('4','<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=6,0,0,0" WIDTH="341" HEIGHT="288" id="ToughQuestions" ALIGN=""> <PARAM NAME=movie VALUE="ToughQuestions.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=##FFFFFF> <EMBED src="ToughQuestions.swf" quality=high bgcolor=##FFFFFF  WIDTH="341" HEIGHT="288" NAME="ToughQuestions" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>','<img src="#VARIABLES.DirLevel#images/BannerAds/341x288_ToughCompQuestions.jpg" alt="" width="341" height="288" border="0">');
				// -->
			</script>
		*/		
			function FlashCheck(FlashVer,FlashCode,NonFlashCode)
				{
					if ((navigator.appName == "Microsoft Internet Explorer" &&
					    navigator.appVersion.indexOf("Mac") == -1 && 
					    navigator.appVersion.indexOf("3.1") == -1) ||
					    (navigator.plugins && navigator.plugins["Shockwave Flash"]) || 
						navigator.plugins["Shockwave Flash" + FlashVer])
						{
						// Insert Flash Object Tag
							document.write(FlashCode);
						}
				   else {
						// Insert Image Tag
							document.write(NonFlashCode);
						}
				}	
		
		// Checks to see if COOKIES are enabled on user's browser
		/* Example Usage:	
			<script language="JavaScript">
				<!-- //
					CookieCheck();
				// -->
			</script>
		*/		
			function CookieCheck()
				{				
					var cookieName = 'testCookie' + (new Date().getTime());
					document.cookie = cookieName + '=cookieValue';
					var cookiesEnabled = document.cookie.indexOf(cookieName) != -1;
					
					if (cookiesEnabled){  
						alert("Cookies are enabled");
						}
					else{  
						alert("Cookies are NOT enabled");
						//window.location.href="#VARIABLES.DirLevel##VARIABLES.SELF#?FuseAction=CustomErrorDisplay.CookiesDisabled";
						}	
				}		
	// return the value of the selected option from a drop-down menu
	//	getSelectedValue('country','Index')
		function getSelectedValue(DropDownObj,RetunValue) {
			var dropdownIndex = document.getElementById(DropDownObj).selectedIndex;
			var dropdownValue = document.getElementById(DropDownObj)[dropdownIndex].value;
			if (RetunValue != 'Index'){
				return dropdownIndex;
			}
			else{
				return dropdownValue;
			}
		}			
						
	// return the value of the radio button that is checked
		// return an empty string if none are checked, or
		// there are no radio buttons
			function getCheckedValue(radioObj) {
				if(!radioObj)
					return "";
				var radioLength = radioObj.length;
				if(radioLength == undefined)
					if(radioObj.checked)
						return radioObj.value;
					else
						return "";
				for(var i = 0; i < radioLength; i++) {
					if(radioObj[i].checked) {
						return radioObj[i].value;
					}
				}
				return "";
			}
			
													
	// Expand or Contract Objects - Block
		function ExpandContract(obj)
		{
		// Expand/Contract Object	
			var el = document.getElementById(obj);
			if(el.style.display != "block")
			{
				el.style.display = "block";
			}
			else
			{
				el.style.display = "none";
			}
		}
		
	// Expand Objects - Block
		function Expand(obj)
		{
		// Expand Object	
			var el = document.getElementById(obj);
			el.style.display = "block";
		}
		
	// Contract Objects - Block
		function Contract(obj)
		{
		// Contract Object	
			var el = document.getElementById(obj);
			el.style.display = "none";
		}		
		
	// Expand/Contract Objects - Inline	
		function ExpandContractInline(ExpandObj,ContractObj)
		{
		// Expand/Contract Objects
			var Obj1 = document.getElementById(ExpandObj);
			var Obj2 = document.getElementById(ContractObj);
			Obj1.style.display = "inline";
			Obj2.style.display = "none";
		}
		
	// Covert to Currency Format	
			function formatCurrency(num) {
				num = num.toString().replace(/\$|\,/g,'');
				if(isNaN(num))
				num = "0";
				sign = (num == (num = Math.abs(num)));
				num = Math.floor(num*100+0.50000000001);
				cents = num%100;
				num = Math.floor(num/100).toString();
				if(cents<10)
				cents = "0" + cents;
				for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
				num = num.substring(0,num.length-(4*i+3))+','+
				num.substring(num.length-(4*i+3));
				return (((sign)?'':'-') + '$' + num + '.' + cents);
				}	
				
				
	/////////////////////////////////////////////////////////////////////////
	/* Pop Under */////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////	
		/*
			LaunchPopUnder(URL,width,height,OncePerSession)
			
			URL					URL of pop under
			width				Width of pop under
			height				Height of pop under
			OncePerSession		Determines whehter pop under will be displayed once or mulitple times per session
								Specifying 1 will cause it to load only once per session.
								Putting 0 will cause the Popunder to load every time page is loaded.
		
		*/
		
		function LaunchPopUnder(URL,width,height,OncePerSession) {
			// Specify Pop Under Window Parameters
				var winParameters = 'scrollbars=no,resizable=yes,toolbar=no,menubar=no,status=no,location=yes,left=85,top=20,height=' +  height + ',width=' + width;
			// Determine if pop under to be loaded once per session
				if (OncePerSession==0){
					loadPopUnder(URL,width,height,winParameters)
				}
				else{
					determineLoadPopUnder(URL,width,height,winParameters)
				}
		}
		
		function loadPopUnder(URL,width,height,winParameters){
			win2=window.open(URL,"pu",winParameters);
			try {
				win2.blur();
				window.focus();
			} 
			catch(e) {}
		}
		
		function determineLoadPopUnder(URL,width,height,winParameters){
			if (getPopUnderCookie('popunder')==''){
				loadPopUnder(URL,width,height,winParameters);
				document.cookie="popunder=yes";
			}
		}
			
		function getPopUnderCookie(Name){
			var search = Name + "="
			var returnvalue = "";
			if (document.cookie.length > 0) {
				offset = document.cookie.indexOf(search)
				if (offset != -1) {
		 			offset += search.length
		 			end = document.cookie.indexOf(";", offset);
					if (end == -1){
		    			end = document.cookie.length;
		    			returnvalue=unescape(document.cookie.substring(offset, end));
					}
		 		}
			}
			return returnvalue;
		}								
// End hiding script from old browsers -->