<!--
/***************************************
* scroll top button
***************************************/
 function gotop(){
  document.body.scrollTop=0;
 }

/***************************************
* focus blur
***************************************/
function autoBlur(){
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
	document.body.focus(); 
	}
	document.onfocusin=autoBlur; 

//popup center
function popUp(w,h,URL)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	var path = URL;
	var popup = null;
	popup = window.open( path , w + h , 'width=' + w + ',height=' + h +',top='+wint+',left='+winl+',scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no' );
}

function pop_myceed(w,h,URL)
{
	var w = 452
	var h = 169
	var URL = 'pop_viewmyceed.asp'
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	var path = URL;
	var popup = null;
	popup = window.open( path , w + h , 'width=' + w + ',height=' + h +',top='+wint+',left='+winl+',scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no' );
}

function pop_technical(w,h,URL)
{
	var w = 608
	var h = 584
	var URL = 'pop_technical.asp'
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	var path = URL;
	var popup = null;
	popup = window.open( path , w + h , 'width=' + w + ',height=' + h +',top='+wint+',left='+winl+',scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no' );
}


function goto_view(str){
  var theForm = eval(str);
  var email   = theForm.email.value;
  var country = theForm.country.value;
  if(theForm.email.value.split(" ").join("").length < 1)
	{
		alert("Input e-mail");
		theForm.email.focus();
		return false;
	}	
  //alert(email);
  //alert(country);
	opener.location='step5.asp?email='+email+'&country='+country;
	window.close();
}

//object 파일 패치 대비 
var paramInfo = new Array;

function initParam()
{
var oldSize = paramInfo.length;

for (var i=0; i<oldSize; i++) {
	paramInfo.length--;
}
}

function setParam(paramName, paramValue)
{
var idx = paramInfo.length;

paramInfo[idx] = [];
paramInfo[idx][0] = paramName;  
paramInfo[idx][1]= paramValue;
}

function playFlash(objID, objSource, objWidth, objHeight, objStyle, cabVersion, embedAttr)
{
	document.write('<OBJECT id="' + objID + '" name="' + objID + '" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
	if (cabVersion != '') {
		document.write('codebase="' + self.window.document.protocol + '"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
	}
	document.write('WIDTH="' + objWidth + '" HEIGHT="' + objHeight + '" ' + objStyle + '>');
	for (var i=0; i<paramInfo.length; i++) {
		document.write('<PARAM NAME="' + paramInfo[i][0] + '" VALUE="'+ paramInfo[i][1] +'">');
	}
	document.write('<embed src="' + objSource + '" width="' + objWidth + '" height="' + objHeight + '" ' + embedAttr + '>');
	document.write('</OBJECT>');
}

function playMedia(objID, objSource, objWidth, objHeight, objStyle)
{
document.write('<OBJECT id="' + objID + '" name="' + objID + '" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" ');
document.write('WIDTH="' + objWidth + '" HEIGHT="' + objHeight + '" ' + objStyle + '>');

for (var i=0; i<paramInfo.length; i++) {
	document.write('<PARAM NAME="' + paramInfo[i][0] + '" VALUE="'+ paramInfo[i][1] +'">');
}

document.write('</OBJECT>');
}



/*IFRAME*/
function iframe_init(name){
	var doc = document.getElementById("ifr_id");
	doc.style.top=0;
	doc.style.left=0;
	if(doc.offsetHeight == 0){
	} else {
	pageheight = doc.offsetHeight;
	pagewidth = doc.offsetWidth;
	parent.document.getElementById(name).style.height = pageheight
	parent.document.getElementById(name).style.width = pagewidth
	}
}

//Log 
function LogPost(StrMenuCode) {
	log_frame.location.href  = '/log/log_post.asp?cCode='+StrMenuCode; 
}

function LogPostBuild() {
	var StrMenuCode = 'C0401';
	log_frame_build.location.href  = '/log/log_post.asp?cCode='+StrMenuCode; 
}