var title_js_var = "대기업 취업의 모든 것, 에듀스 (http://educe.co.kr)";// 링크점선없애기 ///////////////////////////////////////////////function bluring(){	if(event.srcElement != null &&(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")) document.body.focus();}document.onfocusin=bluring;// faq 펼쳐지는 메뉴  ///////////////////////////////////////////////var old_menu = '';function menuclick( submenu ){  if( old_menu != submenu ) {    if( old_menu !='' ) {      old_menu.style.display = 'none';    }    submenu.style.display = 'block';    old_menu = submenu;  } else {    submenu.style.display = 'none';    old_menu = '';  }}//레이어중앙에function LayerCenter(obj) {	if (obj) {		var h = (window.innerHeight || self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight);		var w = (window.innerWidth || self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth);		var l = ((window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft) + ((w-(obj.width||parseInt(obj.style.width)||obj.offsetWidth))/2));		var t = ((window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop) + ((h-(obj.height||parseInt(obj.style.height)||obj.offsetHeight))/2));		if((obj.width||parseInt(obj.style.width)||obj.offsetWidth) >= w) l = 0;		if((obj.height||parseInt(obj.style.height)||obj.offsetHeight) >= h) t = (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop);		obj.style.display = 'block';		obj.style.left = l + "px";		obj.style.top = t + "px";		if(document.getElementById("hideBackGround")){			document.getElementById("hideBackGround").style.display = 'block';			//document.getElementById("hideBackGround").style.height=(document.body.offsetHeight > document.documentElement.offsetHeight ? document.body.offsetHeight : document.documentElement.offsetHeight) + 'px';			if (document.documentElement.scrollHeight > document.body.scrollHeight) {				document.getElementById("hideBackGround").style.height = document.documentElement.scrollHeight + 'px';			} else {				document.getElementById("hideBackGround").style.height = document.body.scrollHeight + 'px';			}		}	}}function LayerCenter2(obj) {	if (obj) {		var h = (window.innerHeight || self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight);		var w = (window.innerWidth || self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth);		var l = ((window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft) + ((w-(obj.width||parseInt(obj.style.width)||obj.offsetWidth))/2));		var t = ((window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop) + ((h-(obj.height||parseInt(obj.style.height)||obj.offsetHeight))/2));		if((obj.width||parseInt(obj.style.width)||obj.offsetWidth) >= w) l = 0;		if((obj.height||parseInt(obj.style.height)||obj.offsetHeight) >= h) t = (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop);		obj.style.display = 'block';		obj.style.left = l + "px";		obj.style.top = t + "px";	}}function LayerPopClose(obj) {	if (obj)		obj.style.display = 'none';	if(document.getElementById("hideBackGround"))		document.getElementById("hideBackGround").style.display = 'none';}// 오픈창 (일반정렬) ///////////////////////////////////////////////function popup(a,b) {	popUpWin = window.open(a,'aaa',b);}// 오픈창 (중앙정렬) ///////////////////////////////////////////////function popcenter(mypage,myname,w,h,scroll,resize){  var winl = (screen.width-w)/2;  var wint = (screen.height-h)/2;  var settings  ='height='+h+',';      settings +='width='+w+',';      settings +='top='+wint+',';      settings +='left='+winl+',';      settings +='scrollbars='+scroll+',';	  settings +='status=no,';      settings +='resizable='+resize;  win=window.open(mypage,myname,settings);  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}}function popcenter1(mypage,myname,w,h,scroll,resize){  var winl = (screen.width-w)/2;  var wint = (screen.height-h)/2;  var settings  ='height='+h+',';      settings +='width='+w+',';      settings +='top='+wint+',';      settings +='left='+winl+',';      settings +='scrollbars='+scroll+',';	  settings +='status=no,';      settings +='resizable='+resize;  win=window.open(mypage,myname,settings);  if(parseInt(navigator.appVersion) >= 4){win.window.document.flash_id.focus();}}// 오픈창 (FullScreen)  ///////////////////////////////////////////////	function fullscreen(szhref) {		FullWin = window.open(szhref,"FullWin", "fullscreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=0,top=0");}// 검색창에 텍스트있다가 포커스 가면 없어지기 ///////////////////////////////////////////////	function clearText(thefield){        if (thefield.defaultValue==thefield.value)            thefield.value = ""    }// 검색창에 이미지 배경있다가 포커스 가면 없어지기 ///////////////////////////////////////////////function ch (obj){ if(obj.style.backgroundImage == "") return; obj.style.backgroundImage="";}// 플래시 링크('플레쉬 경로' , 넓이, 높이, name, value);//////////////function printSWF(fn, w, h){	var arg = arguments;	var argc =  arguments.length;	str   = "<object id='flash_id' classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\"width=\""+w+"\" height=\""+h+"\">";	str += "        <param name=\"SRC\" value=\""+fn+"\">";	str += "        <param name=\"menu\" value=\"false\">";	str += "		<param name=\"allowScriptAccess\" value=\"always\">";	for(var i = 3; i < argc ; i++){		str += "        <param name=\""+arg[i++]+"\" value=\""+arg[i]+"\">";	}	str += "        <embed name=\"flash_id\" src=\""+fn+"\" menu=\"false\" pluginspage=\"http://www.adobe.com/go/getflashplayer_kr\" type=\"application/x-shockwave-flash\" width=\""+w+"\" height=\""+h+"\">";	str += "        </embed> ";	str += "</object>";	document.write(str);}// 동영상 링크(id, '경로' , 넓이, 높이);//////////////function printMEDIA(id, fn, w, h){	objstr  = "<OBJECT id=\""+id+"\" name=\""+id+"\" classid=\"CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95\" codebase=\" ";	objstr += "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" ";	objstr += "standby=\"Loading Microsoft Windows Media Player components...\" ";	objstr += "type=\"application/x-oleobject\" bgcolor=\"DarkBlue\" ";	objstr += "width=\""+w+"\" height=\""+h+"\" ";	objstr += ">";	objstr += " <PARAM NAME=\"Filename\" VALUE=\""+fn+"\">";	objstr += "      <param name=\"ClickToPlay\" value=\"true\">";	objstr += "      <param name=\"width\" value=\""+w+"\">";	objstr += "      <param name=\"height\" value=\""+h+"\">";	objstr += "      <param name=\"AutoSize\" value=\"true\">";	objstr += "      <param name=\"AutoStart\" value=\"true\">";	objstr += "      <param name=\"ShowControls\" value=\"false\">";	objstr += "      <param name=\"ShowAudioControls\" value=\"true\">";	objstr += "      <param name=\"ShowDisplay\" value=\"false\">";	objstr += "      <param name=\"ShowTracker\" value=\"true\">";	objstr += "      <param name=\"ShowStatusBar\" value=\"true\">";	objstr += "      <param name=\"EnableContextMenu\" value=\"false\">";	objstr += "      <param name=\"ShowPositionControls\" value=\"false\">";	objstr += "      <param name=\"ShowCaptioning\" value=\"false\">";	objstr += "      <param name=\"AutoRewind\" value=\"true\">";	objstr += "      <param name=\"Enabled\" value=\"true\">";	objstr += "      <param name=\"EnablePositionControls\" value=\"true\">";	objstr += "      <param name=\"EnableTracker\" value=\"true\">";	objstr += "      <param name=\"PlayCount\" value=\"1\">";	objstr += "      <param name=\"SendWarningEvents\" value=\"true\">";	objstr += "      <param name=\"SendErrorEvents\" value=\"true\">";	objstr += "      <param name=\"SendKeyboardEvents\" value=\"false\">";	objstr += "      <param name=\"SendMouseClickEvents\" value=\"false\">";	objstr += "      <param name=\"SendMouseMoveEvents\" value=\"false\">";	objstr += "      <param name=\"ShowGotoBar\" value=\"false\">";	objstr += "      <param name=\"TransparentAtStart\" value=\"false\">";	objstr += "      <param name=\"Volume\" value=\"50\">";	objstr += "	  <param name=\"DisplaySize \" value=\"0\">";	objstr += "</OBJECT>";	return objstr;}// 앞뒤공백 제거function trim(sString){	sString = sString.replace(/^\s*/,'');   	sString = sString.replace(/\s*$/,'');   	return sString;}// 폰트 축소,확대function scaleFont(val){	var fontSize = 12;	if(val > 0)	{	if (fontSize <= 14)        {            fontSize = fontSize + val;            lineHeight = fontSize+Math.round(1.1*fontSize);            font_size.style.fontSize = fontSize + "px";         } 	}	else	{ 		if (fontSize > 8)    	{             fontSize = fontSize + val;             lineHeight = fontSize+Math.round(1.1*fontSize);             font_size.style.fontSize = fontSize + "px";		}		else		{     		lineHeight = fontSize+Math.round(1.1*fontSize);     		font_size.style.fontSize = fontSize + "px";         }	}}// 주석 감추기,보기function f_noteView(pLayerName){	var obj = eval(pLayerName+'.style');	if(obj.display == 'none' || obj.display == ''){		obj.display = 'block';	} else {		obj.display = 'none';	}}// input type=text 값 계산해서 에러 메시지 출력function checkText(form, err_msg){	if( trim(form.value).length < 1 )	{		if(trim(err_msg).length < 1){return false;}		alert(err_msg);		form.focus();		form.select();		return false;	}else return true;}// JQuery 용// input type=text 값 계산해서 에러 메시지 출력function jQ_checkText(form, err_msg){	if( trim(form.val()).length < 1 )	{		if(trim(err_msg).length < 1){return false;}		alert(err_msg);		form.focus();		form.select();		return false;	}else return true;}//Number_Formatfunction number_format(num) {     var num_str = num.toString();	 num_str = num_str.replace("/,/g", "");     var result = '';      for(var i=0; i<num_str.length; i++) {            var tmp = num_str.length-(i+1);            if(i%3==0 && i!=0) result = ',' + result;            result = num_str.charAt(tmp) + result;       }        return result; }// NvScroll() 시작 : 함수로 선언해두고 재사용 할 수 있도록 설계되어 있습니다.function NvScroll() {this.version = "0.2";this.name = "NvScroll";this.item = new Array();this.itemcount = 0;this.currentspeed = 0;this.scrollspeed = 5;this.pausedelay = 1000;this.pausemouseover = false;this.stop = false;this.type = 1;this.height = 100;this.width = 180;this.stopHeight=0;this.i=0;this.k = 54;this.arg1 = 54;this.arg2 = 54;this.nouse = false;this.add = function () {	var text = arguments[0];	this.item[this.itemcount] = text;	this.itemcount = this.itemcount + 1;};/*this.add2 = function () {	var url = arguments[0];	var title = arguments[1];	this.item[this.itemcount] = "<a href=" + url + ">" + title + "</a>";	this.itemcount = this.itemcount + 1;};*/this.start = function () {	if(this.nouse == true)	{		this.display(); // 그냥 멈추어 있는다.	}	else	{		if ( this.itemcount == 1 ) {			//this.add(this.item[0]);			this.display();		}else{			this.display();			this.currentspeed = this.scrollspeed;			if ( this.type == 1 || this.type == 2 ) {				this.stop = true;				setTimeout(this.name+'.scroll()',this.currentspeed);				window.setTimeout(this.name+".stop = false", this.pausedelay);			} else if ( this.type == 3 ) {				this.stop = true;				setTimeout(this.name+'.rolling()',this.currentspeed);				window.setTimeout(this.name+".stop = false", this.pausedelay);			}		}	}};this.display = function () {/*	document.write('<div id="'+this.name+'" style="height:'+this.height+'; width:'+this.width+'; position:relative; overflow:hidden; " OnMouseOver="'+this.name+'.onmouseover(); " OnMouseOut="'+this.name+'.onmouseout(); ">');	for(var i = 0; i < this.itemcount; i++) {		if ( this.type == 1 ) {			document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+'; position:absolute; top:'+(this.height*i)+'px; ">');			document.write(this.item[i]);			document.write('</div>');		} else if ( this.type == 2 || this.type == 3 ) {			document.write('<div id="'+this.name+'item'+i+'"style="left:'+(this.width*i)+'px; width:'+this.width+'; position:absolute; top:0px; ">');			document.write(this.item[i]);			document.write('</div>');		}	}	document.write('</div>');*/document.write('<div id="'+this.name+'" style="z-index:100;height:'+this.height+'; width:'+this.width+'; position:relative; overflow:hidden; " OnMouseOver="'+this.name+'.onmouseover(); " OnMouseOut="'+this.name+'.onmouseout(); ">');	var j = 0;	for(var i = 0; i < this.itemcount; i++) {	j=i*this.arg1;		if ( this.type == 1 ) {			document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+'; position:absolute; top:'+j+'px; ">');			document.write(this.item[i]);			document.write('</div>');		} else if ( this.type == 2 || this.type == 3 ) {			document.write('<div id="'+this.name+'item'+i+'"style="left:'+(this.width*i)+'px; width:'+this.width+'; position:absolute; top:0px; ">');			document.write(this.item[i]);			document.write('</div>');		}	}	document.write('</div>');};this.scroll = function () {	if ( this.pause == true ) {		window.setTimeout(this.name+".scroll()",this.pausedelay);		this.pause = false;	} else {		this.currentspeed = this.scrollspeed;		if ( this.stop == false ) {			var k = this.k;			for (i = 0; i < this.itemcount; i++) {				obj = document.getElementById(this.name+'item'+i).style;				//alert("this.height:"+this.height+",obj.top:"+obj.top);				if ( this.type == 1 ) {					obj.top = parseInt(obj.top)-1;					//if ( parseInt(obj.top) <= this.height * (-1) ) obj.top = this.hieight * (this.itemcount-1);					if(this.itemcount > 1){						if ( parseInt(obj.top) <= ((this.itemcount) - 1) * this.arg2 * (-1) ) {obj.top = k;}					}					else if (this.itemcount <= 1)					{						if ( parseInt(obj.top) <= ((this.itemcount)) * this.arg2 * (-1) ) {obj.top = k;}					}					if ( parseInt(obj.top) == 0 ) this.currentspeed = this.pausedelay;				} else if ( this.type == 2 ) {					obj.left = parseInt(obj.left) - 1;					if ( parseInt(obj.left) <= this.width * (-1) ) obj.left = this.width * (this.itemcount-1);					if ( parseInt(obj.left) == 0 ) this.currentspeed = this.pausedelay;				}			}		}		window.setTimeout(this.name+".scroll()",this.currentspeed);	}};this.rolling = function () {	if ( this.stop == false  ) {		this.next();	}	window.setTimeout(this.name+".rolling()",this.scrollspeed);}this.onmouseover = function () {	if ( this.pausemouseover ) {		this.stop = true;	}};this.onmouseout = function () {	if ( this.pausemouseover ) {		this.stop = false;	}};this.next = function() {	//alert(this.itemcount);	this.stop = true;	for (i = 0; i < this.itemcount; i++) {		obj = document.getElementById(this.name+'item'+i).style;		if ( parseInt(obj.top) < 1 ) {			height = this.height + parseInt(obj.top);			break;		}	}	for (i = 0; i < this.itemcount; i++) {		obj = document.getElementById(this.name+'item'+i).style;		if ( parseInt(obj.top) < 1 ) {			obj.top = this.height * (this.itemcount-1);		} else {			obj.top = parseInt(obj.top) - height;		}	}}this.prev = function() {	for (i = 0; i < this.itemcount; i++) {		obj = document.getElementById(this.name+'item'+i).style;		if ( parseInt(obj.left) < 1 ) {			width = parseInt(obj.left) * (-1);			break;		}	}	if ( width == 0 ) {		total_width = this.width * (this.itemcount-1);		for (i = 0; i < this.itemcount; i++) {			obj = document.getElementById(this.name+'item'+i).style;			if ( parseInt(obj.left) + 1 > total_width ) {				obj.left = 0;			} else {				obj.left = parseInt(obj.left) + this.width;			}		}	} else {		for (i = 0; i < this.itemcount; i++) {			obj = document.getElementById(this.name+'item'+i).style;			if ( parseInt(obj.left) < 1 ) {				obj.left = 0;			} else {				obj.left = parseInt(obj.left) + width;			}		}	}}this.unext = function () {	this.onmouseover();	this.next();	window.setTimeout(this.name+".onmouseout()",this.pausedelay);}this.uprev = function () {	this.onmouseover();	this.prev();	window.setTimeout(this.name+".onmouseout()",this.pausedelay);}} // FullScreen 오픈창  ///////////////////////////////////////////////	function fullscreen(szhref) {		FullWin = window.open(szhref,"FullWin", "fullscreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=0,top=0");}// FullScreen 오픈창  ///////////////////////////////////////////////	function fullscreen_open(szhref,arg) {			arg="yes";		FullWin = window.open(szhref,"FullWin", "fullscreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+arg+",resizable=no,left=0,top=0");}// 숫자 체크function checkInt(obj){	for(var i=0;i<Byte(obj.value);i++)	{        val = obj.value.charAt(i);        if(!((val>=0 && val<=9))) return false;	}	return true;}function checkIntOnly(form){	var k = 0;	var str = "";	var inum = new String(form.value);	for(var i=inum.length-1; i > -1; i--)	{		val = inum.charAt(i);		if(!((val>=0 && val<=9))){ 	form.focus();	form.select(); return false;}	}	return true;}/* JQuery용 숫자체크 */function jQ_checkIntOnly(form){	var k = 0;	var str = "";	var inum = new String(form.val());	for(var i=inum.length-1; i > -1; i--)	{		val = inum.charAt(i);		if(!((val>=0 && val<=9) || val == "-")){ 	form.focus();	form.select(); return false;}	}	return true;}function checkInt1(form){	var k = 0;	var str = "";	var inum = new String(form.value);	for(var i=inum.length-1; i > -1; i--)	{		val = inum.charAt(i);		if(!((val>=0 && val<=9) || val == ",")){ 	form.focus();	form.select(); return false;}	}	return true;}function checkInt2(form){	var k = 0;	var str = "";	var inum = new String(form.value);	for(var i=inum.length-1; i > -1; i--)	{		val = inum.charAt(i);		if(!((val>=0 && val<=9) || val == ".")){ 	form.focus();	form.select(); return false;}	}	return true;}function checkPrice(form){	var k = 0;	var str = "";	var inum = new String(form.value);	for(var i=inum.length-1; i > -1; i--)	{		val = inum.charAt(i);		if(!((val>=0 && val<=9) || val == ",")){ alert("숫자가 아닙니다."); form.value = ''; return;}		else {str = inum.charAt(i) + str;}	}	form.value = str;}// 주민번호 체크function f_juminCheck(jumin_1,jumin_2){	var juminNum=jumin_1+jumin_2;	var totalJumin=0;	var weightNum=new Array(2,3,4,5,6,7,8,9,2,3,4,5);	var i;	var checkJumin;	for(i=0;i<juminNum.length-1;i++)	{		totalJumin+=parseInt(juminNum.charAt(i),10)*weightNum[i];	}	checkJumin=(11-(totalJumin%11))%10;	if(checkJumin!=juminNum.charAt(12))	{		return false;	}	return true;}// 재외국인 번호 체크function check_fgnno(jumin_1,jumin_2) {		var fgnno = jumin_1+''+jumin_2;        var sum=0;        var odd=0;        buf = new Array(13);        for(i=0; i<13; i++) { buf[i]=parseInt(fgnno.charAt(i)); }        odd = buf[7]*10 + buf[8];        if(odd%2 != 0) { return false; }        if( (buf[11]!=6) && (buf[11]!=7) && (buf[11]!=8) && (buf[11]!=9) ) {                return false;        }        multipliers = [2,3,4,5,6,7,8,9,2,3,4,5];        for(i=0, sum=0; i<12; i++) { sum += (buf[i] *= multipliers[i]); }        sum = 11 - (sum%11);        if(sum >= 10) { sum -= 10; }        sum += 2;        if(sum >= 10) { sum -= 10; }        if(sum != buf[12]) { return false }        return true;}// 즐겨찾기 스크립트function bookmark_main(){	window.external.AddFavorite('http://www.educe.co.kr', '에듀스(EDUCE) - 대기업 취업의 모든것');}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_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 f_toolTipViewControl(pObjName,pThisObj){	if($(pObjName).style.display == 'block'){		$(pObjName).style.display = 'none';	} else {		$(pObjName).style.display = 'block';	}}function f_toolTipViewControlReset(pObjName,pThisObj,pTotal){	var nm = '';	for(var i=1; i <= pTotal; i++)	{		nm = 'toolTip_'+i;		if($(nm))			$(nm).style.display = 'none';	}	if($(pObjName))		$(pObjName).style.display = 'block';}// JavaScript Document// printSWF('플레쉬 경로' , 넓이, 높이);function printSWFHAVEID(idz, fn, w, h){	var arg = arguments;	var argc =  arguments.length;	str   = "<object id=\""+idz+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\"width=\""+w+"\" height=\""+h+"\">";	str += "        <param name=\"SRC\" value=\""+fn+"\">";	for(var i = 4; i < argc ; i++){		str += "        <param name=\""+arg[i++]+"\" value=\""+arg[i]+"\">";	}	str += "</object>";	document.write(str);}// printSWF1('플레쉬 경로' , 넓이, 높이);function printSWF1(fn, w, h){	var arg = arguments;	var argc =  arguments.length;	str   = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,1,102,64\"width=\""+w+"\" height=\""+h+"\">";	str += "        <param name=\"SRC\" value=\""+fn+"\">";	str += "        <param name=\"menu\" value=\"false\">";	for(var i = 3; i < argc ; i++){		str += "        <param name=\""+arg[i++]+"\" value=\""+arg[i]+"\">";	}	str += "        <embed src=\""+fn+"\" menu=\"false\" pluginspage=\"http://www.adobe.com/go/getflashplayer_kr\" type=\"application/x-shockwave-flash\" width=\""+w+"\" height=\""+h+"\">";	str += "        </embed> ";	str += "</object>";	document.write(str);}function printSWF_Layer(fn, w, h,layerName,headHtml,footHtml){	var args = printSWF_Layer.arguments;	var str = '';	if(headHtml.length > 0)	{		str += headHtml;	}	str += "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\"width=\""+w+"\" height=\""+h+"\">";	str += "<param name=\"SRC\" value=\""+fn+"\">";	str += "<param name=\"menu\" value=\"false\">";	str += "<embed src=\""+fn+"\" menu=\"false\" pluginspage=\"http://www.adobe.com/go/getflashplayer_kr\" type=\"application/x-shockwave-flash\" width=\""+w+"\" height=\""+h+"\">";	str += "</embed>";	str += "</object>";	if(footHtml.length > 0)	{		str += footHtml;	}	$(layerName).innerHTML = str;}//창 크기 변경function f_reSize(arg1,arg2){	window.moveTo(10,10);	window.resizeTo(arg1,arg2);	var winl = (screen.width-arg1)/2;	var wint = (screen.height-arg2)/2;	window.moveTo(winl,wint);}//창 크기 변경function f_reSize1(arg1,arg2){	window.moveTo(10,10);	window.resizeTo(arg1,arg2);}//창 크기 변경function f_reSize1_center(arg1,arg2){	var winl = (screen.width-arg1)/2;	var wint = (screen.height-arg2)/2;	window.moveTo(winl,wint);	window.resizeTo(arg1,arg2);}function contents_cp(){	if (window.event)	{		window.event.returnValue = true;		window.setTimeout('attach_kinref()', 25);	}}function attach_kinref(){	if (window.clipboardData) // IE	{		// get data from clipboard		var txt = window.clipboardData.getData('Text');		// attach the source at the end of text		txt = txt + '\r\n(출처 : \''+title_js_var+'\')\r\n';		// set data to clibboard		var result = window.clipboardData.setData('Text', txt);	}}// 레이어창 활성/비활성var old_pop = '';function popclick( pop ){  if( old_pop != pop ) {	if( old_pop !='' ) {	  old_pop.style.display = 'none';	}	pop.style.display = 'block';	old_pop = pop;  } else {	pop.style.display = 'none';	old_pop = '';  }}function popOver( pop ){	pop.style.display = 'block';}function popOut( pop ){	pop.style.display = 'none';}function ReplaceAll(str, str1, str2) {//문자변환	while(str.indexOf(str1) > -1) {		str = str.replace(str1, str2);	}	return str;}function isMs(){	if ((navigator.appName.indexOf('Microsoft')+1)) {		return true	}else{		return false	}}function LayerCursor(obj, event, hide, Left, Top){	if(!hide)		hide = "hide";	if(!Left)		Left = 15;	if(!Top)		Top = -5;	//위, 왼쪽 스크롤 레퍼런스화	if(document.body.scrollTop){		var intScrollTop = document.body.scrollTop;		var intScrollLeft = document.body.scrollLeft;	}else{		var intScrollTop = document.documentElement.scrollTop;		var intScrollLeft = document.documentElement.scrollLeft;	}	//이벤트 발생위치 좌표(마우스 클릭위치) 레퍼런스	if(isMs()){		var intClientY = window.event.clientY;		var intClientX = window.event.clientX;	}else{		var intClientY = event.pageY-pageYOffset ;		var intClientX = event.pageX-pageXOffset;	}	//나타낼 디스플레이 좌표 레퍼런스	var intThisPositionTop = (intClientY + intScrollTop) +(parseInt(Top));	var intThisPositionLeft = (intClientX + intScrollLeft) +(parseInt(Left));	//레퍼런스를 실제 적용	obj.style.left = intThisPositionLeft+"px";	obj.style.top  = intThisPositionTop+"px";	if(hide=="hide"){		if(obj.style.display=="block")			obj.style.display="none";		else			obj.style.display="block";	}else{		obj.style.display="block";	}}function LayerCursorClose(obj){	if(obj)		obj.style.display="none";}//온로드 이벤트function AddWindowEvent(fn){	if (window.addEventListener){		window.addEventListener("load", fn, false)	}	else{		window.attachEvent("onload", fn)	}}//프린트설정 - 2010.10.27 추가(김병열)function printPage(){	if(factory.printing){		factory.printing.header = "";           //머리글설정		factory.printing.footer = "";             //꼬리글설정		factory.printing.leftMargin = 5;         //좌여백		factory.printing.topMargin = 5;          //상여백		factory.printing.rightMargin = 5;        //우여백		factory.printing.bottomMargin = 5;        //하여백		factory.printing.Print(true);             //프린트 실행 false하면:프린트 설정화면 안보여짐 true하면: 보여짐	}else{		if(confirm("프린트 스크립트가 설치되지 않았습니다. \n\n기본인쇄로 진행하시겠습니까?")){window.print();}	}}	function set_cookie(name, value, expiredays)    {        var todayDate = new Date();        todayDate.setDate( todayDate.getDate() + expiredays );        //var today = new Date();        //today.setTime(today.getTime() + (60*60*1000*expirehours));        document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";";    }    // 쿠키 얻음    function get_cookie(name)    {        var find_sw = false;        var start, end;        var i = 0;        for (i=0; i<= document.cookie.length; i++)        {            start = i;            end = start + name.length;            if(document.cookie.substring(start, end) == name)            {                find_sw = true                break            }        }        if (find_sw == true)        {            start = end + 1;            end = document.cookie.indexOf(";", start);            if(end < start)                end = document.cookie.length;            return document.cookie.substring(start, end);        }        return "";    }//트위터, 페이스북, 미투데이 링크function goTwitterReady(msg,url) {	document.getElementById("bitly").value=url;	document.getElementById("bitlymsg").value=msg;	document.getElementById("bitlyForm").submit();}function goTwitter(msg,url) {	var href = "http://twitter.com/home?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(url);	popcenter(href, 'twitter', 700,400,1,0);}function goFaceBook(msg,url) {	var href = "http://www.facebook.com/sharer.php?t=" + encodeURIComponent(msg)+"&u=" + encodeURIComponent(url);	popcenter(href, 'facebook', 700,400,1,0);}function goMe2Day(msg,url,tag) {	var href = "http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(msg) + " " + encodeURIComponent(url) + "&new_post[tags]=" + encodeURIComponent(tag);	popcenter(href, 'me2Day', 800,600,1,0);}function goCyWorld(no) {	var href = "http://api.cyworld.com/openscrap/post/v1/?xu=http://ticketmonster.co.kr/html/cyworldConnectToXml.php?no=" + no +"&sid=suGPZc14uNs4a4oaJbVPWkDSZCwgY8Xe";	popcenter(href, 'CyWorld', 700,400,1,0);}function goYozmDaum(link,prefix,parameter) {	var href = "http://yozm.daum.net/api/popup/prePost?sourceid=54&link=" + encodeURIComponent(link) + "&prefix=" + encodeURIComponent(prefix) + "&parameter=" + encodeURIComponent(parameter);	var a = window.open(href, 'yozmSend', 'width=466, height=356');	if ( a ) {		a.focus();	}}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;		if(obj.display=="block")			v="none";		else			v="block";		//v=(v=='block')?'none':(v='none')?'block':v;	}    obj.display=v; }}//로그 INSERTfunction InsertBannerLog(bno, pno , group_no, size, log_type){	if(!log_type){		log_type="click";	}	var $jQ = jQuery.noConflict();	//alert(bno+"/"+pno+"/"+group_no)	var obj=document.getElementById("ajaxBannerProc");	var pars = 'bno='+bno+'&pno='+pno+'&group_no='+group_no+'&size='+size+'&log_type='+log_type;	$jQ.ajax({		url: "/banner/ajaxBannerLogInsert.php",		processData: false,		type: "get",		data: pars	});}//로그 뷰function InsertBannerLogView(obj, num, type){	var valueArry=document.getElementById($jQ(obj)[0].id+"_"+num).value.split("|");	InsertBannerLog(valueArry[0], valueArry[1] , valueArry[2], valueArry[3], "view");}function CheckBoxValue(obj){	var val="";	for(var i=0;i<document.getElementsByName(obj).length;i++){		if(document.getElementsByName(obj)[i].checked == true){			val = document.getElementsByName(obj)[i].value;			break;		}	}	return val;}function CopyClipBoard(str){	window.clipboardData.setData('Text',str);	alert("클립보드에 복사되었습니다.");}// 깜빡이는 글자...function doBlink() {var blink = document.all.tags("BLINK")for (var i=0; i < blink.length; i++)blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""}function startBlink() {if (document.all)setInterval("doBlink()",350)}window.onload = startBlink;function process_login(link_url){	document.location.href = link_url;}
