function doTrack2(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_2_"+sPage,true);
	xmlHttp.send(null);
}
function fIHS_2validate(aIHSargs){
	var oIHSthisPage=document.getElementById(fIHS_2validate.arguments[0]);
	var oIHSnextPage=document.getElementById(fIHS_2validate.arguments[1]);
	var sIHSthisPage=fIHS_2validate.arguments[0];
	var iIHSthisPage=Number(sIHSthisPage.charAt(sIHSthisPage.length - 1));
	var oIHSform=document.fIHS_2entry;
	var sIHSnextPage=fIHS_2validate.arguments[1];
	var iIHSnextPage=Number(sIHSnextPage.substring(6,sIHSnextPage.length));
	doTrack2(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_2p2'){
					if (oIHSform.elements[i].value == '0'){
						alert("Please make a selection from the list.");
						return false;
					}
				}
			}
			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_2p3'){
					if (oIHSform.elements[i].value == '0'){
						alert("Please make a selection from the list.");
						return false;
					}
				}
			}
			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_2p4'){
					if (oIHSform.elements[i].value == '0'){
						alert("Please make a selection from the list.");
						return false;
					}
				}
			}
			oIHSthisPage.style.display='none';
			oIHSnextPage.style.display='block';
			break;
		case 5:
			for (var i=0; i<oIHSform.elements.length; i++){
				if (oIHSform.elements[i].name == 'nIHS_2p5'){
					if (oIHSform.elements[i].value == '0'){
						alert("Please make a selection from the list.");
						return false;
					}
				}
			}
			oIHSthisPage.style.display='none';
			oIHSnextPage.style.display='block';
			break;
		case 6:
			for (var i=0; i<oIHSform.elements.length; i++){
				if (oIHSform.elements[i].name == 'nIHS_2p6'){
					if (oIHSform.elements[i].value == '0'){
						alert("Please make a selection from the list.");
						return false;
					}
				}
			}
			oIHSthisPage.style.display='none';
			oIHSnextPage.style.display='block';
			break;
		case 7:
			for (var i=0; i<oIHSform.elements.length; i++){
				if (oIHSform.elements[i].name == 'nIHS_2p7'){
					if (oIHSform.elements[i].value == '0'){
						alert("Please make a selection from the list.");
						return false;
					}
				}
			}
			oIHSthisPage.style.display='none';
			oIHSnextPage.style.display='block';
			break;
		case 8:
			for (var i=0; i<oIHSform.elements.length; i++){
				if (oIHSform.elements[i].name == 'nIHS_2p8'){
					if (oIHSform.elements[i].value == '0'){
						alert("Please make a selection from the list.");
						return false;
					}
				}
			}
			for (var i=0; i<oIHSform.elements.length; i++){
				if (oIHSform.elements[i].name == 'nIHS_2p2'){
					if (oIHSform.elements[i].value != '0'){
						var sIHSp2=oIHSform.elements[i].value;
					}
				}
				if (oIHSform.elements[i].name == 'nIHS_2p3'){
					if (oIHSform.elements[i].value != '0'){
						var sIHSp3=oIHSform.elements[i].value;
					}
				}
				if (oIHSform.elements[i].name == 'nIHS_2p4'){
					if (oIHSform.elements[i].value != '0'){
						var sIHSp4=oIHSform.elements[i].value;
					}
				}
				if (oIHSform.elements[i].name == 'nIHS_2p5'){
					if (oIHSform.elements[i].value != '0'){
						var sIHSp5=oIHSform.elements[i].value;
					}
				}
				if (oIHSform.elements[i].name == 'nIHS_2p6'){
					if (oIHSform.elements[i].value != '0'){
						var sIHSp6=oIHSform.elements[i].value;
					}
				}
				if (oIHSform.elements[i].name == 'nIHS_2p7'){
					if (oIHSform.elements[i].value != '0'){
						var sIHSp7=oIHSform.elements[i].value;
					}
				}
				if (oIHSform.elements[i].name == 'nIHS_2p8'){
					if (oIHSform.elements[i].value != '0'){
						var sIHSp8=oIHSform.elements[i].value;
					}
				}
			}
			var t="";
			var i=0;
			if(sIHSp2 == "quickly") i++;
			if(sIHSp3 == "I crave certain comfort foods") i++;
			if(sIHSp4 == "I often eat more than I need to") i++;
			if(sIHSp5 == "I sometimes feel guilty") i++;
			if(sIHSp6 == "I have trouble leaving food on my plate") i++;
			if(sIHSp7 == "I sometimes get tempted to eat") i++;
			if(sIHSp8 == "I sometimes get tempted to eat") i++;
			var sIHSt="<style type='text/css'>";
			sIHSt=sIHSt+" .IHS_2_system {font-family: arial; font-size:12px; color: #000000; text-decoration: none; font-weight: bold;}";
			sIHSt=sIHSt+" .IHS_2_client {font-family: arial; font-size:12px; color: #000000; text-decoration: none; font-weight: bold;}";
			sIHSt=sIHSt+" .IHS_2_black {font-family: arial; font-size:12px; color: #000000; text-decoration: none; font-weight: bold;}";
			sIHSt=sIHSt+" .IHS_2_link {COLOR: #000000; FONT-FAMILY: arial; FONT-SIZE: 12px; FONT-WEIGHT: bold; TEXT-DECORATION: none;}";
			sIHSt=sIHSt+" a.IHS_2_link:hover {COLOR: #000000; FONT-FAMILY: arial; FONT-SIZE: 12px; FONT-WEIGHT:bold; TEXT-DECORATION:underline;}";
			sIHSt=sIHSt+"</style>";
			sIHSt=sIHSt+"</head>";
			sIHSt=sIHSt+"<table height=200 width=320 cellpadding=30 cellspacing=0 border=0 background=<%=session("strLocation")%>images/why_do_i_break_my_diets_blank.gif>";
			sIHSt=sIHSt+" <tr>";
			sIHSt=sIHSt+"  <td class=IHS_2_client>";
			if(i==0){
				t="<br>From your answers, it doesn't seem like you're an emotional eater.<br><br>";
				t=t+"However, this is a short quiz. If you think you break your diets because of emotional eating, feel free to read some of the articles or use other tools on our site to really be sure you're not struggling with emotional eating.<br><br>";
			}else{
				t="Emotional eating is probably the reason you break your diets because you experience " + i + " of the common symptoms.<br><br>";
				t=t+"When you are an emotional eater, you use food to control your emotions, and at the time, it feels more important than eating sensibly. Start breaking this habit by identifying catching yourself and pausing before you eat.<br><br>";
			}
			sIHSt=sIHSt+t;
			sIHSt=sIHSt+"   <div align=right><span class=IHS_2_black>&gt;&gt;</span><a href=why_do_i_break_my_diets_report.asp class=IHS_2_link>Learn more about emotional eating.</a></div>";
			sIHSt=sIHSt+"  </td>";
			sIHSt=sIHSt+" </tr>";
			sIHSt=sIHSt+"</table>";
			oIHSthisPage.style.display='none';
			oIHSnextPage.innerHTML = sIHSt;
			oIHSnextPage.style.display='block';
	}
}
var sIHSt="<table height=200 width=320 cellpadding=30 cellspacing=0 border=0 background=<%=session("strLocation")%>images/why_do_i_break_my_diets_blank.gif>";
sIHSt=sIHSt+"	<tr>";
sIHSt=sIHSt+"		<td valign=top class=IHS_2_system>";
var sIHStableOpen=sIHSt;
sIHSt="			</td>";
sIHSt=sIHSt+"	</tr>";
sIHSt=sIHSt+"</table>";
var sIHStableClose=sIHSt;
document.writeln("<style type='text/css'>");
document.writeln(" .IHS_2_system {font-family: arial; font-size:14px; color: #000000; text-decoration: none; font-weight: bold;}");
document.writeln(" .IHS_2_client {font-family: arial; font-size:12px; color: #000000; text-decoration: none; font-weight: bold;}");
document.writeln(" .IHS_2_list {font-family: arial; font-size:12px; color: #000000; text-decoration: none; font-weight: bold;}");
document.writeln(" .IHS_2_black {font-family: arial; font-size:14px; color: #000000; text-decoration: none; font-weight: bold;}");
document.writeln(" .IHS_2_blackLink {COLOR: #000000; FONT-FAMILY: arial; FONT-SIZE: 12px; FONT-WEIGHT: bold; TEXT-DECORATION: none;}");
document.writeln(" a.IHS_2_blackLink:hover {COLOR: #000000; FONT-FAMILY: arial; FONT-SIZE: 12px; FONT-WEIGHT:bold; TEXT-DECORATION:underline;}");
document.writeln(" .IHS_2_link {COLOR: #000000; FONT-FAMILY: arial; FONT-SIZE: 12px; FONT-WEIGHT: bold; TEXT-DECORATION: none;}");
document.writeln(" a.IHS_2_link:hover {COLOR: #000000; FONT-FAMILY: arial; FONT-SIZE: 12px; FONT-WEIGHT:bold; TEXT-DECORATION:underline;}");
document.writeln("</style>");
document.writeln("<form name='fIHS_2entry'>");
//1
document.writeln("<div id='iIHS_21' style='display:block'>");
document.writeln("<table height=200 width=320 cellpadding=30 cellspacing=0 border=0 background=<%=session("strLocation")%>images/why_do_i_break_my_diets_start.gif>");
document.writeln("<tr>");
document.writeln("<td valign=top class=IHS_2_system>");
document.writeln("<img src=<%=session("strLocation")%>images/t.gif width=0 height=80 border=0 alt=''></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td valign=top align=center class=IHS_2_system><span class=IHS_2_black>&gt;&gt;</span><a href='#' onClick=\u0022fIHS_2validate('iIHS_21','iIHS_22'); return false;\u0022 class=IHS_2_blackLink>CLICK HERE TO FIND OUT WHY!</a><span class=IHS_2_black>&lt;&lt;</span></td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("</div>");
//2
document.writeln("<div id='iIHS_22' style='display:none'>");
document.writeln(sIHStableOpen);
document.writeln("<br>");
document.writeln("How does your hunger start, when you are tempted to break your diet?<br><br>");
document.writeln("<span class=IHS_2_client>My hunger starts:</span><br><br>");
document.writeln("<select name=nIHS_2p2 class=IHS_2_list>");
document.writeln("<option value=0 class=IHS_2_list>Make a selection.</option>");
document.writeln("<option value=quickly class=IHS_2_list>quickly</option>");
document.writeln("<option value=slowly class=IHS_2_list>slowly</option>");
document.writeln("</select>");
document.writeln("<br><br>");
document.writeln("<div align=right>&gt;&gt;<a href='#' onClick=\u0022fIHS_2validate('iIHS_22','iIHS_23'); return false;\u0022 class=IHS_2_link>Next</a>&nbsp;</div>");
document.writeln(sIHStableClose);
document.writeln("</div>");
//3
document.writeln("<div id='iIHS_23' style='display:none'>");
document.writeln(sIHStableOpen);
document.writeln("<br>");
document.writeln("What are you tempted to eat when you are about to break your diet?<br><br>");
document.writeln("<span class=IHS_2_client>When I'm tempted to break my diet,</span><br><br>");
document.writeln("<select name=nIHS_2p3 class=IHS_2_list>");
document.writeln("<option value=0 class=IHS_2_list>Make a selection.</option>");
document.writeln("<option value='I crave certain comfort foods' class=IHS_2_list>I crave certain comfort foods</option>");
document.writeln("<option value='any food will satisfy my hunger' class=IHS_2_list>any food will satisfy my hunger</option>");
document.writeln("</select>");
document.writeln("<br><br>");
document.writeln("<div align=right>&gt;&gt;<a href='#' onClick=\u0022fIHS_2validate('iIHS_23','iIHS_24'); return false;\u0022 class=IHS_2_link>Next</a>&nbsp;</div>");
document.writeln(sIHStableClose);
document.writeln("</div>");
//4
document.writeln("<div id='iIHS_24' style='display:none'>");
document.writeln(sIHStableOpen);
document.writeln("<br>");
document.writeln("How much do you eat when you are in the process of breaking your diet?<br><br>");
document.writeln("<span class=IHS_2_client>When I'm breaking my diet,</span><br><br>");
document.writeln("<select name=nIHS_2p4 class=IHS_2_list>");
document.writeln("<option value=0 class=IHS_2_list>Make a selection.</option>");
document.writeln("<option value='I pay attention to how much I eat' class=IHS_2_list>I pay attention to how much I eat</option>");
document.writeln("<option value='I often eat more than I need to' class=IHS_2_list>I often eat more than I need to</option>");
document.writeln("</select>");
document.writeln("<br><br>");
document.writeln("<div align=right>&gt;&gt;<a href='#' onClick=\u0022fIHS_2validate('iIHS_24','iIHS_25'); return false;\u0022 class=IHS_2_link>Next</a>&nbsp;</div>");
document.writeln(sIHStableClose);
document.writeln("</div>");
//5
document.writeln("<div id='iIHS_25' style='display:none'>");
document.writeln(sIHStableOpen);
document.writeln("<br>");
document.writeln("When you are done eating, or breaking your diet, how do you feel?<br><br>");
document.writeln("<span class=IHS_2_client>After I'm done eating,</span><br><br>");
document.writeln("<select name=nIHS_2p5 class=IHS_2_list>");
document.writeln("<option value=0 class=IHS_2_list>Make a selection.</option>");
document.writeln("<option value='I sometimes feel guilty' class=IHS_2_list>I sometimes feel guilty</option>");
document.writeln("<option value='I never feel guilty' class=IHS_2_list>I never feel guilty</option>");
document.writeln("</select>");
document.writeln("<br><br>");
document.writeln("<div align=right>&gt;&gt;<a href='#' onClick=\u0022fIHS_2validate('iIHS_25','iIHS_26'); return false;\u0022 class=IHS_2_link>Next</a>&nbsp;</div>");
document.writeln(sIHStableClose);
document.writeln("</div>");
//6
document.writeln("<div id='iIHS_26' style='display:none'>");
document.writeln(sIHStableOpen);
document.writeln("<br>");
document.writeln("Do you feel the need to eat all the food on your plate?<br><br>");
document.writeln("<span class=IHS_2_client>When I eat,</span><br><br>");
document.writeln("<select name=nIHS_2p6 class=IHS_2_list>");
document.writeln("<option value=0 class=IHS_2_list>Make a selection.</option>");
document.writeln("<option value='I can leave food on my plate' class=IHS_2_list>I can leave food on my plate</option>");
document.writeln("<option value='I have trouble leaving food on my plate' class=IHS_2_list>I have trouble leaving food on my plate</option>");
document.writeln("</select>");
document.writeln("<br><br>");
document.writeln("<div align=right>&gt;&gt;<a href='#' onClick=\u0022fIHS_2validate('iIHS_26','iIHS_27'); return false;\u0022 class=IHS_2_link>Next</a>&nbsp;</div>");
document.writeln(sIHStableClose);
document.writeln("</div>");
//7
document.writeln("<div id='iIHS_27' style='display:none'>");
document.writeln(sIHStableOpen);
document.writeln("<br>");
document.writeln("Do you eat when you're bored or lonely?<br><br>");
document.writeln("<span class=IHS_2_client>When I am bored,</span><br><br>");
document.writeln("<select name=nIHS_2p7 class=IHS_2_list>");
document.writeln("<option value=0 class=IHS_2_list>Make a selection.</option>");
document.writeln("<option value='I don\u0022t get tempted to eat' class=IHS_2_list>I don't get tempted to eat</option>");
document.writeln("<option value='I sometimes get tempted to eat' class=IHS_2_list>I sometimes get tempted to eat</option>");
document.writeln("</select>");
document.writeln("<br><br>");
document.writeln("<div align=right>&gt;&gt;<a href='#' onClick=\u0022fIHS_2validate('iIHS_27','iIHS_28'); return false;\u0022 class=IHS_2_link>Next</a>&nbsp;</div>");
document.writeln(sIHStableClose);
document.writeln("</div>");
//8
document.writeln("<div id='iIHS_28' style='display:none'>");
document.writeln(sIHStableOpen);
document.writeln("<br>");
document.writeln("Do you eat when you're stressed or upset?<br><br>");
document.writeln("<span class=IHS_2_client>When I am stressed or upset,</span><br><br>");
document.writeln("<select name=nIHS_2p8 class=IHS_2_list>");
document.writeln("<option value=0 class=IHS_2_list>Make a selection.</option>");
document.writeln("<option value='I sometimes get tempted to eat' class=IHS_2_list>I sometimes get tempted to eat</option>");
document.writeln("<option value='I never get tempted to eat' class=IHS_2_list>I never get tempted to eat</option>");
document.writeln("</select>");
document.writeln("<br><br>");
document.writeln("<div align=right>&gt;&gt;<a href='#' onClick=\u0022fIHS_2validate('iIHS_28','iIHS_29'); return false;\u0022 class=IHS_2_link>Next</a>&nbsp;</div>");
document.writeln(sIHStableClose);
document.writeln("</div>");
//9
document.writeln("<div id='iIHS_29' style='display:none'>");
document.writeln("</div>");
document.writeln("</form>");
