<!--

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

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.01
  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 && d.getElementById) x=d.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 MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function JS_viewObj(objhtml) {
   document.write(objhtml);
}

function Window_Open(URL, Target, Width, Height, Scroll, Resize) {
   var PosLeft=(screen.width - Width) / 2; // »õÃ¢ Y ÁÂÇ¥
   var PosTop=(screen.height - Height) / 2; // »õÃ¢ X ÁÂÇ¥

   WinOpen=window.open(URL, Target, 'left=' + PosLeft + ', top=' + PosTop + ', width=' + Width +', height=' + Height +', scrollbars=' + Scroll +', resizable=' + Resize);
   //WinOpen.focus();
   return;
}


function Window_Openm(URL, Target, Width, Height, Scroll, Resize) {
   var PosLeft=(screen.width +600) / 2; // »õÃ¢ Y ÁÂÇ¥
   var PosTop=(screen.height - 600) / 2; // »õÃ¢ X ÁÂÇ¥

   WinOpen=window.open(URL, Target, 'left=' + PosLeft + ', top=' + PosTop + ', width=' + Width +', height=' + Height +', scrollbars=' + Scroll +', resizable=' + Resize);
   //WinOpen.focus();
   return;
}

/* ¼ýÀÚ¸¸ ÀÔ·Â¹ÞÀ½ */
function Only_Numeric(numeric) {
   if((event.keyCode<48 || event.keyCode>57 || event.keyCode==45) && event.keyCode!=13) {
      event.returnValue=false;
   }
}

/* ¼ýÀÚ ¼¼ÀÚ¸®¾¿ ÀÚµ¿ ÄÄ¸¶ Âï±â */
function Numeric_Comma(numeric) {
   var num_org=numeric.value;               /* ÀÔ·ÂµÈ °ª ºÒ·¯¿À±â */
   var num_org_len=num_org.length-1;        /* ÀÔ·ÂµÈ °ªÀÇ ±æÀÌ °è»ê */
   var number='';
   var y=0;

   for(var i=num_org_len; i>=0; i--) {      /* ÄÄ¸¶ Á¦°Å¸¦ À§ÇØ ±æÀÌ ¸¸Å­ ·çÇÁ¸¦ °Å²Ù·Î µ¹¸°´Ù. */
      var num_loc_v=num_org.charAt(i);      /* ÇöÀç ÀÔ·ÂµÈ °ªÀÇ ÇÑ°³ ÇÑ°³ÀÇ °ª. */

      if(num_loc_v!=',') {                  /* ÄÄ¸¶°¡ ¾ø´Â °æ¿ì¿¡¸¸ ¼ýÀÚ¸¦ ºÙÀÎ´Ù */
         if(y%3==0 && y!=0) {               /* ¼¼ÀÚ¸® ¸¶´Ù ÄÄ¸¶¸¦ ºÙÀÎ´Ù. */
            number=num_loc_v+','+number;
            y++;
         }

         else {
            number=num_loc_v+number;
            y++;
         }
      }
   }

   numeric.value=number;
}

function Del_Comma(num_org) {
   var num_org_len=num_org.length-1;        /* ÀÔ·ÂµÈ °ªÀÇ ±æÀÌ °è»ê */
   var number='';

   for(var i=num_org_len; i>=0; i--) {      /* ÄÄ¸¶ Á¦°Å¸¦ À§ÇØ ±æÀÌ ¸¸Å­ ·çÇÁ¸¦ °Å²Ù·Î µ¹¸°´Ù. */
      var num_loc_v=num_org.charAt(i);      /* ÇöÀç ÀÔ·ÂµÈ °ªÀÇ ÇÑ°³ ÇÑ°³ÀÇ °ª. */

      if(num_loc_v!=',') {                  /* ÄÄ¸¶°¡ ¾ø´Â °æ¿ì¿¡¸¸ ¼ýÀÚ¸¦ ºÙÀÎ´Ù */
         number=num_loc_v+number;
      }
   }

   return(number);
}

