//½ºÅ©·Ñ ÇÖ¸µÅ© ±âÁØÁÂÇ¥ ¼³Á¤
function WindScroll()
{
	LayerFloatingBn.style.top = document.body.scrollTop;

	if(document.body.scrollTop <= standard_table.offsetTop)
	{
		LayerFloatingBn.style.top = standard_table.offsetTop + 86;
	}
	else
	{
		LayerFloatingBn.style.top = document.body.scrollTop + 86;
	}

	LayerFloatingBn.style.visibility = "visible";
}

//½ºÅ©·Ñ ÇÖ¸µÅ© ±âÁØÁÂÇ¥ »çÀÌÁî º¯°æ
function WindReset()
{
	LayerFloatingBn.style.left = standard_table.offsetLeft + 896;
	LayerFloatingBn.style.top = standard_table.offsetTop + 86;
}


//ÆË¾÷
function popup(url,name,width,height,scrollbars) {
	window.open(url, name, "width="+width+",height="+height+",scrollbars="+scrollbars);
}

//½º¿Ò ÀÌ¹ÌÁö
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_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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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];}
}

//Layer Show Hidden
function noticeShow() {
document.all["layer1"].style.visibility= "visible";
document.all["layer2"].style.visibility= "hidden";
}

function pollShow() {
document.all["layer1"].style.visibility= "hidden";
document.all["layer2"].style.visibility= "visible";
}

//parent window control
function Go(url){
opener.parent.location=url;
window.close();
}

//ÆäÀÌÁö ÀÌµ¿ÇÏ±â
function movePage(CurPage){
	var thisFrm = document.frm;
	thisFrm.reqPage.value = CurPage;
	thisFrm.submit();
}

/** ÇÑ±ÛÀ» 2±ÛÀÚ·Î °è»êÇÏ¿© ¼ø¼öÇÑ ±æÀÌ¸¦ °è»êÇÑ´Ù */
String.prototype.strLen = function() {
	var temp;
	var set = 0;
	var mycount = 0;

	for( k = 0 ; k < this.length ; k++ ){
		temp = this.charAt(k);

		if( escape(temp).length > 4 ) {
			mycount += 2
		}
		else mycount++;
	}

	return mycount;
}

//°ø¹éÃ¼Å©
function isEmpty(str)
{
	for(var i = 0 ; i < str.length ; i++ ){
		if ( str.substring( i, i+1 ) != " " )
		{
			return false;
		}

	}
	return true;
}


//ÆäÀÌÁö ÀÌµ¿ÇÏ±â
function movePage(CurPage){
	var thisFrm = document.frm;
	thisFrm.reqPage.value = CurPage;
	thisFrm.submit();
}

/** ÇÑ±ÛÀ» 2±ÛÀÚ·Î °è»êÇÏ¿© ¼ø¼öÇÑ ±æÀÌ¸¦ °è»êÇÑ´Ù */
String.prototype.strLen = function() {
	var temp;
	var set = 0;
	var mycount = 0;

	for( k = 0 ; k < this.length ; k++ ){
		temp = this.charAt(k);

		if( escape(temp).length > 4 ) {
			mycount += 2
		}
		else mycount++;
	}

	return mycount;
}

// ¿ë    µµ: ¼±ÅÃµÈ ¶óµð¿À¹öÆ°ÀÌ ÀÖ´ÂÁö Ã¼Å©
// return :  boolean ÀÖÀ¸¸é true, ¾øÀ¸¸é false
function hasCheckedRadio(input) {
    if (input.length > 1) {
        for (var inx = 0; inx < input.length; inx++) {
            if (input[inx].checked) return true;
        }
    } else {
        if (input.checked) return true;
    }
    return false;
}

function link_focus(){window.event.srcElement.blur()}

//Á¶ÀÎ
function goJoin(){
	var referUrl = escape(document.location.href);
	parent.document.location.href="http://www.lgcare.co.kr/member/agreement.jsp?referUrl="+referUrl+"&referSiteid=83";
}

function goLogin(url){
	if(url == undefined){
		url = '';
	}
	var pwin = window.open('/member/popup/login.jsp?nexturl='+url,'login','top=150, left=400, width=450, height=330, scrollbars=no');
	pwin.focus();
	return;
}

function contact(){
    	var win=null;
    	var w=600;
    	var h=430;
    	var winl = (screen.width-w)/2;
    	var wint = (screen.height-h)/2;
    	var R_URL= "/master/contact_mail.jsp";
    	var settings  ='height='+h+',';
    		settings +='width='+w+',';
    		settings +='top='+wint+',';
    		settings +='left='+winl+',';
    		settings +='scrollbars=no,';
    		settings +='resizable=no';
    		win=window.open(R_URL,"pop_02win",settings);
    	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
    } 

	function win(url){
		window.open(url,'','');
	}

function privercy(){
		var win=null;
		var w=628;
		var h=600;  
		var winl = (screen.width-w)/2;
		var wint = (screen.height-h)/2;
		var R_URL= "http://www.lgcare.com/care/join/personal_info.jsp";
		var settings  ='height='+h+',';
			settings +='width='+w+',';
			settings +='top='+wint+',';
			settings +='left='+winl+',';
			settings +='scrollbars=yes,';
			settings +='resizable=no';
			win=window.open(R_URL,"privercy",settings);
		if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
	}
