  //ÇÃ·¡½ÃºÎ¸§
function openflash(width,height,src,pm,sm){
    return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width="+width+" height="+height+"><param name=movie value="+src+"><param name=\"flashvars\" value=\"pm="+pm+"&sm="+sm+"\"><param name=\"allowScriptAccess\" value=\"sameDomain\"><param name=\"wmode\" value=\"transparent\"><param name=quality value=high ><embed src="+src+" quality=high  pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width="+width+" height="+height+"></embed></object>";
}

function writeflash(src){
    document.write(src);
}
	
	function allblur() {
         for (i = 0; i < document.links.length; i++)
              document.links[i].onfocus = document.links[i].blur;
    }




	
	function sbar(st) {
		st.style.backgroundColor = '#FBFBFB';
	}
	
	function cbar(st) {
		st.style.backgroundColor = '';
	}

<!--
 SiteUrl = '';



url_list = new Array();
newwin_list = new Array();
window_list = new Array()
fullwin_list = new Array()

url_alert = new Array();

// ÇÃ·¹½ÃÆÄÀÏ¿¡¼­ ¸µÅ©°É¶§¿¡´Â
// javascript:go_site(1);
// ÀÌ·±½ÄÀ¸·Î ¸µÅ©°É¸é µË´Ï´Ù.
// ¹øÈ£´Â url_list[¹øÈ£]°ªÀ» ³ÖÀ¸¸é µË´Ï´Ù.




//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################

 url_list[1] = '../index.asp';                         // ¸ÞÀÎ

 // È¨/»çÀÌÆ®¸ÊÅ¾¸Þ´º
 url_list[2] = '../main/main.asp'; //
 url_list[3] = 'mailto:'; //
 url_list[4] = '../06_customer/sitemap.asp'; //

 url_list[5] = '../login/logout.asp'; //·Î±×¾Æ¿ô
 url_list[6] = '../member/modify.asp'; // È¸¿øÁ¤º¸¼öÁ¤
 url_list[7] = '#'; //È¸¿øÅ»Åð
 url_list[8] = 'http://webmail.kbpharma.co.kr'; //°æº¸¸ÞÀÏ
 url_list[9] = '../eng/index.asp'; //È¸¿øÅ»Åð
 url_list[10] = '../jap/01_company/company01.asp'; //È¸¿øÅ»Åð


//01_company(°æº¸¾àÇ°¼Ò°³)
 url_list[110] = '../01_company/company01.asp'; // ÀÎ»ç¸»
 url_list[120] = '../01_company/company02.asp'; // ¼Ò°³
 url_list[130] = '../01_company/company03.asp'; // ¿¬Çõ
 url_list[140] = '../01_company/company04.asp'; // ±â¼úÇöÈ²
 url_list[150] = '../01_company/company05.asp'; // Á¶Á÷µµ
 url_list[160] = '../01_company/company06.asp'; // ºÎ¼­,ÁöÁ¡¼Ò°³
 url_list[170] = '../01_company/company07.asp'; // ¼­¿ï,¿Â¾ç¿À½Ã´Â±æ

