
	//********************************************************
	//### ½Å¿ø È¸»çÈ¨ÆäÀÌÁö·Î ÀÌµ¿ ###
	//********************************************************
	function redirectShinwon(url) {
		window.open("/_common/popup/redirect_request.asp?returnURL="+encodeURIComponent(url), "", "");
	}

	function redirectShinwonRoot() {
		redirectShinwon("/");
	}



	//********************************************************
	//### ·Î±×ÀÎ ÆûÀ¸·Î ÀÌµ¿ ###
	//********************************************************
	function redirectLoginForm() {
		var url = location.href;
		var filename, return_url;

		filename = url.slice(url.lastIndexOf("/")+1, url.lastIndexOf("/")+15);

		if (filename == "login_form.asp") {
			return_url = "/member/login_form.asp";
		} else {
			return_url = "/member/login_form.asp?return_url="+encodeURIComponent(location.href);
		}

		location.href = return_url;
	}


	//********************************************************
	//### ·Î±×ÀÎ ÆûÀ¸·Î ÀÌµ¿ (Å¬¸¯ ÀÌº¥Æ® ¹ß»ý½Ã) ###
	//********************************************************
	function loginFormGo() {
		alert("·Î±×ÀÎÇÏ½Ê½Ã¿À.");
		location.href = "/member/login_form.asp?return_url="+encodeURIComponent(location.href);
	}


	//********************************************************
	//### ¿øº»»çÁøº¸±â °ü·Ã ½ºÅ©¸³Æ® ###
	//********************************************************
	function openPictureView(src) {
		openWindow("/_common/popup/image_preview.asp?photoURL="+src, "picView", "width=100, height=100, scrollbars=yes");
	}


	//********************************************************
	//### ¿øº»»çÁøº¸±â °ü·Ã ½ºÅ©¸³Æ® ###
	//********************************************************
	function getBrowser() {
		var appName;
		if (navigator.appName.indexOf("Microsoft") > -1) {
			if (navigator.appVersion.indexOf("MSIE 6") > -1) {
				appName = "IE6";
			} else if (navigator.appVersion.indexOf("MSIE 7")) {
				appName = "IE7";
			}
		} else {
			appName = "ETC";
		}

		return appName;
	}


	//********************************************************
	//### »çÁø ÀÏÁ¤ Å©±â¿¡ ¸Â°Ô Å©±âÁ¶Á¤ ###
	//********************************************************
	function resizeImageEditor(no, imgWidth) {
		if (!imgWidth) imgWidth = 600;
		var width = document.getElementById('editor_img'+no).width;
		if (width > imgWidth) {
			document.getElementById('editor_img'+no).width = imgWidth;
		}
	}


	//********************************************************
	//### Áñ°ÜÃ£±â¿¡ ÁÖ¼Ò Ãß°¡
	//********************************************************
	function addFavoriUrl(url, title) {
		var favoriteurl = url;
		var favoritetitle = title;
		window.external.AddFavorite(favoriteurl,favoritetitle);
	}


	//********************************************************
	//### ½ÃÀÛÆäÀÌÁö µî·Ï
	//********************************************************
	function addStartPage(obj) {
		obj.style.behavior='url(#default#homepage)';
		obj.setHomePage('http://www.starlike.co.kr');
	}







	//********************************************************
	//### ÆË¾÷ ½ºÅ©¸³Æ® ###
	//********************************************************
	// openWindow('[URL]','[window Name]','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=100,height=100')"
	function openWindow(theURL, winName, features) {
		window.open(theURL, winName, features);
	}

	function MM_openBrWindow(theURL,winName,features) { //v2.0
		window.open(theURL,winName,features);
	}




	//********************************************************
	//### Display block/none ½ºÅ©¸³Æ® ==
	//********************************************************
	function ChoiceTab(v1,v2,v3){
		for (i=1; i<=parseInt(v3); i++){
			if( parseInt(v2) == i ){
				eval("document.all."+v1+"_"+i+".style").display = "block";
			}else{
				eval("document.all."+v1+"_"+i+".style").display = "none";
			}
		}
	}




	//********************************************************
	//### <BLINK> ÅÂ±× ½ºÅ©¸³Æ® ###
	//********************************************************
	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()",500)  // ±ôºýÀÌ´Â ¼Óµµ(³ôÀ»¼ö·Ï ÃµÃµÈ÷ ±ôºýÀÓ..¼ýÀÚ¸¸ ¹Ù²ãÁÖ¼¼¿ä~)
	}



	
	//********************************************************
	//### ¸µÅ© Å¬¸¯ÇÏ¸é »ý±â´Â Á¡¼± ÇÑ¹æ¿¡ ¾ø¾Ö±â
	//********************************************************
	function bluring(){ 
		if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
	} 
	document.onfocusin=bluring; 




	//********************************************************
	//### ·Ñ¿À¹ö °ü·Ã
	//********************************************************
	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_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_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];}
	}


	//********************************************************
	//### Show Hide Layer °ü·Ã
	//********************************************************
	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() { //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 bt(id,after) 
	{ 
		eval(id+'.filters.blendTrans.stop();'); 
		eval(id+'.filters.blendTrans.Apply();'); 
		eval(id+'.src="'+after+'";'); 
		eval(id+'.filters.blendTrans.Play();'); 
	} 




	//********************************************************
	//### select ¸µÅ©
	//********************************************************
	function MM_jumpMenu(targ,selObj,restore){ //v3.0
		if(selObj.options[selObj.selectedIndex].value!=""){
			window.open(selObj.options[selObj.selectedIndex].value);
		  if (restore) selObj.selectedIndex=0;
		 }
	}




	//********************************************************
	// SEARCH MENU script
	//********************************************************
	function defaultStatus() {
		var menu = document.all.menu;
		for (var i=0;i<menu.length;i++){
			document.all.menu[i].style.border = "1px solid #ACACAC";
			document.all.menu[i].style.color = "#FFFFFF";
			document.all.menu[i].style.backgroundColor = "#ACACAC";
		}
	}

	function mouseOnTD(obj, objcolor) {
		obj.style.border = "1px solid #ACACAC";
		obj.style.color = "#000000";
		obj.style.backgroundColor = objcolor;
		obj.style.cursor = "hand";
	}

	function ClickOnTD(obj, objcolor, page) {
		obj.style.border = "1px solid #ACACAC";
		obj.style.color = "#000000";
		obj.style.backgroundColor = objcolor;
		obj.style.cursor = "hand";
		location.href= page;
	}




	//*********************************************************************
	//### fm(src,id,w,h,t,m)
	// src:ÆÄÀÏ °æ·Î, id:ÇÃ·¡½Ã ¹«ºñ ¾ÆÀÌµð, w:³Êºñ, h:³ôÀÌ, 
	// t:¹è°æ Åõ¸í¿©ºÎ(Y:Åõ¸í, N:ºÒÅõ¸í), m:¸Þ´º Ç¥½Ã¿©ºÎ(Y:Ç¥½Ã, N:¹ÌÇ¥½Ã)
	//*********************************************************************
	function FlashPlayer(src, id, w, h, t, m) {	
		var s = '';
		var s_id = '';
		var s_t = '';
		(id == "") ? s_id="swf" : s_id = id;
		(t == "Y") ? s_t = '<param name="wmode" value="transparent">' : s_t='';
		(m == "Y") ? m = 'true' : m = 'false';

		s += '<object type="application/x-shockwave-flash" ';
		s += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
		s += 'codebase="http://fpdownload.macromedia.com/';
		s += 'pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"';
		s += 'id="'+s_id+'" width="'+w+'" height="'+h+'">';

		s += '<param name="movie" value="'+src+'">';
		s += '<param name="quality" value="high">';	
		s += s_t;
		s += '<param name="menu" value="'+m+'">';
		s += '<param name="swliveconnect" value="true">';

		s += '<embed src="'+src+'" quality="high" menu="'+m+'" ';
		s += 'width="'+w+'" height="'+h+'" swliveconnect="true" ';
		s += 'id="'+s_id+'" name="'+s_id+'" type="application/x-shockwave-flash" ';
		s += 'pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';

		s += '<\/object>';
		document.write(s);
	}


	function flash(name,width,height){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+width+'" height="'+height+'">');
		document.write('<param name=movie value="'+name+'">');
		document.write('<param name=quality value=high>');
		document.write('<param name=wmode value=transparent>');
		document.write('<embed src="'+name+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'">');
		document.write('</embed>'); 
		document.write('</object>');
	}




	//********************************************************
	//### µ¿¿µ»ó
	//********************************************************
	function MoviePlayer(src,w,h) {
		document.write('<embed src="'+src+'" width='+w+' height='+h+'></embed>')
	}










	//********************************************************
	//### Trim ÇÔ¼ö
	// Ex) str = "    Å× ½ºÆ®   ".trim(); => str = "Å× ½ºÆ®";
	//********************************************************
	String.prototype.trim = function() {
		return this.replace(/(^\s*)|(\s*$)/g, "");
	}



	//********************************************************
	//### ¹®ÀÚ¿­ °ø¹éÁ¦°Å ÇÔ¼ö
	// Ex) str = "    Å× ½º   Æ®   ".stripspace(); => str = "Å×½ºÆ®";
	//********************************************************
	String.prototype.stripspace = function() {
		return this.replace(/ /g, "");
	}



	//********************************************************
	//### Å° °ü·Ã ÇÔ¼ö
	//********************************************************
	function blockKey() {
		event.returnValue = false;
	}

	function blockEnter() {
		if (event.keyCode == 13) event.keyCode = 0;
	}



	//********************************************************
	//### °ø¹é È®ÀÎ
	//********************************************************
	function checkEmpty(item) {
		if (item.value.stripspace() == "") {
			return true;
		}
		else {
			return false;
		}
	}



	//********************************************************
	//### URL È®ÀÎ
	//********************************************************
	function checkUrl(url) {
		var exp = new RegExp("^(http|HTTP)\:\/\/");
		if (exp.test(url)) {
			return true;
		}
		else {
			return false;
		}
	}

	//********************************************************
	//### MMS È®ÀÎ
	//********************************************************
	function checkMediaUrl(url) {
		var exp = new RegExp("^(mms|MMS)\:\/\/");
		if (exp.test(url)) {
			return true;
		}
		else {
			return false;
		}
	}



	//********************************************************
	//### ¼ýÀÚ¸¸À» ÀÔ·ÂÇÒ ¼ö ÀÖµµ·Ï Ã¼Å©
	//********************************************************
	function OnlyNumber() {
		if ((event.keyCode < 48) || (event.keyCode > 57))
			event.returnValue = false;
	}



	//********************************************************
	//### ÀÌ¸ÞÀÏ Ã¼Å© ½ºÅ©¸³Æ®
	//********************************************************
	function checkEmail(strEmail) {	
		var arrMatch = strEmail.match(/^(\".*\"|[A-Za-z0-9_-]([A-Za-z0-9_-]|[\+\.])*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z0-9][A-Za-z0-9_-]*(\.[A-Za-z0-9][A-Za-z0-9_-]*)+)$/);

		if (arrMatch == null) {
			return false;
		}

		var arrIP = arrMatch[2].match(/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/);

		if (arrIP != null) {
			for (var i = 1; i <= 4; i++) {
				if (arrIP[i] > 255) {
					return false;
				}
			}
		}
		return true;
	}


	function checkEmail2(str) {
		var rxEmail =/^\s*[\w\~\-\.]+\@[\w\~\-]+(\.[\w\~\-]+)+\s*$/g;
		if( !rxEmail.test(str) ) return false;
		return true;
	}

	
	
	//********************************************************
	//### ÇÑ±Û ÀÌ¿ÜÀÇ Ä³¸¯ÅÍ°¡ ÀÖÀ»°æ¿ì false
	//********************************************************
	function checkKoreanOnly( koreanChar ) {
		
		if ( koreanChar == null ) return false ;
		
		for(var i=0; i < koreanChar.length; i++) {
			
			var c=koreanChar.charCodeAt(i); 

			//( 0xAC00 <= c && c <= 0xD7A3 ) ÃÊÁßÁ¾¼ºÀÌ ¸ðÀÎ ÇÑ±ÛÀÚ 
			//( 0x3131 <= c && c <= 0x318E ) ÀÚÀ½ ¸ðÀ½ 
			
			if( !( ( 0xAC00 <= c && c <= 0xD7A3 ) || ( 0x3131 <= c && c <= 0x318E ) ) ) {
				return false ;
			}
		}  
		return true;
	}


	//********************************************************
	//### ¿µ¹® ÀÌ¿ÜÀÇ Ä³¸¯ÅÍ°¡ ÀÖÀ»°æ¿ì false
	//********************************************************
	function checkEnglishOnly( englishChar ) {
		
		if ( englishChar == null ) return false;
		
		for( var i=0; i < englishChar.length;i++) {
			
			var c=englishChar.charCodeAt(i);
			
			if( !( (  0x61 <= c && c <= 0x7A ) || ( 0x41 <= c && c <= 0x5A ) ) ) {
				return false;
			}
		}
		return true;
	}	 


	//********************************************************
	//### ¼ýÀÚ ÀÌ¿ÜÀÇ Ä³¸¯ÅÍ°¡ ÀÖÀ»°æ¿ì false 
	//********************************************************
	function checkNumberOnly( digitChar ) {
		
		if ( digitChar == null ) return false;
		
		for(var i=0;i<digitChar.length;i++) {
			
			var c=digitChar.charCodeAt(i);
			
			if( !(  0x30 <= c && c <= 0x39 ) ) {
				return false;
			}
		}
		return true;
	}


	//********************************************************
	//### ¹®ÀÚ¿­À» ¹ÙÀÌÆ®(byte) ´ÜÀ§·Î ±æÀÌ ÃøÁ¤
	//********************************************************
	function getByteLength(str) {
		var byteLength = 0;
		for (var inx = 0; inx < str.length; inx++) {
			var oneChar = escape(str.charAt(inx));
			if ( oneChar.length == 1 ) {
				byteLength ++;
			} else if (oneChar.indexOf("%u") != -1) {
				byteLength += 2;
			} else if (oneChar.indexOf("%") != -1) {
				byteLength += oneChar.length/3;
			}
		}
		return byteLength;
	}


	//********************************************************
	//### ÁÖ¹Îµî·Ï¹øÈ£°¡ ¿Ã¹Ù¸¥Áö Ã¼Å©
	//********************************************************
	function IDNumberCheck(number) {
		var sum=0;
		for(i=0;i<8;i++) { sum+=number.substring(i,i+1)*(i+2); }
		for(i=8;i<12;i++) { sum+=number.substring(i,i+1)*(i-6); }
		sum=11-(sum%11);

		if (sum>=10) { sum-=10; }

		if (number.substring(12,13) != sum || (number.substring(6,7) !=1 && number.substring(6,7) != 2)) {
			return false;
		}
		return true;
	}


	//********************************************************
	//### ¹®ÀÚ¿­¿¡ Æ¯¼ö¹®ÀÚ°¡ Æ÷ÇÔµÇ¾ú´ÂÁö Ã¼Å©('-' Æ÷ÇÔ)
	//********************************************************
	function inputCheckSpecial(string) {
		strMatch=/[~!@\#$%^&*\()\=+|\\/:;?"<>']/gi;
		if(strMatch.test(string)) {
			return false;
		}
		return true;
	}


	//********************************************************
	//### ¹®ÀÚ¿­ÀÇ ¾çÂÊ¿¡ Æ÷ÇÔµÈ °ø¹é Á¦°Å
	//********************************************************
	function trim(str) {
		var strtmp = "";
		var s, e;

		if (str != "")
		{
			for (i=0; i < str.length; i++)
			if (str.charAt(i) != " ") {
			s = i; break;
			}
			for(i = str.length - 1; i >= 0; i--)
			if (str.charAt(i) != " ") {
			e = i; break;
			}
			for (i=s; i <= e; i++)
			strtmp = strtmp + str.charAt(i);
		}
		return strtmp;
	}



	//********************************************************
	//### ¹®ÀÚ¿­ÀÇ ¿ÞÂÊºÎÅÍ Á¤ÇØÁø ±æÀÌ¸¸Å­ Byte´ÜÀ§ ÀÚ¸£±â
	//********************************************************
	function LeftCutString(str,max) {
		var tmpStr;
		var temp=0;
		var onechar;
		var tcount;
		tcount = 0;

		tmpStr = new String(str);
		temp = tmpStr.length;

		for(k=0;k<temp;k++) {
			onechar = tmpStr.charAt(k);

			if(escape(onechar).length > 4) {
				 tcount += 2;
			}
			else if(onechar!='\r') {
				 tcount++;
			}
			
			if(tcount>max) {
				 tmpStr = tmpStr.substring(0,k);
				 break;
			}
		}

		return tmpStr;
	}




	//********************************************************
	//### ÀÌ¹ÌÁöÆÄÀÏÀÎÁö Ã¼Å©
	//********************************************************
	function imgCheck(v) {
		var filename = v;
		var ext = filename.substring(filename.lastIndexOf(".") + 1);
		switch (ext.toLowerCase()) {
			case "jpg":
			case "bmp":
			case "gif":
			case "png":
				break;
			default:
				return false;
		}

		return true;
	}




	//********************************************************
	//### ÆÄÀÏ Å©±â(¿ë·®) ¾Ë¾Æ³»±â Internet Explorer 7 ¿¡¼­ ÀÛµ¿ ¾ÈµÊ
	//********************************************************
	function getFileSize(path) {
		var img = new Image();
		//img.dynsrc = path;
		img.src = path;
		return img.fileSize;
	}







	//**********************************************
	//### XML·Î À¥ÆäÀÌÁö °¡Á®¿À±â ###
	//**********************************************
	function getXmlHttp(layer, url)
	{
		var xmlHttp = false;
		if (window.XMLHttpRequest)
		{
			xmlHttp = new XMLHttpRequest();
		}
		else
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}

		xmlHttp.open("GET", url, true);
		xmlHttp.setRequestHeader('Content-Type','text/html; charset=euc-kr');
		xmlHttp.onreadystatechange = function(){
			if(xmlHttp.readyState == 4){
				if(xmlHttp.status == 200){			
					document.getElementById(layer).innerHTML = xmlHttp.responseText;
				}
			}
		}
		xmlHttp.send(null);
	}







	//**********************************************
	//### ¼Ò¼öÁ¡ ÀÌÇÏ Ã³¸® ÇÔ¼ö ###
    //@param intTarget      ´ë»ó
    //@param intCutPosition ¼Ò¼öÁ¡ ÀÚ¸® ¼ö
	//**********************************************
	function CutDecimalPoint(intTarget, intCutPosition) {
		var intResult = 0;
		var strTarget = String(intTarget).split('.');
		if(strTarget[1]!=null && strTarget[1].length > intCutPosition) {
			strTarget[1] = strTarget[1].slice(0, intCutPosition);
		}else{
			strTarget[1] = "00";
		}
		intResult = Number(strTarget[0]+'.'+strTarget[1]);
		return intResult;
	} 

