				
				
				
				//Clear Textbox--------------------------------------------------------------------------------------------
					function clearBox(id){
						
								document.getElementById(id).value='';
							
					}
				//---------------------------------------------------------------------------------------------------------
			
				//Clear Textbox--------------------------------------------------------------------------------------------
					/*
					function clearBox(id,replaceval){
						
						if(document.getElementById(id).value==replaceval)
							{
								document.getElementById(id).value='';
							}
					}
					*/
				//---------------------------------------------------------------------------------------------------------
			
				//Check All------------------------------------------------------------------------------------------------
					function checkAll(checkname, exby) {
					  for (i = 0; i < checkname.length; i++)
					  checkname[i].checked = exby.checked? true:false
					}
				//---------------------------------------------------------------------------------------------------------
			
				//Show's or Hide's a Div Based on the Value of 'actionword'------------------------------------------------
					function ChangeStatus(id,layid,actionword){
						var dropDownValue = document.getElementById(id).value;
						
						if (actionword.indexOf(dropDownValue) != -1){
							document.getElementById(layid).style.display = "block";
						}
						else {
							document.getElementById(layid).style.display = "none";
						}	
					}
				//---------------------------------------------------------------------------------------------------------
				
				//Show's or Hide's a Div Based on the Value of 'actionword'------------------------------------------------
					function ChangeStatusRadio(id,layid,actionword){
						
						
						varstr = "document.acctInfo."+id+".length";
						varstr2 = eval(varstr);
						
						for (var i=0; i < varstr2; i++)
							   {
							   varstr = "document.acctInfo."+id+"[i].checked";
							   if (eval(varstr))
								  {
								  varstr = "document.acctInfo."+id+"[i].value";
								  var rad_val = eval(varstr);
								  
								  }
							   }
						if (rad_val == "Yes")
							{
								document.getElementById(layid).style.display = "block";
							}
						else
							{
								document.getElementById(layid).style.display = "none";
							}
						
					
					}
				//---------------------------------------------------------------------------------------------------------
				
				
				
				
				
				//Makes Followup Question Visible, Changes Text of Followup Question  -------------------------------------
					function ChangeFollowUpDiv(id,layid,actionword,promptP,promptText){
							
						var dropDownValue = document.getElementById(id).value;
						if (actionword.indexOf(dropDownValue) != -1){
							document.getElementById(layid).style.display = "block";
						}
						else {
							document.getElementById(layid).style.display = "none";
						}
						
						
						//Change Prompt Text
							keyValues 		= actionword.split(",");
							promptValues 	= promptText.split(",");
							for (i=0;i<keyValues.length;i++)	//Get the key number of the selected option
								{
									textval = keyValues[i];
									if (textval.trim() == dropDownValue){
											selKey = i;
										}
								
								}
							//Use the key number to display the corresponding prompt text:
								document.getElementById(promptP).innerHTML = promptValues[selKey];
						
					}
				//--------------------------------------------------------------------------------------------------------
				
				
				//String Trimming Function -------------------------------------------------------------------------------
					String.prototype.trim = function () {
						return this.replace(/^\s*/, "").replace(/\s*$/, "");
					}
				//--------------------------------------------------------------------------------------------------------
				
				
				//Layer Visibility----------------------------------------------------------------------------------------
					function SwapLayer(layid1,layid2){
						document.getElementById(layid1).style.display = "block";
						document.getElementById(layid2).style.display = "none";
					}
					
					function HideContent(d) {
						document.getElementById(d).style.display = "none";
					}
						
					function ShowContent(d) {
						document.getElementById(d).style.display = "block";
					}
					
					function HideContent_wBGScreen(d) {
						document.getElementById(d).style.display = "none";
						document.getElementById('divScreen').style.display = "none";
					}
					function ShowContent_wBGScreen(d) {
						document.getElementById(d).style.display = "block";
						document.getElementById('divScreen').style.display = "block";
					}
					
					function ReverseDisplay(d,e) {
								if(document.getElementById(d).style.display == "none") 
									{ 
										document.getElementById(d).style.display = "block"; 
										document.getElementById(e).style.display = "none"; 
									}
								else 
									{ 
										document.getElementById(d).style.display = "none"; 
										document.getElementById(e).style.display = "block"; 
									}
					}
					
					//If a layer is on, this turns it off, if it's off, it turns it on:
					function DivOnOff(d){
						var curr_status	= document.getElementById(d).style.display;
						if (curr_status == "none")
							{
								document.getElementById(d).style.display = "block"; 
							}
						else
							{
								document.getElementById(d).style.display = "none"; 
							}
					}
					
			//--------------------------------------------------------------------------------------------------------	
				/*IN PROGRESS - slideshow.  Fade between slideshow layers. 
				
					d, e, f, g are the names of the layers to be swapped
				*/
					function StartSlideshow(d,current)
						{
							var t = setTimeout("HideLayer('" + d + "','" + current + "')",10000);
						}
					
					function HideLayer(d,current)
						{
							var numScreens = 2;

							var layername = new Array(numScreens);
							
							var next = parseInt(current) + 1;
							
							layername[0] = "Home_Banner_1";
							layername[1] = "Home_Banner_2";
							layername[2] = "Home_Banner_3";
							
							if (parseInt(current)==(numScreens - 1))
								{
									current = -1;
									var d = layername[1];
									var e = layername[0];
								}
							else
								{
									var d = layername[current]; 
									var e = layername[next]; 
								}
								
							document.getElementById(d).style.display = "none";
							document.getElementById(e).style.display = "block";
							
							current = parseInt(current) + 1;
							
							var t = setTimeout("HideLayer('" + d + "','" + current + "')",10000);
							
						}
					
					
			//--------------------------------------------------------------------------------------------------------	
				
				
			//Layer Show/Hide At Mouse Position:----------------------------------------------------------------------
				/*
				THIS CURRENTLY DOESN'T WORK IN IE
				
				*/
				
				/*
				Example Implementation:
				<div id="showWorkout" style="background: white; display: block; position: absolute; display: none; width: 100px; height: 100px;">
					Test
				</div>
				<img src="images_Page/ico_MoreInfo_Green.gif" align="right" onMouseOver="javascript:ShowContentAtMousePosition('showWorkout'); return true"  onMouseOut="javascript:HideContentAtMousePosition('showWorkout'); return true;">
				*/
			
				var cX = 0; var cY = 0;
			
				function HideContentAtMousePosition(d) 
					{
						if(d.length < 1) { return; }
						document.getElementById(d).style.display = "none";
					}
				function ShowContentAtMousePosition(d,vposition) 
					{
						if(d.length < 1) { return; }
						var dd = document.getElementById(d);
						AssignPosition(dd,vposition);
						dd.style.display = "block";
					}	

							function UpdateCursorPosition(e)
								{ 
									cX = e.pageX; 
									cY = e.pageY;
								}
							function UpdateCursorPositionDocAll(e)
								{ 
									cX = event.clientX; 
									cY = event.clientY;
								}
							if(document.all) 
								{ 
									document.onmousemove = UpdateCursorPositionDocAll; 
								}
							else 
								{ 
									document.onmousemove = UpdateCursorPosition; 
								}
							
							function AssignPosition(d,vposition) {
							d.style.left = (cX+10) + "px";
							if ((cX+10)>600)
								{
									d.style.left = (cX-550) + "px"
								}
							if (!vposition)
								{
									vposition=0;
								}
							d.style.top = (cY-vposition) + "px";
							}

							
							function HideContentTimed(d)
								{
									setTimeout("HideContent(" + d + ")",1000);		
								}
					
			//--------------------------------------------------------------------------------------------------------
				
					
					
					
