ammo.namespace(
	// COOKIE about ibe
	"cookie.ibe",
	// COOKIE about ibe flight info
	"cookie.ibe.fltinfo",
	// COOKIE about ibe flight price
	"cookie.ibe.fltprice",
	// TEMPORARY variable for ibe price value
	"cookie.ibe.fltpvalue",
	// COOKIE about ibe flight price, add item 0 for fare basis
	"cookie.ibe.fltprice2",
	// COOKIE about departure flight valid class
	"cookie.ibe.vclassd",
	// COOKIE about return flight valid class
	"cookie.ibe.vclassr",
	// COOKIE about selected ticket price
	"cookie.ibe.tktp",
	// HTML : IBE pagemaker functions
	"html.ibe"
);

ammo.cookie.ibe = function() {
	ammo.cookie.call(this);
};

ammo.cookie.ibe.fltinfo = function() {
	this.from = "";
	this.to   = ""; 
	this.dd   = ""; 
	this.rd   = ""; 
	this.owrt = ""; 
	this.cc   = ""; 
	this.gn   = ""; 
	this.getfrom = function() { return this.from;};
	this.getto   = function() { return this.to  ;};
	this.getdd   = function() { return this.dd  ;};
	this.getrd   = function() { return this.rd  ;};
	this.getowrt = function() { return this.owrt;};
	this.getcc   = function() { return this.cc  ;};
	this.getgn   = function() { return this.gn  ;};
	this.get = function(vn) { return eval(vn); };
	this.set = function(vn, vu) {
		var f = this;
		if(vn.toLowerCase()=="from"){f.setfrom(vu);}
		else if(vn.toLowerCase()=="to"){f.setto(vu);}
		else if(vn.toLowerCase()=="dd"){f.setdd(vu);}
		else if(vn.toLowerCase()=="rd"){f.setrd(vu);}
		else if(vn.toLowerCase()=="owrt"){f.setowrt(vu);}
		else if(vn.toLowerCase()=="cc"){f.setcc(vu);}
		else if(vn.toLowerCase()=="gn"){f.setgn(vu);}
	};
	this.setfrom = function(instr) { this.from=instr; this.updcookie(); };
	this.setto   = function(instr) { this.to  =instr; this.updcookie(); };
	this.setdd   = function(instr) { this.dd  =instr; this.updcookie(); };
	this.setrd   = function(instr) { this.rd  =instr; this.updcookie(); };
	this.setowrt = function(instr) { this.owrt=instr; this.updcookie(); };
	this.setcc   = function(instr) { this.cc  =instr; this.updcookie(); };
	this.setgn   = function(instr) { this.gn  =instr; this.updcookie(); };
	this.init0 = function() {
		var f = this;
		var sT=f.getck(f.ckibe), tAR;
		if (typeof sT == "string" && sT != "") {
			tAR = sT.split(f.ckspliter);
			if (tAR.length==7) {
				f.from=tAR[0]; f.to  =tAR[1]; f.dd  =tAR[2]; f.rd  =tAR[3];
				f.owrt=tAR[4]; f.cc  =tAR[5]; f.gn  =tAR[6];
				return;
			}
		} else {
			f.from=""; f.to  =""; f.dd  =""; f.rd  ="";
			f.owrt=""; f.cc  =""; f.gn  ="";
		}
	};
	this.init7 = function(from, to, dd, rd, owrt, cc, gn) {
		var f = this;
		f.from=from; f.to=to; f.dd=dd; f.rd=rd;
		f.owrt=owrt; f.cc=cc; f.gn=gn;
		f.updcookie();
	};
	this.updcookie = function() {
		var f = this;
		f.updck(f.ckibe, f.from+f.ckspliter +f.to+f.ckspliter +f.dd+f.ckspliter
			+f.rd+f.ckspliter +f.owrt+f.ckspliter +f.cc+f.ckspliter +f.gn, "", "/ibe/" );
	};
	var argv=arguments, argc=arguments.length;
	if (argc==0) { return this.init0(); }
	if (argc==7) { return this.init7(argv[0], argv[1], argv[2], argv[3], argv[4], argv[5], argv[6]); }
};
ammo.cookie.ibe.fltinfo.prototype = new ammo.cookie.ibe();

ammo.cookie.ibe.fltprice = function() {
	this.count = "";
	this.conta = "";
	this.contt = "";
	this.getcur = function(line, pname) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 0; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (trim(sT2[0]) == pname) { return trim(sT2[1]); }
		}
		return "";
	};
	this.getprc = function(line, pname) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return "0"; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 0; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (trim(sT2[0]) == pname) { return trim(sT2[2]); }
		}
		return "0";
	};
	this.getnum = function(line, pname) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return "0"; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 0; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (trim(sT2[0]) == pname) { return trim(sT2[3]); }
		}
		return "0";
	};
	this.getelement = function(cont, line, pname) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return "0"; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 0; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (trim(sT2[0]) == pname) { 
				if (cont == "c") { return trim(sT2[1]); }
				else if (cont == "p") { return trim(sT2[2]); }
				else if (cont == "n") { return trim(sT2[3]); }
				else { return "0"; }
			}
		}
		return "0";
	};
	this.getline = function(line) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		return trim(this.conta[line]);
	};
	this.getlinecount = function(line) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		return sT.length;
	};
	this.getlineitem = function(line, item) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		if (item >= sT.length) { return ""; }
		return trim(sT[item]).split("*");
	};
	this.init0 = function() {
		var f = this;
		var sT=f.getck(f.ckprc);
		if (typeof sT == "string" && sT != "") {
			f.contt = sT;
			f.conta = sT.split(f.ckspliter);
			f.count = f.conta.length;
		} else {
			f.count = 0;
			f.conta = new Array();
			f.contt = "";
		}
	};
	this.init1 = function(prc) {
		var f = this;
		f.contt = trim(prc);
		f.conta = trim(prc).split(f.ckspliter);
		f.count = f.conta.length;;
		f.updcookie();
	};
	this.updcookie = function() {
		var f = this;
		f.updck(f.ckprc, f.contt, "", "/ibe/");
	};
	var argv=arguments, argc=arguments.length;
	if (argc==0) { return this.init0(); }
	if (argc==1) { return this.init1(argv[0]); }
};
ammo.cookie.ibe.fltprice.prototype = new ammo.cookie.ibe();

ammo.cookie.ibe.fltprice2 = function() {
	this.count = "";
	this.conta = "";
	this.contt = "";
	this.getfb = function(line) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		sT2 = trim(sT[0]).split("*");
		return trim(sT2[1]);
	};
	this.getcls = function(line) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		sT2 = trim(sT[0]).split("*");
		return trim(sT2[2]);
	};
	this.gettacid = function(line) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		sT2 = trim(sT[0]).split("*");
		return trim(sT2[3]);
	};
	this.indfltr = function(line, fltno) {
		var f = this;
		var sT, sT2, sT3;
		if (line >= f.count) { return false; }
		sT = trim(this.conta[line]).split(":");
		sT2 = trim(sT[0]).split("*");
		if (trim(sT2[9]) == "") { return true; } else {
			sT3 = trim(sT2[9]).split("~");
			for (var ti=0; ti<sT3.length; ti++) {
				if (trim(sT3[ti]) == fltno) { return true; }
			}
			return false;
		}
	};
	this.inrfltr = function(line, fltno) {
		var f = this;
		var sT, sT2, sT3;
		if (line >= f.count) { return false; }
		if (fltno == "") { return true; }
		sT = trim(this.conta[line]).split(":");
		sT2 = trim(sT[0]).split("*");
		if (trim(sT2[11]) == "") { return true; } else {
			sT3 = trim(sT2[11]).split("~");
			for (var ti=0; ti<sT3.length; ti++) {
				if (trim(sT3[ti]) == fltno) { return true; }
			}
			return false;
		}
	};
	this.chkfltr = function(line, dfltno, dfltno2, rfltno, rfltno2) {
		var f = this;
		var sT, sT2, sT3, sT5, rst;
		if (line >= f.count) { return false; }
		sT = trim(this.conta[line]).split(":");
		sT2 = trim(sT[0]).split("*");
		rst = false;
		if (trim(sT2[9]) == "") { rst = true; } else {
			sT5 = trim(sT2[9]).split(",");
			if (sT5.length>0) {
				if (trim(sT5[0]) == "") { rst = true; } else {
					sT3 = trim(sT5[0]).split("~"); for (var ti=0; ti<sT3.length; ti++) { if (trim(sT3[ti]) == dfltno) { rst = true; } } }
				if (rst == true && sT5.length>1) { rst = false;
					if (trim(sT5[1]) == "") { rst = true; } else {
						sT3 = trim(sT5[1]).split("~"); for (var ti=0; ti<sT3.length; ti++) { if (trim(sT3[ti]) == dfltno2) { rst = true; } } } }
			}
		}
		if (rst == true) { 
			rst = false;
			if (trim(sT2[11]) == "") { rst = true; } else {
				sT5 = trim(sT2[11]).split(",");
				if (sT5.length>0) {
					if (trim(sT5[0]) == "") { rst = true; } else {
						sT3 = trim(sT5[0]).split("~"); for (var ti=0; ti<sT3.length; ti++) { if (trim(sT3[ti]) == rfltno) { rst = true; } } }
					if (rst == true && sT5.length>1) { rst = false;
						if (trim(sT5[1]) == "") { rst = true; } else {
							sT3 = trim(sT5[1]).split("~"); for (var ti=0; ti<sT3.length; ti++) { if (trim(sT3[ti]) == rfltno2) { rst = true; } } } }
				}
			}
		}
		return rst;
	};
	this.getcurrency = function(line) {
		var f = this, gcur = "";
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 1; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (i==1) { gcur=trim(sT2[1]); } else {
				if (gcur!=trim(sT2[1])) { return ""; }
			}
		}
		return gcur;
	};
	this.getamount = function(line) {
		var f = this, gcur = "", amount = 0;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 1; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (i==1) { gcur=trim(sT2[1]); } else {	if (gcur!=trim(sT2[1])) { return "0"; }	}
			amount += parseInt(trim(sT2[2]), 10) * parseInt(trim(sT2[3]), 10);
		}
		return amount;
	};
	this.getadtprc = function(line) {
		var f = this, gcur = "", amount = 0;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 1; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (i==1) { gcur=trim(sT2[1]); } else {	if (gcur!=trim(sT2[1])) { return "0"; }	}
			if (sT2[0] == "PA") { amount = parseInt(trim(sT2[2]), 10); }
		}
		return amount;
	};
	this.getadtnum = function(line) {
		var f = this, gcur = "", amount = 0;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 1; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (sT2[0] == "PA") { amount = parseInt(trim(sT2[3]), 10); }
		}
		return amount;
	};
	this.getchlprc = function(line) {
		var f = this, gcur = "", amount = 0;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 1; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (i==1) { gcur=trim(sT2[1]); } else {	if (gcur!=trim(sT2[1])) { return "0"; }	}
			if (sT2[0] == "PC") { amount = parseInt(trim(sT2[2]), 10); }
		}
		return amount;
	};
	this.getchlnum = function(line) {
		var f = this, gcur = "", amount = 0;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 1; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (sT2[0] == "PC") { amount = parseInt(trim(sT2[3]), 10); }
		}
		return amount;
	};
	this.getcur = function(line, pname) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 1; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (trim(sT2[0]) == pname) { return trim(sT2[1]); }
		}
		return "";
	};
	this.getprc = function(line, pname) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return "0"; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 1; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (trim(sT2[0]) == pname) { return trim(sT2[2]); }
		}
		return "0";
	};
	this.getnum = function(line, pname) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return "0"; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 1; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (trim(sT2[0]) == pname) { return trim(sT2[3]); }
		}
		return "0";
	};
	this.getelement = function(cont, line, pname) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return "0"; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 1; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (trim(sT2[0]) == pname) { 
				if (cont == "c") { return trim(sT2[1]); }
				else if (cont == "p") { return trim(sT2[2]); }
				else if (cont == "n") { return trim(sT2[3]); }
				else { return "0"; }
			}
		}
		return "0";
	};
	this.getline = function(line) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		return trim(this.conta[line]);
	};
	this.getlinecount = function(line) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		return sT.length;
	};
	this.getlineitem = function(line, item) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		sT = trim(this.conta[line]).split(":");
		if (item >= sT.length) { return ""; }
		return trim(sT[item]).split("*");
	};
	this.init0 = function() {
		var f = this;
		// var sT=f.getck(f.ckprc2);
		var sT= ammo.cookie.ibe.fltpvalue;
		if (typeof sT == "string" && sT != "") {
			f.contt = sT;
			f.conta = sT.split(f.ckspliter);
			f.count = f.conta.length;
		} else {
			f.count = 0;
			f.conta = new Array();
			f.contt = "";
		}
	};
	this.init1 = function(prc) {
		var f = this;
		f.contt = trim(prc);
		f.conta = trim(prc).split(f.ckspliter);
		f.count = f.conta.length;;
		f.updcookie();
	};
	this.updcookie = function() {
		var f = this;
		// f.updck(f.ckprc2, f.contt, "", "/ibe/");
		ammo.cookie.ibe.fltpvalue = f.contt;
 	};
	var argv=arguments, argc=arguments.length;
	if (argc==0) { return this.init0(); }
	if (argc==1) { return this.init1(argv[0]); }
};
ammo.cookie.ibe.fltprice2.prototype = new ammo.cookie.ibe();

