function doTrack1(sPage){
	var xmlHttp;
	try
	{
	// Firefox, Opera 8.0+, Safari
	xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
	// Internet Explorer
	try
	  {
	  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	  }
	catch (e)
	  {
	  try
		{
		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	  catch (e)
		{     
		//alert("Your browser does not support AJAX!");
		return false;
		}
	  }
	}
	xmlHttp.onreadystatechange=function()
	  {
	  if(xmlHttp.readyState==4)
		{
		//document.myForm.time.value=xmlHttp.responseText;
		}
	  }
	xmlHttp.open("GET","track.asp?i=eec_g_1_"+sPage,true);
	xmlHttp.send(null);
}
function fIHS_1validate(aIHSargs){
	var oIHSthisPage=document.getElementById(fIHS_1validate.arguments[0]);
	var oIHSnextPage=document.getElementById(fIHS_1validate.arguments[1]);
	var sIHSthisPage=fIHS_1validate.arguments[0];
	var iIHSthisPage=Number(sIHSthisPage.charAt(sIHSthisPage.length - 1));
	var oIHSform=document.fIHS_1entry;
	var sIHSnextPage=fIHS_1validate.arguments[1];
	var iIHSnextPage=Number(sIHSnextPage.substring(6,sIHSnextPage.length));
	doTrack1(iIHSnextPage);
	switch (iIHSthisPage){
		case 1:
			oIHSthisPage.style.display='none';
			oIHSnextPage.style.display='block';
			break;
		case 2:
			for (var i=0; i<oIHSform.elements.length; i++){
				if (oIHSform.elements[i].name == 'nIHS_1p2'){
					if (oIHSform.elements[i].value == '0'){
						alert("Please make a selection from the list.");
						return false;
					}else{
						var sIHS_12=oIHSform.elements[i].value;
					}
				}
			}
			oIHSinsert=document.getElementById('iIHS_15-1');
			oIHSinsert.innerHTML = sIHS_12;
			oIHSinsert=document.getElementById('iIHS_16-1');
			oIHSinsert.innerHTML = sIHS_12;
			oIHSthisPage.style.display='none';
			oIHSnextPage.style.display='block';
			break;
		case 3:
			for (var i=0; i<oIHSform.elements.length; i++){
				if (oIHSform.elements[i].name == 'nIHS_1p3'){
					if (oIHSform.elements[i].value == '0'){
						alert("Please make a selection from the list.");
						return false;
					}else{
						var sIHS_13=oIHSform.elements[i].value;
					}
				}
			}
			oIHSinsert=document.getElementById('iIHS_15-2');
			oIHSinsert.innerHTML = sIHS_13;
			oIHSinsert=document.getElementById('iIHS_16-2');
			oIHSinsert.innerHTML = sIHS_13;
			oIHSthisPage.style.display='none';
			oIHSnextPage.style.display='block';
			break;
		case 4:
			for (var i=0; i<oIHSform.elements.length; i++){
				if (oIHSform.elements[i].name == 'nIHS_1p4'){
					if (oIHSform.elements[i].value == '0'){
						alert("Please make a selection from the list.");
						return false;
					}else{
						var sIHS_14=oIHSform.elements[i].value;
					}
				}
			}
			oIHSinsert=document.getElementById('iIHS_15-3');
			oIHSinsert.innerHTML = sIHS_14;
			oIHSinsert=document.getElementById('iIHS_16-3');
			oIHSinsert.innerHTML = sIHS_14;
			oIHSthisPage.style.display='none';
			oIHSnextPage.style.display='block';
		case 5:
			oIHSthisPage.style.display='none';
			oIHSnextPage.style.display='block';
			break;
	}
}
var sIHSt="<table height=200 width=320 cellpadding=25 cellspacing=0 border=0 background=<%=session("strLocation")%>images/identify_an_emotional_eating_pattern_blank.jpg>";
sIHSt=sIHSt+"	<tr>";
sIHSt=sIHSt+"		<td valign=top class=IHS_1_system>";
var sIHStableOpen=sIHSt;
sIHSt="			</td>";
sIHSt=sIHSt+"	</tr>";
sIHSt=sIHSt+"</table>";
var sIHStableClose=sIHSt;
document.writeln("<style type='text/css'>");
document.writeln(" .IHS_1_system {font-family: arial; font-size:14px; color: #ffffff; text-decoration: none; font-weight: bold;}");
document.writeln(" .IHS_1_client {font-family: arial; font-size:12px; color: #ffffff; text-decoration: none; font-weight: bold;}");
document.writeln(" .IHS_1_list {font-family: arial; font-size:12px; color: #000000; text-decoration: none; font-weight: bold;}");
document.writeln(" .IHS_1_white {font-family: arial; font-size:12px; color: #ffffff; text-decoration: none; font-weight: bold;}");
document.writeln(" .IHS_1_link {COLOR: #ffffff; FONT-FAMILY: arial; FONT-SIZE: 12px; FONT-WEIGHT: bold; TEXT-DECORATION: none;}");
document.writeln(" a.IHS_1_link:hover {COLOR: #ffffff; FONT-FAMILY: arial; FONT-SIZE: 12px; FONT-WEIGHT:bold; TEXT-DECORATION:underline;}");
document.writeln("</style>");
document.writeln("<form name='fIHS_1entry'>");
//1
document.writeln("<div id='iIHS_11' style='display:block'>");
document.writeln("<table height=200 width=320 cellpadding=30 cellspacing=0 border=0 background=<%=session("strLocation")%>images/identify_an_emotional_eating_pattern_start.jpg>");
document.writeln("<tr>");
document.writeln("<td valign=top>");
document.writeln("<img src=<%=session("strLocation")%>images/t.gif width=0 height=70 border=0 alt=''></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td valign=top align=right><span class=IHS_1_white>&gt;&gt;</span><a href='#' onClick=\u0022fIHS_1validate('iIHS_11','iIHS_12'); return false;\u0022 class=IHS_1_link>Start Now</a></td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("</div>");
//2
document.writeln("<div id='iIHS_12' style='display:none'>");
document.writeln(sIHStableOpen);
document.writeln("When do you eat too much?<br><br>");
document.writeln("<span class=IHS_1_client>I tend to eat too much, or eat the wrong kinds of foods, when I\u0027m feeling:</span><br><br>");
document.writeln("<select name=nIHS_1p2 class=IHS_1_list>");
document.writeln("<option value=0 class=IHS_1_list>Make a selection.</option>");
document.writeln("<option value=depressed class=IHS_1_list>depressed</option>");
document.writeln("<option value=frustrated class=IHS_1_list>frustrated</option>");
document.writeln("<option value=anxious class=IHS_1_list>anxious</option>");
document.writeln("<option value=angry class=IHS_1_list>angry</option>");
document.writeln("<option value=overwhelmed class=IHS_1_list>overwhelmed</option>");
document.writeln("<option value=afraid class=IHS_1_list>afraid</option>");
document.writeln("<option value=jealous class=IHS_1_list>jealous</option>");
document.writeln("<option value=lonely class=IHS_1_list>lonely</option>");
document.writeln("<option value=humiliated class=IHS_1_list>humiliated</option>");
document.writeln("<option value=guilty class=IHS_1_list>guilty</option>");
document.writeln("<option value=confused class=IHS_1_list>confused</option>");
document.writeln("<option value=bored class=IHS_1_list>bored</option>");
document.writeln("<option value=ashamed class=IHS_1_list>ashamed</option>");
document.writeln("<option value=needy class=IHS_1_list>needy</option>");
document.writeln("<option value=empty class=IHS_1_list>empty</option>");
document.writeln("</select>");
document.writeln("<br><br><br>");
document.writeln("<div align=right><span class=IHS_1_white>&gt;&gt;</span><a href='#' onClick=\u0022fIHS_1validate('iIHS_12','iIHS_13'); return false;\u0022 class=IHS_1_link>Next</a>&nbsp;</div>");
document.writeln(sIHStableClose);
document.writeln("</div>");
//3
document.writeln("<div id='iIHS_13' style='display:none'>");
document.writeln(sIHStableOpen);
document.writeln("How does eating make you feel?<br><br>");
document.writeln("<span class=IHS_1_client>When I\u0027m upset eating gives me some temporary relief by making me feel:</span><br><br>");
document.writeln("<select name=nIHS_1p3 class=IHS_1_list>");
document.writeln("<option value=0 class=IHS_1_list>Make a selection.</option>");
document.writeln("<option value=rewarded class=IHS_1_list>rewarded</option>");
document.writeln("<option value='in control' class=IHS_1_list>in control</option>");
document.writeln("<option value=confident class=IHS_1_list>confident</option>");
document.writeln("<option value=safe class=IHS_1_list>safe</option>");
document.writeln("<option value=secure class=IHS_1_list>secure</option>");
document.writeln("<option value=satisfied class=IHS_1_list>satisfied</option>");
document.writeln("<option value=content class=IHS_1_list>content</option>");
document.writeln("<option value=relaxed class=IHS_1_list>relaxed</option>");
document.writeln("<option value=calm class=IHS_1_list>calm</option>");
document.writeln("<option value=powerful class=IHS_1_list>powerful</option>");
document.writeln("<option value=independent class=IHS_1_list>independent</option>");
document.writeln("<option value=capable class=IHS_1_list>capable</option>");
document.writeln("<option value=complete class=IHS_1_list>complete</option>");
document.writeln("<option value=comfortable class=IHS_1_list>comfortable</option>");
document.writeln("<option value=nurtured class=IHS_1_list>nurtured</option>");
document.writeln("<option value='at ease' class=IHS_1_list>at ease</option>");
document.writeln("<option value=happy class=IHS_1_list>happy</option>");
document.writeln("<option value=entertained class=IHS_1_list>entertained</option>");
document.writeln("</select>");
document.writeln("<br><br><br>");
document.writeln("<div align=right><span class=IHS_1_white>&gt;&gt;</span><a href='#' onClick=\u0022fIHS_1validate('iIHS_13','iIHS_14'); return false;\u0022 class=IHS_1_link>Next</a>&nbsp;</div>");
document.writeln(sIHStableClose);
document.writeln("</div>");
//4
document.writeln("<div id='iIHS_14' style='display:none'>");
document.writeln(sIHStableOpen);
document.writeln("Later, how do you feel?<br><br>");
document.writeln("<span class=IHS_1_client>After the temporary relief I get from eating fades, I feel:</span><br><br>");
document.writeln("<select name=nIHS_1p4 class=IHS_1_list>");
document.writeln("<option value=0 class=IHS_1_list>Make a selection.</option>");
document.writeln("<option value='like a failure' class=IHS_1_list>like a failure</option>");
document.writeln("<option value=weak class=IHS_1_list>weak</option>");
document.writeln("<option value=undeserving class=IHS_1_list>undeserving</option>");
document.writeln("<option value=hopeless class=IHS_1_list>hopeless</option>");
document.writeln("<option value=incapable class=IHS_1_list>incapable</option>");
document.writeln("<option value=crushed class=IHS_1_list>crushed</option>");
document.writeln("<option value=worthless class=IHS_1_list>worthless</option>");
document.writeln("<option value=drained class=IHS_1_list>drained</option>");
document.writeln("<option value='torn apart' class=IHS_1_list>torn apart</option>");
document.writeln("<option value=helpless class=IHS_1_list>helpless</option>");
document.writeln("<option value=ugly class=IHS_1_list>ugly</option>");
document.writeln("<option value=insecure class=IHS_1_list>insecure</option>");
document.writeln("</select>");
document.writeln("<br><br><br>");
document.writeln("<div align=right><span class=IHS_1_white>&gt;&gt;</span><a href='#' onClick=\u0022fIHS_1validate('iIHS_14','iIHS_15'); return false;\u0022 class=IHS_1_link>Next</a>&nbsp;</div>");
document.writeln(sIHStableClose);
document.writeln("</div>");
//5
document.writeln("<div id='iIHS_15' style='display:none'>");
document.writeln(sIHStableOpen);
document.writeln("<span class=IHS_1_client>Here is the <font color=orange>emotional eating pattern</font> you identified. It\u0027s patterns like these that make losing weight so difficult.<br><br>");
document.writeln("When I\u0027m feeling&nbsp;<label id='iIHS_15-1'></label>, eating gives me some temporary relief by making me feel&nbsp;<label id='iIHS_15-2'></label>, but later I feel&nbsp;<label id='iIHS_15-3'></label>.<br><br></span>");
document.writeln("<div align=right><span class=IHS_1_white>&gt;&gt;</span><a href='#' onClick=\u0022fIHS_1validate('iIHS_15','iIHS_16'); return false;\u0022 class=IHS_1_link>Next</a>&nbsp;</div>");
document.writeln(sIHStableClose);
document.writeln("</div>");
//6
document.writeln("<div id='iIHS_16' style='display:none'>");
document.writeln(sIHStableOpen);
document.writeln("<span class=IHS_1_client>You’ll be able to break this pattern only after you have learned that you can deal with feeling&nbsp;<label id='iIHS_16-1'></label>&nbsp;in more productive ways than reaching for food, and that you are capable of making yourself feel&nbsp;<label id='iIHS_16-2'></label>&nbsp;in other ways than eating. If you do this, you'll not only diet more easily, you'll avoid feeling&nbsp;<label id='iIHS_16-3'></label>&nbsp;after you overeat.<br><br></span>");
document.writeln("<div align=right><span class=IHS_1_white>&gt;&gt;</span><a href=identify_an_emotional_eating_pattern_report.asp class=IHS_1_link>Learn more about this subject.</a></div>");
document.writeln(sIHStableClose);
document.writeln("</div>");
document.writeln("</form>");