//02_product(Á¦Ç°¼Ò°³)
 url_list[220] = '../02_product/product01.asp?Bcode=01&Mcode=01&titleName=¿ø·áÀÇ¾àÇ°/°æ±¸¿ëÁÖ»ç¿ë ¼¼ÆÄ¸£½ºÆ÷¸° ÀüÃ¼º¸±â&titleSubName=¿ø·áÀÇ¾àÇ° > °æ±¸¿ë/ÁÖ»ç¿ë ¼¼ÆÄ·Î½ºÆ÷¸°'; // ¿ø·áÀÇÇÐ-	°æ±¸¿ë/ÁÖ»ç¿ë ¼¼ÆÄ·Î½ºÆ÷¸°
 url_list[210] = '../02_product/product02.asp?Bcode=02&Mcode=02&titleName=¿ÏÁ¦ÀÇ¾àÇ°/Àü¹®ÀÇ¾àÇ°ÀüÃ¼º¸±â&titleSubName=¿ÏÁ¦ÀÇ¾àÇ° > Àü¹®ÀÇ¾àÇ°'; // ¿ÏÁ¦ÀÇÇÐ//ÀÏ¹ÝÀÇ¾àÇ°
 url_list[211] = '../02_product/product02.asp?Bcode=02&Mcode=01&titleName=¿ÏÁ¦ÀÇ¾àÇ°/ÀÏ¹ÝÀÇ¾àÇ°ÀüÃ¼º¸±â&titleSubName=¿ÏÁ¦ÀÇ¾àÇ° > ÀÏ¹ÝÀÇ¾àÇ°'; // ¿ÏÁ¦ÀÇÇÐ//Àü¹®ÀÇ¾àÇ°
 url_list[212] = '../02_product/product02.asp?Bcode=02&Mcode=02&titleName=¿ÏÁ¦ÀÇ¾àÇ°/Àü¹®ÀÇ¾àÇ°ÀüÃ¼º¸±â&titleSubName=¿ÏÁ¦ÀÇ¾àÇ° > Àü¹®ÀÇ¾àÇ°'; // ¿ÏÁ¦ÀÇÇÐ//ÀÏ¹ÝÀÇ¾àÇ°
 
 url_list[2102] = '../02_product/product01.asp?Bcode=01&Mcode=02&titleName=¿ø·áÀÇ¾àÇ°/Áß°£Ã¼ ÀüÃ¼º¸±â&titleSubName=¿ø·áÀÇ¾àÇ° > Áß°£Ã¼'; // ¿ø·áÀÇ¾àÇ°-Áß°£Ã¼
 url_list[2103] = '../02_product/product01.asp?Bcode=01&Mcode=03&titleName=¿ø·áÀÇ¾àÇ°/ÀÏ¹ÝÁ¦¿ø·á ÀüÃ¼º¸±â&titleSubName=¿ø·áÀÇ¾àÇ° > ÀÏ¹ÝÁ¦¿ø·á'; // ¿ø·áÀÇ¾àÇ°-ÀÏ¹ÝÃ¼ ¿ø·á
 
 url_list[240] = '../02_product/product03.asp?Bcode=03&titleName=¿ÏÁ¦ÀÇ¾àÇ°(ÁÖ»çÁ¦)ÀüÃ¼º¸±â&titleSubName=¿ÏÁ¦ÀÇ¾àÇ°(ÁÖ»çÁ¦)'; // ¿ÏÁ¦ÀÇ¾àÇ°(ÁÖ»çÁ¦)

 url_list[231] = '../02_product/product02_view.asp?productNumber=76&Bcode=02&Mcode=02&Scode=01&codeName=Ç×»ýÁ¦&titleSubName=¿ÏÁ¦ÀÇ¾àÇ° > Àü¹®ÀÇ¾àÇ°'; // ¸ÞÀÎ//01
 url_list[232] = '../02_product/product02_view.asp?productNumber=80&Bcode=02&Mcode=02&Scode=01&codeName=Ç×»ýÁ¦&titleSubName=¿ÏÁ¦ÀÇ¾àÇ° > Àü¹®ÀÇ¾àÇ°'; // ¸ÞÀÎ//02
 url_list[233] = '../02_product/product02_view.asp?productNumber=96&Bcode=02&Mcode=02&Scode=07&codeName=°æ±¸¿ë¼Ò¿°ÁøÅëÁ¦&titleSubName=¿ÏÁ¦ÀÇ¾àÇ° > Àü¹®ÀÇ¾àÇ°'; // ¸ÞÀÎ//03
 url_list[234] = '../02_product/product02_view.asp?productNumber=101&Bcode=02&Mcode=02&Scode=11&codeName=°íÁöÇ÷ÁõÄ¡·áÁ¦&titleSubName=¿ÏÁ¦ÀÇ¾àÇ° > Àü¹®ÀÇ¾àÇ°'; // ¸ÞÀÎ//04
