function fY_SetWord(word){
	document.fSearch.query.value = word;
	document.fSearch.submit();
}

function fA_SetWord(word){
	document.fSearch.BrowseNodeId.value = word;
	document.fSearch.submit();
}

function fR_SetWord(word){
	document.fSearch.genreId.value = word;
	document.fSearch.submit();
}

function fA_OpenImg(url,img,width,height){
	width2=width+6;
//	height2=height+32;
	height2=height+52;
//	window.showModalDialog(url+"?img="+img+"&width="+width+"&height="+height,"","dialogWidth:"+width2+"px;dialogHeight:"+height2+"px;help:no;status:no;scroll:no");
	window.showModalDialog(url+"?img="+img+"&width="+width+"&height="+height,"","dialogWidth:"+width2+"px;dialogHeight:"+height2+"px;help:no;scroll:no");
//	w = window.open(url+"?img="+img+"&width="+width+"&height="+height,"_blank","width="+width2+",height="+height2);
}

function fA_OpenPrint(url){
	window.showModalDialog(url,"","dialogWidth:775px;dialogHeight:500px;resizable:yes;help:no;");
//	w = window.open(url,"_blank","width=775,height=500");
}

function fR_MenuOpen(id) {
	if(eval(id).style.display == ''){
		eval(id).style.display = 'none';
	}else{
		eval(id).style.display = '';
	}
}

isNS6 = navigator.appName.charAt(0) == "N" && navigator.appVersion.charAt(0) == 5;
cursortype = isNS6?'pointer':'hand';

function fMouseCursor(id,on){
	if(on){
		document.getElementById(id).style.cursor=cursortype;
	}else{
		document.getElementById(id).style.cursor="default";
	}
}

function fMouseColor(id,on){
	if(on){
		old_color=document.getElementById(id).style.backgroundColor;
		document.getElementById(id).style.backgroundColor = '#9999FF';
	}else{
		document.getElementById(id).style.backgroundColor = old_color;
	}
}

function fMouseMenu(id,on){
	if(on){
		old_color=document.getElementById(id).style.backgroundColor;
		document.getElementById(id).style.backgroundColor = '#9999FF';
		document.getElementById(id).style.cursor=cursortype;
	}else{
		document.getElementById(id).style.backgroundColor = old_color;
		document.getElementById(id).style.cursor="default";
	}
}