function Add_Comma(num_org) {
   var num_org_len=num_org.length-1;        /* ÀÔ·ÂµÈ °ªÀÇ ±æÀÌ °è»ê */
   var number='';
   var y=0;

   for(var i=num_org_len; i>=0; i--) {      /* ÄÄ¸¶ Á¦°Å¸¦ À§ÇØ ±æÀÌ ¸¸Å­ ·çÇÁ¸¦ °Å²Ù·Î µ¹¸°´Ù. */
      var num_loc_v=num_org.charAt(i);      /* ÇöÀç ÀÔ·ÂµÈ °ªÀÇ ÇÑ°³ ÇÑ°³ÀÇ °ª. */

      if(y%3==0 && y!=0) {               /* ¼¼ÀÚ¸® ¸¶´Ù ÄÄ¸¶¸¦ ºÙÀÎ´Ù. */
         number=num_loc_v+','+number;
         y++;
      }

      else {
         number=num_loc_v+number;
         y++;
      }
   }

   return(number);
}

/* Ã¼Å©¹Ú½º Ã¼Å© ÈÄ Ã³¸® */
function Check_Go_Submit2(form, url, word1, word2) {
   var len=form.elements.length;
   var total=0;

   for(var i=0; i<len; i++) {
      if(form.elements[i].checked==true) {
         total++;
      }
   }

   if(!total || total==0) {
      window.alert('¼±ÅÃÇÏ½Å ' + word1 + '(ÀÌ)°¡ ¾ø½À´Ï´Ù.\n\nÁ¤È®ÇÏ°Ô È®ÀÎÇØ ÁÖ½Ê½Ã¿À.');
      return;
   }

   else {
      sure=confirm(word2);

      if(sure==true) {
         form.action=url;
         form.submit();
      }

      return;
   }
}

function Auto_Move_Focus(now_value, max_count, move_focus) {
   if(now_value.length >= eval(max_count)) {
      move_focus.focus();
   }
}

function Go_Submit(form, url, word) {
   sure=confirm(word);

   if(sure==true) {
      form.action=url;
      form.submit();
   }

   return;
}


function Mboard_Go_Submit(form, word) {
   sure=confirm(word);

   if(sure==true) {
      form.submit();
   }

   return;
}

/* Ã¼Å©¹Ú½º Ã¼Å© ÈÄ Ã³¸® */
function Go_Submit2(url, word) {
   sure=confirm(word);

   if(sure==true) {
      action_check.location.href=url;
   }

   return;
}


/* Ã¼Å©¹Ú½º Ã¼Å© ÈÄ Ã³¸® */
function Go_Submit21(url, word) {
   sure=confirm(word);

   if(sure==true) {
      location.href=url;
   }

   return;
}


function Form_Submit(form, word) {
   sure=confirm(word);

   if(sure==true) {
      form.submit();
   }

   return false;
}

function Check_All(form) {
   var len=form.elements.length;
   var j=0;

   if(form.all_ck.checked==true) {
      for(var i=0; i<len; i++) {
         form.elements[i].checked=true;
      }
   }

   else {
      for(var i=0; i<len; i++) {
         form.elements[i].checked=false;
      }
   }

   return;
}

function Check_True_All(form) {
   var len=form.elements.length;
   var j=0;

   for(var i=0; i<len; i++) {
      form.elements[i].checked=true;
   }

   return;
}

function Mail_Domain_Choice(v, t) {
   if(v=="") {
      t.readOnly=false;
      t.value="";
      t.focus();
   }

   else {
      t.readOnly=true;
      t.value=v;
   }

   return;
}

// ¹®ÀÚ¿­ ±æÀÌ ±¸ÇÏ±â....
function calByte(msg) {
   var t;
   var msg_len = 0;
   var tmp_msg_len = msg.length;

   for(var k = 0; k < tmp_msg_len; k++){
      t = msg.charAt(k);

      if(escape(t).length > 4) {
         msg_len += 2;
      }

      else if(t != "\r") {
			msg_len++;
		}
   }

	return (msg_len);
}

// limit_length Byte ±âÁØÀ¸·Î ÀÚ¸¥ ÈÄÀÇ ¹®ÀÚ º¸³»±â.
function cutText(msg, limit_length){
   var t;
   var new_msg = new String();
   var msg_len = 0;
   var tmp_msg_len = msg.length;
  
   for(var k = 0; k < tmp_msg_len; k++){
      t = msg.charAt(k);

      if(escape(t).length > 4) {
         msg_len += 2;
      }

      else if(t != "\r") {
			msg_len++;
		}

      if(msg_len > limit_length) {
         new_msg = msg.substring(0, k);
         break;
      }
   }

   return (new_msg);
}