//03_oline(°ßÀû¹®ÀÇ)
 url_list[310] = '../03_online/online_agree.asp';     // ¿Â¶óÀÎ°ßÀû¹®ÀÇ

//04_community(Á¤º¸±¤Àå)
 url_list[410] = '../04_community/community_view.asp?tn=tblScientific'; // ÇÐ¼úÁ¤º¸
 url_list[420] = '../04_community/community02_list.asp?tn=tblProductNews'; // Á¦Ç°Á¤º¸
 url_list[430] = '../04_community/community_view.asp?tn=tblHealth'; // °Ç°­Á¤º¸
 url_list[440] = '../04_community/community04.asp'; // °ü·Ã»çÀÌÆ®
 url_list[450] = '../04_community/community_consultwrite.asp'; // ¼ÒºñÀÚ»ó´ã½Ç
 //url_list[460] = '../04_community/qna_list.asp'; // QNA

//05_employ(Ã¤¿ëÁ¤º¸)
 url_list[500] = '../05_employ/employ00.asp'; // Ã¤¿ë¾È³»
 url_list[510] = '../05_employ/employ01_list.asp?tn=tblRecruit'; // Ã¤¿ë°øÁö
 url_list[520] = '../05_employ/employ02.asp'; // ÀÎÀç»ó
 url_list[530] = '../05_employ/employ_list.asp?tn=tblRecruitInquiry'; // Ã¤¿ë¹®ÀÇ»çÇ×

//06_customer(°í°´Áö¿ø)
 url_list[610] = '../06_customer/customer_list.asp?tn=tblNoticeBoard'; // °øÁö»çÇ×
 url_list[620] = '../06_customer/customer_list.asp?tn=tblFreeBoard'; // ÀÚÀ¯°Ô½ÃÆÇ
 url_list[630] = '../06_customer/customer_list.asp?tn=tblNewsBoard'; // º¸µµÀÚ·á

//07_member(È¸¿øÁ¤º¸)
 url_list[710] = '../member/join.asp'; // È¸¿ø°¡ÀÔ
 url_list[720] = '../member/idpw_search.asp'; // ¾ÆÀÌµðÆÐ½º¿öµåÃ£±â
 url_list[730] = '../member/kbpharm02.asp';    //°³ÀÎÁ¤º¸º¸È£Á¤Ã¥   



// ¸Þ´º³¡



// »õÃ¢ÀÎ ¸Þ´º
newwin_list[8] = 'true';



// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//  window_list[56] = 'width=780 height=600 resizable=no';






//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'



//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################

// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[211] = 'true';


// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//window_list[17] = 'width=550 height=450 resizable=no';

//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'





function go_site(num)
{
  if(url_list[num])
  {
// º»Ã¢À¸·Î ÀÌµ¿ÇÏ´Â °æ¿ì
    if(newwin_list[num] != 'true' && fullwin_list[num] != 'true' && (window_list[num] == '' || window_list[num] == null))
    {
    	location=url_list[num];
    }

// À©µµ¿ì Ã¢À¸·Î ¿­¸®´Â°æ¿ì
    if(window_list[num] != '' && window_list[num] != null)
    {
      window.open(url_list[num], 'new_win', window_list[num]);
    }


// ÀüÃ¼Ã¢À¸·Î ¿­¸®´Â °æ¿ì
    if(fullwin_list[num] == 'true')
    {
      window.open(url_list[num], 'new_win', 'width=1024 height=724 resizable=yes');
    }


// »õÃ¢À¸·Î ¿­¸®´Â°æ¿ì
    if(newwin_list[num] == 'true')
    {
      window.open(url_list[num], '_blank', 'directories=yes, titlebar=yes, toolbar=yes, menubar=yes, statusbar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
    }
  }else if(url_alert[num]) {		// Alert Ã¢ ¶ç¿ï¶§
	  //alert(url_alert[num]);
	  window.alert("ÁØºñÁßÀÔ´Ï´Ù.");
  }
}


function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}



