
/* ÅØ½ºÆ® ÀÌ¹ÌÁö Á¡¼±Å×µÎ¸® ¾ø¾Ö±â */
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 


function Onclick_Href(url){
 location.href=url;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//ÆË¾÷±âº»Çü
function WinOpen(url,win,w,h,sb){
	window.name="RenomaCafe";
	var arg="width="+w+",height="+h+",scrollbars="+sb
	window.open(url, win,arg)
}

//°Ô½ÃÆÇ¿ë ÆË¾÷
<!--
function Board_Action(url,win,w,h,sb){
	window.name="RenomaCafe";
	var arg="width="+w+",height="+h+",scrollbars="+sb
	window.open(url, win,arg)
}


//ÀÏ¹Ý¸µÅ©
var www_site=Get_thisHost();
//var www_site="http://www.renomagym.co.kr/";

function Get_thisHost(){// ÇöÀç»çÀÌÆ®ÁÖ¼Ò ±¸ÇÏ±â
	var s = location.href;
	s=s.toLowerCase()
	rpos=s.lastIndexOf("/");
	var thishost =	s.substr(0,rpos+1)
	return thishost
}

function Get_thisPage(){// ÇöÀçÆäÀÌÁö ±¸ÇÏ±â (¸µÅ©»©°í)
	var s = location.href;
	s=s.toLowerCase()
	rpos=s.lastIndexOf("/");
	var thispage =	s.substr(rpos+1)
	thispage=thispage.split("?")
	return thispage[0];
}

function Get_thisURL(){// ÇöÀçÆäÀÌÁö ¸µÅ©Æ÷ÇÔ
	var s = location.href;
	s=s.toLowerCase()
	rpos=s.lastIndexOf("/");
	var thispage =	s.substr(rpos+1)
	return thispage;
}

//GetCookie
function GetCookie(cookname){
	var srch= cookname  + "=";
	var cookie = document.cookie;
	if(cookie.length>0){
		startidx=cookie.indexOf(cookname);
		if(startidx != -1){
			startidx += cookname.length;
			endidx = cookie.indexOf(";", startidx);
			if(endidx == -1) endidx = cookie.length;
			return unescape(cookie.substring(startidx+1, endidx));
		}else{
			return false;
		}
	}else{
		return false;
	}
}

//SetCookie
function SetCookie(cookname, cookvalue, expiredate){
	var today=new Date();
	document.cookie = cookname +"="+ escape(cookvalue);

}
