﻿/// <reference path="jquery-1.3.2-vsdoc.js">

function ViewAppmStateToolTip(type, th, nm, tel) {

	var html = "<table class='ViewToolTip' cellspacing='1' cellpadding='0' width='160'>"
					+ "		<colgroup>"
					+ "			<col width='40'>"
					+ "			<col width='*'>"
					+ "		<colgroup>"
					+ "		<tr>";

	if (type == '0020')
		html += "		<th colspan='2' class='head0020'>예약진행중 " + th + " </th>";
	else if (type == '0030')
		html += "		<th colspan='2' class='head0030'>예약완료 " + th + " </th>";

	html += "	</tr>"
					+ "		<tr>"
					+ "			<th class='th'>예약자</th>"
					+ "			<td>" + nm + "</td>"
					+ "		</tr>"
					+ "		<tr>"
					+ "			<th class='th'>연락처</th>"
					+ "			<td>" + tel + "</td>"
					+ "		</tr>"
					+ "	</table>";

	ToolTip(html);
}



function SmsOpen(params) {
	var url = "../Ams/SmsSend.aspx?" + params;
	WindowOpen(url, "SmsOpen", 700, 500, "yes", "yes");
}

function AppmDetail(no_appm) {
	WindowOpen("AppmDetail.aspx?no_appm=" + no_appm, "AppmDetail", 850, 500, "yes", "yes");
	//DivPopupOpen("../Ams/AppmDetail.aspx?no_appm=" + no_appm, "", 750, 450, "yes");
	//DivPopupOpen("../Test/Default3.html", "", 750, 400, true);
}

function AppmReg(params) {
	var url = "../Page/AppmRoom.aspx?" + params;
	WindowOpen(url, "AppmReg", 810, 580, "yes", "yes");
}


function RoomChange(params) {
	var url = "../Ams/RoomChange.aspx?" + params;

	location.href = url + "&ReturnUrl=" + encodeURI(top.location.href);
	
	/*
	if (isMobileAccess()) {
		location.href = url + "&ReturnUrl=" + encodeURI(top.location.href);
	}
	else {
		WindowOpen(url, "RoomChange", 450, 450, "yes", "yes");	
	}
	*/
	
}


function OtherRateChange(params) {
	var url = "../Ams/OtherRateChange.aspx?" + params;

	location.href = url + "&ReturnUrl=" + encodeURI(top.location.href);
}

