/* ¼ýÀÚ¸¸ ¹Þ±â Function */

function chkNum(objName, textValue) {
	var strObj = eval(objName);
	if (isNaN(textValue) == true) {
		alert('¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä.');
		strObj.value = '';
		strObj.focus();
		return false;
	}
}
function Check_Str(field, maxlimit, gubun)
{
	var temp, temp1;
	var strbyte;
	strbyte = 0;
	len = field.value.length;


	for(k=0;k<len;k++)
	{
		temp = field.value.charAt(k);
		temp1 = field.value.charCodeAt(k);
		if(temp=="\"" || temp=="<" || temp==">" || temp=="'")
		{
			alert("Æ¯¼ö¹®ÀÚ \" , < , >, '  Àº ÀÔ·ÂÇÏ½Ç¼ö ¾ø½À´Ï´Ù");
			field.value = field.value.substring(0, k);
			break;
		}
		else
		{
			strbyte += (temp1 > 128) ? 2 : 1;			
			if(strbyte > maxlimit)
			{
				//alert(gubun + "Àº(´Â) " + maxlimit + " Byte¸¦ ³ÑÀ»¼ö ¾ø½À´Ï´Ù.");	--	( byte ´ë½Å ÇÑ±Û XXÀÚ·Î º¯°æ : Jinsoo )
				alert(gubun + "Àº(´Â) ÇÑ±Û" + (maxlimit/2) + "ÀÚ ¸¦ ³ÑÀ»¼ö ¾ø½À´Ï´Ù.");
				field.value = field.value.substring(0, k);
				break;
			} 
		}
	}
}

function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length-1; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}


function close_check(){
	theX=window.event.x -8
	theY=window.event.y -8
	close_div.style.display = "";
	close_div.style.setExpression("left","theX");
	close_div.style.setExpression("top","theY");
}

function product_close(){
		overlay.style.display = "none";		
		product_view.style.display = "none";
		close_div.style.display = "none";
		eval("product_frame.location.href= ''");		
}

function delete_close(){
		close_div.style.display = "none";
}
 
function ebcorp_Scroll(){
	var a=document.body.scrollTop + 200
	var b=  ( (screen.width -900) /2 ) + 900;
	ebcorp_today.style.top = a	
	ebcorp_today.style.left = b
}




































































































