
function F5_keypressed(){

	var key=event.keyCode;
	
//	alert('CtrlÅ° »ç¿ëºÒ°¡´É ÇÕ´Ï´Ù.');
//	if (event.ctrlKey == true ){
//	        event.keyCode = 0;	
//		return false;
//	}
	
//	alert('AltÅ°´Â »ç¿ëºÒ°¡´É ÇÕ´Ï´Ù.');
//	if (event.altKey == true ){
//	        event.keyCode = 0;	
//		return false;
//	}

// F5»ç¿ë±ÝÁö
	if (key == 116){
	        event.keyCode = 0;	
		return false;		
	}

}

// F5Å°¸¦ »ç¿ëÇÏÁö ¸øÇÏµµ·Ï ¸·À½
document.onkeydown=F5_keypressed;



// ######################## °øÅë  ###################################


// ºäÆäÀÌÁö ÀÌ¹ÌÁö º¸±â
function bls_view(str1){
	if (str1=='1')
	{
				document.all.bls.style.display = "none";
				document.all.bls_open.style.display = "block";
				document.all.bls_close.style.display = "none";
	}

	else if (str1=='2')
	{
				document.all.bls.style.display = "block";
				document.all.bls_open.style.display = "none";
				document.all.bls_close.style.display = "block";
	}

}

// ºäÆäÀÌÁö »ó´ã ¸¸Á·µµ ºÒ¸¸ °áÁ¤
function cbox_view(str1){
	if (str1=='1')
	{
				document.all.cbox1.style.display = "block";
				document.all.cbox2.style.display = "none";
				document.all.cbox3.style.display = "none";
	}

	else if (str1=='2')
	{
				document.all.cbox1.style.display = "block";
				document.all.cbox2.style.display = "block";
				document.all.cbox3.style.display = "none";
	}
	else if (str1=='3')
	{
				document.all.cbox1.style.display = "none";
				document.all.cbox2.style.display = "none";
				document.all.cbox3.style.display = "block";
	}

}
// »ó´ã¸¸Á·µµ Àü¼Û
function cbox_submit(){
		var f1=document.cbox
if ( f1.CCVResult[1].checked==true )
	{

		if (f1.qcntA.value>1)
		{
				var qcntA=false;
				for(i=0;i<f1.qcntA.value;i++){
					if(f1.BCVCode[i].checked==true)
					{
						qcntA= true;
					}
				}
					if(qcntA==false)
					{
						alert("ºÒ¸¸Á· »çÀ¯¸¦ ¼±ÅÃ ÁÖ¼¼¿ä.");
						f1.BCVCode[0].focus();
					}
					else{
						cbox_sub_submit();
					}
		}
		else{
			if (f1.qcntA.value==1){f1.BCVCode.checked = true ;}
			cbox_sub_submit();
		}
	}else{cbox_sub_submit();}
}
function cbox_sub_submit(){
		var f1=document.cbox
		flag=confirm("ÀúÀå ÇÏ½Ã°Ú½À´Ï±î?");
		if(flag)
		{
			f1.target = "hidden_frame";
			f1.action = "/prg/popup/pop_CCVResult_reg.asp";
			f1.submit();
		}
	
}



//ºäÆäÀÌÁö ¼­ºñ½º ÀÌ¿ë ÁÖÀÇ»çÇ× ´Ý±â
function layclose(){

//document.all.Layer1.visibility='hidden';
				document.all.lay1.style.display = "none";
				document.all.lay2.style.display = "none";
				document.all.lay3.style.display = "none";
				document.all.lay4.style.display = "none";
}

//ºäÆäÀÌÁö ¼­ºñ½º ÀÌ¿ë ÁÖÀÇ»çÇ× º¸±â
function layview(str1){
//document.all.Layer1.visibility='visible';
						
				document.all.lay1.style.display = "none";
				document.all.lay2.style.display = "none";
				document.all.lay3.style.display = "none";
				document.all.lay4.style.display = "none";
	if (str1=='1')
	{
				document.all.lay1.style.display = "block";
	}

	else if (str1=='2')
	{
				document.all.lay2.style.display = "block";
	}
	else if (str1=='3')
	{
				document.all.lay3.style.display = "block";
	}
	else if (str1=='4')
	{
				document.all.lay4.style.display = "block";
	}
}
// ±¤°í »õÃ¢¶ß±â °ü¸®
	function view_ADD(str1,str2,str3){

//val = ((str2=="1") ? 'yes':'no')

	if (str1=="http://" || str1=="" || str1==null ){str1="http://www.myorder.co.kr/"}
//alert(str1);
 stats='left=5,top=5,width=820,height=635,';

  stats+='toolbar='+str2+',';
  stats+='location='+str2+',';
  stats+='directories='+str2+',';
  stats+='status='+str2+',';
  stats+='menubar='+str2+',';
  stats+='dependent='+str2+',';
//  stats+='channelmode='+str2+',';
//  stats+='fullscreen='+str2+',';
  stats+='scrollbars=yes,';
  stats+='resizable='+str2+'';



		if (str2=="yes"){
				login_CheckForm.target = "_blank";
				login_CheckForm.action = str1;
				login_CheckForm.submit();
		}
		else{
			var newWin = window.open(str1,'add1',stats); 
			newWin.focus();
		}
	//	hidden_frame.location.href="/prg/popup/pop_addck.asp?ADACode="+str3;
}




// pngÆÄÀÏ Àâ¾Æ³Ö±â
function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 

// °¡°Ý¿¡ ÄÞ¸¶ Âï±â
function CheckComma(number) {
	number = replaceChar(number,',','');
	number = '' + number;
	if (number.length > 3) {
		var mod = number.length % 3;
		var output = (mod > 0 ? (number.substring(0,mod)) : '');
		for (i=0 ; i < Math.floor(number.length / 3); i++) {
		if ((mod == 0) && (i == 0))
			output += number.substring(mod+ 3 * i, mod + 3 * i + 3);
		else
			output+= ',' + number.substring(mod + 3 * i, mod + 3 * i + 3);
		}
		return (output);
	}
	else return number;
}

// °¡°Ý¿¡ ÄÞ¸¶ »©±â
function CheckUnComma(number) {
	number = replaceChar(number,',','');
	return (number);
}

//replaceChar
function replaceChar(str, fChar,rChar) {
	var tar = '';
	var len= str.length;
	for (var i=0; i < len; i++){
		if (str.charAt(i) == fChar)
			tar += rChar;
		else
			tar += str.charAt(i);
	}
	return tar;
}
// ÆòÀ» Á¦°ö¹ÌÅÍ·Î È¯»ê+
function Space_cnv() 
{
	 var f1 = document.EstForm;
		if ( Numeric_Check(f1.SvAddr_Space.value) == "1") {
			alert("ÆòÀº ¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù.. \n ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			f1.SvAddr_Space.value='';
			f1.SvAddr_Space_sub.value='';
			f1.SvAddr_Space.focus();
			return;
			}
// ÆòÀ» Á¦°ö¹ÌÅÍ·Î È¯»ê+
//		f1.SvAddr_Space_sub.value =  parseInt(Number(f1.SvAddr_Space.value) / 0.3025)	//¹ö¸²
		f1.SvAddr_Space_sub.value =  Math.round(Number(f1.SvAddr_Space.value) / 0.3025)	//¹Ý¿Ã¸²

}
// Á¦°ö¹ÌÅÍ¸¦ ÆòÀ¸·Î È¯»ê+
function Space_ctv() 
{
	 var f1 = document.EstForm;
		if ( Numeric_Check(f1.SvAddr_Space_sub.value) == "1") {
			alert("§³´Â ¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù.. \n ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			f1.SvAddr_Space_sub.value='';
			f1.SvAddr_Space.value='';
			f1.SvAddr_Space_sub.focus();
			return;
			}
		f1.SvAddr_Space.value =  Math.round(Number(f1.SvAddr_Space_sub.value) * 0.3025)	//¹Ý¿Ã¸²

}
/**
* zang(image, int, int)

640 487

600 424

157 487

* ÀÌ¹ÌÁö¸¦ °¡·Î¼¼·Î ÁöÁ¤°ªÀ» ³ÑÁö¾Ê°Ô ºñÀ²À» Á¶ÀýÇØ ÁÝ´Ï´Ù.

*/
function zang(target_img, maxWidth, maxHeight)
{
	var newHeight,newWidth,new_newHeight,new_newWidth;
	var newImg;

	newImg = new Image();
	newImg.src = target_img.src;
	imgw = newImg.width;
	imgh = newImg.height;

//alert(imgw+','+imgh);
	if (imgw > imgh )
	{
			newWidth = maxWidth;
			newHeight = Math.round((imgh*newWidth)/imgw);
	}
	else
	{
			newHeight = maxHeight;
			newWidth = Math.round((imgw*newHeight)/imgh);
	}



	if ( newWidth > maxWidth )
	{
			newWidth = maxWidth;
			newHeight = Math.round((imgh*newWidth)/imgw);
	}
	else if ( newHeight > maxHeight )
	{
			new_newHeight = maxHeight;
			newWidth = Math.round((imgw*newHeight)/imgh);
	}
	target_img.onload = null;
	target_img.src = newImg.src;
	target_img.width = newWidth;
	target_img.height = newHeight;
	newImg = null
}
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.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];}
}
function MM_openBrWindow(theURL,winName,features) 
{
			var newWin = window.open(theURL,winName,features);
			newWin.focus();
}

//¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á

	var nbr = 0
	function AutoExecution(URL,Layer)
	{
		nbr += 1;
		ActionParam = "nbr="+String(nbr);
		initializeParam(ActionParam)
		xmlProcessTime = .7;
		xmlExecution = true;
		startAjax(URL,Layer);
	}


	function Tag_ValueCK(FormName,TagName)
	{
		TagName = TagName.replace(/(^\s*)|(\s*$)/g, "");
		var fv = false;
		for (var t=0; t<document.getElementsByName(TagName).length; t++)
		{
			if (fv == true) break;
			if (document.getElementsByName(TagName)[t].type == "text")
			{
				if (document.getElementsByName(TagName)[t].value != "" && document.getElementsByName(TagName)[t].disabled == false)
				{
					fv = document.getElementsByName(TagName)[t].value;
				}
			}
			else if (document.getElementsByName(TagName)[t].type == "radio" || document.getElementsByName(TagName)[t].type == "checkbox")
			{
				if (document.getElementsByName(TagName)[t].checked == true && document.getElementsByName(TagName)[t].disabled == false)
				{
					fv = document.getElementsByName(TagName)[t].checked;
				}
			}
			else if (document.getElementsByName(TagName)[t].type == "select-one")
			{
				if (document.getElementsByName(TagName)[t][document.getElementsByName(TagName)[t].selectedIndex].value != "")
				{
					fv = document.getElementsByName(TagName)[t][document.getElementsByName(TagName)[t].selectedIndex].value;
				}
			}
			if (fv != false)
			{
				fv = true;
			}
		}
		return fv;
	}

	function Tag_NameCK(FormName,TagName,TagDesc)
	{
		TagName = TagName.replace(/(^\s*)|(\s*$)/g, "");
		if (document.getElementsByName(TagName).length == 1)
		{
			if (trim(document.getElementsByName(TagName)[0].value) == "" || document.getElementsByName(TagName)[0].value == "0")
			{
				alert("[ " + TagDesc + " ] Ç×¸ñÀ» Ã¤¿öÁÖ¼¼¿ä ");
				if ((document.getElementsByName(TagName)[0].type == "text" || document.getElementsByName(TagName)[0].type == "select-one") && document.getElementsByName(TagName)[0].readOnly != true)
				{
					document.getElementsByName(TagName)[0].focus();
				}
				return false;
			}
			else
			{
				return true;
			}
		}
		else if(document.getElementsByName(TagName).length > 1)
		{
			var fv = false;
			for (var t=0; t<document.getElementsByName(TagName).length; t++)
			{
				if (fv == true) break;
				if (document.getElementsByName(TagName)[t].type == "text")
				{
					if (document.getElementsByName(TagName)[t].value != "" && document.getElementsByName(TagName)[t].disabled == false)
					{
						fv = true;
					}
				}
				else if (document.getElementsByName(TagName)[t].type == "radio" || document.getElementsByName(TagName)[t].type == "checkbox")
				{
					if (document.getElementsByName(TagName)[t].checked == true && document.getElementsByName(TagName)[t].disabled == false)
					{
						fv = true;
					}
				}
			}
			if (fv == false)
			{
				alert("[ " + TagDesc + " ] Ç×¸ñÀ» Ã¤¿öÁÖ¼¼¿ä ");
				return false;
			}
			else
			{
				return fv;
			}
		}
	}

	function getId(v)
	{
		return document.getElementById(v);
	}

	function getName(v,n)
	{
		return document.getElementsByName(v)[n];
	}

	function trim(str) 
	{
        str = this != window? this : str;
        return str.replace(/^\s+/, '').replace(/\s+$/, '');
    }

	function RoundTable(layerid, wcolor, bcolor, bsize)
	{
		document.write("<table border='0' cellpadding='0' cellspacing='0'>");

		if (wcolor == "")
		{
			wcolor = "#FFFFFF";
		}
		if (bsize == "")
		{
			bsize = 5;
		}
		if (bsize % 2 == 0)
		{
			bsize = bsize + 1;
		}
		for (j=1; j<bsize*2; j++)
		{
			document.write("  <tr>");
			for (i=1; i<bsize*2; i++)
			{
				if (Math.abs(j-bsize) <= i && bsize*2-Math.abs(bsize-j) >= i)
				{
					document.write("    <td width='1' height='1' bgcolor='"+ bcolor +"'>");
				}
				else
				{
					document.write("    <td width='1' height='1' bgcolor='"+ wcolor +"'>");
				}
				if (i == bsize && j == bsize)
				{
					document.write(layerid.innerHTML);
				}
				document.write("</td>");
			}
			document.write("  </tr>");
		}
		document.write("</table>");
	}


	function ImageRate(cur,x,y)
	{
		var nImg = new Image();
		nImg.src = cur.src;

		var xRate = 0;
		var yRate = 0;

		if (nImg.complete == true)
		{
			if (nImg.width > x || nImg.height > y)
			{
				xRate = nImg.width / x
				yRate = nImg.height / y
			}

	//alert(xRate+"----"+yRate);

			if (xRate >= yRate)
			{
				cur.width = x;
				cur.height = Math.round(nImg.height / ( nImg.width / x ));
			}
			else if (xRate < yRate)
			{
				cur.width = Math.round(nImg.width / ( nImg.height / y ));
				cur.height = y;
			}
		}

	}

	function isObject(a) 
	{
		return (typeof a == 'object' && !!a) || isFunction(a);
	}
	function isUndefined(a) 
	{
		return typeof a == 'undefined';
	}
	function isFunction(a) 
	{
		return typeof a == 'function';
	}

	function Disable(obj)
	{
		if (isObject(eval("document.all."+obj)))
		{
			eval("document.all."+obj).style.display = "none";
		}
	}

	function Point(iX, iY)
	{
		this.x = iX; 
		this.y = iY; 
	} 

	function fGetXY(aTag)
	{
		var oTmp = aTag; 
		var pt = new Point(0,0); 
		do 
		{ 
			pt.x += oTmp.offsetLeft; 
			pt.y += oTmp.offsetTop; 
			oTmp = oTmp.offsetParent; 
		} 
		while(oTmp.tagName!="BODY"); 
		return pt; ghs
	}

//¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á

 //»õÃ¢ÀÌ ºÎ¸ðÃ¢ ¸µÅ©  ================================================================================ 
function close_location(str1){
	if (isObject(parent))
	{
		if (isUndefined(opener) == false)
		{
			opener.parent.location.href=str1;
			opener.focus();
			window.close();
		}
		else
		{
			parent.wclose(str1);
		}
	}
	else
	{
		opener.parent.location.href=str1;
		opener.focus();
		window.close();
	}
}

	function wclose(str)
	{
		if (isUndefined(opener))
		{
			parent.location.href = str;
		}
		else
		{
			opener.parent.location.href = str;
			opener.focus();
			window.close();
		}
	}



 //¸éÀû°è»ê±â  ================================================================================ 
	function pop_jegob(){
		thurl="/prg/popup/pop_jegob.asp";
		var newWin = window.open(thurl,"pop_jegob1","left=200,top=200,width=430,height=253,scrollbars=no,resizable=no");
		newWin.focus();
	}
 //view ÀÌ¿ëÈÄ±â ´õº¸±â  ================================================================================ 
	function pop_hoogi_2(str1){
		thurl="/prg/popup/pop_hoogi_2.asp?ComCode="+str1;
		var newWin = window.open(thurl,"pop_hoogi_21","left=200,top=200,width=700,height=700,scrollbars=no,resizable=no");
		newWin.focus();
	}
 //view ÀÌ¿ëÈÄ±â ´õº¸±â  ================================================================================ 
	function pop_hoogi(str1,str2,str3,str4,str5){
		thurl="/prg/popup/pop_hoogi.asp?PreCode="+str1+"&CGCode="+str2+"&menu="+str3+"&ComCode="+str4+"&EstCode="+str5;
		var newWin = window.open(thurl,"pop_hoogi1","left=200,top=200,width=767,height=421,scrollbars=no,resizable=no");
		newWin.focus();
	}
 //view °£·« º¸±â  ================================================================================ 
	function pop_est_view(str1,str2,str3,str4,str5){
		thurl="/prg/popup/pop_est_view.asp?PreCode="+str1+"&CGCode="+str2+"&menu="+str3+"&ComCode="+str4+"&EstCode="+str5;
		var newWin = window.open(thurl,"pop_hoogi1","left=200,top=200,width=767,height=421,scrollbars=no,resizable=no");
		newWin.focus();
	}
 //view ½Å°í ÇÏ±â  ================================================================================ 

	function view_Stat(str1,str2){
		thurl="/prg/popup/pop_view_Statement.asp?PreCode="+str1+"&DBstr="+str2;
		var newWin = window.open(thurl,"view_Stat1","left=200,top=200,width=430,height=518");
		newWin.focus();
	}
	function view_Stat_off(str1,str2){
		alert("ÀÌ¹Ì ½Å°í µÇ¾ú½À´Ï´Ù.");
	}

 //view °è¾à ¿äÃ»ÇÏ±â  ================================================================================ 

	function view_Cont(str1,str2){
			EstContView.style.visibility = "visible";
			//EstContView.style.left = "300px";
			//EstContView.style.top = "400px";			
	}
	function view_Cont_sub(str1,str2){
		//thurl="/prg/popup/pop_ContRequest_Reg.asp?PreCode="+str1+"&DBstr="+str2;
		//var newWin = window.open(thurl,"view_Cont1","left=2000,top=2000,width=0,height=0");
		//newWin.focus();
		hidden_frame.location.href="/prg/popup/pop_ContRequest_Reg.asp?PreCode="+str1+"&DBstr="+str2;
	}
	function view_Cont_off(str1,str2){

			EstContView.style.visibility = "hidden";
//			alert("¿¹¾à ¸¶°¨ ÀÔ´Ï´Ù.");
	}

 //view ÆäÀÌÁö ÂÊÁö¹®ÀÇ  ================================================================================ 

	function view_sms(str1,str2,str3,str4){
		thurl="/prg/popup/pop_sms.asp?PreCode="+str1+"&mode="+str2+"&DBstr="+str3+"&CGCode="+str4;
				var newWin = window.open(thurl,"view_sms1","left=200,top=200,width=430,height=400");
				newWin.focus();
				
    //window.showModalDialog(thurl, 'view_sms1', "dialogWidth:430px;dialogHeight:400px;center:yes;resizable;no;scroll:no;status:no");

	}


// ¹°·®Á¤º¸ÆË¾÷Ã¢À¸·Î Á¤º¸ Àü¼Û  ================================================================================ 


	function ChkAmtType(str1){
		thurl="/prg/Popup/Pop_Amount.asp?cate="+str1;
				var newWin = window.open(thurl,"Pop_Amount","left=200,top=200,width=780,height=520");
				newWin.focus();
	}
