// Copyright (c) 1999-2000 David Muse
// See the COPYING file for more information


// Usage Example:

// <form name="navigate">
// <input type="hidden" name="variable1">
// <input type="hidden" name="variable2">
// </form>

// <a href="javascript: 
//	setValues(document.navigate, 
//		'variable1','value1','variable2','value2');
//	navigate(document.navigate,'nextpage.cgi','_top');">Next Page</a>


function	setValues() {
	for (var i=1; i<arguments.length; i=i+2) {
		eval('arguments[0].elements.'+arguments[i]+
			'.value=arguments[i+1];');
	}
};

function	navigate(whichform,action,target) {
	whichform.target=target;
	whichform.action=action;
	whichform.submit();
};