// ¹®ÀÚ¿­ Á¡°Ë ÇÔ¼ö...
function Message_Length_Check(obj1, obj2, limit_length) {
   if(obj2=="") {
      msg_len = calByte(obj1.value);

      if(msg_len > limit_length) {
         excess_len = msg_len - limit_length;

         window.alert("ÃÖ´ë " + limit_length + "ByteÀÌ¹Ç·Î ÃÊ°úµÈ ±ÛÀÚ¼ö´Â ÀÚµ¿À¸·Î »èÁ¦µË´Ï´Ù.\r\nÇöÀç " + excess_len + "Byte°¡ ÃÊ°úµÇ¾ú½À´Ï´Ù.");

         modify_msg = cutText(obj1.value, limit_length);
         obj1.value = modify_msg;;
         return;
      }
   }

   else {
      msg_len = calByte(obj1.value);
      obj2.value = msg_len;

      if(msg_len > limit_length) {
         excess_len = msg_len - limit_length;

         window.alert("ÃÖ´ë " + limit_length + "ByteÀÌ¹Ç·Î ÃÊ°úµÈ ±ÛÀÚ¼ö´Â ÀÚµ¿À¸·Î »èÁ¦µË´Ï´Ù.\r\nÇöÀç " + excess_len + "Byte°¡ ÃÊ°úµÇ¾ú½À´Ï´Ù.");

         modify_msg = cutText(obj1.value, limit_length);
         obj1.value = modify_msg;
         obj2.value = calByte(modify_msg);
         return;
      }
   }
}

// ÇÊµå Áö¿ì±â...
function clearField(field){
   if(field.value == field.defaultValue) {
      field.value = "";
   }
}

function Cnt_UpDown(obj, key) {
   if(isNaN(parseInt(obj.value))) { // ¼ýÀÚ°¡ ¾Æ´Ï¸é...
      obj.value = 1;
      return;
   }

   else {
      if(key == "D") {
         if(parseInt(obj.value) <= 1) {
            return;
         }

         else {
            obj.value = parseInt(obj.value) - 1;
            return;
         }
      }

      else {
         obj.value = parseInt(obj.value) + 1;
         return;
      }
   }
}

function Site_Change(url, target) {
   if(url == "ready") {
      window.alert("[ÁØºñÁß]ÀÔ´Ï´Ù.");
      return;
   }

   else if(url) {
      if(target) {
         target.location.href = url;
      }

      else {
         location.href = url;
      }

      return;
   }

   else {
      return;
   }
}



function ShowFlash(url, width, height){
                document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
        document.write('<param name="movie" value="' + url + '">');
        document.write('<param name="quality" value="high">');
        document.write('<param name="wmode" value="transparent">');
        document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
        document.write('</object>');
}

function ShowFlashTwo(url, width, height){
                document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
        document.write('<param name="movie" value="' + url + '">');
        document.write('<param name="quality" value="high">');
        document.write('<param name="wmode" value="transparent">');
        document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
        document.write('</object>');
}



function flash_menu(path, width, height, name){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+width+'" height="'+height+'" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="'+name+'">'
	+'<param name="movie" value="'+path+'">'
	+'<param name="quality" value="high">'
	+'<param name="wmode" value="transparent">'
	+'<param name="allowScriptAccess" value="always">'
	+'<embed src="'+path+'" quality="high" wmode="transparent" pluginspage="https://www.macromedia.com/go/getflashplayer" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" showLiveConnect="true" name="'+name+'" allowScriptAccess="always"></embed>'
	+'</object>');
}


function moveTo(url)
{
	document.location.href=url;
}



