
// ################

function check_intro(q_array){

var questions = new Array();
questions = q_array.split("|");
var q_length = questions.length;
var f;

alert ("q=" + q_length + "\n\nqarray=" + q_array);

alert("form_elems=" + document.intro.length);
for (i=0; i<document.intro.length; i++){
	alert(i + "=" + document.intro.elements[i].name + "=" + document.intro.elements[i].value + "checked=" + document.intro.elements[i].checked);
	}

for(i=0; i<q_length; i++){
	//alert ("i=" + questions[i]);
	f = eval ("func_" + questions[i]);
	f(i);
	}

return true;
}


// ############# functions to check individual question responses...
// 173 - 177 are intro sets...

function func_173(id){		// how old are you...

alert("func_173\n\nl=" + document.intro.id.length);

for(j=0; j<document.intro.id.length; j++){
	//var v = eval (document.intro.q[j].value);
	
	alert("173.j=" + document.intro.id[j].value + "\n\n173.j.length=" + document.intro.id[j].value.length + "\n\nand0=" + document.intro.id[j].value[0].value);
	

	if (document.intro.id[j].checked)  {

		alert("found_it=" + document.intro.id[j].value);
		}

//	var a = (document.intro.q[j.v].checked?document.intro.q[j.v].value:"??");
//	alert("value=" + a);

	}

//	search.cgi?search='+(search[0].checked?search[0].value:'')+(search[1].checked?search[1].value:'') +'&where='+(where[0].checked?where[0].value:'')+(where[1].checked?where[1].value:'')

//
//

}

function func_174(id){
alert("func_174");
}

function func_175(id){
alert("func_175");
}



// ##########################


function jumpto(loc){			//	used for dropdown select link boxes
 // alert("l=" + loc);
var url=loc; 
if (url == ""){
	return false;
	}
// #url = '#' + url;
//  alert("loc=" + loc);

//if( loc.indexOf('history.go') != false){
//	document.location.history.go(-1);
//	return true;
//	}

document.location.href=url;
return true;
}

// ######################################




