//<!-- JavaScript Document

function changeSearch(id,d,dir)
{
var str=document.getElementById(id).value;
if (dir==1){
	if (str==d) document.getElementById(id).value='';
	}
else {
	if (str=='') document.getElementById(id).value=d;
	}
}


//Submit Form with condition
function submitform2(id1,id2,d)
{
var str=document.getElementById(id2).value;	
if (str!=d && str!=''){
	document.getElementById(id1).submit();
	}
}


//change link class for expanded submenu
var mlinks=new Object();
function changeclass(n,dir)
{
if (mlinks[n]==undefined) mlinks[n]=n;
for (var i in mlinks){
	if (i!=n) document.getElementById('mlink'+i).className='menulink';
	}

if (dir==1){
	document.getElementById('mlink'+n).className='activelink';
	}
else {
	document.getElementById('mlink'+n).className='menulink';
	}
}

//-->
