<!--
 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] = '/main/main.asp';                         // ¸ÞÀÎ

 // È¨/»çÀÌÆ®¸ÊÅ¾¸Þ´º
 url_list[2] = '#'; //
 url_list[3] = '#'; //
 url_list[4] =  '/01_news/sitemap.asp';       //sitemap
 url_list[5] = 'mailto:doristpc@163.com'; //ÀÌ¸ÞÀÏ


 // È¨/»çÀÌÆ®¸ÊÅ¾¸Þ´º
 url_list[6] = SiteUrl + '/05_member/join.asp'; //È¸¿ø°¡ÀÔ
 url_list[7] = SiteUrl + '/05_member/login.asp'; //·Î±×ÀÎ

 // È¨/»çÀÌÆ®¸ÊÅ¾¸Þ´º
 url_list[8] = SiteUrl + '/05_member/logout.asp'; // ·Î±×¾Æ¿ô
 url_list[10] = SiteUrl + '/05_member/modify.asp'; // ÀÓ½Ã


//ÇÑ±Û,¿µ¹®
 url_list[11] = SiteUrl + 'http://www.tpcpage.com/'; // ÀÓ½Ã
 url_list[12] = SiteUrl + 'http://www.tpcpage.co.kr/'; // ÀÓ½Ã
 
 
//¿À¸¥ÂÊ Äü SDR 
url_list[9] =  SiteUrl + '/04_community/community_list.asp?tn=tblSdrBoard&PageNum=4&SubNum=2'; //¿À¸¥ÂÊ Äü SDR 

//´ÙÀ½¸Þ´º±îÁö ¿©À¯¸¦ µÎ°í Á¤ÀÇ


// ¸Þ´º½ÃÀÛ

// 01_news(´º½º)
 url_list[110] = SiteUrl + '/01_news/news_list.asp?tn=tblNoticeBoard&PageNum=1&SubNum=1'; //
 
 
// 02_01_company(¼Ò°³)
 url_list[211] = SiteUrl + '/02_company/01_01.asp?PageNum=2&SubNum=1'; //2-1
 url_list[212] = SiteUrl + '/02_company/01_02.asp?PageNum=2&SubNum=1'; //2-1
 url_list[213] = SiteUrl + '/02_company/01_03.asp?PageNum=2&SubNum=1'; //
 url_list[214] = SiteUrl + '/02_company/01_04.asp?PageNum=2&SubNum=1'; //
 url_list[215] = SiteUrl + '/02_company/01_05.asp?PageNum=2&SubNum=1'; //
 url_list[216] = SiteUrl + '/02_company/01_06.asp?PageNum=2&SubNum=1'; // 
 // 02_02_company(ceo¼Ò°³)
 url_list[221] = SiteUrl + '/02_company/02_01.asp?PageNum=2&SubNum=2'; //2-2
 url_list[222] = SiteUrl + '/02_company/02_02.asp?PageNum=2&SubNum=2'; // 
  // 02_03_company(Áö»ç)
 url_list[231] = SiteUrl + '/02_company/03_01.asp?PageNum=2&SubNum=3'; //2-3
 url_list[232] = SiteUrl + '/02_company/03_02.asp?PageNum=2&SubNum=3'; // 

  // 02_04_company(ÁÖ¼Ò)
 url_list[241] = SiteUrl + '/02_company/04_01.asp?PageNum=2&SubNum=4'; //2-4
 url_list[242] = SiteUrl + '/02_company/04_02.asp?PageNum=2&SubNum=4'; //
 url_list[243] = SiteUrl + '/02_company/04_03.asp?PageNum=2&SubNum=4'; //
 url_list[244] = SiteUrl + '/02_company/04_04.asp?PageNum=2&SubNum=4'; //
 url_list[245] = SiteUrl + '/02_company/04_05.asp?PageNum=2&SubNum=4'; //
 url_list[246] = SiteUrl + '/02_company/04_06.asp?PageNum=2&SubNum=4'; //
 url_list[247] = SiteUrl + '/02_company/04_07.asp?PageNum=2&SubNum=4'; //
 url_list[248] = SiteUrl + '/02_company/04_08.asp?PageNum=2&SubNum=4'; //
 



//03_product(»óÇ°)
 url_list[310] = SiteUrl + '/03_product/01.asp?PageNum=3&SubNum=1'; //
 url_list[320] = SiteUrl + '/03_product/02.asp?PageNum=3&SubNum=2'; //
 url_list[330] = SiteUrl + '/03_product/03.asp?PageNum=3&SubNum=3'; //
 url_list[340] = SiteUrl + '/03_product/04.asp?PageNum=3&SubNum=4'; //



//04_community(Ä¿¹Â´ÏÆ¼)
 url_list[410] = SiteUrl + '/04_community/community_list.asp?tn=tblFreeBoard&PageNum=4&SubNum=1'; //
 url_list[420] = SiteUrl + '/04_community/community_list.asp?tn=tblSdrBoard&PageNum=4&SubNum=2'; //
 url_list[430] = SiteUrl + '/04_community/04.asp'; //
 url_list[440] = SiteUrl + '/04_community/05.asp'; //



 // member(È¸¿ø)
 url_list[610] = SiteUrl + '/05_member/join.asp'; //È¸¿ø°¡ÀÔ
 url_list[620] = SiteUrl + '/05_member/login.asp'; //·Î±×ÀÎ
 url_list[630] = SiteUrl + '/05_member/idpw.asp'; //¾ÆÀÌµð/ºñ¹Ð¹øÈ£Ã£±â 
 url_list[640] = SiteUrl + '/05_member/logout.asp'; // ·Î±×¾Æ¿ô
 url_list[650] = SiteUrl + '/05_member/modify.asp'; //È¸¿øÁ¤º¸¼öÁ¤ 



 

// ¸Þ´º³¡



// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[91] = '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);
}


//-->



<!--

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_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_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 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_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];}
}
//-->



//********************************
//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("input 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("only English, numbers and'-'are available in ID");
			f.userId.select();
			return false;
		}
	}
	if (userId.length < 4 || userId.length > 12) {
		alert("the number of ID should be between 4 and 8 letters");
		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');
}