function eScroll()
{
	/*********************************
	 * eScroll ( eNamoo scroll script )
	 * by mirrh
	 * 2006.07.16
	 ********************************/

	var thisObj = this;
	this.timeObj = null;

	/*** ¼³Á¤º¯¼ö ***/
	this.mode = "left";				// ½ºÅ©·Ñ ¹æÇâ (top|left)
	this.width = "100%";			// ¶óÀÎ´ç °¡·Î°ª (pixel)
	this.height = 10;				// ¶óÀÎ´ç ³ôÀÌ°ª (pixel)
	this.line = 1;					// Ãâ·Â ¶óÀÎ¼ö
	this.delay = 1;				// ½ºÅ©·ÑÈÄ µô·¹ÀÌ ½Ã°£
	this.speed = 1;					// ½ºÅ©·Ñ ¼Óµµ (ÀÛÀ»¼ö·Ï ºü¸§)
	this.id = 'obj_eScroll';		// °´Ã¼ id (Å¬·¡½º ´ÙÁß »ç¿ë½Ã id ´Ù¸£°Ô ÁöÁ¤ ¿ä¸Á)
	this.contents = new Array();	// Ãâ·Â ³»¿ë (¹è¿­·Î ³»¿ë ÁöÁ¤ ¿ä¸Á)
	this.align = "left";			// ³»¿ë aligne
	this.valign = "middle";			// ³»¿ë valigne

	/*** ³»Àåº¯¼ö ***/
	this.gap = 0;
	this.direction = 1;

	this.add = add;
	this.exec = exec;
	this.start = start;
	this.stop = stop;
	this.scroll = scroll;
	this.direct = direct;
	this.go = go;

	function add(str)
	{
		this.contents[this.contents.length] = str;
	}

	function exec()
	{
		this.basis = (this.mode == "left") ? this.width : this.height;
		var outWidth = this.width * ((this.mode == "left") ? this.line : 1);
		var outHeight = this.height * ((this.mode == "top") ? this.line : 1);

		var outline = "<div id=" + this.id + " style='overflow:hidden;width:" + outWidth + ";height:" + outHeight + "'><table></table></div>";
		document.write(outline);
		this.obj = document.getElementById(this.id);

		var tb = this.obj.appendChild(document.createElement("table"));
		var tbody = tb.appendChild(document.createElement("tbody"));
		tb.cellPadding = 0 ;
		tb.cellSpacing = 0 ;
		tb.onmouseover = function(){thisObj.stop()};
		tb.onmouseout = function(){thisObj.start()};

		if (this.mode=="left") var tr = tbody.appendChild(document.createElement("tr"));
		for (var k=0; k < this.contents.length; k++){
			if (this.mode=="top") var tr = tbody.appendChild(document.createElement("tr"));
			var td = tr.appendChild(document.createElement("td"));
			td.noWrap = true;
			td.style.width = this.width;
			td.style.height = this.height;
			td.style.textAlign = this.align;
			td.style.verticalAlign = this.valign;
			td.innerHTML = this.contents[k];
		}

		/*var len = (this.contents.length<this.line) ? this.contents.length : this.line;
		//for (i=0;i<1;i++){
			var i =0;
			if (this.mode=="top") var tr = tbody.appendChild(document.createElement("tr"));
			td = tr.appendChild(document.createElement("td"));
			td.noWrap = true;
			td.style.width = this.width;
			td.style.height = this.height;
			td.style.textAlign = this.align;
			td.style.verticalAlign = this.valign;
			td.innerHTML = this.contents[i];
		//}   */

		this.obj.parent = this;
		this.tpoint = this.basis * this.contents.length;
		this.start();
	}

	function scroll()
	{
		var out = (this.mode=="left") ? this.obj.scrollLeft : this.obj.scrollTop;
		if (out%this.basis==0){
			this.gap++;
			if (this.gap>=this.delay) this.gap = 0;
		}
		if (!this.gap){
			var ret = (out==this.tpoint) ? this.direction : out + this.direction;
			if (ret<0) ret = this.tpoint + ret;
			if (this.mode=="left") this.obj.scrollLeft = ret;
			else this.obj.scrollTop = ret;
		}
	}

	function start()
	{
		this.timeObj = window.setInterval("(document.getElementById('" + this.id + "')).parent.scroll()",this.speed);
	}

	function stop()
	{
		clearTimeout(this.timeObj);
	}

	function direct(d)
	{
		this.direction = d;
	}

	function go()
	{
		this.stop();
		var out = (this.mode=="left") ? this.obj.scrollLeft : this.obj.scrollTop;
		var ret = (parseInt(out / this.basis) + this.direction) * this.basis;
		//if (ret<0) ret = this.tpoint + ret;
		if (ret>this.tpoint) ret = this.basis;
		if (this.mode=="left") this.obj.scrollLeft = ret;
		else this.obj.scrollTop = ret;
	}

}