ammo.cookie.ibe.vclassd = function() {
	this.count = "";
	this.conta = "";
	this.contt = "";
	this.getcls = function(line, cname) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		if (line < 0) { return "Y"; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 0; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (trim(sT2[0]) == cname) { return trim(sT2[1]); }
		}
		return "N";
	};
	this.init0 = function() {
		var f = this;
		var sT=f.getck(f.ckvclsd);
		if (typeof sT == "string" && sT != "") {
			f.contt = sT;
			f.conta = sT.split(",");
			f.count = f.conta.length;
		} else {
			f.count = 0;
			f.conta = new Array();
			f.contt = "";
		}
	};
	this.init1 = function(prc) {
		var f = this;
		f.contt = trim(prc);
		f.conta = trim(prc).split(",");
		f.count = f.conta.length;;
		f.updcookie();
	};
	this.updcookie = function() {
		var f = this;
		f.updck(f.ckvclsd, f.contt, "", "/ibe/");
	};
	var argv=arguments, argc=arguments.length;
	if (argc==0) { return this.init0(); }
	if (argc==1) { return this.init1(argv[0]); }
};
ammo.cookie.ibe.vclassd.prototype = new ammo.cookie.ibe();

ammo.cookie.ibe.vclassr = function() {
	this.count = "";
	this.conta = "";
	this.contt = "";
	this.getcls = function(line, cname) {
		var f = this;
		var sT, sT2;
		if (line >= f.count) { return ""; }
		if (line < 0) { return "Y"; }
		sT = trim(this.conta[line]).split(":");
		for (var i = 0; i<sT.length ; i++) {
			sT2 = trim(sT[i]).split("*");
			if (trim(sT2[0]) == cname) { return trim(sT2[1]); }
		}
		return "N";
	};
	this.init0 = function() {
		var f = this;
		var sT=f.getck(f.ckvclsr);
		if (typeof sT == "string" && sT != "") {
			f.contt = sT;
			f.conta = sT.split(",");
			f.count = f.conta.length;
		} else {
			f.count = 0;
			f.conta = new Array();
			f.contt = "";
		}
	};
	this.init1 = function(prc) {
		var f = this;
		f.contt = trim(prc);
		f.conta = trim(prc).split(",");
		f.count = f.conta.length;;
		f.updcookie();
	};
	this.updcookie = function() {
		var f = this;
		f.updck(f.ckvclsr, f.contt, "", "/ibe/");
	};
	var argv=arguments, argc=arguments.length;
	if (argc==0) { return this.init0(); }
	if (argc==1) { return this.init1(argv[0]); }
};
ammo.cookie.ibe.vclassr.prototype = new ammo.cookie.ibe();

ammo.cookie.ibe.tktp = function() {
	this.count = "";
	this.conta = "";
	this.contt = "";
	this.getcur = function(item, pname) {
		var f = this;
		var sT, sT2;
		if (item >= f.count) { return ""; }
		sT = trim(this.conta[item]).split("*");
		for (var i = 0; i<sT.length ; i++) {
			if (trim(sT[0]) == pname) { if (pname == "FB" ) { return trim(sT[6]); } else { return trim(sT[1]); } }
		}
		return "";
	}
	this.getprc = function(item, pname) {
		var f = this;
		var sT, sT2;
		if (item >= f.count) { return "0"; }
		sT = trim(this.conta[item]).split("*");
		for (var i = 0; i<sT.length ; i++) {
			if (trim(sT[0]) == pname) { if (pname == "FB" ) { return trim(sT[4]); } else { return trim(sT[2]); } }
		}
		return "0";
	}
	this.getnum = function(item, pname) {
		var f = this;
		var sT, sT2;
		if (item >= f.count) { return "0"; }
		sT = trim(this.conta[item]).split("*");
		for (var i = 0; i<sT.length ; i++) {
			if (trim(sT[0]) == pname) { return trim(sT[3]); }
		}
		return "0";
	}
	this.getelement = function(cont, item, pname) {
		var f = this;
		var sT, sT2;
		if (item >= f.count) { return "0"; }
		sT = trim(this.conta[item]).split("*");
		for (var i = 0; i<sT.length ; i++) {
			if (trim(sT[0]) == pname) { 
				if (cont == "c") { return trim(sT2[1]); }
				else if (cont == "p") { return trim(sT2[2]); }
				else if (cont == "n") { return trim(sT2[3]); }
				else { return "0"; }
			}
		}
		return "0";
	}
	this.getitem = function(item) {
		var f = this;
		var sT, sT2;
		if (item >= f.count) { return ""; }
		return trim(this.conta[item]).split("*");
	}
	this.init0 = function() {
		var f = this;
		var sT=f.getck(f.cktktp);
		if (typeof sT == "string" && sT != "") {
			f.contt = sT;
			f.conta = sT.split(":");
			f.count = f.conta.length;
		} else {
			f.count = 0;
			f.conta = new Array();
			f.contt = "";
		}
	};
	this.init1 = function(prc) {
		var f = this;
		f.contt = trim(prc);
		f.conta = trim(prc).split(":");
		f.count = f.conta.length;;
		f.updcookie();
	};
	this.updcookie = function() {
		var f = this;
		f.updck(f.cktktp, f.contt, "", "/ibe/");
	};
	var argv=arguments, argc=arguments.length;
	if (argc==0) { return this.init0(); }
	if (argc==1) { return this.init1(argv[0]); }
};
ammo.cookie.ibe.tktp.prototype = new ammo.cookie.ibe();

ammo.cookie.ibe.tktah = function() {
	this.count = "";
	this.conta = "";
	this.contt = "";
	this.getcur = function(item, pname) {
		var f = this;
		var sT, sT2;
		if (item >= f.count) { return ""; }
		sT = trim(this.conta[item]).split("*");
		for (var i = 0; i<sT.length ; i++) {
			if (trim(sT[0]) == pname) { if ( pname == "HTL" || pname == "COC") { return trim(sT[4]); } else { return trim(sT[3]); } }
		}
		return "";
	}
	this.getprc = function(item, pname) {
		var f = this;
		var sT, sT2;
		if (item >= f.count) { return "0"; }
		sT = trim(this.conta[item]).split("*");
		for (var i = 0; i<sT.length ; i++) {
			if (trim(sT[0]) == pname) { if (pname == "HTL" || pname == "COC") { return trim(sT[8]); } else { return trim(sT[4]); } }
		}
		return "0";
	}
	this.getnum = function(item, pname) {
		var f = this;
		var sT, sT2;
		if (item >= f.count) { return "0"; }
		sT = trim(this.conta[item]).split("*");
		for (var i = 0; i<sT.length ; i++) {
			if (trim(sT[0]) == pname) { if (pname == "HTL" || pname == "COC") { return "0"; } else { return trim(sT[2]); } }
		}
		return "0";
	}
	this.getelement = function(cont, item, pname) {
		var f = this;
		var sT, sT2;
		if (item >= f.count) { return "0"; }
		sT = trim(this.conta[item]).split("*");
		for (var i = 0; i<sT.length ; i++) {
			if (trim(sT[0]) == pname) { 
				if (cont == "c") { return trim(sT2[3]); }
				else if (cont == "p") { return trim(sT2[4]); }
				else if (cont == "n") { return trim(sT2[1]); }
				else { return ""; }
			}
		}
		return "0";
	}
	this.getitem = function(item) {
		var f = this;
		var sT, sT2;
		if (item >= f.count) { return ""; }
		return trim(this.conta[item]).split("*");
	}
	this.init0 = function() {
		var f = this;
		var sT=f.getck(f.cktktah);
		if (typeof sT == "string" && sT != "") {
			f.contt = sT;
			f.conta = sT.split(":");
			f.count = f.conta.length;
		} else {
			f.count = 0;
			f.conta = new Array();
			f.contt = "";
		}
	};
	this.init1 = function(prc) {
		var f = this;
		f.contt = trim(prc);
		f.conta = trim(prc).split(":");
		f.count = f.conta.length;;
		f.updcookie();
	};
	this.delcookie = function() {
		var f = this;
		f.contt = "";
		f.delck(f.cktktah);
	};
	this.updcookie = function() {
		var f = this;
		f.updck(f.cktktah, f.contt, "", "/ibe/");
	};
	var argv=arguments, argc=arguments.length;
	if (argc==0) { return this.init0(); }
	if (argc==1) { return this.init1(argv[0]); }
};
ammo.cookie.ibe.tktah.prototype = new ammo.cookie.ibe();

