

var current_q = "";
var current_qd ="";

function display_q(myform){

  myindex = myform.faqPath.selectedIndex;
//  alert(myindex);
	if (current_q){
	
		show_hide('sqbox-'+current_q);
		current_q ="";
	}
	
	if (current_qd){
	
		show_hide('qr'+current_qd);
		current_qd = "";
	}	
//	alert(myindex);
	if (myindex!=0){
		show_hide('sqbox-'+myindex);
		current_q = myindex;
	}
	return (false);
}

function show_q(myform,catid){


//	alert(catid);
  qname = 'questions'+catid;
  myindex = eval('myform.'+qname+'.selectedIndex');
 // myindex++;
  
  qid = eval('myform.'+qname+'.options['+myindex+'].value');

//  alert(myindex);
//  alert(qid);
 
	if (current_qd){
	
		show_hide('qr'+current_qd);
		current_qd = "";
	}

//	alert (qid);
	if (qid!=0){
		show_hide('qr'+qid);
		current_qd = qid;
	}
	return (false);

}



