function tryDisplayCat2(p) {
	if(p.options[p.selectedIndex].value==38 || p.options[p.selectedIndex].value==404) {
		document.getElementById('srchcat2').style.display='inline';
	} else {
		document.getElementById('srchcat2').style.display='none';
	}
	if(p.options[p.selectedIndex].value==42 || p.options[p.selectedIndex].value==217) {
		document.getElementById('srchcat3').style.display='inline';
	} else {
		document.getElementById('srchcat3').style.display='none';
	}
}
function show_search() {
	var obj;
	var txtAdvanced;
	var txtBasic;
	
	obj = document.getElementById('searchDetail');
	advSrch = document.getElementById('advSrch');
	txtAdvanced	= document.getElementById('advSearch');
	txtBasic	= document.getElementById('basicSearch');
	
	if (obj == null)
		return false;
	else {
		if (obj.style.display == 'block') {
			obj.style.display = 'none';
			advSrch.value = '0';
			if (txtAdvanced!=null) {
			//	txtAdvanced.style.display	= 'inline';
			}
			if (txtBasic!=null) {
			//	txtBasic.style.display		= 'none';
			}
		} else {
			obj.style.display = 'block';
			advSrch.value = '1';
			if (txtAdvanced!=null) {
			//	txtAdvanced.style.display	= 'none';
			}
			if (txtBasic!=null) {
			//	txtBasic.style.display		= 'inline';
			}
		}
	}
}
function chbg(objRef, state) {
	//objRef.style.backgroundColor = (1 == state) ? '#FEF4CD' : '#FFFFFF';
	objRef.style.backgroundColor = (1 == state) ? '#EBF0F1' : '#FFFFFF';
	return;
}
function showack(selected) {
	if(selected=='2') 
		document.getElementById('ack_for_2').style.display='block';
	else
		document.getElementById('ack_for_2').style.display='none';
}