ammo.html.ibe = function() {
	ammo.html.data.call(this);
	this.getprcsub = function(instr) {
		var tAR, tAR1, iPRC=0;
		if (instr=="") {
			iPRC = parseInt("0", 10);
		} else if (instr.indexOf(":")==null) {
			tAR=instr.split(" ");
			iPRC = (tAR[7] == "*" ? 0 : tAR[7] );
		} else {
			tAR1=instr.split(":");
			for (var j=0;j<tAR1.length;j++) {
				tAR=tAR1[j].split(" ");
				iPRC += parseInt((tAR[7] == "*" ? '0' : tAR[7] ), 10);
			}
		}
		return iPRC;
	};
	this.setacceprchtl_tr = function(a1, a2, a3, a4, a5, a6, a7) {
		var f=this;
		var oTR = f.cTR("", "", "", "", f.cTD("width:20", "", "&nbsp;"));
		f.aCH(oTR, f.cTD("align:right", "", "", a1 ));
		f.aCH(oTR, f.cTD("width:20px", "", "&nbsp;"));
		f.aCH(oTR, f.cTD("", "", "", a2));
		f.aCH(oTR, f.cTD("width:10px", "", "&nbsp;"));
		f.aCH(oTR, f.cTD("align:right", "", "", a3));
		if (a4 != "") {
			f.aCH(oTR, f.cTD("", "FONT-WEIGHT:bold", "&nbsp;x&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "", a4 + H_ROOM));
		} else {
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
		}
		if (a7 != "0") {
			f.aCH(oTR, f.cTD("", "FONT-WEIGHT:bold", "&nbsp;+&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "", a6));
			f.aCH(oTR, f.cTD("", "FONT-WEIGHT:bold", "&nbsp;x&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "", a7 + H_PERS));
		} else {
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
		}
		if (a5 != "") {
			f.aCH(oTR, f.cTD("", "FONT-WEIGHT:bold", "&nbsp;&nbsp;&nbsp;&nbsp;" + H_TOTAL));
			f.aCH(oTR, f.cTD("", "", "", a5 + H_NIGHT));
		} else {
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
		}
		f.aCH(oTR, f.cTD("width:10px", "", "&nbsp;"));

		return oTR;
	};
	this.setacceprccoc_tr = function(a1, a2, a3, a4, a5, a6, a7) {
		var f=this;
		var oTR = f.cTR("", "", "", "", f.cTD("width:20", "", "&nbsp;"));
		f.aCH(oTR, f.cTD("align:right", "", "", a1 ));
		f.aCH(oTR, f.cTD("width:20px", "", "&nbsp;"));
		f.aCH(oTR, f.cTD("", "", "", a2));
		f.aCH(oTR, f.cTD("width:10px", "", "&nbsp;"));
		f.aCH(oTR, f.cTD("align:right", "", "", a3));
		if (a4 != "") {
			f.aCH(oTR, f.cTD("", "FONT-WEIGHT:bold", "&nbsp;x&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "", a4 + H_TKTS));
		} else {
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
		}
		if (a7 != "0") {
			f.aCH(oTR, f.cTD("", "FONT-WEIGHT:bold", "&nbsp;+&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "", a6));
			f.aCH(oTR, f.cTD("", "FONT-WEIGHT:bold", "&nbsp;x&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "", a7 + H_PERS));
		} else {
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
		}
		f.aCH(oTR, f.cTD("", "", "&nbsp;"));
		f.aCH(oTR, f.cTD("", "", "&nbsp;"));
		f.aCH(oTR, f.cTD("width:10px", "", "&nbsp;"));

		return oTR;
	};
	this.settktprc_tr = function(a1, a2, a3, a4) {
		var f=this;
		var oTR = f.cTR("", "", "", "", f.cTD("width:20", "", "&nbsp;"));
		f.aCH(oTR, f.cTD("align:right", "", "", a1 ));
		f.aCH(oTR, f.cTD("width:20px", "", "&nbsp;"));
		f.aCH(oTR, f.cTD("", "", "", a2));
		f.aCH(oTR, f.cTD("width:10px", "", "&nbsp;"));
		f.aCH(oTR, f.cTD("align:right", "", "", a3));
		if (a4 != "") {
			f.aCH(oTR, f.cTD("", "FONT-WEIGHT:bold", "&nbsp;x&nbsp;"));
		} else {
			f.aCH(oTR, f.cTD("", "", "&nbsp;"));
		}
		f.aCH(oTR, f.cTD("", "", "", a4));
		f.aCH(oTR, f.cTD("width:10px", "", "&nbsp;"));
		return oTR;
	};
	this.settktprc = function(obj, act) {
		var i, dPRC=0, rPRC=0, j;
		var s="select", c="confirm", o="object", t="stat", z=".00", n="none", f=this;
		var u = new ammo.html.utilities();

		j = -1;
		if(act==n) {
			return true;
		}
		if(act==s||act==c) {
			var d=document.ticket;
			if (typeof d.dFlt==o) {
				if(act==s) {
					if (typeof d.dFlt[0] == o) {
						for (i=0;i<d.dFlt.length;i++) {
							if (d.dFlt[i].checked) {
								dPRC = f.getprcsub(d.dFlt[i].value); j = i; } } }
					else { if (d.dFlt.checked) { dPRC = f.getprcsub(d.dFlt.value); j = 0; } }
				}
				if(act==c) {
					dPRC = f.getprcsub(d.dFlt.value); j = 0; }
			}
			if (typeof d.rFlt==o) {
				if(act==s) {
					if (typeof d.rFlt[0] == o) {
						for (i=0;i<d.rFlt.length;i++) {
							if (d.rFlt[i].checked) {
								rPRC = f.getprcsub(d.rFlt[i].value); } } }
					else { if (d.rFlt.checked) { rPRC = f.getprcsub(d.rFlt.value); } }
				}
				if(act==c) {
					rPRC = f.getprcsub(d.rFlt.value); }
			}
		}
		if(act==t) {
			var ck = new ammo.cookie();
			dPRC = f.getprcsub(ck.getck(ck.cktktd)); j = 0;
			rPRC = f.getprcsub(ck.getck(ck.cktktr));
		}
		if (dPRC==0||dPRC==""||dPRC=="NaN") { dPRC=0; j = -1; }
		if (rPRC==0||rPRC==""||rPRC=="NaN") { rPRC=0; }
		//obj.value=parseInt(dPRC, 10) + parseInt(rPRC, 10);
		//obj.value+=z;
		if (typeof obj == o) { obj.value = u.fmtCR(parseInt(dPRC, 10) + parseInt(rPRC, 10), "100", "0.00"); }

		if (j != -1 && document.getElementById("ibepricedetail") != null) {
			var fp;
			var oTB = f.cTB(), oTD, tAR, oTA, oTR;
			var amount = 0;
			if (act==s) {
				fp = new ammo.cookie.ibe.fltprice();
				for (i=0; i<fp.getlinecount(j) ; i++) {
					tAR = fp.getlineitem(j, i);
					var t = tAR[0];
					oTR = f.settktprc_tr(u.ptfeetitle(tAR[0]), u.ptcurrency(tAR[1])+"$", u.fmtCR(tAR[2], "100", "0.00"), (t=="PA" || t=="PC" || t=="PI" ? tAR[3] : ""));
					if (tAR[3]!="0" && tAR[2]!="0") { f.aCH(oTB, oTR); amount += parseInt(tAR[2], 10) * parseInt(tAR[3], 10); }
					
				}
			}
			//if (act==c || act==t) 
			if (act==c) 
			{
				fp = new ammo.cookie.ibe.tktp();
				for (i=0; i<fp.count ; i++) {
					tAR = fp.getitem(i);
					var t = tAR[0];
					oTR = f.settktprc_tr(u.ptfeetitle(tAR[0]), u.ptcurrency(tAR[1])+"$", u.fmtCR(tAR[2], "100", "0.00"), (t=="PA" || t=="PC" || t=="PI" ? tAR[3] : ""));
					if (tAR[3]!="0" && tAR[2]!="0") { f.aCH(oTB, oTR); amount += parseInt(tAR[2], 10) * parseInt(tAR[3], 10); }
					
				}
			}
			f.aCH(oTB, f.cTR("height:2; bgcolor:#000000", "", "", "", f.cTD("colspan:9")));
 	
			oTR = f.settktprc_tr("", u.ptcurrency("MOP")+"$", u.fmtCR(amount, "100", "0.00"), "");
			f.aCH(oTB, oTR);
       	
			oTA = f.cTA("border:0", "", "", "", oTB);
			f.nCH($("ibepricedetail"), oTA);
		}
	};
	this.settktprc2 = function(obj, act) {
		var i, dPRC=0, rPRC=0, j;
		var s="select", c="confirm", o="object", t="stat", z=".00", n="none", f=this;
		var u = new ammo.html.utilities();
		var fp = new ammo.cookie.ibe.fltprice2();
		var f2 = new ammo.cookie.ibe.tktp(); // 20080610
		var curcur = "";

		j = -1;
		if(act==n) {
			return true;
		}
		if(act==s) {
			for (i=0,j=0;i<fp.count;i++) {
				if (typeof document.getElementById("tktprcr"+i) == o) {
					if (document.getElementById("tktprcr"+i).checked) {
						j = i;
						dPRC = fp.getamount(i);
						rPRC = 0;
					}
				}
			}
		}
		if(act==c || act==t) {
			var tAR;
			for (i=1;i<f2.count;i++) {
				tAR = f2.getitem(i);
				dPRC = dPRC + (parseInt(tAR[2], 10) * parseInt(tAR[3], 10));
			}
			j = 0;
			rPRC = 0;
		}
		if (parseInt(dPRC, 10)==0||dPRC==""||dPRC=="NaN") { dPRC=0; j = -1; }
		if (parseInt(rPRC, 10)==0||rPRC==""||rPRC=="NaN") { rPRC=0; }
		//obj.value=parseInt(dPRC, 10) + parseInt(rPRC, 10);
		//obj.value+=z;
		if (typeof obj == o && j!=-1) {
			if (act==c || act==t) {
				curcur = f2.getcur(j, "FB"); // 20080610
// 20080610			obj.innerHTML = u.ptcurrency(fp.getcurrency(j))+" $"+u.fmtCR(parseInt(dPRC, 10) + parseInt(rPRC, 10), "100", "0.00"); 
				obj.innerHTML = u.ptcurrency(f2.getcur(j, "FB"))+" $"+u.fmtCR(parseInt(dPRC, 10) + parseInt(rPRC, 10), "100", "0.00"); 
			} else {
				curcur = fp.getcurrency(j); // 20080610
				obj.value = u.ptcurrency(fp.getcurrency(j))+" $"+u.fmtCR(parseInt(dPRC, 10) + parseInt(rPRC, 10), "100", "0.00"); 
			}
		}

		if (j != -1 && document.getElementById("ibepricedetail") != null ) {
// 20080610		if (fp.getcurrency(j)!="")
			if (curcur!="")
			{
				var oTB = f.cTB(), oTD, tAR, oTA, oTR;
				var amount = 0, tacid = 0, tctext = "", clswd = "";
				if (act==s) {
					for (i=0; i<fp.getlinecount(j) ; i++) {
						tAR = fp.getlineitem(j, i);
						if (i==0) {
							clswd = tAR[2];
							tacid = tAR[3];
						} else {
							var t = tAR[0];
							oTR = f.settktprc_tr(u.ptfeetitle(tAR[0]), u.ptcurrency(tAR[1])+"$", u.fmtCR(tAR[2], "100", "0.00"), (t=="PA" || t=="PC" || t=="PI" ? tAR[3] : ""));
							if (tAR[3]!="0" && tAR[2]!="0") { f.aCH(oTB, oTR); amount += parseInt(tAR[2], 10) * parseInt(tAR[3], 10); }
						}
					}
				}
				//if (act==c || act==t) 
				if (act==c) 
				{
// 20080610				var f2 = new ammo.cookie.ibe.tktp();
					for (i=0; i<f2.count ; i++) {
						tAR = f2.getitem(i);
						if (i==0) {
							clswd = tAR[2];
							tacid = tAR[3];
						} else {
							var t = tAR[0];
							oTR = f.settktprc_tr(u.ptfeetitle(tAR[0]), u.ptcurrency(tAR[1])+"$", u.fmtCR(tAR[2], "100", "0.00"), (t=="PA" || t=="PC" || t=="PI" ? tAR[3] : ""));
							if (tAR[3]!="0" && tAR[2]!="0") { f.aCH(oTB, oTR); amount += parseInt(tAR[2], 10) * parseInt(tAR[3], 10); }
						}
					}
				}
				f.aCH(oTB, f.cTR("height:2; bgcolor:#000000", "", "", "", f.cTD("colspan:9")));
	 	
// 20080610			oTR = f.settktprc_tr("", u.ptcurrency(fp.getcurrency(j))+"$", u.fmtCR(amount, "100", "0.00"), "");
				oTR = f.settktprc_tr("", u.ptcurrency(curcur)+"$", u.fmtCR(amount, "100", "0.00"), "");
				f.aCH(oTB, oTR);
	       	
				f.aCH(oTB, f.cTR("height:12", "", "", "", f.cTD("colspan:9")));
	       			if (act==c) {
					f.aCH(oTB, f.cTR("", "", "", "", f.cTD("colspan:9", "font-weight:bold", H_IBE_TCTEXTT)));
					f.aCH(oTB, f.cTR("height:2", "", "", "", f.cTD("colspan:9")));
					f.aCH(oTB, f.cTR("", "", "", "", f.cTD("colspan:9", "", u.pttac(tacid))));
					f.aCH(oTB, f.cTR("", "", "", "", f.cTD("colspan:9", "", u.ptffpmile(clswd))));
				} else {
					//f.aCH(oTB, f.cTR("", "", "", "", f.cTD("colspan:9", "color:#ff0000", tctext)));
				}
	
				oTA = f.cTA("border:0", "", "", "", oTB);
				f.nCH($("ibepricedetail"), oTA);
			}
		}
	};
	this.settktprc3 = function(obj, act) {
		var i, dPRC=0, rPRC=0, j, j2;
		var s="select", c="confirm", o="object", t="stat", z=".00", n="none", f=this;
		var u = new ammo.html.utilities();
		var ckIBE = new ammo.cookie.ibe.fltinfo();

		j = -1;
		j2 = -1;
		if(act==n) {
			return true;
		}
		if(act==s||act==c) {
			var d=document.ticket;
			if (typeof d.dFlt==o) {
				if(act==s) {
					if (typeof d.dFlt[0] == o) {
						for (i=0;i<d.dFlt.length;i++) {
							if (d.dFlt[i].checked) {
								dPRC = f.getprcsub(d.dFlt[i].value); j = i; } } }
					else { if (d.dFlt.checked) { dPRC = f.getprcsub(d.dFlt.value); j = 0; } }
				}
				if(act==c) {
					dPRC = f.getprcsub(d.dFlt.value); j = 0; }
			}
			if (typeof d.rFlt==o) {
				if(act==s) {
					if (typeof d.rFlt[0] == o) {
						for (i=0;i<d.rFlt.length;i++) {
							if (d.rFlt[i].checked) {
								rPRC = f.getprcsub(d.rFlt[i].value); j2 = i; } } }
					else { if (d.rFlt.checked) { rPRC = f.getprcsub(d.rFlt.value); j2 = 0; } }
				}
				if(act==c) {
					rPRC = f.getprcsub(d.rFlt.value); j2 = 0; }
			}
		}
		if(act==t) {
			var ck = new ammo.cookie();
			dPRC = f.getprcsub(ck.getck(ck.cktktd)); j = 0;
			rPRC = f.getprcsub(ck.getck(ck.cktktr)); j2 = 0;
		}
		//if (dPRC==0||dPRC==""||dPRC=="NaN") { dPRC=0; j = -1; }
		//if (rPRC==0||rPRC==""||rPRC=="NaN") { rPRC=0; }
		//obj.value=parseInt(dPRC, 10) + parseInt(rPRC, 10);
		//obj.value+=z;
		//if (typeof obj == o) { obj.value = u.fmtCR(parseInt(dPRC, 10) + parseInt(rPRC, 10), "100", "0.00"); }


		if ((ckIBE.getowrt()=="1" && j!=-1 && j2!=-1) || (ckIBE.getowrt()=="2" && j!=-1)
		  && document.getElementById("ibepricelist")!= null) {
			var fp, fd, fr;
			var oTB = f.cTB(), oTD, tAR, oTA, oTR, qj;
			var d = document.ticket, dfltno, rfltno, dfltno2, rfltno2;
			var amount = 0;
			if (act==s) {
				fp = new ammo.cookie.ibe.fltprice2();
				fd = new ammo.cookie.ibe.vclassd();
				fr = new ammo.cookie.ibe.vclassr();

				oTB = f.cTB("", "", "", "", f.cTR("", "", "", "",f.cTD("height:4; colspan:2")));
				for (i = 0; i<fp.count; i++) {
					if (typeof d.dFlt==o) {
						if (typeof d.dFlt[0] == o) {
							for (var qi=0;qi<d.dFlt.length;qi++) {
								if (d.dFlt[qi].checked) {
									dfltno = d.dFlt[qi].value.split(":")[0].split(" ")[0];
									if (d.dFlt[qi].value.split(":").length > 1) {
										dfltno2 = d.dFlt[qi].value.split(":")[1].split(" ")[0];
									} else { dfltno2 = ""; };
									} } }
						else { if (d.dFlt.checked) {
						dfltno = d.dFlt.value.split(":")[0].split(" ")[0];
						if (d.dFlt.value.split(":").length > 1) {
							dfltno2 = d.dFlt.value.split(":")[1].split(" ")[0];
						} else { dfltno2 = ""; };
						} }
					}
					if (typeof d.rFlt==o) {
						if (typeof d.rFlt[0] == o) {
							for (var qi=0;qi<d.rFlt.length;qi++) {
								if (d.rFlt[qi].checked) {
									rfltno = d.rFlt[qi].value.split(":")[0].split(" ")[0];
									if (d.rFlt[qi].value.split(":").length > 1) {
										rfltno2 = d.rFlt[qi].value.split(":")[1].split(" ")[0];
									} else { rfltno2 = ""; };
									} } }
						else { if (d.rFlt.checked) {
						rfltno = d.rFlt.value.split(":")[0].split(" ")[0];
						if (d.rFlt.value.split(":").length > 1) {
							rfltno2 = d.rFlt.value.split(":")[1].split(" ")[0];
						} else { rfltno2 = ""; };
						} }
					}
					//qj = fd.getcls(j, fp.getcls(i)) == "Y" && fr.getcls(j2, fp.getcls(i)) == "Y" && fp.indfltr(i, dfltno) && fp.inrfltr(i, rfltno);
					qj = fd.getcls(j, fp.getcls(i)) == "Y" && fr.getcls(j2, fp.getcls(i)) == "Y" && fp.chkfltr(i, dfltno, dfltno2, rfltno, rfltno2);
					oTR = f.cTR("", "", "", "", f.cTD("", "", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"));
					//f.aCH(oTR, f.cTD("align:left; width:25%", "", "<input "+(qj ? "" : "disabled")+" type='radio' name='tktprcr' id='tktprcr"+i+"' value='"+fp.getline(i)+"'> " +" "+u.ptcurrency(fp.getcurrency(i))+" $"+u.fmtCR(parseInt(fp.getamount(i), 10), "100", "0.00")));
					if (parseInt(fp.getchlnum(i), 10) != 0) { 
						f.aCH(oTR, f.cTD("align:left; width:25%", "",
							"<input "+(qj ? "" : "disabled")+" type='radio' name='tktprcr' id='tktprcr"+i+"' value='"+fp.getline(i)+"'>"
							+"&nbsp;&nbsp;&nbsp;&nbsp;"+u.ptcurrency(fp.getcurrency(i))
							+"<br>"+H_GUESTNA+" $"+u.fmtCR(parseInt(fp.getadtprc(i), 10), "100", "0.00")+" x "+u.fmtCR(fp.getadtnum(i), 10)
							+"<br>"+H_GUESTNC+" $"+u.fmtCR(parseInt(fp.getchlprc(i), 10), "100", "0.00")+" x "+u.fmtCR(fp.getchlnum(i), 10)));
					} else {
						f.aCH(oTR, f.cTD("align:left; width:25%", "",
							"<input "+(qj ? "" : "disabled")+" type='radio' name='tktprcr' id='tktprcr"+i+"' value='"+fp.getline(i)+"'>"
							+"&nbsp;&nbsp;&nbsp;&nbsp;"+u.ptcurrency(fp.getcurrency(i))
							+"<br>"+H_GUESTNA+" $"+u.fmtCR(parseInt(fp.getadtprc(i), 10), "100", "0.00")+" x "+u.fmtCR(fp.getadtnum(i), 10)));
					}

					f.aCH(oTR, f.cTD("width:100%", "", u.pttac(fp.gettacid(i))+u.ptffpmile(fp.getcls(i))));
					if (qj) {
						//alert(j+" "+j2+" "+fp.getcls(i)+" "+fd.getcls(j, fp.getcls(i))+" "+fr.getcls(j2, fp.getcls(i)));
						      if(i== 0){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+ "0").checked=true;};
						}else if(i== 1){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+ "1").checked=true;};
						}else if(i== 2){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+ "2").checked=true;};
						}else if(i== 3){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+ "3").checked=true;};
						}else if(i== 4){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+ "4").checked=true;};
						}else if(i== 5){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+ "5").checked=true;};
						}else if(i== 6){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+ "6").checked=true;};
						}else if(i== 7){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+ "7").checked=true;};
						}else if(i== 8){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+ "8").checked=true;};
						}else if(i== 9){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+ "9").checked=true;};
						}else if(i==10){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"10").checked=true;};
						}else if(i==11){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"11").checked=true;};
						}else if(i==12){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"12").checked=true;};
						}else if(i==13){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"13").checked=true;};
						}else if(i==14){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"14").checked=true;};
						}else if(i==15){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"15").checked=true;};
						}else if(i==16){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"16").checked=true;};
						}else if(i==17){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"17").checked=true;};
						}else if(i==18){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"18").checked=true;};
						}else if(i==19){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"19").checked=true;};
						}else if(i==20){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"20").checked=true;};
						}else if(i==21){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"21").checked=true;};
						}else if(i==22){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"22").checked=true;};
						}else if(i==23){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"23").checked=true;};
						}else if(i==24){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"24").checked=true;};
						}else if(i==25){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"25").checked=true;};
						}else if(i==26){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"26").checked=true;};
						}else if(i==27){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"27").checked=true;};
						}else if(i==28){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"28").checked=true;};
						}else if(i==29){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"29").checked=true;};
						}else if(i==30){var ht=new ammo.html.ibe();oTR.onclick=function() {$("tktprcr"+"30").checked=true;};
						}
						oTR.onmouseover=function() {snav2(this);};
						oTR.onmouseout=function() {cnav2(this);};
					}
					f.aCH(oTB, oTR);
					f.aCH(oTB, f.cTR("", "", "", "",f.cTD("height:2; bgcolor:#EFEFEF; colspan:3")));
				}

				f.aCH(oTB, f.cTR("", "", "", "",f.cTD("height:4; colspan:3")));
				f.aCH(oTB, f.cTR("", "", "", "",f.cTD("height:1; bgcolor:#000000; colspan:3")));
				oTA = f.cTA("border:0; cellspacing:0; cellpadding:0; width:100%", "", "", "", oTB);
				
				f.nCH($("ibepricelist"), oTA);
				f.nCH($("ibepricedetail"), f.cTA());
			}
		}
	};
	this.settktprcdtl = function(objsum, objdtl) {
		var i, dPRC=0, rPRC=0, j;
		var s="select", c="confirm", o="object", t="stat", z=".00", f=this;
		var u = new ammo.html.utilities();
		var amount = 0, tcid="", curr="";
		var fp = new ammo.cookie.ibe.tktp();

		j = -1;
		if (typeof objdtl == o) {
			var oTB = f.cTB(), oTD, tAR, oTA, oTR;

			for (i=0; i<fp.count ; i++) {
				tAR = fp.getitem(i);
				if (i==0) {
					tcid = tAR[3];
				} else {
					var t = tAR[0];
					oTR = f.settktprc_tr(u.ptfeetitle(tAR[0]), u.ptcurrency(tAR[1])+"$", u.fmtCR(tAR[2], "100", "0.00"), (t=="PA" || t=="PC" || t=="PI" ? tAR[3] : ""));
					if (tAR[3]!="0" && tAR[2]!="0") { f.aCH(oTB, oTR); amount += parseInt(tAR[2], 10) * parseInt(tAR[3], 10); }
					curr = tAR[1];
				}
			}
			f.aCH(oTB, f.cTR("height:2; bgcolor:#000000", "", "", "", f.cTD("colspan:9")));
 	
			//* ***** START : MODIFIED BY KEVIN LI AT 20081218
			oTR = f.settktprc_tr("", u.ptcurrency(fp.getcur(0, "FB"))+"$", u.fmtCR(amount, "100", "0.00"), "");
			//oTR = f.settktprc_tr("", u.ptcurrency("MOP")+"$", u.fmtCR(amount, "100", "0.00"), "");
			//* ***** END : MODIFIED BY KEVIN LI AT 20081218
			f.aCH(oTB, oTR);
       	
			oTA = f.cTA("border:0", "", "", "", oTB);
			f.nCH(objdtl, oTA);
		}
		if (typeof objsum == o) {
			objsum.innerHTML = u.ptcurrency(curr)+" $"+u.fmtCR(parseInt(amount, 10), "100", "0.00"); 
		}
	};
	this.setacceprcdtlhtl = function(objsum, objdtl, ckcntn) {
		var i, dPRC=0, rPRC=0, j, a_info;
		var s="select", c="confirm", o="object", t="stat", z=".00", f=this;
		var u = new ammo.html.utilities();
		var amount = 0, rnum="", curr="", bfast="", info="";
		var fp = new ammo.cookie.ibe.tktah(ckcntn);

		j = -1;
		if (typeof objdtl == o) {
			var oTB = f.cTB(), oTD, tAR, oTA, oTR;

			for (i=0; i<fp.count ; i++) {
				tAR = fp.getitem(i);
				if (i==0) {
					curr = tAR[4];
					bfast = tAR[5];
					rnum = tAR[7];
					info = tAR[10];
				} else {
//alert(tAR[0] + "/" + tAR[1] + "/" + tAR[2] + "/" + tAR[3] + "/" + tAR[4] + "/" + tAR[5] + "/" + tAR[6] + "/" + tAR[7] + "/" + tAR[8]);
					var t = tAR[0];
					oTR = f.setacceprchtl_tr(ammo_ansi2unicode(unescape(tAR[5])) + " " + tAR[6], u.ptcurrency(tAR[3])+"$", u.fmtCR(tAR[4], "100", "0.00"), rnum, tAR[2], u.fmtCR(tAR[7], "100", "0.00"), bfast);
					if (tAR[2]!="0") {
						f.aCH(oTB, oTR);
						amount += parseInt(tAR[4], 10) * parseInt(tAR[2], 10) * parseInt(rnum, 10);
						amount += parseInt(tAR[7], 10) * parseInt(tAR[2], 10) * parseInt(bfast, 10);
					}
					curr = tAR[3];
				}
			}
			f.aCH(oTB, f.cTR("height:2; bgcolor:#000000", "", "", "", f.cTD("colspan:15")));
 	
			oTR = f.setacceprchtl_tr("", u.ptcurrency(fp.getcur(0, "HTL"))+"$", u.fmtCR(amount, "100", "0.00"), "", "", "", "0");
			f.aCH(oTB, oTR);
       	
			f.aCH(oTB, f.cTR("height:5", "", "", "", f.cTD("colspan:15")));
       	
//			a_info = info.split("~");
//			for (i=0; i<a_info.length; i++) {
//				f.aCH(oTB, f.cTR("", "", "", "", f.cTD("colspan:15", "", "&nbsp;-&nbsp;" + ammo_ansi2unicode(unescape(a_info[i])))));
//			}
			f.aCH(oTB, f.cTR("", "", "", "", f.cTD("colspan:15", "", eval("H_IBE_TCTEXT"+info))));

			oTA = f.cTA("border:0", "", "", "", oTB);
			f.nCH(objdtl, oTA);
		}
		if (typeof objsum == o) {
			objsum.innerHTML = u.ptcurrency(curr)+" $"+u.fmtCR(parseInt(amount, 10), "100", "0.00"); 
		}
	};
	this.setacceprcdtlcoc = function(objsum, objdtl, ckcntn) {
		var i, dPRC=0, rPRC=0, j, a_info;
		var s="select", c="confirm", o="object", t="stat", z=".00", f=this;
		var u = new ammo.html.utilities();
		var amount = 0, rnum="", curr="", bfast="", info="";
		var fp = new ammo.cookie.ibe.tktah(ckcntn);

		j = -1;
		if (typeof objdtl == o) {
			var oTB = f.cTB(), oTD, tAR, oTA, oTR;

			for (i=0; i<fp.count ; i++) {
				tAR = fp.getitem(i);
				if (i==0) {
					curr = tAR[4];
					bfast = tAR[5];
					rnum = tAR[7];
					info = tAR[10];
				} else {
//alert(tAR[0] + "/" + tAR[1] + "/" + tAR[2] + "/" + tAR[3] + "/" + tAR[4] + "/" + tAR[5] + "/" + tAR[6] + "/" + tAR[7] + "/" + tAR[8]);
					var t = tAR[0];
					oTR = f.setacceprccoc_tr(ammo_ansi2unicode(unescape(tAR[5])) + " " + tAR[6], u.ptcurrency(tAR[3])+"$", u.fmtCR(tAR[4], "100", "0.00"), rnum, tAR[2], u.fmtCR(tAR[7], "100", "0.00"), bfast);
					if (tAR[2]!="0") {
						f.aCH(oTB, oTR);
						amount += parseInt(tAR[4], 10) * parseInt(tAR[2], 10) * parseInt(rnum, 10);
						amount += parseInt(tAR[7], 10) * parseInt(tAR[2], 10) * parseInt(bfast, 10);
					}
					curr = tAR[3];
				}
			}
			f.aCH(oTB, f.cTR("height:2; bgcolor:#000000", "", "", "", f.cTD("colspan:15")));
 	
			oTR = f.setacceprccoc_tr("", u.ptcurrency(fp.getcur(0, "COC"))+"$", u.fmtCR(amount, "100", "0.00"), "", "", "", "0");
			f.aCH(oTB, oTR);
       	
			f.aCH(oTB, f.cTR("height:5", "", "", "", f.cTD("colspan:15")));
       	
//			a_info = info.split("~");
//			for (i=0; i<a_info.length; i++) {
//				f.aCH(oTB, f.cTR("", "", "", "", f.cTD("colspan:15", "", "&nbsp;-&nbsp;" + ammo_ansi2unicode(unescape(a_info[i])))));
//			}
			f.aCH(oTB, f.cTR("", "", "", "", f.cTD("colspan:15", "", eval("H_IBE_TCTEXT"+info))));

			oTA = f.cTA("border:0", "", "", "", oTB);
			f.nCH(objdtl, oTA);
		}
		if (typeof objsum == o) {
			objsum.innerHTML = u.ptcurrency(curr)+" $"+u.fmtCR(parseInt(amount, 10), "100", "0.00"); 
		}
	};
	this.setaccedtl = function(objsum, objdtl, acceinfo) {
		var i, dPRC=0, rPRC=0, j;
		var s="select", c="confirm", o="object", t="stat", z=".00", f=this;
		var u = new ammo.html.utilities();
		var amount = 0, tcid="", curr="";
		var fp = acceinfo;

		if (typeof objdtl == o) {
			var oTB = f.cTB(), oTD, tAR, tAR2, tAR3, tAR4, oTA, oTR, oTS;

			tAR = acceinfo.split(":");
//alert(acceinfo);
			for (i=0; i<tAR.length ; i++) {
				tAR2 = tAR[i].split("*");
				if (tAR2[2] == "HOTEL") {
					oTR = f.cTR("", "backgroundColor:#DEDEDE", "", "", f.cTD("colspan:5; height:2px"));
					f.aCH(oTB, oTR);

					oTR = f.cTR("", "", "", "", f.cTD("rowspan:4; align:center; width:40px", "", "<input type=checkbox id=acce_"+i+"_cbbx onclick='ammoibe_clear_accerate("+i+");'>"));
					f.aCH(oTR, f.cTD("height:20px", "", H_PR_MIDDTEX3));
					f.aCH(oTR, f.cTD("", "", H_PR_MIDDTEX4));
					f.aCH(oTR, f.cTD("", "", H_PR_MIDDTEX5));
					f.aCH(oTR, f.cTD("", "", H_PR_MIDDTEX6));
					f.aCH(oTB, oTR);

					oTS = document.createElement("select");
					oTS.id = "acce_"+i+"_htl";
					f.aCH(oTS, f.cOP("value:" + tAR2[0], "", "", tAR2[1] + "   "));
					oTR = f.cTR("", "", "", "", f.cTD("height:20px", "", "", "", oTS));
					f.aCH(oTR, f.cTD("", "", "<input size=12 value='2009/12/24' id=acce_"+i+"_ckin><input type=hidden value='"+tAR2[2]+"' id=acce_"+i+"_ptype>"));
					f.aCH(oTR, f.cTD("", "", "<input size=12 value='2009/12/28' id=acce_"+i+"_ckout>"));
					oTS = document.createElement("select");
					oTS.id = "acce_"+i+"_bfast";
					oTS.onchange = function() {
						       if (i==0) { ammoibe_clear_rateonly(i-1);
						} else if (i==1) { ammoibe_clear_rateonly(i-1);
						} else if (i==2) { ammoibe_clear_rateonly(i-1);
						} else if (i==3) { ammoibe_clear_rateonly(i-1);
						} else if (i==4) { ammoibe_clear_rateonly(i-1);
						} else if (i==5) { ammoibe_clear_rateonly(i-1);
						} else if (i==6) { ammoibe_clear_rateonly(i-1);
						} else if (i==7) { ammoibe_clear_rateonly(i-1);
						} else if (i==8) { ammoibe_clear_rateonly(i-1);
						} else if (i==9) { ammoibe_clear_rateonly(i-1);
						}
					};
					f.aCH(oTS, f.cOP("value:0", "", "", " 0 "));
					f.aCH(oTS, f.cOP("value:1", "", "", " 1 "));
					f.aCH(oTS, f.cOP("value:2", "", "", " 2 "));
					f.aCH(oTS, f.cOP("value:3", "", "", " 3 "));
					f.aCH(oTS, f.cOP("value:4", "", "", " 4 "));
					f.aCH(oTS, f.cOP("value:5", "", "", " 5 "));
					f.aCH(oTS, f.cOP("value:6", "", "", " 6 "));
					f.aCH(oTS, f.cOP("value:7", "", "", " 7 "));
					f.aCH(oTS, f.cOP("value:8", "", "", " 8 "));
					f.aCH(oTS, f.cOP("value:9", "", "", " 9 "));
					f.aCH(oTR, f.cTD("", "", "", "", oTS));
					f.aCH(oTB, oTR);

					oTR = f.cTR("", "", "", "", f.cTD("colspan:2; height:20px", "", H_PR_MIDDTEX7));
					f.aCH(oTR, f.cTD("", "", H_PR_MIDDTEX8));
					f.aCH(oTR, f.cTD("", "", ""));
					f.aCH(oTB, oTR);

					tAR3 = tAR2[3].split("~");
					oTS = document.createElement("select");
					oTS.style["width"] = "260px";
					oTS.id = "acce_"+i+"_rtyp";
					oTS.onchange = function() {
						       if (i==0) { ammoibe_clear_rateonly(i-1);
						} else if (i==1) { ammoibe_clear_rateonly(i-1);
						} else if (i==2) { ammoibe_clear_rateonly(i-1);
						} else if (i==3) { ammoibe_clear_rateonly(i-1);
						} else if (i==4) { ammoibe_clear_rateonly(i-1);
						} else if (i==5) { ammoibe_clear_rateonly(i-1);
						} else if (i==6) { ammoibe_clear_rateonly(i-1);
						} else if (i==7) { ammoibe_clear_rateonly(i-1);
						} else if (i==8) { ammoibe_clear_rateonly(i-1);
						} else if (i==9) { ammoibe_clear_rateonly(i-1);
						}
					};
					for (j=0; j<tAR3.length; j++) {
						tAR4 = tAR3[j].split("|");
						f.aCH(oTS, f.cOP("value:" + tAR4[0] + "|" + tAR4[3] + "|" + tAR4[4] + "|" + tAR4[5] + "|" + tAR4[2] , "", "", tAR4[1] + "   "));
					}
					oTR = f.cTR("", "", "", "", f.cTD("colspan:2; height:20px", "", "", "", oTS));
					oTS = document.createElement("select");
					oTS.id = "acce_"+i+"_rnum";
					oTS.onchange = function() {
						       if (i==0) { ammoibe_clear_rateonly(i-1);
						} else if (i==1) { ammoibe_clear_rateonly(i-1);
						} else if (i==2) { ammoibe_clear_rateonly(i-1);
						} else if (i==3) { ammoibe_clear_rateonly(i-1);
						} else if (i==4) { ammoibe_clear_rateonly(i-1);
						} else if (i==5) { ammoibe_clear_rateonly(i-1);
						} else if (i==6) { ammoibe_clear_rateonly(i-1);
						} else if (i==7) { ammoibe_clear_rateonly(i-1);
						} else if (i==8) { ammoibe_clear_rateonly(i-1);
						} else if (i==9) { ammoibe_clear_rateonly(i-1);
						}
					};
					f.aCH(oTS, f.cOP("value:1", "", "", " 1 "));
					f.aCH(oTS, f.cOP("value:2", "", "", " 2 "));
					f.aCH(oTS, f.cOP("value:3", "", "", " 3 "));
					f.aCH(oTS, f.cOP("value:4", "", "", " 4 "));
					f.aCH(oTS, f.cOP("value:5", "", "", " 5 "));
					f.aCH(oTS, f.cOP("value:6", "", "", " 6 "));
					f.aCH(oTR, f.cTD("", "", "", "", oTS));
					f.aCH(oTR, f.cTD("", "", "<input id=acce_"+i+"_bttn class=buttonGo2 type=button value='" + H_PR_MIDDTEX9 + "' onclick='ammoibe_get_accerate("+i+");' disabled>"));
					f.aCH(oTB, oTR);

					oTR = f.cTR("", "", "", "", f.cTD("colspan:5; height:5px"));
					f.aCH(oTB, oTR);

					oTR = f.cTR("", "", "", "", f.cTD("colspan:5; id:acce_"+i+"_cntn", "padding:3px"));
					f.aCH(oTB, oTR);

//					if (i==0) {
//						tcid = tAR[3];
//					} else {
//						var t = tAR[0];
//						oTR = f.settktprc_tr(u.ptfeetitle(tAR[0]), u.ptcurrency(tAR[1])+"$", u.fmtCR(tAR[2], "100", "0.00"), (t=="PA" || t=="PC" || t=="PI" ? tAR[3] : ""));
//						if (tAR[3]!="0" && tAR[2]!="0") { f.aCH(oTB, oTR); amount += parseInt(tAR[2], 10) * parseInt(tAR[3], 10); }
//						curr = tAR[1];
//					}
				} else if (tAR2[2] == "CONCERT") {
					oTR = f.cTR("", "backgroundColor:#DEDEDE", "", "", f.cTD("colspan:5; height:2px"));
					f.aCH(oTB, oTR);

					oTR = f.cTR("", "", "", "", f.cTD("rowspan:4; align:center; width:10px", "", ""));
					f.aCH(oTR, f.cTD("height:20px", "", H_PR_MIDDTEX13));
					f.aCH(oTR, f.cTD("", "", H_PR_MIDDTEX14));
					f.aCH(oTR, f.cTD("", "", H_PR_MIDDTEX12));
					f.aCH(oTB, oTR);

					oTS = document.createElement("select");
					oTS.id = "acce_"+i+"_htl";
					//oTS.style["width"] = "200px";
					oTS.disabled = "disabled";
					f.aCH(oTS, f.cOP("value:" + tAR2[0], "", "", tAR2[1] + "   "));
					oTR = f.cTR("", "", "", "", f.cTD("height:20px", "", "", "", oTS));

					tAR3 = tAR2[3].split("~");
					oTS = document.createElement("select");
					//oTS.style["width"] = "260px";
					oTS.id = "acce_"+i+"_rtyp";
					oTS.disabled = "disabled";
					oTS.onchange = function() {
						       if (i==0) { ammoibe_clear_rateonly(i-1);
						} else if (i==1) { ammoibe_clear_rateonly(i-1);
						} else if (i==2) { ammoibe_clear_rateonly(i-1);
						} else if (i==3) { ammoibe_clear_rateonly(i-1);
						} else if (i==4) { ammoibe_clear_rateonly(i-1);
						} else if (i==5) { ammoibe_clear_rateonly(i-1);
						} else if (i==6) { ammoibe_clear_rateonly(i-1);
						} else if (i==7) { ammoibe_clear_rateonly(i-1);
						} else if (i==8) { ammoibe_clear_rateonly(i-1);
						} else if (i==9) { ammoibe_clear_rateonly(i-1);
						}
					};
					for (j=0; j<tAR3.length; j++) {
						tAR4 = tAR3[j].split("|");
						f.aCH(oTS, f.cOP("value:" + tAR4[0] + "|" + tAR4[3] + "|" + tAR4[4] + "|" + tAR4[5] + "|" + tAR4[2] , "", "", tAR4[1] + "   "));
					}
					f.aCH(oTR, f.cTD("", "", "", "", oTS));

//					f.aCH(oTR, f.cTD("", "", "<input size=14 value='2010/07/17 20:00' id=acce_"+i+"_ckin disabled> <input type=hidden value='' id=acce_"+i+"_ckout> <input type=hidden value='' id=acce_"+i+"_bfast> <input type=hidden value='"+tAR2[2]+"' id=acce_"+i+"_ptype>"));
					oTS = document.createElement("select");
					oTS.id = "acce_"+i+"_rnum";
					oTS.disabled = "disabled";
					oTS.onchange = function() {
						       if (i==0) { ammoibe_clear_rateonly(i-1);
						} else if (i==1) { ammoibe_clear_rateonly(i-1);
						} else if (i==2) { ammoibe_clear_rateonly(i-1);
						} else if (i==3) { ammoibe_clear_rateonly(i-1);
						} else if (i==4) { ammoibe_clear_rateonly(i-1);
						} else if (i==5) { ammoibe_clear_rateonly(i-1);
						} else if (i==6) { ammoibe_clear_rateonly(i-1);
						} else if (i==7) { ammoibe_clear_rateonly(i-1);
						} else if (i==8) { ammoibe_clear_rateonly(i-1);
						} else if (i==9) { ammoibe_clear_rateonly(i-1);
						}
					};
					f.aCH(oTS, f.cOP("value:1", "", "", " 1 "+H_PR_MIDDTEX15));
					f.aCH(oTS, f.cOP("value:2", "", "", " 2 "+H_PR_MIDDTEX15));
					f.aCH(oTS, f.cOP("value:3", "", "", " 3 "+H_PR_MIDDTEX15));
					f.aCH(oTS, f.cOP("value:4", "", "", " 4 "+H_PR_MIDDTEX15));
					f.aCH(oTS, f.cOP("value:5", "", "", " 5 "+H_PR_MIDDTEX15));
					f.aCH(oTS, f.cOP("value:6", "", "", " 6 "+H_PR_MIDDTEX15));
					f.aCH(oTR, f.cTD("", "", "", "", oTS));
					f.aCH(oTB, oTR);

					oTR = f.cTR("", "", "", "", f.cTD("height:20px", "", H_PR_MIDDTEX11));
					f.aCH(oTR, f.cTD("colspan:2", "", ""));
					f.aCH(oTB, oTR);

					oTR = f.cTR("", "", "", "", f.cTD("height:20px", "", "<input size=18 value='2010/07/17 20:00' id=acce_"+i+"_ckin disabled> <input type=hidden value='' id=acce_"+i+"_ckout> <input type=hidden value='' id=acce_"+i+"_bfast> <input type=hidden value='"+tAR2[2]+"' id=acce_"+i+"_ptype><a href='"+H_PR_MIDDTEX20+"' target=_blank> >> <span style='color:blue; font-weight:bold'>"+H_PR_MIDDTEX19+"</span> >> </a>"));
					f.aCH(oTR, f.cTD("colspan:2; align:center", "", "<input id=acce_"+i+"_bttn class=buttonGo2 type=button value='" + H_PR_MIDDTEX9 + "' onclick='ammoibe_get_accerate("+i+");' disabled>"));
					f.aCH(oTB, oTR);

					oTR = f.cTR("", "", "", "", f.cTD("colspan:4; height:5px"));
					f.aCH(oTB, oTR);

					oTR = f.cTR("", "", "", "", f.cTD("colspan:4; id:acce_"+i+"_cntn", "padding:3px"));
					f.aCH(oTB, oTR);
				}
			}

			oTA = f.cTA("border:0", "width:100%", "", "", oTB);
			f.nCH(objdtl, oTA);
		}
		if (typeof objsum == o) {
			objsum.innerHTML = acceinfo;
		}
	};
	this.setaccedtl2 = function(objsum, objdtl, accelist, accetkta) {
		var i, dPRC=0, rPRC=0, j;
		var s="select", c="confirm", o="object", t="stat", z=".00", f=this;
		var u = new ammo.html.utilities();
		var amount = 0, tcid="", curr="";
		var fp = accelist;

		if (typeof objdtl == o) {
			var oTB = f.cTB(), oTD, tAR, tAR2, tAR3, tAR4, oTA, oTR, oTS;

			tAR = accelist.split(":");
			tAR2 = accetkta.split(":");
//alert(accelist);
//alert(accetkta);
			for (i=0; i<tAR.length ; i++) {
				tAR3 = tAR[i].split("*")[2].split("~");
				for (j=0; j<tAR3.length ; j++) {
					if (tAR2[0].split("*")[6] == tAR3[j].split("|")[0]) {
						tAR4 = tAR3[j].split("|")[1];
					}
				}
				if (tAR2[0].split("*")[1] == tAR[i].split("*")[0]) {
					tAR3 = tAR[i].split("*")[1];
				}
			}

			//oTR = f.cTR("", "backgroundColor:#DEDEDE", "", "", f.cTD("colspan:5; height:2px"));
			//f.aCH(oTB, oTR);

			oTR = f.cTR("", "" , "", "", f.cTD("width:10px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("align:right", "", H_PR_MIDDTEX3));
			f.aCH(oTR, f.cTD("width:15px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", tAR3));
			f.aCH(oTB, oTR);

			oTR = f.cTR("", "" , "", "", f.cTD("width:10px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("align:right", "", H_PR_MIDDTEX4));
			f.aCH(oTR, f.cTD("width:15px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "" , tAR2[0].split("*")[2]));
			f.aCH(oTB, oTR);

			oTR = f.cTR("", "" , "", "", f.cTD("width:10px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("align:right", "", H_PR_MIDDTEX5));
			f.aCH(oTR, f.cTD("width:15px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "" , tAR2[0].split("*")[3]));
			f.aCH(oTB, oTR);

			oTR = f.cTR("", "" , "", "", f.cTD("width:10px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("align:right", "", H_PR_MIDDTEX7));
			f.aCH(oTR, f.cTD("width:15px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", tAR4));
			f.aCH(oTB, oTR);

			oTR = f.cTR("", "" , "", "", f.cTD("width:10px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("align:right", "", H_PR_MIDDTEX8));
			f.aCH(oTR, f.cTD("width:15px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "" , tAR2[0].split("*")[7] + " " + H_ROOM));
			f.aCH(oTB, oTR);

			oTR = f.cTR("", "" , "", "", f.cTD("width:10px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("align:right", "", H_PR_MIDDTEX6));
			f.aCH(oTR, f.cTD("width:15px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "" , tAR2[0].split("*")[5] + " " + H_PERS));
			f.aCH(oTB, oTR);

			f.aCH(oTB, f.cTR("height:10px", "", "", "", f.cTD("colspan:4")));
			oTR = f.cTR("", "", "", "", f.cTD("width:10px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("colspan:3", "", u.pttac(tAR2[0].split("*")[10])));
			f.aCH(oTB, oTR);
			f.aCH(oTB, f.cTR("height:10px", "", "", "", f.cTD("colspan:4")));

// 	
//			//* ***** START : MODIFIED BY KEVIN LI AT 20081218
//			oTR = f.settktprc_tr("", u.ptcurrency(fp.getcur(0, "FB"))+"$", u.fmtCR(amount, "100", "0.00"), "");
//			//oTR = f.settktprc_tr("", u.ptcurrency("MOP")+"$", u.fmtCR(amount, "100", "0.00"), "");
//			//* ***** END : MODIFIED BY KEVIN LI AT 20081218
//			f.aCH(oTB, oTR);
//	   	
			oTA = f.cTA("border:0", "width:100%; padding:10px", "", "", oTB);
			f.nCH(objdtl, oTA);
		}
		if (typeof objsum == o) {
			var u = new ammo.html.utilities();
			objsum.innerHTML = u.ptcurrency(accetkta.split(":")[0].split("*")[4])+"&nbsp;$"+u.fmtCR(parseInt(accetkta.split(":")[0].split("*")[8],10)/100, "0", "0.00");
		}
	};
	this.setaccedtl3 = function(objsum, objdtl, accelist, accetkta) {
		var i, dPRC=0, rPRC=0, j;
		var s="select", c="confirm", o="object", t="stat", z=".00", f=this;
		var u = new ammo.html.utilities();
		var amount = 0, tcid="", curr="";
		var fp = accelist;

		if (typeof objdtl == o) {
			var oTB = f.cTB(), oTD, tAR, tAR2, tAR3, tAR4, oTA, oTR, oTS;

			tAR = accelist.split(":");
			tAR2 = accetkta.split(":");
			for (i=0; i<tAR.length ; i++) {
				tAR3 = tAR[i].split("*")[3].split("~");
				for (j=0; j<tAR3.length ; j++) {
					if (tAR2[0].split("*")[6] == tAR3[j].split("|")[0]) {
						tAR4 = tAR3[j].split("|")[1];
					}
				}
				if (tAR2[0].split("*")[1] == tAR[i].split("*")[0]) {
					tAR3 = tAR[i].split("*")[1];
				}
			}

			//oTR = f.cTR("", "backgroundColor:#DEDEDE", "", "", f.cTD("colspan:5; height:2px"));
			//f.aCH(oTB, oTR);

			oTR = f.cTR("", "" , "", "", f.cTD("width:10px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("align:right", "", H_PR_MIDDTEX13));
			f.aCH(oTR, f.cTD("width:15px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", tAR3));
			f.aCH(oTB, oTR);

			oTR = f.cTR("", "" , "", "", f.cTD("width:10px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("align:right", "", H_PR_MIDDTEX16));
			f.aCH(oTR, f.cTD("width:15px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "" , "2010/07/17 20:00:00"));
			f.aCH(oTB, oTR);

			oTR = f.cTR("", "" , "", "", f.cTD("width:10px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("align:right", "", H_PR_MIDDTEX14));
			f.aCH(oTR, f.cTD("width:15px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "", tAR4));
			f.aCH(oTB, oTR);

			oTR = f.cTR("", "" , "", "", f.cTD("width:10px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("align:right", "", H_PR_MIDDTEX12));
			f.aCH(oTR, f.cTD("width:15px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("", "" , tAR2[0].split("*")[7] + " " + H_TKTS));
			f.aCH(oTB, oTR);

			f.aCH(oTB, f.cTR("height:10px", "", "", "", f.cTD("colspan:4")));
			oTR = f.cTR("", "", "", "", f.cTD("width:10px", "", "&nbsp;"));
			f.aCH(oTR, f.cTD("colspan:3", "", u.pttac(tAR2[0].split("*")[10])));
			f.aCH(oTB, oTR);
			f.aCH(oTB, f.cTR("height:10px", "", "", "", f.cTD("colspan:4")));

// 	
//			//* ***** START : MODIFIED BY KEVIN LI AT 20081218
//			oTR = f.settktprc_tr("", u.ptcurrency(fp.getcur(0, "FB"))+"$", u.fmtCR(amount, "100", "0.00"), "");
//			//oTR = f.settktprc_tr("", u.ptcurrency("MOP")+"$", u.fmtCR(amount, "100", "0.00"), "");
//			//* ***** END : MODIFIED BY KEVIN LI AT 20081218
//			f.aCH(oTB, oTR);
//	   	
			oTA = f.cTA("border:0", "width:100%; padding:10px", "", "", oTB);
			f.nCH(objdtl, oTA);
		}
		if (typeof objsum == o) {
			var u = new ammo.html.utilities();
			objsum.innerHTML = u.ptcurrency(accetkta.split(":")[0].split("*")[4])+"&nbsp;$"+u.fmtCR(parseInt(accetkta.split(":")[0].split("*")[8],10)/100, "0", "0.00");
		}
	};
	this.ptfltlist_tr = function(w, fltid, fltp, sector, depart, arrive, cc, pc, pv) {
		var oTC, oTD, oTR, sTYPE, f = new ammo.html.utilities();

		oTR = f.cTR("align:center");
		oTR = f.aCH(oTR, f.cTD("width:"+w[2], "", fltid+"<br>"+f.ptaircraft(fltp)));
		oTR = f.aCH(oTR, f.cTD("width:"+w[3], "", 
			f.ptairport(sector.substring(0,3))+"<br>"+f.pttime(depart)));
		oTR = f.aCH(oTR, f.cTD("width:"+w[4], "", 
			f.ptairport(sector.substring(3,6))+"<br>"+f.pttime(arrive)));
		oTR = f.aCH(oTR, f.cTD("width:"+w[5]+"; valign:top", "", "", f.ptdifftm2(depart, arrive, sector.substring(0,3), sector.substring(3,6))));
		oTR = f.aCH(oTR, f.cTD("width:"+w[6]+"; valign:top", "", "", f.ptclass(cc)));
		return oTR;
	};
//	this.ptfltlist = function(obj, act, fltlist) {
//		var tAR1, tAR2, tAR3, sID, tS;
//		var oTA, oTA2, oTC, oTD, oTR, sTYPE, f=this;
//		var w = new Array ("10", "20", "110", "110", "110", "110", "60"); 
//
//		if (act=="select") { sTYPE = "radio"; } else { sTYPE = "hidden"; }
//		if (obj.id == "fltlisttablel") { sID = "rFlt"; } else { sID = "dFlt"; }
//		if (typeof fltlist == "string" && fltlist != "") {
//			tAR1 = trim(fltlist).split(",");
//			for (var i=0;i<tAR1.length;i++) {
//
//				if (i!=0) { obj=f.aCH(obj,f.cTR("","","","",f.cTD("colspan:3;height:4;bgcolor:#FFFFFF"))); }
//
//				oTR = f.cTR("align:center", "", "", "",f.cTD("width:10px","","&nbsp;",""));
//
//				oTR = f.aCH(oTR, f.cTD("width:20", "", "<input type='"+sTYPE+"' name='"+sID+"' id='"+sID+i+"' value='"+trim(tAR1[i])+"' onclick=\"var ht=new ammo.html.ibe(); ht.settktprc($('tktprc'),'"+act+"');\">"));
//
//				oTB = f.cTB();
//
//				tAR3 = trim(tAR1[i]).split(":");
//				for (var j=0;j<tAR3.length;j++) {
//					tAR2 = trim(tAR3[j]).split(" ");
//					if (j!=0) {
//						oTB=f.aCH(oTB,f.cTR("","","","",f.cTD("colspan:"+(w.length-2)+";height:1;bgcolor:#000000")));
//					}
//					oTB.appendChild( f.ptfltlist_tr(w, tAR2[0], tAR2[4], tAR2[1], tAR2[2], tAR2[3], tAR2[5], tAR2[6], tAR2[7]));
//				}
//
//				oTR=f.aCH(oTR, f.cTD("", "", "", "", f.cTA("border:0;width:100%", "", "", "", oTB)));
//				
//				if (act=="select") {
//					oTR.onmouseover=function() {snav2(this);};
//					oTR.onmouseout=function() {cnav2(this);};
//					//oTR.onclick=function() {var k = $(sID[i]); k.checked = true; };
//				}
//
//				obj=f.aCH(obj, oTR);
//				obj=f.aCH(obj,f.cTR("","","","",f.cTD("colspan:3;height:4;bgcolor:#FFFFFF")));
//				obj=f.aCH(obj,f.cTR("","","","",f.cTD("colspan:3;height:2;bgcolor:#000000")));
//			}
//		}
//		if(typeof fltlist=="string"&&fltlist==""){return 1;}
//		return 0;
//	};
//	this.ptfltlist_tr2 = function(w, fltid, fltp, sector, depart, arrive, cc, pc, pv) {
//		var oTC, oTD, oTR, sTYPE, f = new ammo.html.utilities();
//
//		oTR = f.cTR("align:center");
//		oTR = f.aCH(oTR, f.cTD("width:"+w[2], "", fltid+"<br>"+f.ptaircraft(fltp)));
//		oTR = f.aCH(oTR, f.cTD("width:"+w[3], "", 
//			f.ptairport(sector.substring(0,3))+"<br>"+f.pttime(depart)));
//		oTR = f.aCH(oTR, f.cTD("width:"+w[4], "", 
//			f.ptairport(sector.substring(3,6))+"<br>"+f.pttime(arrive)));
//		oTR = f.aCH(oTR, f.cTD("width:"+w[5]+"; valign:top", "", "", f.ptdifftm(depart, arrive)));
//		oTR = f.aCH(oTR, f.cTD("width:"+w[6]+"; valign:top", "", "", f.ptclass(cc)));
//		oTR = f.aCH(oTR, f.cTD("width:"+w[7]+"; valign:top", "", 
//			f.ptcurrency(pc)+"<br>"+f.fmtCR(pv, "0", "0.00")));
//		return oTR;
//	};
//	this.ptfltlist2 = function(obj, act, fltlist) {
//		var tAR1, tAR2, tAR3, sID, tS;
//		var oTA, oTA2, oTC, oTD, oTR, sTYPE, f=this;
//		var w = new Array ("10", "20", "100", "90", "90", "100", "60", "60"); 
//
//		if (act=="select") { sTYPE = "radio"; } else { sTYPE = "hidden"; }
//		if (obj.id == "fltlisttablel") { sID = "rFlt"; } else { sID = "dFlt"; }
//		if (typeof fltlist == "string" && fltlist != "") {
//			tAR1 = trim(fltlist).split(",");
//			for (var i=0;i<tAR1.length;i++) {
//
//				if (i!=0) { obj=f.aCH(obj,f.cTR("","","","",f.cTD("colspan:3;height:4;bgcolor:#FFFFFF"))); }
//
//				oTR = f.cTR("align:center", "", "", "",f.cTD("width:10px","","&nbsp;",""));
//
//				oTR = f.aCH(oTR, f.cTD("width:20", "", "<input type='"+sTYPE+"' name='"+sID+"' id='"+sID+i+"' value='"+trim(tAR1[i])+"' onclick=\"var ht=new ammo.html.ibe(); ht.settktprc($('tktprc'),'"+act+"');\">"));
//
//				oTB = f.cTB();
//
//				tAR3 = trim(tAR1[i]).split(":");
//				for (var j=0;j<tAR3.length;j++) {
//					tAR2 = trim(tAR3[j]).split(" ");
//					if (j!=0) {
//						oTB=f.aCH(oTB,f.cTR("","","","",f.cTD("colspan:"+(w.length-2)+";height:1;bgcolor:#000000")));
//					}
//					oTB.appendChild( f.ptfltlist_tr2(w, tAR2[0], tAR2[4], tAR2[1], tAR2[2], tAR2[3], tAR2[5], tAR2[6], tAR2[7]));
//				}
//
//				oTR=f.aCH(oTR, f.cTD("", "", "", "", f.cTA("border:0;width:100%", "", "", "", oTB)));
//				
//				if (act=="select") {
//					oTR.onmouseover=function() {snav2(this);};
//					oTR.onmouseout=function() {cnav2(this);};
//					//oTR.onclick=function() {var k = $(sID[i]); k.checked = true; };
//				}
//
//				obj=f.aCH(obj, oTR);
//				obj=f.aCH(obj,f.cTR("","","","",f.cTD("colspan:3;height:4;bgcolor:#FFFFFF")));
//				obj=f.aCH(obj,f.cTR("","","","",f.cTD("colspan:3;height:2;bgcolor:#000000")));
//			}
//		}
//		if(typeof fltlist=="string"&&fltlist==""){return 1;}
//		return 0;
//	};
	this.ptfltlist3 = function(obj, act, fltlist) {
//alert(obj.innerHTML);
		var tAR1, tAR2, tAR3, sID, tS, tPC, tPV = 0;
		var oTA, oTA2, oTC, oTD, oTR, sTYPE, f=this;
		var u = new ammo.html.utilities;
		//var w = new Array ("10", "20", "100", "90", "90", "100", "60", "60"); 
		//COMMENCE: 20070809. remove price column. update w[3]:90->120, w[4]:90->120, w[7]:60->0
		var w = new Array ("10", "20", "100", "120", "120", "100", "60", "0"); 
		if (act=="select") { sTYPE = "radio"; } else { sTYPE = "hidden"; }
		if (obj.id == "fltlisttablel") { sID = "rFlt"; } else { sID = "dFlt"; }
		if (typeof fltlist == "string" && fltlist != "") {
			tAR1 = trim(fltlist).split(",");
			for (var i=0;i<tAR1.length;i++) {

				if (i!=0) { obj=f.aCH(obj,f.cTR("","","","",f.cTD("colspan:4;height:4;bgcolor:#FFFFFF"))); }

				oTR = f.cTR("align:center; id:o"+sID+i, "", "", "",f.cTD("width:10px","","&nbsp;",""));

				oTR = f.aCH(oTR, f.cTD("width:20", "", "<input type='"+sTYPE+"' name='"+sID+"' id='"+sID+i+"' value='"+trim(tAR1[i])+"'>"));

				oTB = f.cTB();

				tAR3 = trim(tAR1[i]).split(":");
				tPV = 0;
				for (var j=0;j<tAR3.length;j++) {
					tAR2 = trim(tAR3[j]).split(" ");
					if (j!=0) {
						oTB=f.aCH(oTB,f.cTR("","","","",f.cTD("colspan:"+(w.length-3)+";height:1;bgcolor:#000000")));
					}
					oTB.appendChild( f.ptfltlist_tr(w, tAR2[0], tAR2[4], tAR2[1], tAR2[2], tAR2[3], tAR2[5], tAR2[6], tAR2[7]));
					tPC = tAR2[6] == "*" ? tPC : tAR2[6];
					tPV += parseInt((tAR2[7] == "*" ? '0' : tAR2[7]), 10);
				}

				oTR=f.aCH(oTR, f.cTD("", "", "", "", f.cTA("border:0;width:100%", "", "", "", oTB)));
				//oTR=f.aCH(oTR, f.cTD("width:"+w[7], "", (obj.id == "fltlisttablel" ? " " : u.ptcurrency(tPC)+"<br>"+ u.fmtCR(tPV, "100", "0.00") ) ));
				
				if (act=="select") {
					oTR.onmouseover=function() {snav2(this);};
					oTR.onmouseout=function() {cnav2(this);};
					//oTR.onclick=function() {var k = $(sID[0]); k.checked = true; };
					//COMMENCE: 20070809. remove price column. change [act] to ["none"] in function settktprc();
					      if(i== 0){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+ "0").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i== 1){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+ "1").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i== 2){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+ "2").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i== 3){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+ "3").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i== 4){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+ "4").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i== 5){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+ "5").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i== 6){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+ "6").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i== 7){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+ "7").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i== 8){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+ "8").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i== 9){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+ "9").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==10){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"10").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==11){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"11").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==12){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"12").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==13){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"13").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==14){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"14").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==15){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"15").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==16){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"16").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==17){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"17").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==18){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"18").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==19){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"19").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==20){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"20").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==21){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"21").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==22){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"22").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==23){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"23").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==24){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"24").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==25){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"25").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==26){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"26").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==27){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"27").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==28){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"28").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==29){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"29").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==30){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"30").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==31){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"31").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==32){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"32").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==33){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"33").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==34){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"34").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==35){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"35").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==36){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"36").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==37){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"37").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==38){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"38").checked=true;ht.settktprc3($('tktprc'),act);};
					}else if(i==39){var ht=new ammo.html.ibe();oTR.onclick=function() {$(sID+"39").checked=true;ht.settktprc3($('tktprc'),act);};
					}
				}

				obj=f.aCH(obj, oTR);
				obj=f.aCH(obj,f.cTR("","","","",f.cTD("colspan:4;height:4;bgcolor:#FFFFFF")));
				obj=f.aCH(obj,f.cTR("","","","",f.cTD("colspan:4;height:2;bgcolor:#000000")));
			}
		}
//alert(obj.innerHTML);
		if(typeof fltlist=="string"&&fltlist==""){return 1;}
		return 0;
	};
};
ammo.html.ibe.prototype = new ammo.html();


