function SelectAll ( form_name, elem_id, chkbox_name )
{
	var elements	= document.forms[form_name].elements;
	var checked	= document.forms[form_name].elements[elem_id].checked;

	for (var i = 0; i < elements.length; i++)
	{
		if ( elements[i].tagName == "INPUT" && elements[i].type == "checkbox" )
		{
			elements[i].checked = checked;
		}
	}
}

function findObj(n, d) {
  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=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function moduleShow( objId )
{
	obj = document.getElementById( objId );
	if( obj )
	{
		curPanel = document.getElementById( curPanelID );

		if( curPanel )
		{
			curPanel.style.display = "none";
		}

		if( ( ! obj.style.display ) || ( obj.style.display == "none" ) )
		{
			obj.style.display = "";
			curPanelID = objId;
		}
		else
		{
			obj.style.display = "none";
		}
	}
}

function submKeyword()
{
	if(document.global_search['keyword'].value != '')
	{
		location.href='{_addr}search.html?keyword-' +document.global_search['keyword'].value;
	}

	return false;
}