// ÁÖ¼Ò Ã¢==================================================================================================

function OpenAddr(str1,str2)
{
				var newWin = window.open('/prg/Popup/Address_Search.asp?mode='+str1+'&cate='+str2,"ZipCode","scrollbars=no,resizable=no,top=50,left=50,width=430,height=253");
				newWin.focus();
	
}

function OpenAddrS(str1,str2,str3,str4,str5,str6,str7,str8,str9)
{

				var newWin = window.open('/prg/Popup/Address_Search.asp?mode='+str1+'&cate='+str2+'&City='+str3+'&Zone='+str4+'&Village='+str5+'&Addr_Type='+str6+'&Addr_Floor='+str7+'&SvAddr_Space_sub='+str8+'&SvAddr_Space='+str9,"ZipCode","scrollbars=no,resizable=no,top=50,left=50,width=430,height=253");
				newWin.focus();
	
}

// ¸®½ºÆ® Å×ÀÌºí¿¡¼­ ºäÆäÀÌÁö º¸±â  ================================================================================ 



function list_show(str1,str2) //ÀÌ»ç¸ô ¹× Á¦ÈÞ»ç
{	if (str2=='off'){alert("ÀÌ ¾÷Ã¼´Â ¿¹¾à¸¶°¨µÇ¾î ¼­ºñ½º°¡ ºÒ°¡´ÉÇÕ´Ï´Ù.\n\n´Ù¸¥ ¾÷Ã¼¸¦ ÀÌ¿ëÇØ ÁÖ¼¼¿ä.\n\n¼­ºñ½º ÀÌ¿ë¿¡ ºÒÆíÀ» µå·Á¼­ ÁË¼ÛÇÕ´Ï´Ù.");}
	else{window.location.href = str1;}
}


function list_popshow(str1,str2) //¸¶ÀÌ¿À´õ¿ë
{
	if (str2=='off')
	{alert("ÀÌ ¾÷Ã¼´Â ¿¹¾à¸¶°¨µÇ¾î ¼­ºñ½º°¡ ºÒ°¡´ÉÇÕ´Ï´Ù.\n\n´Ù¸¥ ¾÷Ã¼¸¦ ÀÌ¿ëÇØ ÁÖ¼¼¿ä.\n\n¼­ºñ½º ÀÌ¿ë¿¡ ºÒÆíÀ» µå·Á¼­ ÁË¼ÛÇÕ´Ï´Ù.");}
	else{
//window.location.reload();
var newWin = window.open(str1 , "listview11" , "scrollbars=yes,resizable=yes,top=50,left=50,width=780,height=635");
newWin.focus();
	}
}











function show(str1) //ÀÌ»ç¸ô ¹× Á¦ÈÞ»ç
{
	window.location.href = str1;
}


function popshow(str1) //¸¶ÀÌ¿À´õ¿ë
{
//window.location.reload();
var newWin = window.open(str1 , "listview11" , "scrollbars=yes,resizable=yes,top=50,left=50,width=780,height=635");
newWin.focus();
}


