<!--

function flash(Url, Width, Height){
  document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"" + Width + "\" height=\"" + Height + "\">");
  document.writeln("<param name=\"movie\" value=\"" + Url + "\">");
  document.writeln("<param name=\"quality\" value=\"high\" />");
  document.writeln("<param name=\"wmode\" value=\"transparent\">");
  document.writeln("<embed src=\"" + Url + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + Width + "\"  height=\"" + Height + "\" wmode=\"transparent\">");
  document.writeln("</object>");
}

function reserve_chk(frmObj) {
	with(frmObj) {
		if( /[^" "]/.test(name.value)==false ) {
			alert("NAME(ÀÌ¸§)À» ÀÔ·ÂÇÏ¼¼¿ä.");
			name.focus();
			return false;
		}

		if( hp2.value.length<3 ) {
			alert("TEL(¿¬¶ôÃ³)À» ÀÔ·ÂÇÏ¼¼¿ä.");
			hp2.focus();
			return false;
		}

		if( hp3.value.length<4 ) {
			alert("TEL(¿¬¶ôÃ³)À» ÀÔ·ÂÇÏ¼¼¿ä.");
			hp3.focus();
			return false;
		}

		if( adult_cnt.value=="" &&  child_cnt.value=="") {
			alert("VISITING PEOPLE(¿¹¾àÀÎ¿ø)À» ÀÔ·ÂÇÏ¼¼¿ä.");
			adult_cnt.focus();
			return false;
		}
	}
}

function num_chk(chkObj, nextObj) {
	if( /[^0-9]/.test(chkObj.value) ) {
		chkObj.value = chkObj.value.replace(/[^0-9]/g,"");
		return;
	}

	if(typeof(nextObj)=="object" && chkObj.value.length==4) {
		chkObj.blur();
		nextObj.focus();
	}
}

function reset_day(year_obj, month_obj, day_obj, mode) {
	var lastDate1	= getLastDayOfMonth(year_obj.value+month_obj.value+"01");

	if(day_obj.length >= lastDate1) {
		day_obj.length	= lastDate1;
		if( day_obj.selectedIndex=="" ) {
			if( mode=="lastDate" ) {
				day_obj.selectedIndex	= day_obj.length-1;
			} else {
				day_obj.selectedIndex	= 0;
			}
		}
	} else {
		while( day_obj.length<lastDate1 ) {
			var option	= document.createElement("OPTION");
			option.text	= option.value	= day_obj.length+1;
			day_obj.add(option);
			if( mode=="lastDate" ) {
				day_obj.selectedIndex	= day_obj.length-1;
			} else {
				day_obj.selectedIndex	= 0;
			}
		}
	}
}

function getLastDayOfMonth(strStdDate) {
	var stdDate		= new Date( parseInt(strStdDate.substring(0,4), 10), parseInt(strStdDate.substring(4,6), 10), "" );
	var lastDate	= stdDate.getDate();
	return lastDate;
}

var txt_string = "";
function set_textarea(textareaObj) {
	if( txt_string=="" ) {
		txt_string	= textareaObj.value;
		textareaObj.value	= "";
	}
}

function pop_open(imgObj, id) {
	var tmpTop	= 0;
	var tmpLeft	= 0;
	var tmpObj	= imgObj;
	while( tmpObj.nodeName!="BODY" ) {
		tmpTop	 += tmpObj.offsetTop;
		tmpLeft	 += tmpObj.offsetLeft;
		tmpObj		= tmpObj.offsetParent;
	}

	var layer_pop	= document.getElementById(id);
	layer_pop.style.position	= "absolute";
	layer_pop.style.top	= tmpTop - parseInt(imgObj.offsetHeight)/2;
	layer_pop.style.left	= tmpLeft - parseInt(imgObj.offsetWidth)/2;
	layer_pop.style.display	= "block";
}

function pop_close(id) {
	var layer_pop	= document.getElementById(id);
	layer_pop.style.display	= "none";
}
-->