
	index1off=new Image()
	index1off.src="/graphix/index_off.gif"
	index1roll=new Image()
	index1roll.src="/graphix/index_click.gif"
	index1on=new Image()
	index1on.src="/graphix/index_on.gif"

	index2off=new Image()
	index2off.src="/graphix/index_off.gif"
	index2roll=new Image()
	index2roll.src="/graphix/index_click.gif"
	index2on=new Image()
	index2on.src="/graphix/index_on.gif"

	index3off=new Image()
	index3off.src="/graphix/index_off.gif"
	index3roll=new Image()
	index3roll.src="/graphix/index_click.gif"
	index3on=new Image()
	index3on.src="/graphix/index_on.gif"

	index4off=new Image()
	index4off.src="/graphix/index_off.gif"
	index4roll=new Image()
	index4roll.src="/graphix/index_click.gif"
	index4on=new Image()
	index4on.src="/graphix/index_on.gif"

	index5off=new Image()
	index5off.src="/graphix/index_off.gif"
	index5roll=new Image()
	index5roll.src="/graphix/index_click.gif"
	index5on=new Image()
	index5on.src="/graphix/index_on.gif"
	
var clicked = null

function show_image(whichimage)
{
	if (clicked != whichimage){
	document.images[whichimage].src = eval(whichimage + "on.src")
	}
}

function hide_image(whichimage)
{
	if (clicked != whichimage){
	document.images[whichimage].src = eval(whichimage + "off.src")
	}
}

function MakeList1(adv_form) {
index=document.adv_form.f_field1.options[adv_form.f_field1.selectedIndex].value;
if (index=='language' || index=='city' || index=='country' || index=='subject') {
show_image('index1');
}
else {
hide_image('index1');
}
}

function MakeList2(adv_form) {
index=document.adv_form.f_field2.options[adv_form.f_field2.selectedIndex].value;
if (index=='language' || index=='city' || index=='country' || index=='subject') {
show_image('index2');
}
else {
hide_image('index2');
}
}

function MakeList3(adv_form) {
index=document.adv_form.f_field3.options[adv_form.f_field3.selectedIndex].value;
if (index=='language' || index=='city' || index=='country' || index=='subject') {
show_image('index3');
}
else {
hide_image('index3');
}
}

function MakeList4(adv_form) {
index=document.adv_form.f_field4.options[adv_form.f_field4.selectedIndex].value;
if (index=='language' || index=='city' || index=='country' || index=='subject') {
show_image('index4');
}
else {
hide_image('index4');
}
}

function MakeList5(adv_form) {
index=document.adv_form.f_field5.options[adv_form.f_field5.selectedIndex].value;
if (index=='language' || index=='Coverage' || index=='country' || index=='subject') {
show_image('index5');
}
else {
hide_image('index5');
}
}

function IndexOpen1(adv_form) {
index=document.adv_form.f_field1.options[adv_form.f_field1.selectedIndex].value;
cat_small=document.adv_form._cat_small_.value;
if (index=='language' || index=='city' || index=='country' || index=='subject') {
var wind=window.open('/'+cat_small+'/'+index+'_index.asp',index,'width=250,height=500,scrollbars=yes');
wind.focus();
}
else {
//alert (index);
}
}

function IndexOpen2(adv_form) {
index=document.adv_form.f_field2.options[adv_form.f_field2.selectedIndex].value;
cat_small=document.adv_form._cat_small_.value;
if (index=='language' || index=='city' || index=='country' || index=='subject') {
var wind=window.open('/'+cat_small+'/'+index+'_index.asp',index,'width=250,height=500,scrollbars=yes');
wind.focus();
}
else {
//alert (index);
}
}

function IndexOpen3(adv_form) {
index=document.adv_form.f_field3.options[adv_form.f_field3.selectedIndex].value;
cat_small=document.adv_form._cat_small_.value;
if (index=='language' || index=='city' || index=='country' || index=='subject') {
var wind=window.open('/'+cat_small+'/'+index+'_index.asp',index,'width=250,height=500,scrollbars=yes');
wind.focus();
}
else {
//alert (index);
}
}

function IndexOpen4(adv_form) {
index=document.adv_form.f_field4.options[adv_form.f_field4.selectedIndex].value;
cat_small=document.adv_form._cat_small_.value;
if (index=='language' || index=='city' || index=='country' || index=='subject') {
var wind=window.open('/'+cat_small+'/'+index+'_index.asp',index,'width=250,height=500,scrollbars=yes');
wind.focus();
}
else {
//alert (index);
}
}

function IndexOpen5(adv_form) {
index=document.adv_form.f_field5.options[adv_form.f_field5.selectedIndex].value;
cat_small=document.adv_form._cat_small_.value;
if (index=='language' || index=='prod_subtype' || index=='country' || index=='subject') {
var wind=window.open('/'+cat_small+'/'+index+'_index.asp',index,'width=250,height=500,scrollbars=yes');
wind.focus();
}
else {
//alert (index);
}
}

function foc(f) {
document.adv_form._selected_string_.value = f;
//alert (f);
}

function advClearText() {
var i;
var nameStr;

	for (i = 0; i < document.adv_form.length; i++) {
		if ( 
		document.adv_form.elements[i].name.indexOf("f_string1") >= 0 || 
		document.adv_form.elements[i].name.indexOf("f_string2") >= 0 || 
		document.adv_form.elements[i].name.indexOf("f_string3") >= 0 || 
		document.adv_form.elements[i].name.indexOf("f_string4") >= 0 ||
		document.adv_form.elements[i].name.indexOf("f_keyword_sec") >= 0 ||
		document.adv_form.elements[i].name.indexOf("f_startyear_start") >= 0 ||
		document.adv_form.elements[i].name.indexOf("f_startyear_end") >= 0 
		) {	
		document.adv_form.elements[i].value = '' ;
		}

		if ( 
		document.adv_form.elements[i].name.indexOf("f_case") >= 0  
		) {
		document.adv_form.elements[i].checked = false ;
		}
		
		if ( 
		document.adv_form.elements[i].name.indexOf("f_mode1") >= 0 ||
		document.adv_form.elements[i].name.indexOf("f_mode2") >= 0 ||
		document.adv_form.elements[i].name.indexOf("f_mode3") >= 0 ||
		document.adv_form.elements[i].name.indexOf("f_mode4") >= 0 ||

		document.adv_form.elements[i].name.indexOf("f_type") >= 0 ||

		document.adv_form.elements[i].name.indexOf("f_condition2") >= 0 ||
		document.adv_form.elements[i].name.indexOf("f_condition3") >= 0 ||
		document.adv_form.elements[i].name.indexOf("f_condition4") >= 0 ||

		document.adv_form.elements[i].name.indexOf("f_enter_date") >= 0 ||

		document.adv_form.elements[i].name.indexOf("f_pubdate") >= 0 ||

		document.adv_form.elements[i].name.indexOf("f_frequency") >= 0 ||
		document.adv_form.elements[i].name.indexOf("f_status") >= 0 ||
		document.adv_form.elements[i].name.indexOf("f_serial_type") >= 0 ||
		document.adv_form.elements[i].name.indexOf("f_price") >= 0 ||
		document.adv_form.elements[i].name.indexOf("browse_order") >= 0  
		) {
		document.adv_form.elements[i].selectedIndex = 0 ;
		}

		if ( 
		document.adv_form.elements[i].name.indexOf("f_ml") >= 0 
		) {
		document.adv_form.elements[i].selectedIndex = 2 ;
		}
		
	}
}