function cart_insert(type,gno) {
	var f= eval("cart_set_form_" + gno);
	var cnt = eval("cart_set_form_" + gno+ ".ord_cnt_" + gno +".value");

	if(type=='1') {
		f.cart_type.value=type;
		f.ord_cnt.value = cnt;
		f.action='./cartstep_01_01.php';
		f.submit();
	}
	
	else if(type=='2') {
		f.cart_type.value=type;
		f.ord_cnt.value = cnt;
		f.action='./cartstep_01_02.php';
		f.submit();
	}
	
	else {
		window.alert('[¿À·ù] ´Ù½Ã ½ÃµµÇØÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.');
	}
}


var please_wait = null;

function open_detail(url, target) {
    if ( ! document.getElementById) {
          return false;
    }

    if (please_wait != null) {
          document.getElementById(target).innerHTML = please_wait;
    }

    if (window.ActiveXObject) {
          link = new ActiveXObject("Microsoft.XMLHTTP");
    } else if (window.XMLHttpRequest) {
          link = new XMLHttpRequest();
    }

    if (link == undefined) {
          return false;
    }
	var re_url="./goods_image_view.php?gs_idx=" + url;
	var view_id = "link_id_" + url;
    link.onreadystatechange = function() { response(re_url, target , view_id); }
    link.open("GET", re_url, true);
    link.send(null);
}

function response(url, target , view_id) {
    if (link.readyState == 4) {

		if(document.getElementById(view_id).style.display == "none") {
			document.getElementById(view_id).style.display = "block";
		}else if(document.getElementById(view_id).style.display = "block") {
			document.getElementById(view_id).style.display = "none";
		}
         document.getElementById(target).innerHTML = (link.status == 200) ? link.responseText : "¸µÅ©°¡ Á¤È®ÇÏÁö ¾Ê½À´Ï´Ù. ¿¡·¯ÄÚµå: " + link.status;
    }
}

function set_loading_message(msg) {
    please_wait = msg;
}


 function list_cartstep_insert(type,gno) {
	var fname= "cart_set_form_" + gno;
	var f=document.fname;
	if(type=='1') {
		f.cart_type.value=type;
		f.action='./cartstep_01_01.php';
		f.submit();
	}
	
	else if(type=='2') {
		f.cart_type.value=type;
		f.action='./cartstep_01_02.php';
		f.submit();
	}
	
	else {
		window.alert('[¿À·ù] ´Ù½Ã ½ÃµµÇØÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.');
	}
}


/*** ·¹ÀÌ¾î ÆË¾÷Ã¢ ¶ç¿ì±â ***/
function popupLayer(s,w,h)
{
	if (!w) w = 600;
	if (!h) h = 400;

	var pixelBorder = 3;
	var titleHeight = 12;
	w += pixelBorder * 2;
	h += pixelBorder * 2 + titleHeight;

	var bodyW = document.body.clientWidth;
	var bodyH = document.body.clientHeight;

	var posX = (bodyW - w) / 2;
	var posY = (bodyH - h) / 2;


	/*** ¹é±×¶ó¿îµå ·¹ÀÌ¾î ***/
	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		left = 0;
		top = 0;
		width = "100%";
		height = document.body.scrollHeight;
		backgroundColor = "#ffffff";
		filter = "Alpha(Opacity=30)";
		opacity = "0.5";
	}
	obj.id = "objPopupLayerBg";
	document.body.appendChild(obj);

	/*** ³»¿ëÇÁ·¹ÀÓ ·¹ÀÌ¾î ***/
	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		left = posX + document.body.scrollLeft;
		top = posY + document.body.scrollTop;
		width = w;
		height = h;
		backgroundColor = "#ffffff";
		border = "3px solid #880000";
	}
	obj.id = "objPopupLayer";
	document.body.appendChild(obj);

	/*** Å¸ÀÌÆ²¹Ù ·¹ÀÌ¾î ***/
	var bottom = document.createElement("div");
	with (bottom.style){
		position = "absolute";
		width = w - pixelBorder * 2;
		height = titleHeight;
		left = 0;
		top = h - titleHeight - pixelBorder * 3;
		padding = "4px 0 0 0";
		textAlign = "center";
		backgroundColor = "#880000";
		color = "#ffffff";
		font = "bold 8pt tahoma; letter-spacing:0px";
		
	}
	bottom.innerHTML = "<a href='javascript:closeLayer()'><font color=white>X close</font></a>";
	obj.appendChild(bottom);

	/*** ¾ÆÀÌÇÁ·¹ÀÓ ***/
	var ifrm = document.createElement("iframe");
	with (ifrm.style){
		width = w - 6;
		height = h - pixelBorder * 2 - titleHeight - 3;
		//border = "3 solid #000000";
	}
	ifrm.frameBorder = 0;
	ifrm.src = s;
	//ifrm.className = "scroll";
	obj.appendChild(ifrm);
}
function closeLayer()
{
	_ID('objPopupLayer').parentNode.removeChild( _ID('objPopupLayer') );
	_ID('objPopupLayerBg').parentNode.removeChild( _ID('objPopupLayerBg') );
}