//ÇÃ·¡½¬ ÆÄÀÏµé...
function ShowFlash(url, width, height){
        document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
        document.write('<param name="movie" value="' + url + '">');
        document.write('<param name="quality" value="high">');
        document.write('<param name="allowScriptAccess" value="sameDomain">');
        document.write('<param name="wmode" value="transparent">');
        document.write('<embed src="' + url + '" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
        document.write('</object>');
}



 //OKCASHBAG Ä«µå¹øÈ£ÀÔ·Â »õÃ¢ ¶ì¿ì±â ==================================================== 
	function OKCASHBAG(str1){
		thurl="/okcashbag/OKCASHBAG.asp?EstCode="+str1;
		var newWin = window.open(thurl,"OKCASHBAG1","left=200,top=200,width=410,height=256,scrollbars=no,resizable=no");
		newWin.focus();
	}

function pop_img_view(str) { 
		var newWin = window.open('/prg/tbl/popup/pop_img_view.asp?img='+str, 'big_image', 'top=0,left=0,width=20,height=20,scrollbars=yes,resizable=yes'); 
		newWin.focus();
}


function flag(str1) {

// ¿À´Ã ³¯Â¥¸¦ 2006-07-01 Çü½ÄÀ¸·Î NowDaystr¸¦ ¸¸µç´Ù.
now=new Date();
monstr=String(now.getMonth()+1)
daystr=String(now.getDate())
if ( monstr.length < 2 ) { monstr = "0"+monstr }
if ( daystr.length < 2 ) { daystr = "0"+daystr }
NowDaystr=now.getYear()+"-"+monstr+"-"+daystr
// ¿À´Ã ³¯Â¥¸¦ 2006-07-01 Çü½ÄÀ¸·Î NowDaystr¸¦ ¸¸µç´Ù.

var f1=document.EstForm
f1.IsaDay.value=NowDaystr
f1.BAddr.value="¼­¿ï °­³²±¸ °³Æ÷1µ¿"
f1.StAddr_Si.value="¼­¿ï"
f1.StAddr_Gu.value="°­³²±¸"
f1.StAddr_Dong.value="°³Æ÷1µ¿"

	if (str1=="sea")
	{
f1.AmountGubun.value="Á÷Á¢ÀÔ·Â"
f1.Amount.value="1"
//		f1.Amount.readOnly = false;
f1.SvNCode.value="¹Ì±¹¢­´º¿å"
	}
	else if (str1=="mov" || str1=="office" ){

f1.Amount.value="1"
f1.AmountGubun.value="Á÷Á¢ÀÔ·Â"
f1.StAddr_Type.value = "ºô¶ó/¿¬¸³"
f1.StAddr_Floor.value = "3"
f1.StAddr_Space.value = "25"

f1.AAddr.value="¼­¿ï °­³²±¸ ´ëÄ¡1µ¿"
f1.SvAddr_Si.value="¼­¿ï"
f1.SvAddr_Gu.value="°­³²±¸"
f1.SvAddr_Dong.value="´ëÄ¡1µ¿"
f1.SvAddr_Type.value = "¾ÆÆÄÆ®"
f1.SvAddr_Floor.value = "7"
f1.SvAddr_Space.value = "34"
	}
	else if (str1=="inte"){


f1.AAddr.value="¼­¿ï °­³²±¸ ´ëÄ¡1µ¿"
f1.SvAddr_Si.value="¼­¿ï"
f1.SvAddr_Gu.value="°­³²±¸"
f1.SvAddr_Dong.value="´ëÄ¡1µ¿"
f1.SvAddr_Type.value = "±âÅ¸"
f1.SvAddr_Space.value = "34"
f1.SvAddr_Space_sub.value = "123"
f1.SvAddr_Room.value = "2"
f1.SvAddr_BathRoom.value = "3"
f1.HopeCost.value = "1000"
f1.HopeCost_sub.value = "1,000"

	}
	else{

f1.AAddr.value="¼­¿ï °­³²±¸ ´ëÄ¡1µ¿"
f1.SvAddr_Si.value="¼­¿ï"
f1.SvAddr_Gu.value="°­³²±¸"
f1.SvAddr_Dong.value="´ëÄ¡1µ¿"
f1.SvAddr_Space.value = "3"
	}
}

// ######################## °øÅë  ###################################

// ######################## ·Î±×ÀÎ  ###################################

//·Î±×ÀÎ ·¹ÀÌ¾î È£Ãâ
function loginForm_view(str) {
			document.all.login.style.display = "block";
			document.loginframe.loginForm.id1.focus();
		if (str!='')
		{document.login_CheckForm.login_submitck.value=str;
		//alert(str);
		//alert(document.login_CheckForm.login_submitck.value);
		}
}

//·Î±×ÀÎ ·¹ÀÌ¾î ´Ý±â
function login_close() {
			document.all.login.style.display = "none";
}
//·Î±×ÀÎ Ã¼Å©
function login_Check() {
		if(document.login_CheckForm.MemCode.value=="")
		{
			loginForm_view();
			//alert("·Î±×ÀÎ ÇÏ¼¼¿ä.");
			//loginForm_view('search.EstSubmit();');
			return;
		}
		else
		{
			if (confirm( "·Î±×¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î?") ) {
				location.href="/prg/login/logout.asp";
			}
			return;
		}
}

//È¸¿ø°¡ÀÔ »õÃ¢È£Ãâ



function member(str1,str2) {
		if(document.login_CheckForm.MemCode.value=="")
		{
			loginForm_view('');
		}
		else
		{
			var newWin = window.open('/prg/login/member_mod.asp','member1','left=370,top=220,width=534,height=622'); ////È¸¿øÁ¤º¸ ¼öÁ¤Ã¢
			newWin.focus();
		}
}


function member_login_reg(str1,str2) {
		if(document.login_CheckForm.MemCode.value=="")
		{
			var newWin = window.open('/prg/login/member.asp?id1='+str1+'&id2='+str2+'&submitck='+document.login_CheckForm.login_submitck.value,'member1','left=370,top=220,width=534,height=622');	//È¸¿ø°¡ÀÔÃ¢
			newWin.focus();
		}
		else
		{
			var newWin = window.open('/prg/login/member_mod.asp','member1','left=370,top=220,width=534,height=622'); ////È¸¿øÁ¤º¸ ¼öÁ¤Ã¢
			newWin.focus();
		}
}


//¾à°ü »õÃ¢È£Ãâ

function approval() {
  		var newWin = window.open('/prg/login/approval.asp','approval1','width=600,height=608');
		newWin.focus();
}

/*

//·Î±×ÀÎ ·¹ÀÌ¾î ÀÔ·Â°ª È®ÀÎ
function goLoginCheck_div(){
	var f1 = document.loginForm;
		if( !f1.id1.value ||  !f1.id2.value){
			alert("·Î±×ÀÎÇÏ½Ç ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
			f1.id1.focus();
			return;
		}

		if( !f1.pwd.value ){
			alert("·Î±×ÀÎÇÏ½Ç ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
			f1.pwd.focus();
			return;
		}
		document.loginForm.submitck.value=document.login_CheckForm.login_submitck.value
		f1.method = "post";
		f1.target = "hidden_frame";
		f1.action = '/prg/login/login_Reg.asp'
		
		f1.submit();	
}

//·Î±×ÀÎ ÀÏ¹Ý ÀÔ·Â°ª È®ÀÎ
function goLoginCheck(str1){
//alert("@@@@");
	var f1 = document.log_inForm;

	if (str1=='1')
	{
		if( !f1.id1.value ||  !f1.id2.value){
			alert("·Î±×ÀÎÇÏ½Ç ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
			f1.id1.focus();
			return;
		}

		if( !f1.pwd.value ){
			alert("·Î±×ÀÎÇÏ½Ç ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
			f1.pwd.focus();
			return;
		}
//		document.log_inForm.submitck.value=document.login_CheckForm.login_submitck.value
		f1.method = "post";
		f1.target = "";
		f1.action = '/prg/login/login_Reg.asp'
		
		f1.submit();	
	}

	
	else if (str1=='2')
	{
		if( !f1.name.value ){
			alert("°í°´¸íÀ» ÀÔ·ÂÇØÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
			f1.name.focus();
			return;
		}
		if ( f1.tel2.value == "" || f1.tel3.value == "") {
				
		alert("ÇÚµåÆùÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		f1.tel2.focus();
		return;
		}
	if ( Numeric_Check(f1.tel2.value) == "1") {
				
			alert("ÇÚµåÆùÀº ¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù.. \n ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			f1.tel2.value="";
			f1.tel2.focus();
			return;
		}
	if ( Numeric_Check(f1.tel3.value) == "1") {
				
			alert("ÇÚµåÆùÀº ¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù.. \n ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			f1.tel3.value="";
			f1.tel3.focus();
			return;
		}
		f1.mode.value="email"
		f1.method = "post";
		f1.target = "";
		f1.action = '/prg/login/login_search_Reg.asp'
		
		f1.submit();	
	}
	else if (str1=='3')
	{
		if( !f1.email1.value ||  !f1.email2.value){
			alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
			f1.email1.focus();
			return;
		}
		if ( f1.hp2.value == "" || f1.hp3.value == "") {
				
		alert("ÇÚµåÆùÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
		f1.hp2.focus();
		return;
		}
	if ( Numeric_Check(f1.hp2.value) == "1") {
				
			alert("ÇÚµåÆùÀº ¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù.. \n ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			f1.hp2.value="";
			f1.hp2.focus();
			return;
		}
	if ( Numeric_Check(f1.hp3.value) == "1") {
				
			alert("ÇÚµåÆùÀº ¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù.. \n ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			f1.hp3.value="";
			f1.hp3.focus();
			return;
		}
		f1.mode.value="pwd"
		f1.method = "post";
		f1.target = "";
		f1.action = '/prg/login/login_search_Reg.asp'
		
		f1.submit();
	}
}
//·Î±×ÀÎ ÀÏ¹Ý Ã£±âÃ¢ º¯È¯
function box(str1) {
	if (str1=='1')
	{
				document.all.box1.style.display = "block";
				document.all.box2.style.display = "none";
				document.all.box3.style.display = "none";
	}

	else if (str1=='2')
	{
				document.all.box1.style.display = "none";
				document.all.box2.style.display = "block";
				document.all.box3.style.display = "none";
	}
	else if (str1=='3')
	{
				document.all.box1.style.display = "none";
				document.all.box2.style.display = "none";
				document.all.box3.style.display = "block";
	}
}
*/



// ######################## ·Î±×ÀÎ  ###################################







// ######################## ±¹³»  ###################################


// ´Þ·ÂÃ¢ ==================================================================================================

function OpenCalendar(str1,str2)
{
	if (str2=="undefined"){str2=''}
	else{str2=str2.substring(0,7)}
		var Win_View = window.open('/prg/Popup/CalendarView.asp?cal_type='+str1+'&p_serch_ym='+str2,"Calendar","scrollbars=no,resizable=no,top=50,left=50,width=600,height=200");
		Win_View.focus();

}
// ÀÌ»ç¸ô ¸®½ºÆ® ÆË¾÷Ã¢ ==================================================================================================

function pop_est()
{
		var Win_View = window.open('/prg/info/pop_est.asp',"pop_est1","scrollbars=yes,resizable=no,top=50,left=50,width=667,height=600");
		Win_View.focus();

}

// ÀÌ»ç¸ô ÀÌ¿ë¾à°ü ÆË¾÷Ã¢ ==================================================================================================

//function pop_est()
//{
//		var Win_View = window.open('/prg/info/pop_est.asp',"pop_est_1","scrollbars=yes,resizable=no,top=50,left=50,width=667,height=780");
//		Win_View.focus();

//}

// ÀÌ»ç¸ô µî±Þ ÆË¾÷Ã¢ ==================================================================================================

function pop_level()
{
		var Win_View = window.open('/prg/info/pop_level.asp',"pop_level1","scrollbars=no,resizable=no,top=230,left=300,width=416,height=295");
		Win_View.focus();

}
// °Ë»ö ====================================================================================================

function EstSubmit() {



		var f1=document.EstForm

		
		if ( f1.IsaDay.value == "") {
				
		alert("ÀÌ»çÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä");
		f1.IsaDay.focus();
		return;
		}
		else
		{									 //########## ÀÌ»çÀÏ ¹üÀ§ Ã¼Å©
		
			var s_date=0	//ÃÖ¼ÒÀÏÀÚ
			var e_date=59	//ÃÖ´ëÀÏÀÚ

			var adate=f1.IsaDay.value.split("-");
			var date1 = new Date(adate[0],adate[1]-1,adate[2]);

			var bdate=f1.NowDay.value.split("-");
			var today = new Date();
			var Ldate = new Date(today.getFullYear(),today.getMonth(),today.getDate());
			var Udate = new Date(today.getFullYear(),today.getMonth(),today.getDate());
			Ldate.setDate(Ldate.getDate()+s_date);
			Udate.setDate(Udate.getDate()+e_date);

			if (date1=="NaN" ) {alert("Á¦´ë·ÎµÈ ³¯Â¥¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À.");f1.IsaDay.focus();return ;}
//			else
//			{
//			if (date1 < Ldate)	{alert("ÀÌ»çÀÏÀÌ ¿À´Ã ³¯Â¥º¸´Ù ÀÛ½À´Ï´Ù.");f1.IsaDay.focus(); return ;}

//			else if (date1 > Udate)	{alert("ÀÌ»çÀÏÀº 60ÀÏ ÀÌ³»ÀÇ ÀÌ»ç¸¸ °¡´ÉÇÕ´Ï´Ù. ");f1.IsaDay.focus(); return ;}

	//		else	{f1.submit();}
//			}
		}


		if ( f1.IsaDay.value != "" && f1.CustDay.value != "" ) { //########## Ãâ°íÀÏÀÌ ÀÌ»çÀÏ ºñ±³
		
			var adate1=f1.IsaDay.value.split("-");
			var adate2=f1.CustDay.value.split("-");

			var date1 = new Date(adate1[0],adate1[1]-1,adate1[2]);
			var date2 = new Date(adate2[0],adate2[1]-1,adate2[2]);

			if (date1=="NaN" || date2=="NaN")
			{
				alert("Á¦´ë·ÎµÈ ³¯Â¥¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À.");
				f1.CustDay.focus();
				return ;
			}
			else
			{
				if (date1 >= date2)
				{
					alert("Ãâ°íÀÏÀÌ ÀÌ»çÀÏº¸´Ù Ä¿¾ß ÇÕ´Ï´Ù.");
					f1.CustDay.focus();
					return ;
				}

			}
		
		}


		if(f1.BAddr.value=="")
		{
			alert("Ãâ¹ßÁö¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			return;
		}

		if(f1.AAddr.value=="")
		{
			alert("µµÂøÁö¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			return;
		}

		if(f1.Amount.value=="" || f1.Amount.value =="0")
		{
			alert("¼±ÅÃÇÏ½Å ¹°·®ÀÌ ¾ø½À´Ï´Ù.\n\n¹°·®Á¤º¸¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä");
			return;
		}

		if(f1.ittvs.checked==true && f1.CustDay.value =="")
		{
			alert("Ãâ°íÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä");
			return;
		}

		if(EmailBox.style.display != "none" && f1.id1.value=="")
		{
			alert("ÀÌ¸ÞÀÏ1 ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			return;
		}

		if(EmailBox.style.display != "none" && f1.id2.value=="")
		{
			alert("ÀÌ¸ÞÀÏ2 ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			return;
		}

		EstSubmit_sub();

}
function EstSubmit_sub() {

		var f1=document.EstForm
		f1.target = "_top";
		//f1.action = "/dat.asp";
		f1.action = "/prg/mov/Est_Reg.asp";
		f1.submit();
}

		/*
		if(f1.CPSelectCom.value=="S" )
		{
			if(f1.SCCode[0].checked==false && f1.SCCode[1].checked==false)
			{
				alert("¾÷Ã¼¼ºÇâÀ» ¼±ÅÃÇØÁÖ¼¼¿ä");
				return;
			}
		}

 EstSubmit_sub(f1.CPSelectCom.value)
}
function EstSubmit_sub(str1) {

	if (str1=='A')
	{
				document.all.sub1.style.display = "none";
				document.all.sub2.style.display = "block";
	}

	else{
		var f1=document.EstForm
		f1.target = "_top";
		//f1.action = "/dat.asp";
		f1.action = "/prg/mov/Est_Reg.asp";
		f1.submit();
	}
}
*/

// ÀÌ»ç¸ô¿ë ¸®½ºÆ®ÆäÀÌÁö µî±Þ ¾È³» ·¹ÀÌ¾î======================================================================


	function markchart_on(cur,layer)
	{

		var point = fGetXY(cur); 

			eval(layer).style.visibility = "visible";
			if(navigator.userAgent.indexOf('Firefox') < 0){fade("levelimg","on");}
			eval(layer).style.left = point.x+60;
			eval(layer).style.top = point.y;

	}

	function markchart_off(cur,layer)
	{
			if(navigator.userAgent.indexOf('Firefox') < 0){fade("levelimg","off");}
			eval(layer).style.visibility = "hidden";
	}

	function fade(LayerID,op)
	{
		opa = 3;
		showla = eval(LayerID);

		if (op == "on")
		{
			showla.style.visibility = "hidden";
			showla.filters.RevealTrans.apply();
			showla.style.visibility= "visible";
			showla.filters.RevealTrans.play();
		}
		else
		{
			showla.style.visibility= "visible";
			showla.filters.RevealTrans.apply();
			showla.style.visibility = "hidden";
			showla.filters.RevealTrans.play();
		}
	}

// ÀÌ»ç¸ô ºäÆäÀÌÁö °è¾à¼­ ¿¹Á¦ ÆäÀÌÁö º¸±â =================================================================

function pop_cont_ex()
{
		var Win_View = window.open('/prg/info/pop_cont_ex.asp',"pop_cont_ex1","scrollbars=yes,resizable=no,top=50,left=50,width=693,height=550");
		Win_View.focus();

}

// ######################## ±¹³» ³¡ ###################################








// ######################## ÇØ¿Ü ###################################


// ±¹°¡¼±ÅÃ(Áöµµ) Ã¢==================================================================================================

function map_nation(NCode)
{
	
	var Win_View = window.open('/prg/popup/address_search_sea.asp?map=1&Type=C&NCode='+NCode,"ZipCodesea","scrollbars=no,resizable=no,top=50,left=50,width=431,height=439");
	Win_View.focus();
	
}
// ±¹°¡¼±ÅÃ(ÇØ¿Ü) Ã¢==================================================================================================

function Pop_Nation(Type)
{
	
	var Win_View = window.open('/prg/popup/address_search_sea.asp?Type='+Type,"ZipCodesea","scrollbars=no,resizable=no,top=50,left=50,width=431,height=439");
	Win_View.focus();
	
}

// ¹°·®Á¤º¸ÆË¾÷Ã¢À¸·Î Á¤º¸ Àü¼Û (ÇØ¿Ü) ================================================================================ 



// Ãâ±¹ÀÌ»ç  ±Í±¹ÀÌ»ç  ¼±ÅÃ ====================================================================
	function DisplayChange(Type)
	{

		if (Type == "A"){
			document.all.TBTypeA.style.display="block";
			document.all.TBTypeB.style.display="none";
		}else{
			document.all.TBTypeA.style.display="none";
			document.all.TBTypeB.style.display="block";
		}
	}




// °Ë»ö ====================================================================================================


function sea_EstSubmit() {

		var f1=document.EstForm

		if ( f1.IsaDay.value == "") {
				
		alert("Æ÷ÀåÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä");
		f1.IsaDay.focus();
		return;
		}
		else
		{									 //########## Æ÷ÀåÀÏ ¹üÀ§ Ã¼Å©
		
			var s_date=0	//ÃÖ¼ÒÀÏÀÚ
			var e_date=60	//ÃÖ´ëÀÏÀÚ

			var adate=f1.IsaDay.value.split("-");
			var date1 = new Date(adate[0],adate[1]-1,adate[2]);

			var bdate=f1.NowDay.value.split("-");
			var Lnow = new Date(bdate[0],bdate[1]-1,bdate[2]) ;
			var Unow = new Date(bdate[0],bdate[1]-1,bdate[2]) ;
			Lnow.setDate(Lnow.getDate()-s_date);
			Unow.setDate(Unow.getDate()+e_date);
			var Ldate = new Date(Lnow.getYear(),Lnow.getMonth(),Lnow.getDate());
			var Udate = new Date(Unow.getYear(),Unow.getMonth(),Unow.getDate());

			if (date1=="NaN" )
			{alert("Á¦´ë·ÎµÈ ³¯Â¥¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À.");
			f1.IsaDay.focus();
			return ;}
			else
			{
			if (date1 < Ldate)	{alert("Æ÷ÀåÀÏÀÌ ¿À´Ã ³¯Â¥º¸´Ù ÀÛ½À´Ï´Ù.");f1.IsaDay.focus(); return ;}

			//else if (date1 > Udate)	{alert("Æ÷ÀåÀÏÀº 60ÀÏ ÀÌ³»ÀÇ ÀÌ»ç¸¸ °¡´ÉÇÕ´Ï´Ù. ");f1.IsaDay.focus(); return ;}

	//		else	{f1.submit();}
			}
		}
		if (f1.BCode[0].checked == true) //Ãâ±¹ÀÌ»çÀÏ°æ¿ì
		{
			if (f1.BAddr.value == "")
			{
				alert("Ãâ¹ßÁöÁÖ¼Ò¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.");
				return;
			}

			if (f1.SvNCode.value == "")
			{
				alert("µµÂøÁö µµ½Ã¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä");
				return;
			}
		}
		else	// ±Í±¹ÀÌ»çÀÏ°æ¿ì
		{
			if (f1.StNCode.value == "")
			{
				alert("Ãâ¹ßÁö µµ½Ã¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä");
				return;
			}
			if (f1.AAddr.value == "")
			{
				alert("µµÂøÁöÁÖ¼Ò¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.");
				return;
			}
		}
		if(f1.Amount.value=="" || f1.Amount.value == "0")
		{
			alert("¼±ÅÃÇÏ½Å ¹°·®ÀÌ ¾ø½À´Ï´Ù.\n\n¹°·® Á¤º¸¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
			return;
		}

		if(EmailBox.style.display != "none" && f1.id1.value=="")
		{
			alert("ÀÌ¸ÞÀÏ1 ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			return;
		}

		if(EmailBox.style.display != "none" && f1.id2.value=="")
		{
			alert("ÀÌ¸ÞÀÏ2 ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			return;
		}

		f1.target = "_top";
		f1.action = "/prg/sea/Est_Reg.asp";
		f1.submit();
}


// ######################## ÇØ¿Ü ³¡ ###################################






// ######################## ÀÎÅ×¸®¾î ###################################


// °Ë»ö ====================================================================================================


function inte_EstSubmit() {

		var f1=document.EstForm

		if ( f1.IsaDay.value == "") {
				
		alert("½Ã°øÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä");
		f1.IsaDay.focus();
		return;
		}
		else
		{									 //########## ½Ã°øÀÏ ¹üÀ§ Ã¼Å©
		
			var s_date=0	//ÃÖ¼ÒÀÏÀÚ
			var e_date=60	//ÃÖ´ëÀÏÀÚ

			var adate=f1.IsaDay.value.split("-");
			var date1 = new Date(adate[0],adate[1]-1,adate[2]);

			var bdate=f1.NowDay.value.split("-");
			var Lnow = new Date(bdate[0],bdate[1]-1,bdate[2]) ;
			var Unow = new Date(bdate[0],bdate[1]-1,bdate[2]) ;
			Lnow.setDate(Lnow.getDate()-s_date);
			Unow.setDate(Unow.getDate()+e_date);
			var Ldate = new Date(Lnow.getYear(),Lnow.getMonth(),Lnow.getDate());
			var Udate = new Date(Unow.getYear(),Unow.getMonth(),Unow.getDate());

			if (date1=="NaN" )
			{alert("Á¦´ë·ÎµÈ ³¯Â¥¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À.");
			f1.IsaDay.focus();
			return ;}
			else
			{
			if (date1 < Ldate)	{alert("½Ã°øÀÏÀÌ ¿À´Ã ³¯Â¥º¸´Ù ÀÛ½À´Ï´Ù.");f1.IsaDay.focus(); return ;}

			//else if (date1 > Udate)	{alert("½Ã°øÀÏÀº 60ÀÏ ÀÌ³»ÀÇ ÀÌ»ç¸¸ °¡´ÉÇÕ´Ï´Ù. ");f1.IsaDay.focus(); return ;}

	//		else	{f1.submit();}
			}
		}
		if (f1.AAddr.value == ""){
			alert("½Ã°øÁö¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.");
			return;
		}
		if (f1.SvAddr_Type.value == ""){
			alert("°Ç¹° ±¸ºÐÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
			 return;
		}
		if (f1.interiorGoods[1].checked == false && f1.SvAddr_Room.value == ""){
			alert("¹æ °¹¼ö¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä");
			 f1.SvAddr_Room.focus();
			 return;
		}
		if (f1.interiorGoods[1].checked == false && f1.SvAddr_BathRoom.value == ""){
			alert("¿å½Ç °¹¼ö¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä");
			 f1.SvAddr_BathRoom.focus();
			 return;
		}
		if (f1.SvAddr_Space_sub.value == ""){
			alert("¸éÀûÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
			 f1.SvAddr_Space_sub.focus();
			 return;
		}
		if (Numeric_Check(f1.SvAddr_Space_sub.value) == "1"){
			alert("¹®ÀÚÀÇ ÀÔ·ÂÀÌ ÀÖ½À´Ï´Ù.");
				f1.SvAddr_Space_sub.value=""
			 f1.SvAddr_Space_sub.focus();
			 return;
		}
		if (f1.SvAddr_Space.value == ""){
			alert("¸éÀûÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
			 f1.SvAddr_Space_sub.focus();
			 return;
		}
		if (Numeric_Check(f1.SvAddr_Space.value) == "1"){
			alert("¹®ÀÚÀÇ ÀÔ·ÂÀÌ ÀÖ½À´Ï´Ù.");
			f1.SvAddr_Space_sub.value=""
			f1.SvAddr_Space_sub.focus();
			 return;
		}
		if (f1.BAddr.value == "")
		{
			alert("ÇöÀçÁÖ¼Ò¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä");
			return;
		}
		if(f1.HopeCost_sub.value=="" || f1.HopeCost_sub.value == "0" || f1.HopeCost.value=="" || f1.HopeCost.value == "0")
		{
			alert("Èñ¸Á¿¹»êÀÌ ¾ø½À´Ï´Ù.\n\nÈñ¸Á±Ý¾×À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
			f1.HopeCost_sub.focus();
			return;
		}
		if (Numeric_Check(f1.HopeCost.value) == "1"){
			alert("Èñ¸Á¿¹»ê¿¡ ¹®ÀÚÀÇ ÀÔ·ÂÀÌ ÀÖ½À´Ï´Ù.");
			f1.HopeCost.value=""
			f1.HopeCost_sub.value=""
			f1.HopeCost_sub.focus();
			return;
		}
	//»ó¼¼ ½Ã°øÇ×¸ñ ÇÑ°³ÀÌ»ó Ã¼Å©
		if (
			
			f1.interiorGoods[1].checked==false &&
			f1.CDCode1[0].checked==false &&
			f1.CDCode1[1].checked==false &&
			f1.CDCode1[2].checked==false &&
			f1.CDCode2[0].checked==false &&
			f1.CDCode2[1].checked==false &&
			f1.CDCode2[2].checked==false &&
			f1.CDCode3[0].checked==false &&
			f1.CDCode3[1].checked==false &&
			f1.CDCode3[2].checked==false &&
			f1.CDCode3[3].checked==false &&
			f1.CDCode3[4].checked==false &&
			f1.CDCode4[0].checked==false &&
			f1.CDCode4[1].checked==false &&
			f1.CDCode4[2].checked==false &&
			f1.CDCode4[3].checked==false &&
			f1.CDCode4[4].checked==false &&
			f1.CDCode21.checked==false &&
			f1.CDCode22.checked==false &&
			f1.CDCode23.checked==false &&
			f1.CDCode24.checked==false &&
			f1.CDCode25.checked==false &&
			f1.CDCode26[0].checked==false &&
			f1.CDCode26[1].checked==false &&
			f1.CDCode29.checked==false &&
			f1.CDCode30.checked==false &&
			f1.CDCode31.checked==false &&
			f1.CDCode32.checked==false &&
			f1.CDCode33.checked==false &&
			f1.CDCode34.checked==false &&
			f1.CDCode35.checked==false &&
			f1.CDCode36.checked==false &&
			f1.CDCode37.checked==false &&
			f1.CDCode38.checked==false &&
			f1.CDCode39.checked==false 
		){
			alert("»ó¼¼ ½Ã°øÇ×¸ñÀ» ÃÖ¼ÒÇÑ ÇÑ°³ ÀÌ»ó ¼±ÅÃ ÇÏ¼¼¿ä!");
			return;
		}


		f1.target = "_top";
		f1.action = "/prg/inte/Est_Reg.asp";
		f1.submit();
}





	function radio_1() {

		var f1=document.EstForm
		f1.SvAddr_Type.value='';
		for(i=0;i<6;i++){f1.radio1[i].checked=false;}
		for(i=0;i<7;i++){f1.radio2[i].checked=false;}
	}
	function radio_2(str1) {

		var f1=document.EstForm
		f1.SvAddr_Type.value=str1;
	}

	function changeMoveOptions_radio(key) {

			if(key == "ÁÖ°Å¿ë" ) {
			document.all.intebox.style.display = "block";
			document.all.inteopt1.style.display = "block";
			document.all.inteopt2.style.display = "none";
			document.all.inteaddbox1.style.display = "block";
			document.all.inteaddbox2.style.display = "block";
			document.all.inteaddbox3.style.display = "none";
			document.all.inteaddbox4.style.display = "none";
			}
			else if(key == "»ó¾÷¿ë") {
			document.all.intebox.style.display = "none";
			document.all.inteopt1.style.display = "none";
			document.all.inteopt2.style.display = "block";
			document.all.inteaddbox1.style.display = "none";
			document.all.inteaddbox2.style.display = "none";
			document.all.inteaddbox3.style.display = "none";
			document.all.inteaddbox4.style.display = "block";
			}
			else if(key == "µµ¹èÀåÆÇ") {
			document.all.intebox.style.display = "block";
			document.all.inteopt1.style.display = "block";
			document.all.inteopt2.style.display = "none";
			document.all.inteaddbox1.style.display = "block";
			document.all.inteaddbox2.style.display = "none";
			document.all.inteaddbox3.style.display = "block";
			document.all.inteaddbox4.style.display = "none";
			}

	}
// ÀÎÅ×¸®¾î »óÇ° ¼±ÅÃ½Ã ¼¿·ºÆ®¹Ú½ºº¯°æ


	function changeMoveOptions(key) {

			if(key == "ÁÖ°Å¿ë") {
			document.all.intebox.style.display = "block";
			}
			else if(key == "»ó¾÷¿ë") {
			document.all.intebox.style.display = "none";
			}
			else if(key == "µµ¹èÀåÆÇ") {
			document.all.intebox.style.display = "block";
			}

		_removeMoveOptions();



		var moveOptions = [
							["ÁÖ°Å¿ë", [
							["", "¢Æ°¡¿Á±¸Á¶ ¼±ÅÃ¢Æ"],
							["¾ÆÆÄÆ®", "¾ÆÆÄÆ®"],
							["¿ÀÇÇ½ºÅÚ", "¿ÀÇÇ½ºÅÚ"],
							["ÁÖ»óº¹ÇÕ", "ÁÖ»óº¹ÇÕ"],
							["ºô¶ó/¿¬¸³", "ºô¶ó/¿¬¸³"],
							["´Üµ¶ÁÖÅÃ", "´Üµ¶ÁÖÅÃ"],
							["±âÅ¸", "±âÅ¸"]
							]],

							["»ó¾÷¿ë", [
							["", "¢ÆÀÌ¿ë¸ñÀû ¼±ÅÃ¢Æ"],
							["»ç¹«½Ç", "»ç¹«½Ç"],
							["»ó°¡/½Ä´ç", "»ó°¡/½Ä´ç"],
							["º´¿ø", "º´¿ø"],
							["ÇÐ±³/ÇÐ¿ø", "ÇÐ±³/ÇÐ¿ø"],
							["½ºÆ÷Ã÷", "½ºÆ÷Ã÷"],
							["Àü½ÃÀå", "Àü½ÃÀå"],
							["±âÅ¸", "±âÅ¸"]
							]],

							["µµ¹èÀåÆÇ", [
							["", "¢Æ°¡¿Á±¸Á¶ ¼±ÅÃ¢Æ"],
							["¾ÆÆÄÆ®", "¾ÆÆÄÆ®"],
							["¿ÀÇÇ½ºÅÚ", "¿ÀÇÇ½ºÅÚ"],
							["ÁÖ»óº¹ÇÕ", "ÁÖ»óº¹ÇÕ"],
							["ºô¶ó/¿¬¸³", "ºô¶ó/¿¬¸³"],
							["´Üµ¶ÁÖÅÃ", "´Üµ¶ÁÖÅÃ"],
							["±âÅ¸", "±âÅ¸"]
							]]
						];


		for(var i = 0; i < moveOptions.length;i++) {
			
			
			if(key == moveOptions[i][0]) {
				
				
				for(var j = 0; j < moveOptions[i][1].length; j++) {
					var option;
					option = new Option(moveOptions[i][1][j][1], moveOptions[i][1][j][0]);
					document.EstForm.SvAddr_Type.options[document.EstForm.SvAddr_Type.options.length] = option;
				}
				break;
			}
		}


}

	function _removeMoveOptions() {
		while(document.EstForm.SvAddr_Type.options.length > 0) {
			document.EstForm.SvAddr_Type.options[document.EstForm.SvAddr_Type.options.length - 1] = null;
		}
	}


// ÀÌ¹ÌÁö È®´ë º¸±â
	function pop_img(str1,str2,str3){
		thurl="/prg/cmu/portpolio_pop_view.asp?no="+str1+"&img="+str2+"&title="+str3;
				var newWin = window.open(thurl,"pop_img1","left=200,top=200,width=800,height=640");
				newWin.focus();
	}

// view Æ÷Æ®Æú¸®¿À º¸±â
	function view_ChangeBox(str1)
	{
		if (str1==1)
		{
			document.all.portbox1.style.display = "none";
			document.all.portbox2.style.display = "block";
		}
		else
		{
			document.all.portbox1.style.display = "block";
			document.all.portbox2.style.display = "none";
		}
	}
 //view Æ÷Æ®Æú¸®¿À ´õº¸±â  ================================================================================ 
	function pop_port(str1){
		thurl="/prg/inte/portpolio_pop_list.asp?ComCode="+str1;
				var newWin = window.open(thurl,"pop_portpolio_list1","left=200,top=200,width=730,height=680,scrollbars=yes");
				newWin.focus();
	}


function td_out(str1){
td_clr();
	if (str1=='1'){td1.className='ad_up'}
	if (str1=='2'){td2.className='ad_up'}
	if (str1=='3'){td3.className='ad_up'}
	if (str1=='4'){td4.className='ad_up'}
	if (str1=='5'){td5.className='ad_up'}
}
function td_clr(){
	td1.className='ad_off'
	td2.className='ad_off'
	td3.className='ad_off'
	td4.className='ad_off'
	td5.className='ad_off'
}



// ######################## ÀÎÅ×¸®¾î ³¡ ###################################





// ######################## ÀÎÅ×¸®¾î¿Í ¼­ºñ½º¸ô¿¡¼­  À§¿Íµ¿ÀÏ¹öÆ° ###################################


// ÇöÁÖ¼Ò À§¿Í µ¿ÀÏ ¼±ÅÃ ====================================================================
	function inte_copy()
	{
		var f1=document.EstForm
			if (f1.checkbox.checked)
			{
				if (f1.AAddr.value == "")
				{
					alert("¼­ºñ½º(ÀÛ¾÷)ÁøÇà ÁÖ¼Ò¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.");
					f1.checkbox.checked = false;
				}else{
					f1.BAddr.value = f1.AAddr.value;
					f1.StAddr_Si.value = f1.SvAddr_Si.value;
					f1.StAddr_Gu.value = f1.SvAddr_Gu.value;
					f1.StAddr_Dong.value = f1.SvAddr_Dong.value;
					f1.checkbox.checked = true;
				}
			}else{

					f1.BAddr.value = '';
					f1.StAddr_Si.value = '';
					f1.StAddr_Gu.value = '';
					f1.StAddr_Dong.value = '';
					f1.checkbox.checked = false;
			}
	}

// ######################## ÀÎÅ×¸®¾î¿Í ¼­ºñ½º¸ô¿¡¼­  À§¿Íµ¿ÀÏ¹öÆ° ###################################


// ######################## ¼­ºñ½º¸ô ###################################


// °Ë»ö ====================================================================================================

function xmall_EstSubmit() {

//	¼­ºê¹× ÇÒ¶§ ·Î±×ÀÎÁ¤º¸¸¦ login_CheckForm.MemCode¿¡ º¯°æ ÇÑ´Ù.
hidden_frame.location.href="/prg/login/logCk.asp?EstSubmit_sub=parent.xmall_EstSubmit_sub();";
}

function xmall_EstSubmit_sub() {

		var f1=document.EstForm

		if ( f1.IsaDay.value == "") {
				
		alert("ÀÏÀÚ¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä");
		f1.IsaDay.focus();
		return;
		}
		else
		{									 //########## ½Ã°øÀÏ ¹üÀ§ Ã¼Å©
		
			var s_date=0	//ÃÖ¼ÒÀÏÀÚ
			var e_date=60	//ÃÖ´ëÀÏÀÚ

			var adate=f1.IsaDay.value.split("-");
			var date1 = new Date(adate[0],adate[1]-1,adate[2]);

			var bdate=f1.NowDay.value.split("-");
			var Lnow = new Date(bdate[0],bdate[1]-1,bdate[2]) ;
			var Unow = new Date(bdate[0],bdate[1]-1,bdate[2]) ;
			Lnow.setDate(Lnow.getDate()-s_date);
			Unow.setDate(Unow.getDate()+e_date);
			var Ldate = new Date(Lnow.getYear(),Lnow.getMonth(),Lnow.getDate());
			var Udate = new Date(Unow.getYear(),Unow.getMonth(),Unow.getDate());

			if (date1=="NaN" )
			{alert("Á¦´ë·ÎµÈ ³¯Â¥¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À.");
			f1.IsaDay.focus();
			return ;}
			else
			{
			if (date1 < Ldate)	{alert("ÀÏÀÚ°¡ ¿À´Ã ³¯Â¥º¸´Ù ÀÛ½À´Ï´Ù.");f1.IsaDay.focus(); return ;}

			//else if (date1 > Udate)	{alert("½Ã°øÀÏÀº 60ÀÏ ÀÌ³»ÀÇ ÀÌ»ç¸¸ °¡´ÉÇÕ´Ï´Ù. ");f1.IsaDay.focus(); return ;}

	//		else	{f1.submit();}
			}
		}
		if (f1.AAddr.value == "")
		{
			alert("¼­ºñ½º(ÀÛ¾÷)ÁøÇà ÁÖ¼Ò¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.");
			return;
		}
		if (f1.BAddr.value == "")
		{
			alert("ÇöÁÖ¼Ò¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä");
			return;
		}
		if (f1.SvAddr_Space.value == ""){
			alert("¼­ºñ½º(ÀÛ¾÷, ÀÎ¿ø) ÁøÇà ¼öÄ¡¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä");
			 f1.SvAddr_Space.focus();
			 return;
		}
		if (Numeric_Check(f1.SvAddr_Space.value) == "1"){
			alert("¹®ÀÚÀÇ ÀÔ·ÂÀÌ ÀÖ½À´Ï´Ù.");
				f1.SvAddr_Space.value=""
			 f1.SvAddr_Space.focus();
			 return;
		}
		if (f1.SCode.value == "S05" && f1.MCode.value == "M01" && f1.SvAddr_Space.value < 10){ //ÁýµéÀÌ
			alert("Çà»çÀÎ¿øÀº 10¸íÀÌ»ó¸¸ °¡´ÉÇÕ´Ï´Ù.");
				f1.SvAddr_Space.value=""
			 f1.SvAddr_Space.focus();
			 return;
		}
		if (f1.SCode.value == "S05" && f1.MCode.value == "M02" && f1.SvAddr_Space.value < 30){ //ÃâÀåºÎÆä
			alert("Çà»çÀÎ¿øÀº 30¸íÀÌ»ó¸¸ °¡´ÉÇÕ´Ï´Ù.");
				f1.SvAddr_Space.value=""
			 f1.SvAddr_Space.focus();
			 return;
		}
		if(document.login_CheckForm.MemCode.value=="")
		{
			loginForm_view('parent.xmall_EstSubmit();');
			return;
		}

		f1.target = "_top";
		f1.action = "/prg/xmall/Est_Reg.asp";
		f1.submit();
}


 //ÁýµéÀÌ À½½Ä ¸Þ´º  ================================================================================ 
	function pop_hom(){
		thurl="/prg/popup/pop_hom.asp";
				var newWin = window.open(thurl,"pop_hom1","left=200,top=200,width=716,height=680,scrollbars=no,resizable=no");
				newWin.focus();
	}
// ######################## ¼­ºñ½º¸ô ³¡ ###################################




// ######################## ¸¶ÀÌÆäÀÌÁö ###################################
// Áú¹®ÇÏ±â Å¬¸¯½Ã ·Î±×ÀÎ Ã¼Å© ====================================================================
function cmu_Submit(str1) {

//	¼­ºê¹× ÇÒ¶§ ·Î±×ÀÎÁ¤º¸¸¦ login_CheckForm.MemCode¿¡ º¯°æ ÇÑ´Ù.
	if (str1 != '2')
		{hidden_frame.location.href="/prg/login/logCk.asp?EstSubmit_sub=parent.know_write("+str1+");";}
	else if (str1=='2')
		{hidden_frame.location.href="/prg/login/logCk.asp?EstSubmit_sub=parent.poll_Submit();";}
}

function know_write(str1)
{
	if(document.login_CheckForm.MemCode.value == "")
	{
		loginForm_view('parent.know_write('+str1+');');
		return;
	}
	window.location.href="/prg/cmu/know_write.asp?mode="+str1;

	
}
// ÅõÇ¥ °á°ú Àû¿ë ====================================================================


  function poll_Submit()
    {
      var check = ""
	  var str	
	  var val
		  
		if(document.login_CheckForm.MemCode.value=="")
		{
			alert("·Î±×ÀÎÈÄ ÅõÇ¥ °¡´ÉÇÕ´Ï´Ù.")
			loginForm_view('parent.poll_Submit();');
			return;
		}
		for(i=0;i<document.form_p.col_no.length;i++){
			if(document.form_p.col_no[i].checked)
			{
				var val=document.form_p.col_no[i].value;
				var newWin = window.open("/prg/popup/cmu_poll_pop_Reg.asp?poll_no="+document.form_p.poll_no.value+"&col_no="+val,"result","scrollbars=no,width=670,height=400,left=0,top=0");
				newWin.focus();
				check="1";
			}
		}
		if(check=="")
		{
			alert("ÅõÇ¥³»¿ëÀ» ¼±ÅÃÇÏ¼¼¿ä.")
			return ;
		}
	}


// ÅõÇ¥ ¸®½ºÆ® º¸±â ====================================================================

function poll_Submit2() {
      theurl ="/prg/popup/cmu_poll_pop_list.asp" ;
       winoption = "scrollbars=yes,resizable=no,height=670,width=400" ;
       		var newWin = window.open(theurl,"result",winoption) ; 
			newWin.focus();
}
// ¸¶ÀÌÆäÀÌÁö A/S¿äÃ» ÀÛ¼º ====================================================================
	function as_Submit() {

		var f1 = document.EstForm;

		if(f1.memo_content1.value=="")
		{
			alert("ÇÇÇØ»çÇ×À» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			f1.memo_content1.focus();
			return;
		}
		if(f1.memo_content2.value=="")
		{
			alert("Èñ¸ÁÁ¶Ä¡»çÇ×À» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			f1.memo_content2.focus();
			return;
		}

		f1.submit();

	}
// ¸¶ÀÌÆäÀÌÁö ÀÌ¿ëÈÄ±â ÀÛ¼º ====================================================================
	function hoogi_Submit() {

		var f1 = document.EstForm;

		if(f1.memo_content1.value=="")
		{
			alert("³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			f1.memo_content1.focus();
			return;
		}

		f1.submit();

	}

// ¸¶ÀÌÆäÀÌÁö °è¾à¿äÃ» Ãë¼Ò ====================================================================
	function cont_del(str1,str2,str3) {
		del=confirm("°è¾à¿äÃ»À» Ãë¼Ò ÇÏ½Ã°Ú½À´Ï±î?");
		if(del)
		{
		//thurl="/prg/myp/myp_cont_del_Reg.asp?EstCode="+str1+"&DBstr="+str2+"&imgck="+str3;
		//var newWin = window.open(thurl,"cont_del1","left=2000,top=2000,width=0,height=0");
		//newWin.focus();
		hidden_frame.location.href="/prg/myp/myp_cont_del_Reg.asp?EstCode="+str1+"&DBstr="+str2+"&imgck="+str3;
		}
	}
// ¸¶ÀÌÆäÀÌÁö °è¾à¼­ ÇÁ¸°Æ® ====================================================================
	function myp_print(str1,str2) {
		thurl="/prg/myp/myp_cont_view_"+str1+".asp?print=p&CTCode="+str2;
				var newWin = window.open(thurl,"myp_print1","left=100,top=100,width=690,height=600,scrollbars=yes");
				newWin.focus();
	}

// ¸¶ÀÌÆäÀÌÁö ¾à°üº¸±â ====================================================================
	function myp_agr() {
  		var newWin = window.open('/prg/login/approval.asp','approval1','width=600,height=608');
		newWin.focus();
	}
// ######################## ¸¶ÀÌÆäÀÌÁö ³¡ ###################################

// ######################## Áö½ÄÃ¢°í  ##################################

// Áö½ÄÃ¢°í ÀÛ¼º ====================================================================
	function know_Submit() {

		var f1 = document.EstForm;

		if(f1.menu.value=="")
		{
			alert("Áú¹®À¯ÇüÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			f1.menu.focus();
			return;
		}
		if(f1.title.value=="")
		{
			alert("Á¦¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			f1.title.focus();
			return;
		}
		if(f1.memo_content1.value=="")
		{
			alert("³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			f1.memo_content1.focus();
			return;
		}

		f1.submit();

	}

// ######################## Áö½ÄÃ¢°í ³¡ ###################################

// ######################## Á¦ÈÞ±¤°í ¹®ÀÇ  ###################################



// Á¦ÈÞ±¤°í ¹®ÀÇ ·»´ý ¼ýÀÚ¸¦ ¸®ÅÏ
		//***************************************************
		// 2007-07-10 ÀåµµÈÆ Á¦ÀÛ
		// 1~999 »çÀÌ¼ýÀÚ Áß¿¡¼­ ÀÇ ·»´ý ¼ýÀÚ¸¦ ¸®ÅÏ(¹Ð¸®¼¼ÄÁÀ» ÀÌ¿ë)
		//***************************************************
	function add_Rndm()
	{
		var now=new Date();
		var millisec=now.getUTCMilliseconds();
		//	var sec=now.getSeconds();
		MyForm.pwd1.value=millisec ;
	}

// ¾÷·Îµå ÆÄÀÏÅ©±â¸¦ ¸®ÅÏ
function getFileSize(path,maxSize)
{
	var img = new Image();
	img.dynsrc = path;
	document.all.sizebox.value = img.fileSize;
	if (img.fileSize > maxSize ){
	alert("ÇöÀç ÆÄÀÏÅ©±â : "+ parseInt(img.fileSize/1024/1024) + "MB \n\nÆÄÀÏ»çÀÌÁî°¡ ³Ê¹« Å­´Ï´Ù.\n\n ÃÖ´ë ÆÄÀÏÅ©±â´Â "+ parseInt(maxSize/1024/1024) + "MB ¹Ì¸¸ ÀÔ´Ï´Ù.");
	}
}
// ######################## Á¦ÈÞ±¤°í ³¡ ###################################

 //24¸ô ÆË¾÷Ã¢ º¸µµÀÚ·á  ================================================================================ 
	function pop_bodo(thurl){
				var newWin = window.open(thurl,"pop_bodo1","left=200,top=200,width=600,height=550,scrollbars=yes,resizable=yes");
				newWin.focus();
	}
 //°í°´¼¾Å¸ Áöµµ º¸±â ================================================================================ 
	function pop_infomap(){
		thurl="/prg/popup/pop_infomap.asp";
				var newWin = window.open(thurl,"pop_infomap1","left=200,top=200,width=500,height=483,scrollbars=no,resizable=no");
				newWin.focus();
	}


//////////////////////////////////////////////////////////////////º¸¾È°ü·Ã Input Box Á¦ÇÑ ¸Þ¼¼Áö

function CheckKeys() // ¹®ÀÚÀÔ·Â ±ÝÁö ÇÔ¼ö ¼³Á¤
 // '=39,"=34,<=60,>=62,{=123,}=125,\=92
 {
  if(event.keyCode == 39 || event.keyCode == 34 || event.keyCode == 60 || event.keyCode == 62 || event.keyCode == 123 || event.keyCode == 125 || event.keyCode == 92)
  {
   event.keyCode=0;
  }
 }


// ¼ýÀÚ ÀÔ·Â Ã¼Å©==================================================================================================

function isNanCheck(FrameName) {
	
	if (isNaN(eval(FrameName).value)) {
	
		alert("ÀÔ·Â¶õ¿¡ ¹®ÀÚ°¡ µé¾î°¥¼ö ¾ø½À´Ï´Ù.");
		eval(FrameName).value = "";
		eval(FrameName).focus();
		return;	
	}
}


function Numeric_Check(strings) {
    var c;
    var i;
    for(i=0;i<strings.length;i++) {
        c = strings.charAt(i);
        if(c < '0' || c > '9'){
           return(1);
        }
    }
    return(0);
}


// ÄíÅ°¸¦ ¼³Á¤ ÇÕ´Ï´Ù. setCookie( 'mytop_cookie','1' ,1 ); =======================================================================
function setCookie( name, value, expiredays )
{
  var today = new Date();
  today.setDate( today.getDate() + expiredays );
  document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + today.toGMTString() + ';';
//  document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + today.getDate()+1 + ';';
}

 
// ÄíÅ°°¡ ÀÖ³ª Ã£½À´Ï´Ù  getCookie("autopop")=======================================================================
function getCookie( name ){ 
		var nameOfCookie = name + "="; 
		var x = 0; 
		while ( x <= document.cookie.length ) 
		{ 
				var y = (x+nameOfCookie.length); 
				if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
						if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
								endOfCookie = document.cookie.length; 
						return unescape( document.cookie.substring( y, endOfCookie ) ); 
				} 
				x = document.cookie.indexOf( " ", x ) + 1; 
				if ( x == 0 ) 
						break; 
		} 
		return ""; 
} 


/*
* Check(String)=======================================================================
* ½ºÆäÀÌ½º¸¦ Á¦°ÅÇÑ ±æÀÌ¸¦ ¸®ÅÏÇÕ´Ï´Ù.
*/

function Check(keyword) 
{
	var st_num, key_len;
	st_num = keyword.indexOf(" ");	
	while (st_num != -1)
	{
		keyword = keyword.replace(" ", "");
		st_num  = keyword.indexOf(" ");
	}
	key_len=keyword.length;
	return key_len;
}

function rst() {
document.bds.reset();
}
function back() {
history.go(-1)
}


// ÃÊ±âÈ­ ==================================================================================================
// URL¸¦ ³Ñ°Ü ¹Þ´Â´Ù.
function reset(formname,strURL)
{	
	var form = document.formname;
    form.action = strURL ;
	form.method = "post";
	form.submit();
}

// ---------------------------------------------------
//  [HTML] : °Ë»öÀÌ ÀÖÀ»°æ¿ì ÆË¾÷Ã¢ »çÀÌÁî º¯°æ  
// ---------------------------------------------------
// html_js_data = "  window.resizeTo(460, 330); "
// ---------------------------------------------------



//=============================================
// @ ÆË¾÷Ã¢  function 
//     - pMethod      : GET, POST 
//     - pFormStr     : POST ¹æ½Ä½Ã FORM¸í
//     - pLinkPage    : ÀÌµ¿ÇÒ ÆäÀÌÁö
//     - pWinName     : ÆË¾÷Ã¢ ÀÌ¸§
//     - pWidth       : ÆË¾÷Ã¢ width
//     - pHeight      : ÆË¾÷Ã¢ pHeight
//     - pScrollBarYn : ÆË¾÷Ã¢ ½ºÅ©·Ñ¹Ù À¯¹«(yes, no)
//---------------------------------------------
function openPopUp(pMethod, pFormStr, pLinkPage, pWinName, pWidth, pHeight, pScrollBarYn, pTop, pLeft ) {

	var openWin;
	var opt;
	
	if( pWinName=="" ){
		 pWinName = "popWin";
	}

	opt = 'width=' + pWidth + ',height=' + pHeight + ',scrollbars='+pScrollBarYn+', toolbars=no, menubars=no,top='+pTop+',left='+pLeft;

	if( pMethod == "POST" ){
	
		var form = eval("document." + pFormStr);
		openWin = window.open("", pWinName, opt);
		form.target	= pWinName;
		form.action = pLinkPage;
		form.method="post";
		form.submit();
		openWin.focus();
	}else if( pMethod == "GET" ){
		openWin = window.open(pLinkPage, pWinName, opt);
		openWin.focus();
	}
}


	function isEmail(s)
	{
		return s.search(/^\s*[\w\~\-\.]+\@[\w\~\-]+(\.[\w\~\-]+)+\s*$/g)>=0;
	}



function Emailck(obj) // ¹®ÀÚÀÔ·Â ±ÝÁö ÇÔ¼ö ¼³Á¤
 {
//alert(event.keyCode);
		 if ((event.keyCode>47) && (event.keyCode<58))  {}  // ¼öÄ¡ ¹üÀ§(0~9) Á¡°Ë
	else if ((event.keyCode>64) && (event.keyCode<91))  {}  // ´ë¹®ÀÚ ¹üÀ§(A~Z) Á¡°Ë
	else if ((event.keyCode>96) && (event.keyCode<123)) {}  // ¼Ò¹®ÀÚ ¹üÀ§(a~z) Á¡°Ë
	else if (event.keyCode == 45 || event.keyCode == 95|| event.keyCode == 46 || event.keyCode == 13) {}  // '-','_','.',¿£ÅÍ  Á¡°Ë
	else{
   event.keyCode=0;
		alert(event.keyCode);
		alert("Àß¸øµÈ ÀÌ¸ÞÀÏ ÁÖ¼ÒÀÔ´Ï´Ù.");
		obj.value = "";
		obj.focus();
		return;	
		}
	}

function cknum(obj) // ¹®ÀÚÀÔ·Â ±ÝÁö ÇÔ¼ö ¼³Á¤
 {
//alert(event.keyCode);
		 if ((event.keyCode>47) && (event.keyCode<58))  {}  // ¼öÄ¡ ¹üÀ§(0~9) Á¡°Ë
	else if (event.keyCode == 13) {}  // ¿£ÅÍ Á¡°Ë
//	else if ((event.keyCode>64) && (event.keyCode<91))  {}  // ´ë¹®ÀÚ ¹üÀ§(A~Z) Á¡°Ë
//	else if ((event.keyCode>96) && (event.keyCode<123)) {}  // ¼Ò¹®ÀÚ ¹üÀ§(a~z) Á¡°Ë
//	else if (event.keyCode == 45 || event.keyCode == 95|| event.keyCode == 46) {}  // '-','_','.'  Á¡°Ë
	else{
   event.keyCode=0;
		alert("¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.");
		obj.value = "";
		obj.focus();
		return;	
		}
	}

//=============================================
// @ ÇÏÀÌ¶óÀÌÆ®
//---------------------------------------------
var highlightcolor="#FFFFFF" // ÇÏÀÌ¶óÀÌÆ® »ö»óÀ» ¼³Á¤ ÇÏ¼¼¿ä
var ns6=document.getElementById&&!document.all
var previous=''
var eventobj

var intended=/INPUT|TEXTAREA|SELECT|OPTION/; // Àû¿ëÇÒ Æû ¿ä¼Ò

function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor='#F4F6FB'
//previous.style.border='#FB1106'
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}

function viewsealinfo(seal)
{
window.open('http://info.anycert.com?seal='+seal,'viewipinfo2','width=700, height=583,scrollbars=yes,top=10,left=10');
}

