<!--
//	ÀÌ´Â ¾ÈµÇ´Â°ÍÀÌ ÀÖ´Âµ¥.. °©ÀÚ±â º¸ÀÌ´Â ·¹ÀÌ¾î°¡ ³Êºñ³ª ³ôÀÌ°¡ % ·Î µÇ¾îÀÖÀ¸¸é Ä¿Á®¹ö¸®¸é ¹®Á¦°¡ ÀÖ´Ù. 
var ifrm_h = ifrm_w = 0;
function ifrm_resize(name, id, min_w, min_h )
{

	try
	{
		var ifrmobj = document.getElementById(id);
		var ifrmbody = eval( name + '.document.body' ); 
		
		
		ifrmHeight = ifrmbody.scrollHeight; 
		ifrmWidth = ifrmbody.scrollWidth; 
		
		if( min_w && min_w > ifrmWidth )ifrmWidth = min_w;
		if( min_h && min_h > ifrmHeight )ifrmHeight = min_h;
		
		if( ifrmbody.scrollWidth != ifrm_w)ifrmobj.style.width = ifrmWidth;
		if( ifrmbody.scrollHeight != ifrm_h)ifrmobj.style.height = ifrmHeight; 

		
		ifrm_w = ifrmbody.scrollWidth;              
		ifrm_h = ifrmbody.scrollHeight;
    	
	}
	catch(e){};
    	
	setTimeout("ifrm_resize('"+ name + "','" + id + "','" + min_w + "','" + min_h + "')",500);
}




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_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_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_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() { //v3.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_jumpMenu(targ,selObj,restore){ //v3.0
	window.open(selObj.options[selObj.selectedIndex].value,"","");
//  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function page(link1,link2) {
		parent.topFrame.location.href=link1;
		parent.mainFrame.location.href=link2;
}

function tt_search(form) {
   if(form.select.options[form.select.selectedIndex].value != '') {
      if(form.select.options[form.select.selectedIndex].value == 'http://.tt.co.kr:8080/apply01_2003/agreement.html') {
         window.open(form.select.options[form.select.selectedIndex].value, 'agreement','scrollbars=1,width=450,height=400,top=0,left=0') ;
         return false;
      }
	if(form.select.options[form.select.selectedIndex].value == 'http://ttpia.com/service/s_index.php' || form.select.options[form.select.selectedIndex].value == 'http://ttstreaming.com')
	{
		    window.open(form.select.options[form.select.selectedIndex].value, '','scrollbars=1,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,top=0,left=0') ;
      }
      else
         location = form.select.options[form.select.selectedIndex].value ;
   } else {
   }
}

function change_receipt()
{
   if(document.all['receipt'].style.display=='inline')
   {
		document.all['receipt'].style.display='none';
   }
   else
		document.all['receipt'].style.display='inline';
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
        window.open(theURL,winName,features);
}

// Ã¼Å© domain_type (µµ¸ÞÀÎ °Ë»ö)
function Check_Type() {
     Domain = domain_Form.domain_name;
     Domain.value = Domain.value.toLowerCase();
     domain_type=domain_Form.domaintype.value;
     re = /^[a-z0-9]+[\-a-z0-9]*[a-z0-9]+$/;
     if (Domain.value.length  < 3) {
        alert(' µµ¸ÞÀÎÀº 3ÀÚ ÀÌ»óÀÌ¾î¾ß ÇÕ´Ï´Ù.');
        Domain.focus();
        return false;
     }
     if (Domain.value.search(re) == -1) {
        alert('µµ¸ÞÀÎ¸íÀÌ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.');
        Domain.focus();
        return false;
     }


  if(domain_type == '.com' || domain_type == '.net' || domain_type == '.org') {
     domain_Form.action = "http://ttpia.com/intdomain_add/add_1.php";
  }
  else if(domain_type == '.biz' || domain_type == '.info') {
     domain_Form.action = "http://ttpia.com/e_domain/bi_add_1.php";
  }
  else
  {
     domain_Form.action = "http://ttpia.com/e_domain/kr_add_1.php";
  }
  domain_Form.search_member.value=domain_Form.domaintype.value+':';
  domain_Form.submit();
}

function T_EnterCheck()
{
	var Form=document.domain_Form;
	if(event.keyCode == 13)
	{
		return 1;
	}
}

function cus_banner() {
	// °í°´»ç ¹è³Ê ·£´ýÀ¸·Î º¸¿©ÁÖ±â
	n = Math.round(Math.random()*4+.5)

	switch(n) {
		case 1:
			bn1 = "../img/banner_customer/dcinside.gif";
			url1 = "http://dcinside.com/";
			bn2 = "../img/banner_customer/danawa.gif";
			url2 = "http://danawa.co.kr/";
			break;

		case 2:
			bn1 = "../img/banner_customer/bb.gif";
			url1 = "http://bb.co.kr/";
			bn2 = "../img/banner_customer/ch0.gif";
			url2 = "http://ch0.com/";
			break;

		case 3:
			bn1 = "../img/banner_customer/nbinside.gif";
			url1 = "http://nbinside.com/";
			bn2 = "../img/banner_customer/brainbox.gif";
			url2 = "http://brainbox.co.kr/";
			break;

		case 4	:
			bn1 = "../img/banner_customer/enuri.gif";
			url1 = "http://enuri.com/";
			bn2 = "../img/banner_customer/dailyenglish.gif";
			url2 = "http://dailyenglish.com/";
			break;

		default:
			break;
	}
	document.write("<tr>");
	document.write("	<td style='padding-top:1px'><a href='" + url1 + "' target='_blank'><img src='" + bn1 + "' border='0'></a></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("	<td style='padding-top:3px'><a href='" + url2 + "' target='_blank'><img src='" + bn2 + "' border='0'></a></td>");
	document.write("</tr>");
}
//-->

function flash(src,width,height,tr){
    object = '';
    object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
    object += '<param name="movie" value="'+src+'">';
    if(tr=='1'){
         object += '<param name="wmode" Value="Transparent">';
    }
    object += '<embed src="'+src+'" quality="high" ';    
    if(tr=='1'){
        object += ' wmode="transparent" ';
    }
    object += ' bgcolor="#ffffff" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
    object += '</object>';
    document.write(object);
}


function pop_cer(img){
  var name;
  var position;
  var xposition;
  var yposition;
  xposition = 100;
  yposition = 50;
  position = 
  window.open('./pop_cer.html?img='+img, 'pop_cer', "left=0,top=0,width=1,height=1,scrollbars=no,resizable=yes");
}
