	function alertMove(msg, url) {
		alert(msg);
		window.location = url;
	}
	
	function moveUrl (url) {
		window.location = url;
	}
	
	// ÀÔ·Â¿©ºÎ È®ÀÎ
	function emptyForm(text) {
		if (text.value.length==0)
			return true;

		for (var i=0; i<text.value.length; i++) {
			var ch=text.value.charAt(i);
			if (ch!=' ' && ch!='\t')
				return false;
		}
		return true;
	}
	
	// ÆË¾÷
	function openWin(url, name, str) {
		window.open(url, name, str);
	}
	
	// ¹Ì´ÏÈ¨ÇÇ ¿ÀÇÂ
	function openMini(uid) {
		window.open('http://mi.tygem.com/micheck.php?h_uid='+uid,'mibaduk','width=740, height=565, top=100, left=100');
	}

	function openGame() {
		window.open('http://www.tygem.com/game/enter_game.asp', 'goGame_tygem', 'width=300, height=150');
	}
	
	// »çÁø¾Ù¹ü 2Â÷ ÅõÇ¥
	function sendPhoto(num,uid) {
		var f = document.fForm;
		
		if (confirm(uid + '´Ô¿¡°Ô ÅõÇ¥ ÇÏ½Ã°Ú½À´Ï±î?')) {
			f.pnum.value = num;
			f.puid.value = uid;
			f.action = 'photo_process.php';
			f.target = 'Tframe';
			f.submit();
		}
	}
	
	function sendGift(str) {
		var f = document.pForm;

		var WinWidth = 500;
		var WinHeight = 440;
		var x=screen.width/2-WinWidth/2; 
		var y=screen.height/2-WinHeight/2;
		winopen = window.open('','plusgift','left='+ x +',top='+ y +',width='+ WinWidth +', height='+ WinHeight +' , menubar=no, scrollvars=no, staus=no, resizable=no, titlebar=no, toolbar=no, hotkey=0,closeable=no');  
		if(!winopen.opener) winopen.opener=self;
		f.oid.value = str;
		f.action='/member/plus_gift.php';
		f.target='plusgift';
		f.submit();
	}
	



	function pwd_level(password){
		// 1	=> »ç¿ëºÒ°¡
		// 2	=> ºñ¾ÈÀü
		// 3	=> º¸Åë
		// 4	=> ¾ÈÀü
		var flagalph = false;
		if (password.match(/[a-z]/)) flagalph = true
		if (password.match(/[A-Z]/)) flagalph = true

		var flagnum = false;
		if (password.match(/[0-9]+/)) flagnum = true;

		if(password.length < 4) return 1;
		if(password.length > 10) return 1;

		if(password.length <= 10 && flagalph == false && flagnum == true) return 2;		// ¼ýÀÚ·Î1~10
		if(password.length <= 5 && flagalph == true && flagnum == true) return 2;		// ¼ýÀÚ+¿µ¹® 4~5

		if(password.length <= 7 && flagalph == true && flagnum == true) return 3;		// ¼ýÀÚ+¿µ¹® 6~7
		if(password.length <= 10 && flagalph == true && flagnum == true) return 4;		// ¼ýÀÚ+¿µ¹® 8~10


		if(password.length <= 5 && flagalph == true && flagnum == false) return 2;		// ¿µ¹® 4~5 À§Çè

		if(password.length <= 7 && flagalph == true && flagnum == false) return 3;		// ¿µ¹® 6~7 º¸Åë

		if(password.length <= 10 && flagalph == true && flagnum == false) return 4;		// ¿µ¹® 8~10 ¾ÈÀü


		return 3;
	}


	function pwd_change(value){
		var plevel = pwd_level(value)
		var pwdlevel;
		if (plevel == 1) {
			pwdlevel = "»ç¿ëºÒ°¡"
		}else if (plevel == 2) {
			pwdlevel = "À§Çè"
		}else if (plevel == 3) {
			pwdlevel = "º¸Åë"
		}else if (plevel == 4) {
			pwdlevel = "¾ÈÀü"
		}else{
			pwdlevel = ""
		}
		pwd_result(pwdlevel);
	}


	function pwd_result(str){
		if(str == "º¸Åë"){
			document.all.pwdresult.innerHTML = "<font color='3aa410'>º¸¾Èµî±Þ: º¸Åë!</font>";
		}else if (str == "¾ÈÀü"){
			document.all.pwdresult.innerHTML = "<font color='037eb7'>º¸¾Èµî±Þ: ¾ÈÀü!</font>";
		}else if (str == "À§Çè"){
			document.all.pwdresult.innerHTML = "<font color='f20f0f'>º¸¾Èµî±Þ: À§Çè!</font>";
		}else{
			document.all.pwdresult.innerHTML = "<font color='f20f0f'>4ÀÚ ÀÌ»ó ÀÔ·ÂÇÏ¿©ÁÖ¼¼¿ä.</font>";
		}
	}
		