function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}


var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

function getSty(id) {
	x = getRef(id);
	return (isNS4 ? getRef(id) : getRef(id).style);
}

var scrollerHeight = 88;
var puaseBetweenImages = 3000;
var imageIdx = 0;

function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset + 58;   // À§ÂÊ À§Ä¡
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 58; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 253;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			divMenu.top += yOffset;
		else if (isDOM)
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}

//********************************
//E-mail Ã¼Å©
//********************************
	function isEmail(str){ 
	  // regular expression Áö¿ø ¿©ºÎ Á¡°Ë
	  var supported = 0;
		  if (window.RegExp) {
			var tempStr = "a";
			var tempReg = new RegExp(tempStr);
			    if (tempReg.test(tempStr)) supported = 1;
		  }
		  if (!supported) 
			return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
			var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
			var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
			return (!r1.test(str) && r2.test(str));
	}

//********************************
//ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å©
//********************************
	function Jumin_chk(resident){ 
		IDtot =0;
		IDAdd = "234567892345";
		for(i=0; i<12; i++)
			IDtot = IDtot + parseInt(resident.substring(i, i+1)) * parseInt(IDAdd.substring(i, i+1));
			IDtot = 11 - (IDtot%11);
			if (IDtot == 10) 
				IDtot = 0;
			else if (IDtot == 11) 
				IDtot =1;
					  
			if(parseInt(resident.substring(12, 13)) != IDtot) {
				return false;
			}
			return true;
	}

//************************************
//»ç¾÷ÀÚ¹øÈ£ Ã¼Å©
//************************************
function checkBizID( bizID ){
	// bizID´Â ¼ýÀÚ¸¸ 10ÀÚ¸®·Î ÇØ¼­ ¹®ÀÚ¿­·Î ³Ñ±ä´Ù.
	var checkID = new Array(1, 3, 7, 1, 3, 7, 1, 3, 5, 1);
	var tmpBizID, i, chkSum=0, c2, remander;

	for (i=0; i<=7; i++) chkSum += checkID[i] * bizID.charAt(i);

	c2 = "0" + (checkID[8] * bizID.charAt(8));
	c2 = c2.substring(c2.length - 2, c2.length);

	chkSum += Math.floor(c2.charAt(0)) + Math.floor(c2.charAt(1));

	remander = (10 - (chkSum % 10)) % 10 ;

	if (Math.floor(bizID.charAt(9)) == remander) return true; // OK!
	return false;
}

//**************************************
//¾ÆÀÌµð Áßº¹È®ÀÎ Ã¢ ¿ÀÇÂ   
//**************************************
function CheckID(){
	var f = document.registform;
	var userId = f.userId.value;
	if (userId=='') {
		alert("ID¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		f.userId.focus();
		return false;
	}
	for (i = 0; i < userId.length; i++) {
		if (userId.charAt(i) >= '0' && userId.charAt(i) <= '9')
			continue;
		else if (userId.charAt(i) >= 'a' && userId.charAt(i) <= 'z')
			continue;
		else if (userId.charAt(i) >= 'A' && userId.charAt(i) <= 'Z')
			continue;
		else {
			alert("ID¿¡´Â ¿µ¹®ÀÚ, ¼ýÀÚ ¹× '_' ¸¸ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
			f.userId.select();
			return false;
		}
	}
	if (userId.length < 4 || userId.length > 12) {
		alert("ID´Â 4ÀÚ ÀÌ»ó, 8ÀÚ ÀÌÇÏ·Î¸¸ °¡´ÉÇÕ´Ï´Ù.");
		f.userId.focus();
		return false;
	}
	window.open('userCheck.asp?userId='+userId,'_ChkID','width=357,height=200,status=no,scrollbars=no,resize=no, left=5, top=5');
}



//-->

