/**********************************************************************************
	popupwindow (½ºÅ©·Ñ¹Ù no)
***********************************************************************************/
function popwindow(pop,width,height)
{
	var url = pop;  
	var wd = width;
	var he = height;
	
	window.open(url,"","toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";")
}	


/**********************************************************************************
	popupwindow01(½ºÅ©·Ñ¹Ù yes)
***********************************************************************************/
function popwindow01(pop,width,height)
{
	var url = pop;  
	var wd = width;
	var he = height;
	
	window.open(url,"","toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";")
}	


/**********************************************************************************
	popupwindow02(self_close)
***********************************************************************************/
function popwindow02(url)
{
	opener.location.href = url;
	self.close();
}


/**********************************************************************************
	combo_box link
***********************************************************************************/
function combolink(form)
{
	var selin= form.sel1.selectedIndex;
	location= form.sel1.options[selin].value;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}


/**********************************************************************************
	mouse roll over
***********************************************************************************/
function mouseOver(obj, bool)
{
	if(bool)
		obj.src="images/" + obj.id + "_on.gif";
	else
		obj.src="images/" + obj.id + ".gif";

}
function mouseOver2(obj, bool)
{
	if(bool)
		obj.src="images/" + obj.id + "_on.jpg";
	else
		obj.src="images/" + obj.id + ".jpg";

}


/**********************************************************************************
	mouse roll over_sub
***********************************************************************************/
function mouseOver_sub(obj, bool)
{
	if(bool)
		obj.src="images/" + obj.id + "_on.gif";
	else
		obj.src="images/" + obj.id + ".gif";
}

/**********************************************************************************
	show_hide Layer
***********************************************************************************/
function na_hide_layer(lname)
{
  if (document.layers)
    document.layers[lname].visibility = 'hide'    
  if(document.all)
    document.all(lname).style.visibility = 'hidden' 
}

function na_show_layer(lname)
{
 if (lname == '') return;
 
 var layer  = document.all ? document.all(lname).style : document.layers[lname];
 var show  = document.all ? 'visible' : 'show';
 var hide  = document.all ? 'hidden' : 'hide';
 
 if (na_show_layer.arguments.length <= 1)
  layer.visibility = show;
 else
  layer.visibility = (na_show_layer.arguments[1] == 0 ? show : hide);
}

function na_init_layer_events()
{
  if (document.layers) {
    document.layers['layer1'].captureEvents(Event.MOUSEOVER|Event.MOUSEOUT|Event.MOUSEUP);
    document.layers['layer1'].onmouseout = new Function("na_hide_layer('layer1');");
    document.layers['layer1'].onmouseover = new Function("na_show_layer('layer1');");
  }
}