/**
 * ±ÛÀÚ ±ôºý°Å¸²
 */
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)
}
window.onload = startBlink;


/** 
 * ¸¶ÀÌÀÎÆ÷ °­ÁÂ´Ù¿î·Îµå »õÃ¢
 */
function pop(url) {
	var winl = (screen.width - 495) / 2;
	var wint = (screen.height - 305) / 2;
	winprops = 'width=495,height=305,top='+wint+',left='+winl+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0'
	window.open(url, 'winame3', winprops, true)
}
function openVODPlayer(url) {
	newopen=window.open(url,'','scrollbars=no,resizable=no,width=1012,height=726,left=0,top=0');
}
function newOPEN(url) {
	newopen=window.open(url,'','scrollbars=yes,resizable=no,width=600,height=700,left=0,top=0');
}
function ViewImage(filename) {
	var top		= 0;
	var left		= 0;
	var width	= 200;
	var height	= 200;
	window.open("/COMMON_FILES/PeViewImage.asp?filename="+filename, "ImageWin", "left=" + left + ",top=" + top + ",width=" + width + ",height=" + height + ",directories=no,toolbar=no,status=no,resizable=no,scrollbars=no");
}


/** 
 * Ä³½¬ÃæÀüÃ¢ 
 */
// Ä³½¬ »õÃ¢ ¶Ù¿ö¼­ °áÁ¦ÃæÀü½Ã »ç¿ëÇß¾úÀ½!!
function cardWindow(url, cash_flag, depName, price, user_name, user_id, RegYMD, prdtype, ptype, cash, user_mail, subject, p_cash, p_mileage, p_point, j_cash, j_mileage, j_point, t_cash, t_mileage, t_point, ret_url) {
	var R_URL="";
	R_URL=url+"?cash_flag="+cash_flag+"&depName="+depName+"&price="+price+"&user_name="+user_name+"&user_id="+user_id+"&RegYMD="+RegYMD+"&prdtype="+prdtype+"&ptype="+ptype+"&cash="+cash+"&user_mail="+user_mail+"&subject="+subject+"&p_cash="+p_cash+"&p_mileage="+p_mileage+"&p_point="+p_point+"&j_cash="+j_cash+"&j_mileage="+j_mileage+"&j_point="+j_point+"&t_cash="+t_cash+"&t_mileage="+t_mileage+"&t_point="+t_point+"&ret_url="+escape(ret_url);
	//window.open(R_URL, "Window", "width=630, height=470, status=yes, scrollbars=no");
	location.href = R_URL;
}
function cashWinCharge(url, cash_flag, depName, price, user_name, user_id, RegYMD, prdtype, ptype, cash, user_mail, subject, p_cash, p_mileage, p_point, j_cash, j_mileage, j_point, t_cash, t_mileage, t_point, ret_url) {
	var R_URL="";
	R_URL=url+"?cash_flag="+cash_flag+"&depName="+depName+"&price="+price+"&user_name="+user_name+"&user_id="+user_id+"&RegYMD="+RegYMD+"&prdtype="+prdtype+"&ptype="+ptype+"&cash="+cash+"&user_mail="+user_mail+"&subject="+subject+"&p_cash="+p_cash+"&p_mileage="+p_mileage+"&p_point="+p_point+"&j_cash="+j_cash+"&j_mileage="+j_mileage+"&j_point="+j_point+"&t_cash="+t_cash+"&t_mileage="+t_mileage+"&t_point="+t_point+"&ret_url="+escape(ret_url);
	window.open(R_URL, "Window", "width=630, height=530, status=yes, scrollbars=no");
}


/** 
 * Ä³½¬°áÁ¦Ã¢ 
 */