function _ID(obj)

{ return document.getElementById(obj) }  










 

	function func_newtabs(obj){
		if(obj == "1"){
			newtab_1.style.display = "";
			newtab_2.style.display = "none";
			newtab_3.style.display = "none";
			newtab_4.style.display = "none";
			newtab_5.style.display = "none";
			newtab_6.style.display = "none";
			newtab_7.style.display = "none";
			newtab_8.style.display = "none";
		}else if(obj == "2"){
			newtab_1.style.display = "none";
			newtab_2.style.display = "";
			newtab_3.style.display = "none";
			newtab_4.style.display = "none";
			newtab_5.style.display = "none";
			newtab_6.style.display = "none";
			newtab_7.style.display = "none";
			newtab_8.style.display = "none";
 
		}else if(obj == "3"){
			newtab_1.style.display = "none";
			newtab_2.style.display = "none";
			newtab_3.style.display = "";
			newtab_4.style.display = "none";
			newtab_5.style.display = "none";
			newtab_6.style.display = "none";
			newtab_7.style.display = "none";
			newtab_8.style.display = "none";
 
		}else if(obj == "4"){
			newtab_1.style.display = "none";
			newtab_2.style.display = "none";
			newtab_3.style.display = "none";
			newtab_4.style.display = "";
			newtab_5.style.display = "none";
			newtab_6.style.display = "none";
			newtab_7.style.display = "none";
			newtab_8.style.display = "none";
		}else if(obj == "5"){
			newtab_1.style.display = "none";
			newtab_2.style.display = "none";
			newtab_3.style.display = "none";
			newtab_4.style.display = "none";
			newtab_5.style.display = "";
			newtab_6.style.display = "none";
			newtab_7.style.display = "none";
			newtab_8.style.display = "none";
		}else if(obj == "6"){
			newtab_1.style.display = "none";
			newtab_2.style.display = "none";
			newtab_3.style.display = "none";
			newtab_4.style.display = "none";
			newtab_5.style.display = "none";
			newtab_6.style.display = "";
			newtab_7.style.display = "none";
			newtab_8.style.display = "none";
		}else if(obj == "7"){
			newtab_1.style.display = "none";
			newtab_2.style.display = "none";
			newtab_3.style.display = "none";
			newtab_4.style.display = "none";
			newtab_5.style.display = "none";
			newtab_6.style.display = "none";
			newtab_7.style.display = "";
			newtab_8.style.display = "none";
		}else if(obj == "8"){
			newtab_1.style.display = "none";
			newtab_2.style.display = "none";
			newtab_3.style.display = "none";
			newtab_4.style.display = "none";
			newtab_5.style.display = "none";
			newtab_6.style.display = "none";
			newtab_7.style.display = "none";
			newtab_8.style.display = "";
		}
 
	}


	function ShowCategoryLayers(ele)
	{
		var f = document.getElementById(ele);
		f.style.display = f.style.display == "block" ? "none" : "block";
	}

	function ShowCategoryLayers2(ele)
	{
		var f = document.getElementById(ele);
		f.style.display = "none";
	}


	function ShowCategoryLayer(ele)
	{
		var f = document.getElementById(ele);
		f.style.display = f.style.display == "block" ? "none" : "block";
	}

	function ShowCategoryLayer2(ele)
	{
		var f = document.getElementById(ele);
		f.style.display = "none";
	}
