     var lastDivId = '';
	 function hidethediv(divId)
	 {
	    if(document.getElementById(divId))
		{
		   document.getElementById(divId).style.display='none';
		}
		else
		{
		   alert(" divId = " + divId + "\n document.getElementById(divId) = " + document.getElementById(divId));
        }
	 }
	 
	 function showthediv(divId)
	 {
	    if(document.getElementById(divId))
		{
		   document.getElementById(divId).style.display='';
		}
		else
		{
		   alert(" divId = " + divId + "\n document.getElementById(divId) = " + document.getElementById(divId));
        }
	 }
	 function getCheckedValue(divId)
	 {
	    var radioObject;
	    if (divId == 'Step11')
	       radioObject = document.EmailDeflection.DSLLight;
		else
		   radioObject = document.EmailDeflection.InternetLight;
	    var radioLength = radioObject.length;
		for(var i = 0; i < radioLength; i++)
		{
		   if(radioObject[i].checked)
		   {
		      return radioObject[i].value;
		   }
		}
	 }

	 function getBack(thisStepDivId)
	 {
		  hidethediv(thisStepDivId);
		  showthediv(lastDivId);
	 }
	 
	 function getStepDiv(thisStepDivId, thisStepResponseId)
	 {
	    var thisStepDiv = document.getElementById(thisStepDivId);
		var thisStepResponse = document.getElementById(thisStepResponseId);
		
		if (thisStepDivId == 'Step1')
		{
		   if (thisStepResponse.value == 'Can\'t connect')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step6');
		   }
		   else if (thisStepResponse.value == 'E-mail')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step22');
		   }
		   else if (thisStepResponse.value == 'Web hosting/publishing')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step29');
		   }
		   else if (thisStepResponse.value == 'Other issue')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step34');
		   }
		   else
		   {
		      //alert(" thisStepResponseId = " + thisStepResponseId + "\n document.getElementById(thisStepResponseId).value = " + document.getElementById(thisStepResponseId.value));
		      alert('Please make a selection.');
		   }
		   lastDivId = thisStepDivId;
		}
		else if (thisStepDivId == 'Step6')
		{
		   if (thisStepResponse.value == 'Motorola, 2Wire or Actiontec GT701/GT701-wg')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step11');
		   }
		   else if (thisStepResponse.value == 'Actiontec1520/1524')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step18');
		   }
		   else if (thisStepResponse.value == 'Other Qwest provided modem (Cisco, Intel or Arescom/Accton)')
		   {
		      hidethediv(thisStepDivId);
			  location.href = 'techemail.html';
		   }
		   else if (thisStepResponse.value == 'Other modem not provided by Qwest')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step10');
		   }
		   else
		   {
		      //alert(" thisStepResponseId = " + thisStepResponseId + "\n document.getElementById(thisStepResponseId).value = " + document.getElementById(thisStepResponseId.value));
		      alert('Please make a selection.');
		   }
		   lastDivId = thisStepDivId;
		}
		else if (thisStepDivId == 'Step11')
		{
		   var checkedValue = getCheckedValue(thisStepDivId);
		   if (checkedValue == 'On')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step15');
		   }
		   else if (checkedValue == 'Off')
		   {
		      hidethediv(thisStepDivId);
			  location.href = 'techemail.html';
		   }
		   else if (checkedValue == 'I don\'t know, I\'m not at my computer')
		   {
		      hidethediv(thisStepDivId);
			  location.href = 'techemail.html';
		   }
		   else
		   {
		      //alert(" thisStepResponseId = " + thisStepResponseId + "\n document.getElementById(thisStepResponseId).value = " + document.getElementById(thisStepResponseId.value));
		      alert('Please make a selection.');
		   }
		   lastDivId = thisStepDivId;
		}
		else if (thisStepDivId == 'Step15')
		{
		   if ((thisStepResponse.value == 'Windows Live') ||
		       (thisStepResponse.value == 'MSN Premium') ||
		       (thisStepResponse.value == 'qwestoffice.net') ||
		       (thisStepResponse.value == 'qwest.net'))
		   {
		      hidethediv(thisStepDivId);
			  location.href = 'techemail.html';
		   }
		   else if (thisStepResponse.value == 'Other ISP')
		   {
		      if(document.EmailDeflection.modem[document.EmailDeflection.modem.selectedIndex].value == 'Actiontec1520/1524')
			  {
		         hidethediv(thisStepDivId);
			     showthediv ('Step17a');
				 
			  }
			  else
			  {
		         hidethediv(thisStepDivId);
			     showthediv ('Step17');
			  }
		   }
		   else
		   {
		      //alert(" thisStepResponseId = " + thisStepResponseId + "\n document.getElementById(thisStepResponseId).value = " + document.getElementById(thisStepResponseId.value));
		      alert('Please make a selection.');
   		   }
		   setCookie('ISP', thisStepResponse.value, 1, '', '', '');
		   lastDivId = thisStepDivId;
		}
		else if (thisStepDivId == 'Step18')
		{
		   var checkedValue = getCheckedValue(thisStepDivId);
		   if (checkedValue == 'On')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step15');
		   }
		   else if (checkedValue == 'Off')
		   {
		      hidethediv(thisStepDivId);
			  location.href = 'techemail.html';
		   }
		   else if (checkedValue == 'I don\'t know, I\'m not at my computer')
		   {
		      hidethediv(thisStepDivId);
			  location.href = 'techemail.html';
		   }
		   else
		   {
		      alert('Please make a selection.');
		   }
		   lastDivId = thisStepDivId;
		}
		else if (thisStepDivId == 'Step22')
		{
		   if ((thisStepResponse.value == 'Windows Live') ||
		       (thisStepResponse.value == 'MSN Premium') ||
		       (thisStepResponse.value == 'qwest.net'))
		   {
		      hidethediv(thisStepDivId);
			  showthediv('Step26');
		   }
		   else if (thisStepResponse.value == 'qwestoffice.net')
		   {
		      hidethediv(thisStepDivId);
			  location.href = 'techemail.html';
		   }
		   else if (thisStepResponse.value == 'Other ISP')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step25');
		   }
		   else
		   {
		      //alert(" thisStepResponseId = " + thisStepResponseId + "\n document.getElementById(thisStepResponseId).value = " + document.getElementById(thisStepResponseId.value));
		      alert('Please make a selection.');
		   }
		   setCookie('ISP', thisStepResponse.value, 1, '', '', '');
		   lastDivId = thisStepDivId;
		}
		else if (thisStepDivId == 'Step26')
		{
		   if ((thisStepResponse.value == 'Outlook Express') ||
		       (thisStepResponse.value == 'Outlook') ||
		       (thisStepResponse.value == 'Windows Mail') ||
		       (thisStepResponse.value == 'Windows Live Mail') ||
		       (thisStepResponse.value == 'Netscape'))
		   {
		      hidethediv(thisStepDivId);
			  location.href = 'techemail.html';
		   }
		   else if (thisStepResponse.value == 'Other')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step28');
		   }
		   else
		   {
		      //alert(" thisStepResponseId = " + thisStepResponseId + "\n document.getElementById(thisStepResponseId).value = " + document.getElementById(thisStepResponseId.value));
		      alert('Please make a selection.');
		   }
		   lastDivId = thisStepDivId;
		}
		else if (thisStepDivId == 'Step29')
		{
		   if (thisStepResponse.value == 'qwest.net')
		   {
		      hidethediv(thisStepDivId);
			  location.href = 'techemail.html';
		   }
		   else if ((thisStepResponse.value == 'Windows Live') ||
		            (thisStepResponse.value == 'MSN Premium'))
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step31');
		   }
		   else if (thisStepResponse.value == 'qwestoffice.net')
		   {
		      hidethediv(thisStepDivId);
			  location.href = 'techemail.html';
		   }
		   else if (thisStepResponse.value == 'Other ISP')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step33');
		   }
		   else
		   {
		      alert('Please make a selection.');
		   }
		   setCookie('ISP', thisStepResponse.value, 1, '', '', '');
		   lastDivId = thisStepDivId;
		}
		else if (thisStepDivId == 'Step34')
		{
		   if ((thisStepResponse.value == 'Windows Live') ||
		       (thisStepResponse.value == 'MSN Premium') ||
		       (thisStepResponse.value == 'qwestoffice.net') ||
		       (thisStepResponse.value == 'qwest.net'))
		   {
		      hidethediv(thisStepDivId);
			  location.href = 'techemail.html';
		   }
		   else if (thisStepResponse.value == 'Other ISP')
		   {
		      hidethediv(thisStepDivId);
			  showthediv ('Step36');
		   }
		   else
		   {
		      //alert(" thisStepResponseId = " + thisStepResponseId + "\n document.getElementById(thisStepResponseId).value = " + document.getElementById(thisStepResponseId.value));
		      alert('Please make a selection.');
		   }
		   setCookie('ISP', thisStepResponse.value, 1, '', '', '');
		   lastDivId = thisStepDivId;
		}
		else
		{
		    alert(" thisStepDivId = " + thisStepDivId + "\n document.getElementById(thisStepDivId) = " + document.getElementById(thisStepDivId) + "\n thisStepResponseId = " + thisStepResponseId + "\n document.getElementById(thisStepResponseId) = " + document.getElementById(thisStepResponseId));
		}
	 }
	 
      