<!--
//-----------------------------------------
/*function search_changed(st, i_type) { //BU
  if(st==1)  {
	  t_name = thisForm.t1;
	  document.cookie = "search[2]=0";
	  document.cookie = "search[3]=0";
	  document.cookie = "search[32]=0";
	  document.cookie = "search[31]=0";
  }
  else if(st==2) {
	  t_name = thisForm.t2;
	  document.cookie = "search[3]=0";
	  document.cookie = "search[32]=0";
	  document.cookie = "search[31]=0";
  }
  else if(st==3) {
	  t_name = thisForm.t3;
	  document.cookie = "search[32]=0";
	  document.cookie = "search[31]=0";
  }
  else if(st==31) {
	  t_name = thisForm.t31;
	  document.cookie = "search[3]=0";
	  document.cookie = "search[32]=0";
  }
  else if(st==32) {
	  t_name = thisForm.t32;
	  document.cookie = "search[3]=0";
  }

	  if(i_type=='s') 
		  document.cookie = "search["+st+"]="+t_name.options[t_name.options.selectedIndex].value;//BU
	  else if (i_type=='r') {
		  for(i=0; i<t_name.length; i++) {
			  if(t_name[i].checked==true) {
				  document.cookie = "search["+st+"]="+t_name[i].value;
				  break;
			  }
		  }
	  }
	  document.thisForm.act.value = "search";
	  document.thisForm.submit();
}


function search_type(type) {
	document.cookie = "search[1]=0";
	document.cookie = "search[2]=0";
	document.cookie = "search[3]=0";
	document.cookie = "search[32]=0";
	document.cookie = "search[31]=0";
    location.href= "index.php?act=search&type="+type;
}


function insert_changed(st, i_type) { 
  if(st==1)  {
	  t_name = thisForm.t1;
	  document.cookie = "search[2]=0";
	  document.cookie = "search[3]=0";
	  document.cookie = "search[41]=0";
	  document.cookie = "search[42]=0";
	  document.cookie = "search[42]=0";
  }
  else if(st==2) {
	  t_name = thisForm.t2;
	  document.cookie = "search[3]=0";
	  document.cookie = "search[41]=0";
	  document.cookie = "search[42]=0";
	  document.cookie = "search[42]=0";
  }
  else if(st==3) {
	  t_name = thisForm.t3;
  }
  else if(st==41) {
	  t_name = thisForm.t41;
	  document.cookie = "search[42]=0";
  }
  else if(st==42) {
	  t_name = thisForm.t42;
  }
  else if(st==5) {
	  t_name = thisForm.t5;
	  document.cookie = "search[6]=0";
  }
  else if(st==6) {
	  t_name = thisForm.t6;
  }

	  if(i_type=='s') 
		  document.cookie = "search["+st+"]="+t_name.options[t_name.options.selectedIndex].value;
	  else if (i_type=='r') {
		  for(i=0; i<t_name.length; i++) {
			  if(t_name[i].checked==true) {
				  document.cookie = "search["+st+"]="+t_name[i].value;
				  break;
			  }
		  }
	  }
	  document.cookie = "search[t_name_value]="+document.thisForm.t_name_value.value;
	  document.cookie = "search[t_s_no]="+document.thisForm.t_s_no.value;
	  document.cookie = "search[t_address]="+document.thisForm.t_address.value;
	  document.thisForm.act.value = "insert";
	  document.thisForm.submit();
}


function change_page(st) {
	if(st==1)
		document.thisForm.page.value = document.thisForm.sel_page1.value;
	else 
		document.thisForm.page.value = document.thisForm.sel_page2.value;
	document.thisForm.index.value = "";
	document.thisForm.submit();
}

function change_page2(st) {
	document.thisForm.page.value = st;
	document.thisForm.act.value = "search_hd";
	document.thisForm.index.value = "";
	document.thisForm.submit();
}

function order_change() {
	document.thisForm.order_value.value = document.thisForm.order.value;
	document.thisForm.index.value = "";
	document.thisForm.submit();
}

function detail(st, index) {
	document.thisForm.act.value = st;
	document.thisForm.index.value = index;
	document.thisForm.submit();
}

function change_img(img) {
	document.thisForm.img1.src = img;
}*/


//==========================
function amz_js_PopWin(url,name,options){
  var ContextWindow = window.open(url,name,options);
  ContextWindow.opener = this;
  ContextWindow.focus();
}

function amz_js_RefreshOriginalWindow(url) {
  if ((window.opener == null) || (window.opener.closed)) {
    var OriginalWindow = window.open(url);
    OriginalWindow.opener = this;
  }
  else{
	  window.opener.location=url;
  }
  window.close();
}
//

function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; 
 doc.$imgSwaps=new Array(); 
 for(n=2; n<args.length; n+=2)  { 
	 elm=FP_getObjectByID(args[n]); 
	 if(elm) 
		 { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
		   elm.$src=elm.src; elm.src=args[n+1]; 
		 }
 }
}

function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; 
 if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) 
	 { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; 
 if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; 
 else if(o.all) el=o.all[id]; 
 
 if(el) return el;
 if(o.id==id || o.name==id) return o; 
 if(o.childNodes) c=o.childNodes; 
 if(c) {
	 for(n=0; n<c.length; n++) 
	 { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 }
 
 f=o.forms; 
 
 if(f) { 
	 for(n=0; n<f.length; n++) 
	 { els=f[n].elements;
	   for(m=0; m<els.length; m++)
	   { el=FP_getObjectByID(id,els[n]); 
	     if(el) return el; } }
 }

 return null;
}

function search_send() {
	pattern2 = /[^ ]+/
	s = thisForm.search_value.value;

	if(!s.match(pattern2)) { 
		alert("search value is null!!");
		return false;
	}  
}

-->