function cashOrder() {
	document.CashForm.action="/default.asp?_pageVariable=CASHADDSTEP3"
	document.CashForm.submit();
}
function cashWinPay(url, cash_flag, depName, price, mileage, user_name, user_id, ptype, user_mail, uc001_lec_code, uc001_subject, uc001_cate, uc001_cate_sub, uc001_state, uc001_type, uc001_period, ret_url) {
	var R_URL="";
	R_URL=url+"?cash_flag="+cash_flag+"&depName="+depName+"&price="+price+"&mileage="+mileage+"&user_name="+user_name+"&user_id="+user_id+"&ptype="+ptype+"&user_mail="+user_mail+"&uc001_lec_code="+uc001_lec_code+"&uc001_subject="+uc001_subject+"&uc001_cate="+uc001_cate+"&uc001_cate_sub="+uc001_cate_sub+"&uc001_state="+uc001_state+"&uc001_type="+uc001_type+"&uc001_period="+uc001_period+"&ret_url="+escape(ret_url);
	window.open(R_URL, "Window", "width=630, height=530, status=yes, scrollbars=no");
}


/** 
 * È¸¿ø°¡ÀÔ 
 */
function sendit() {
	if(document.ThisForm.m_name.value=="") {
		alert("½Ç¸í ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!!");
		ThisForm.m_name.focus();
		return true;
	}
	if(document.ThisForm.m_id.value=="") {
		alert("ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		ThisForm.m_id.focus();
		return true;
	}
	if(document.ThisForm.m_pw.value=="") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!!");
		ThisForm.m_pw.focus();
		return true;
	}
	if(document.ThisForm.m_pw.value!=ThisForm.m_pw2.value) {
		alert("ºñ¹Ð¹øÈ£°¡ ¼­·Î ´Ù¸¨´Ï´Ù.");
		ThisForm.m_pw2.focus();
		return true;
	}
	if(document.ThisForm.m_birth_year.value=="") {
		alert("»ý³â¿ùÀÏÀÇ ³âµµ¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä!!");
		ThisForm.m_birth_year.focus();
		return true;
	}
	if(document.ThisForm.m_birth_month.value=="") {
		alert("»ý³â¿ùÀÏÀÇ ¿ùÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä!!");
		ThisForm.m_birth_month.focus();
		return true;
	}
	if(document.ThisForm.m_birth_day.value=="") {
		alert("»ý³â¿ùÀÏÀÇ ÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä!!");
		ThisForm.m_birth_day.focus();
		return true;
	}
	if(document.ThisForm.m_sex.value=="") {
		alert("¼ºº°À» ¼±ÅÃÇØÁÖ¼¼¿ä!!");
		ThisForm.m_sex.focus();
		return true;
	}
			
	/*
	//ÁÖ¹Îµî·Ï¹øÈ£ °Ë»ç 	
	str1 = document.ThisForm.license1.value ;
	str2 = document.ThisForm.license2.value ;
	li_value = new Array(13);
        var li_lastid,li_mod,li_minus,li_last;
	li_lastid    = parseFloat(str2.substring(6,7));
	li_value[0]  = parseFloat(str1.substring(0,1))  * 2;
	li_value[1]  = parseFloat(str1.substring(1,2))  * 3;
	li_value[2]  = parseFloat(str1.substring(2,3))  * 4;
	li_value[3]  = parseFloat(str1.substring(3,4))  * 5;
	li_value[4]  = parseFloat(str1.substring(4,5))  * 6;
	li_value[5]  = parseFloat(str1.substring(5,6))  * 7;
	li_value[6]  = parseFloat(str2.substring(0,1))  * 8;
	li_value[7]  = parseFloat(str2.substring(1,2))  * 9;
	li_value[8]  = parseFloat(str2.substring(2,3))  * 2;
	li_value[9]  = parseFloat(str2.substring(3,4))  * 3;
	li_value[10] = parseFloat(str2.substring(4,5))  * 4;
	li_value[11] = parseFloat(str2.substring(5,6))  * 5;
	li_value[12] = 0;
	for (var i = 0; i<12;i++)
	{
		li_value[12] = li_value[12] + li_value[i];
	}   
	li_mod = li_value[12] %11;
	li_minus = 11 - li_mod;
	li_last = li_minus % 10;
	if (li_last != li_lastid)
	{
		alert ("\nÁÖ¹Îµî·Ï¹øÈ£°¡ ¸ÂÁö ¾Ê½À´Ï´Ù. ´Ù½Ã È®ÀÎÇØ ÁÖ½Ê½Ã¿À");
		document.ThisForm.license1.focus();
		return true;
	}
	*/

	if(ThisForm.m_email.value=="") {
		alert("¼ö½Å°¡´ÉÇÑ E-mailÀ» ÀÔ·ÂÇØÁÖ½Ê½Ã¿À!!")
		ThisForm.m_email.focus();
		return false;
	}
	if(ThisForm.m_email.value.indexOf("@")< 3 || ThisForm.m_email.value.indexOf(".")<5) {
		alert("E-mailÀÌ Æ²·È½À´Ï´Ù.")
		ThisForm.m_email.value=""
		ThisForm.m_email.focus();
		return false;
	}
	if(ThisForm.m_email.value.length < 10) {
		alert("E-mailÀÌ Àß¸øµÇ¾ú½À´Ï´Ù.")
		ThisForm.m_email.value=""
		ThisForm.m_email.focus();
		return false;
	}
	if(ThisForm.m_email.value.indexOf(" ")!= -1) {
		alert("¿Ã¹Ù¸¥ E-mailÇü½ÄÀÌ ¾Æ´Õ´Ï´Ù.")
		ThisForm.m_email.focus();
		return;
	}

	//¿ìÆí¹øÈ£
	if (document.ThisForm.m_post.value =="") {
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À!!");
		document.ThisForm.m_post.focus();
		return true;
	}

	//ÀüÈ­¹øÈ£ ±¹¹øÃ¼Å©
	if (document.ThisForm.m_phone.value =="") {
		alert("ÀüÈ­¹øÈ£ ±¹¹øÀ» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À!!");
		document.ThisForm.m_phone.focus();
		return true;
	}

	//ÀüÈ­¹øÈ£ ¾ÕÀÚ¸®Ã¼Å©
	if (document.ThisForm.m_phone2.value =="") {
		alert("ÀüÈ­¹øÈ£ ¾ÕÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À!!");
		document.ThisForm.m_phone2.focus();
		return true;
	}
	else {
		for(var i=0; i < document.ThisForm.m_phone2.value.length; i++) {
			substr = document.ThisForm.m_phone2.value.substring(i, i+1);
			if (substr != "0" && substr != "1" && substr != "2" &&
				substr != "3" && substr != "4" && substr != "5" &&
				substr != "6" && substr != "7" && substr != "8" &&
				substr != "9" && substr != "0" ) {
				alert( "ÀüÈ­¹øÈ£ ¾ÕÀÚ¸®´Â ¼ýÀÚ ÀÌ¿ÜÀÇ ¹®ÀÚ´Â ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
				document.ThisForm.m_phone2.focus();
				return true;
			}
		}
	}

	//ÀüÈ­¹øÈ£ µÞÀÚ¸®Ã¼Å©
	if (document.ThisForm.m_phone3.value =="") {
		alert("ÀüÈ­¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À!!");
		document.ThisForm.m_phone3.focus();
		return true;
	}
	else {
		for(var i=0; i < document.ThisForm.m_phone3.value.length; i++) {
			substr = document.ThisForm.m_phone3.value.substring(i, i+1);
			if (substr != "0" && substr != "1" && substr != "2" &&
				substr != "3" && substr != "4" && substr != "5" &&
				substr != "6" && substr != "7" && substr != "8" &&
				substr != "9" && substr != "0" ) {
				alert( "ÀüÈ­¹øÈ£ µÞÀÚ¸®´Â ¼ýÀÚ ÀÌ¿ÜÀÇ ¹®ÀÚ´Â ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
				document.ThisForm.m_phone3.focus();
				return true;
			}
		}
	}

	//ÈÞ´ëÆù ±¹¹øÃ¼Å©
	if (document.ThisForm.m_hp.value =="") {
		alert("ÈÞ´ëÆù¹øÈ£¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À!!");
		document.ThisForm.m_hp.focus();
		return true;
	}

	//ÈÞ´ëÆù¹øÈ£ ¾ÕÀÚ¸® Ã¼Å©
	if (document.ThisForm.m_hp2.value =="") {
		alert("ÈÞ´ëÆù¹øÈ£ ¾ÕÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À!!");
		document.ThisForm.m_hp2.focus();
		return true;
	}
	else {
		if (document.ThisForm.m_hp2.value.length>0) {	
			for(var i=0; i < document.ThisForm.m_hp2.value.length; i++) {
				substr = document.ThisForm.m_hp2.value.substring(i, i+1);
				if( substr != "0" && substr != "1" && substr != "2" &&
					substr != "3" && substr != "4" && substr != "5" &&
					substr != "6" && substr != "7" && substr != "8" &&
					substr != "9" && substr != "0" )
				{
					alert( "ÈÞ´ëÆù¹øÈ£ ¾ÕÀÚ¸®´Â ¼ýÀÚ ÀÌ¿ÜÀÇ ¹®ÀÚ´Â ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
					document.ThisForm.m_hp2.focus();
					return true;
				}
			}
		}
	}

	//ÈÞ´ëÆù¹øÈ£ µÞÀÚ¸® Ã¼Å©
	if (document.ThisForm.m_hp3.value =="") {
		alert("ÈÞ´ëÆù¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À!!");
		document.ThisForm.m_hp3.focus();
		return true;
	}
	else {
		if (document.ThisForm.m_hp3.value.length>0) {	
			for(var i=0; i < document.ThisForm.m_hp3.value.length; i++) {
				substr = document.ThisForm.m_hp3.value.substring(i, i+1);
				if( substr != "0" && substr != "1" && substr != "2" &&
					substr != "3" && substr != "4" && substr != "5" &&
					substr != "6" && substr != "7" && substr != "8" &&
					substr != "9" && substr != "0" )
				{
					alert( "ÈÞ´ëÆù¹øÈ£ µÞÀÚ¸®´Â ¼ýÀÚ ÀÌ¿ÜÀÇ ¹®ÀÚ´Â ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù." );
					document.ThisForm.m_hp3.focus();
					return true;
				}
			}
		}
	}
  
	// Á÷¾÷
	if(document.ThisForm.m_job.value=="") {
		alert("Á÷¾÷À» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À!!");
		ThisForm.m_job.focus();
		return true;
	}

	// Àü¼Û
	document.ThisForm.submit();
	return true;  
}	


/** 
 * È¸¿øÁ¤º¸¼öÁ¤ 
 */
function memberUpdate() {
	if(document.ThisForm.m_pw2.value=="") {
		alert("ºñ¹Ð¹øÈ£ È®ÀÎ¶õÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À!!");
		ThisForm.m_pw2.focus();
		return true;
	}
	if(document.ThisForm.m_pw.value!=ThisForm.m_pw2.value) {
		alert("ºñ¹Ð¹øÈ£°¡ ¼­·Î ´Ù¸¨´Ï´Ù.");
		ThisForm.m_pw2.focus();
		return true;
	}
	document.ThisForm.submit();
	return true;  
}	


/** 
 * ¾ÆÀÌµðÁßº¹Ã¼Å© 
 */
function  idSearch() {
	if(document.ThisForm.m_id.value) {
		var id;
		id=document.ThisForm.m_id.value;
		url="./popup_member_idsearch.asp?id="+id;
		window.open(url, "idsearch", "width=330,height=150,status=no,toolbar=no,menubar=no,location=no scrollbars=no");
	}
	else {
		window.open("./popup_member_idsearch.asp", "idsearch", "width=330,height=150,status=no,toolbar=no,menubar=no,location=no scrollbars=no");
	}
}


/** 
 * ¿ìÆí¹øÈ£°Ë»ö 
 */
function ZipSearch() {
	window.open("./popup_member_zipsearch.asp", "zipnumber", "width=390,height=174,status=no,toolbar=0,locantion=no scrollbars=1");
}
function LENcheck(thisVal, nextVal, thisLen) {
	var tv=thisVal;
	var nv=nextVal;
	var tl=parseInt(thisLen);
	var str = eval("document.ThisForm." + tv + ".value.length");
	if(str == tl)
		eval("document.ThisForm." + nextVal + ".focus()")
} 
function onlyNumber() {
	if((event.keyCode<48)||(event.keyCode>57))
	event.returnValue=false;
}


/** 
 * ÃÊ±âÈ­¸é·Î±×ÀÎÆû 
 */
function chkValue(temp) {
	if (temp.userid.value == "") {
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä!!");
		frmLogin.userid.focus();
		return false;
	}
	if (temp.passwd.value == "") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!!");
		frmLogin.passwd.focus();
		return false;
	}
	return true;
}


/** 
 * °­ÀÇÆò¾²±â 
 */
function reviewForm() {
	if (document.rvForm.rv001_subject.value=="") {
		alert("°­ÀÇÆò Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä!!");
		document.rvForm.rv001_subject.focus();
		return false;
	}
	if (document.rvForm.rv001_star.value=="") {
		alert("ÆòÁ¡º°À» ¼±ÅÃÇÏ¼¼¿ä!!");
		document.rvForm.rv001_star.focus();
		return false;
	}
	if (document.rvForm.rv001_content.value=="") {
		alert("°­ÀÇÆòÀ» ÀÔ·ÂÇÏ¼¼¿ä!!");
		document.rvForm.rv001_content.focus();
		return false;
	}
	document.rvForm.action="/KERNEL/Kernel_Review_Insert_ok.asp"
	document.rvForm.submit();
}


/** 
 * »õÃ¢ 
 */
function newOPEN(url, s, r, w, h){
	newopen=window.open(url, '', 'scrollbars='+s+',resizable='+r+',width='+w+', height='+h+', left=0, top=0');
}


/** 
 * °Ô½ÃÆÇº¸±â 
 */
function sayboardView(a, id) {
	window.open(a+"sboard.say?id="+id);
}


/** 
 * È¯°æ¼³Á¤ 
 */
function sayboardOption(a, group, category, id) {
	window.name = "¼¼ÀÌº¸µå";
	window.open(a+"admin/AM001/sayboard_environment.asp?group="+group+"&category="+category+"&id="+id,"sayboard_option","toolbar=no,directories=no,status=no,scrollbars=yes,resizable=no,menubar=no,width=620,height=660,top=0,left=0");
}


/** 
 * È¯°æ¼³Á¤OK[ÀÔ·Â] 
 */
function environment(a) {
	if (document.environForm.e_bbs_list.value=="") {
		alert("±Û¸ñ·Ï º¸±â ±ÇÇÑÀ» ¼±ÅÃÇÏ¼¼¿ä!!");
		document.environForm.e_bbs_list.focus();
		return false;
	}
	if (document.environForm.e_bbs_read.value=="") {
		alert("±Û³»¿ë º¸±â ±ÇÇÑÀ» ¼±ÅÃÇÏ¼¼¿ä!!");
		document.environForm.e_bbs_read.focus();
		return false;
	}
	if (document.environForm.e_bbs_write.value=="") {
		alert("±Û¾²±â ±ÇÇÑÀ» ¼±ÅÃÇÏ¼¼¿ä!!");
		document.environForm.e_bbs_write.focus();
		return false;
	}
	if (document.environForm.e_bbs_re.value=="") {
		alert("´äº¯ ¾²±â ±ÇÇÑÀ» ¼±ÅÃÇÏ¼¼¿ä!!");
		document.environForm.e_bbs_re.focus();
		return false;
	}
	if (document.environForm.e_bbs_comment.value=="") {
		alert("ÄÚ¸àÆ® ¾²±â ±ÇÇÑÀ» ¼±ÅÃÇÏ¼¼¿ä!!");
		document.environForm.e_bbs_comment.focus();
		return false;
	}
	if (document.environForm.e_bbs_source.value=="") {
		alert("¿¹Á¦/¼Ò½º ¾²±â ±ÇÇÑÀ» ¼±ÅÃÇÏ¼¼¿ä!!");
		document.environForm.e_bbs_source.focus();
		return false;
	}
	if (document.environForm.e_bbs_del.value=="") {
		alert("±Û»èÁ¦ ±ÇÇÑÀ» ¼±ÅÃÇÏ¼¼¿ä!!");
		document.environForm.e_bbs_del.focus();
		return false;
	}
	if (document.environForm.e_bbs_notice.value=="") {
		alert("°øÁö»çÇ× ¾²±â ±ÇÇÑÀ» ¼±ÅÃÇÏ¼¼¿ä!!");
		document.environForm.e_bbs_notice.focus();
		return false;
	}
	if (document.environForm.e_bbs_download.value=="") {
		alert("ÆÄÀÏ ´Ù¿î·Îµå ±ÇÇÑÀ» ¼±ÅÃÇÏ¼¼¿ä!!");
		document.environForm.e_bbs_download.focus();
		return false;
	}
	if (document.environForm.e_bbs_upload.value=="") {
		alert("ÆÄÀÏ ¾÷·Îµå ±ÇÇÑÀ» ¼±ÅÃÇÏ¼¼¿ä!!");
		document.environForm.e_bbs_upload.focus();
		return false;
	}
	if (document.environForm.e_bbs_security.value=="") {
		alert("ºñ¹Ð±Û ÀÐ±â/º¸±â ±ÇÇÑÀ» ¼±ÅÃÇÏ¼¼¿ä!!");
		document.environForm.e_bbs_security.focus();
		return false;
	}
	document.environForm.action=a+"admin/AM001/sayboard_environment_ok.asp"
	document.environForm.submit();
}


/** 
 * È¯°æ¼³Á¤OK[¼öÁ¤] 
 */
function environment_edit(a) {
	document.environForm.action=a+"admin/AM001/sayboard_environment_edit_ok.asp"
	document.environForm.submit();
}


/** 
 * ±×·ì»ý¼º 
 */
function createGroup(a, b) {
	if (document.groupForm.g_name.value=="") {
		alert("±×·ì¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä!!");
		document.groupForm.g_name.focus();
		return false;
	}
	document.groupForm.action=a+b+"/sayboard_group_table_ok.asp"
	document.groupForm.submit();
}


/** 
 * Ä«Å×°í¸®»ý¼º 
 */
function createID(a, b) {
	if (document.idForm.id.value=="") {
		alert("ID¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä!!");
		document.idForm.id.focus();
		return false;
	}
	document.idForm.action=a+"admin/AM001/sayboard_id_add_ok.asp?group="+b
	document.idForm.submit();
}


/**
 * ¸ð´Þ¸®½º »õÃ¢ (Added: 2008.02.26)
 */
function popupView(cIdx) {
	window.showModalDialog("/popupView.asp?cIdx="+ cIdx, self, "dialogWidth:820px; dialogHeight:"+ autoheight +"px; centet:yes; scrollbars=yes; status=no");
}
function popupView2(cIdx) {
	window.showModalDialog("/popupView.asp?cIdx="+ cIdx +"&pageNum=2", self, "dialogWidth:820px; dialogHeight:"+ autoheight +"px; centet:yes; scrollbars=yes; status=no");
}
function popupView3(cIdx) {
	window.showModalDialog("/popupView.asp?cIdx="+ cIdx +"&pageNum=3", self, "dialogWidth:820px; dialogHeight:"+ autoheight +"px; centet:yes; scrollbars=yes; status=no");
}
var autoheight;
	if(screen.availHeight > 900) {
		autoheight = 900;
	}
	else {
		autoheight = screen.availHeight - 30;
	}