function determineFactorLevel(form, objId)
{
	var tform = document.forms[form];
	
	//grab the value of the orthotype
	var typenum = tform.elements['orthogonal_type'].value;
	
	//get the new values for factor and level
	var nfactor = factor[typenum];
	var nlevel = level[typenum];
	
	tform.elements['numfactor'].value = nfactor;
	tform.elements['numlevel'].value = nlevel;	
	
	document.getElementById(objId).innerHTML = nfactor+" Rows of Factor and "+nlevel+" Columns of Level";
}

function outputName(form, objid, nname)
{
	var tform = document.forms[form];
	
	//grab the value of the name of the factor
	var name = tform.elements[nname].value;
	
	document.getElementById(objid).innerHTML = name;
}
function back(formname, action, process)
{
	var form = document.forms[formname];
	
	var oldaction = "";
	oldaction = form.action;
	var splitarr = new Array();
	splitarr = oldaction.split('?');
	var baseurl = splitarr[0];
	
	//for post
	baseurl = baseurl+'?action='+action+'&process='+process;
	form.action = baseurl;
	
	form.submit();
}