

function sublnav(ff,obj) {
 ff.c.value = 0 ; 
 ff.p.value = obj.value ;
 ff.submit();
}

function sublnav2(ff,val) {
 ff.c.value = 0 ; 
 ff.p.value = val ;
 ff.submit();
}


function sublnav3(ff,val) {
 ff.p.value = 0 ; 
 ff.c.value = val ;
 ff.submit();
}

function sublnav4(ff,val,val1) {
 ff.c.value = 0 ; 
 ff.p.value = val ;
 ff.tp.value = val1 ;
 ff.submit();
}

function subsearch(ff) {
 if (ff.search_txt.value=="")
   alert("Please enter search phrase");
 else
   ff.submit();   
}

function toggleOpen(target)
{

	obj=document.getElementById(target);
	obj.style.display= '';
}

function toggleClose(target)
{

	obj=document.getElementById(target);
	obj.style.display= 'none';
}


function toggle(target)
{

	obj=document.getElementById(target);
	obj.style.display=( (obj.style.display=='none') ? '' : 'none');
}

function opengal(fname) 
{
window.open ("/showgal.asp?m="+fname,"galwindow","scrollbars=1,menubar=1,resizable=1,width=600,height=450")
}



///////////////////////////////////////////////////
function onFoc(elm,txt){

	if (elm.value == txt){

		elm.style.backgroundColor="#EFE9E1";

		elm.value="";

		elm.style.color="#7B726A";

	}

}

///////////////////////////////////////////////////
function onBlr(elm,txt){

	if (elm.value == ""){

		elm.style.backgroundColor="#fff";

		elm.value=txt;

		elm.style.color="#000";

	}

}
