<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function add_field()
{	var listLength = document.searchform.boxfrom.length;
	if (listLength > 0)
	{	//---- Add to box to
		for (var i=0; i < listLength; i++)
		{	if (document.searchform.boxfrom.options[i].selected)
				document.searchform.boxto.options[document.searchform.boxto.length] = new Option(document.searchform.boxfrom.options[i].text,document.searchform.boxfrom.options[i].value);
		}

		//---- remove from box from
		for (i=listLength-1; i >= 0; i--)
		{	if (document.form1.searchform.options[i].selected)
				document.form1.searchform.options[i] = null;
		}
	}
}
function GetSelectedButton(RadioButtonName)
{
	for(var i = 0; i < RadioButtonName.length; i++)
	{
		if (RadioButtonName[i].checked)
		{
			return i
		}
	}
}

function add_field_operator(op)
{	var listLength = document.searchform.boxfrom.length;
//	var i_operator = GetSelectedButton(document.form1.OPERATOR);
	
	if (listLength > 0)
	{	//---- Add to box to
		for (var i=0; i < listLength; i++)
		{	if (document.searchform.boxfrom.options[i].selected)
			{
				var operator_string_a = op + "(" + document.searchform.boxfrom.options[i].text + ")";
				var operator_string_b = op + "(" + document.searchform.boxfrom.options[i].value + ")";

//				var operator_string_a = document.form1.OPERATOR[i_operator].value + " " + document.form1.boxfrom.options[i].text;
//				var operator_string_b = document.form1.OPERATOR[i_operator].value + " " + document.form1.boxfrom.options[i].value;
	
				document.searchform.boxto.options[document.searchform.boxto.length] = new Option(operator_string_a,operator_string_b);
			}				
		}

		//---- remove from box from
		for (i=listLength-1; i >= 0; i--)
		{	if (document.searchform.boxfrom.options[i].selected)
				document.searchform.boxfrom.options[i] = null;
		}
	}
}
function remove_field()
{	var listLength = document.searchform.boxto.length;
	if (listLength > 0)
	{	//---- Add to box from
		for (var i=0; i < listLength; i++)
		{	if (document.searchform.boxto.options[i].selected)
				document.searchform.boxfrom.options[document.searchform.boxfrom.length] = new Option(document.searchform.boxto.options[i].text,document.searchform.boxto.options[i].value);
		}

		//---- remove from box to
		for (i=listLength-1; i >= 0; i--)
		{	if (document.searchform.boxto.options[i].selected)
				document.searchform.boxto.options[i] = null;
		}
	}
}


//	Function to adjust dropdown list
function refreshList()
{	var startWith = document.searchform.startWith.value;

	var findFirst = false;
	var strLength = startWith.length;

	var tmpStr = "";
	for(var i=0;i<document.searchform.boxfrom.length;i++)
	{
		tmpStr = document.searchform.boxfrom.options[i].text;
		tmpStr = tmpStr.toLowerCase();
		tmpStr = tmpStr.substr(0, strLength);

		if (tmpStr == startWith)
		{	document.searchform.boxfrom.selectedIndex = i;
			break;
		}
	}
}

function copyKeywords()
{	var listLength = document.searchform.boxto.length;
	if (listLength > 0)
	{	//---- create keyword line
		var tmpVar = "";
		for (var i=0; i < listLength; i++)
		{	if (tmpVar == "")
				tmpVar = document.searchform.boxto.options[i].value;
			else
				tmpVar = tmpVar + "," + document.searchform.boxto.options[i].value;			
		}
		document.searchform.Keywords.value = tmpVar;
	}
}

function submitVal()
{	copyKeywords();
	document.searchform.VALIDER.value = "VALIDER";
	document.searchform.submit();
}

function changeLang(newLang)
{	copyKeywords();
	document.searchform.newLang.value = newLang;
	document.searchform.submit();
}

function newKeywords()
{	catWindow = window.open('./keyword.html','catWin4','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=250');
}
//-->
