if(info.NO_OF_STNS) {
	if(info.NO_OF_STNS < 100) {
		var maxInputRange = info.NO_OF_STNS;
	} else {
		var maxInputRange = "100";
	}
}

define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm309_preload", preload: [{name: "RANGE_TYPE_1", range_type: 1}, {text: langs.getText("common","enter_roomnum")+" : "}, {name: "RANGE_1_1", value: "", textfield: [{max: 40, size: 50}], message: "", help: langs.re_toolTip()+"<br><br>"+langs.getText("toolTip","maxinputrange")+" - "+maxInputRange}, {btn: langs.getText("common","load"), btn_type: "btn_load"}, langs.Range_Error_Table(), {endload: 1}, {name: "RANGE_VIEW_1", value: "", text: 1, show: 0}, {br: 2}]},
            {key: "pgm309_mktbl", table:[{label: langs.getText("common","roomch_list"), colspan: 8}], 
                              data_form:[{key: "", struct: [{key: "", th: [{label: langs.getText("common","room_num"), colspan: 8}, {name: "ROOM_NUM", value: "", label: 1, cont: 1}, {label: " ("+langs.getText("common","guest_name")+" : ", cont: 1}, {name: "GUEST_NAME", value: "", label: 1, cont: 1}, {label: ")", cont: 1}]},
																				 {key: "", th: [{label: langs.getText("common","check_in")+" : ", colspan: 8}, {name: "CHECKIN_TIME", value: "", label: 1, cont: 1}]},
																				 {key: "", th: [{label: langs.getText("common","cur_time")+" : ", colspan: 8}, {name: "CUR_TIME", value: "", label: 1, cont: 1}, {label: " (", cont: 1}, {name: "DAYS", value: "", label: 1, cont: 1}, {label: " "+langs.getText("common","unit_days")+")", cont: 1}]},
																				 {key: "", th: [{label: langs.getText("common","start_time")}, {label: langs.getText("common","co")}, {label: langs.getText("common","call_duration")}, {label: langs.getText("common","dialed_num"), colspan: 2}, {label: langs.getText("common","count")}, {label: langs.getText("common","call_charge")}, {label: langs.getText("common","remark")}]},
																				 {key: "", tr: [{name: "CALL_HISTORY", value: "", freespace: 1}]},
																				 {key: "", tr: [{label: langs.getText("common","total_cnt"), colspan: 3}, {name: "CALL_TOTALCNT", value: "", label: 1, colspan: 5}]},
																				 {key: "", th: [{label: langs.getText("common","charge_time")}, {label: langs.getText("common","charge_sta"), colspan: 2}, {label: langs.getText("common","item"), colspan: 3}, {label: langs.getText("common","bar_charge")}, {label: langs.getText("common","tax")}]},
																				 {key: "", tr: [{name: "BAR_HISTORY", value: "", freespace: 1}]},
																				 {key: "", tr: [{label: langs.getText("common","total_cnt"), colspan: 3}, {name: "BAR_TOTALCNT", value: "", label: 1, colspan: 5}]},
																				 {key: "", th: [{label: langs.getText("common","item")}, {label: langs.getText("common","charge"), colspan: 2}, {label: langs.getText("common","tax")+"("+langs.getText("common","rate")+")", colspan: 3}, {label: langs.getText("common","sum"), colspan: 2}]},
																				 {key: "", tr: [{label: langs.getText("common","room_charge")}, {name: "ROOM_CHARGE", value: "", label: 1, colspan: 2}, {name: "ROOM_TAX", value: "", label: 1, colspan: 3}, {name: "ROOM_SUM", value: "", label: 1, colspan: 2}]},
																				 {key: "", tr: [{label: langs.getText("common","call_charge")}, {name: "CALL_CHARGE", value: "", label: 1, colspan: 2}, {name: "CALL_TAX", value: "", label: 1, colspan: 3}, {name: "CALL_SUM", value: "", label: 1, colspan: 2}]},
																				 {key: "", tr: [{label: langs.getText("common","bar_charge")}, {name: "BAR_CHARGE", value: "", label: 1, colspan: 2}, {name: "BAR_TAX", value: "", label: 1, colspan: 3}, {name: "BAR_SUM", value: "", label: 1, colspan: 2}]},
																				 {key: "", tr: [{label: langs.getText("common","prepaid")}, {label: "", colspan: 2}, {label: "", colspan: 3}, {name: "PREPAID", value: "", label: 1, colspan: 2}]},
																				 {key: "", tr: [{label: langs.getText("common","total")}, {label: "", colspan: 2}, {label: "", colspan: 3}, {name: "TOTAL_SUM", value: "", label: 1, colspan: 2}]}]}],
                          variable_data:[{}]}
        ]}
    ]}
);
