//  Copyright 2003 Narragansett Technologies.  All Rights Reserved.
var wrkValue;
			//Set next URL
			//
			function setNextUrl(Url)
			{
					document.all["__Next"].value= Url;
			}
			//process Controls
			//
			function processControls()
			{
			    wrkValue = "[" + document.all["__PageId"].value + ":";
				for (ix=0;ix<document.all.length ;ix++)
				{
					if(document.all[ix].type=='radio' )
					{
					   if(document.all[ix].checked)
							setSurveyAns(document.all[ix].name,document.all[ix].value);
					}
					if(document.all[ix].type=='text' )
					{
						  if (document.all[ix].value.length>0)
							setSurveyAns(document.all[ix].name,document.all[ix].value);
					}
					if(document.all[ix].type=='checkbox' )
					{
						  if (document.all[ix].checked)
							setSurveyAns(document.all[ix].name,document.all[ix].value);
					}
				}
				document.all["__Survey"].value =  wrkValue + "]";
				return true;
			}
			//
			//
			function setSurveyAns(name, value)
			{
				 wrkValue +=  name + ":" + value + "|";
			}
			//Process radio buttons
			//
			function processRadioButtons(control)
			{
				for (ix=0;ix<control.length;ix++)
				{
					if (control.checked)
					{
						return control.value
						break;
					}
				}	
			}
			//Process finish button
			//
			function FinishButton()
			{
				if (processControls())
				{
					document.all["__Status"].value='10';
					document.forms[0].submit();
					return false;
				}
			}
			//Process finish button
			//
			function NextButton()
			{
				if (processControls())
				{
					document.all["__Status"].value='0';
					document.forms[0].submit();
					return false;
				}
			}

// ============================================================================================