
	function setmode(newmode)
	{
		document.forms["vpForm"].elements["event"].value=newmode;
		document.forms["vpForm"].submit();
    }
	/*
		Use this function when using select box as the chip selection.  This sets the proper information
		and returns true
	*/
	function setmode_set_go(newmode,chip)
	{
		document.forms["vpForm"].elements["event"].value=newmode;
		document.forms["vpForm"].elements["chip"].value=chip;
		document.forms["vpForm"].submit();
    }

	/*
		Use this function when using a submit button.  This sets the proper information
		and returns true
	*/
	function setmode_set(newmode,chip)
	{
		document.forms["vpForm"].elements["event"].value=newmode;
		document.forms["vpForm"].elements["chip"].value=chip;
		return true;
    }
