<!--
function FP_getObjectByID(id,o) {var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el;}
f=o.forms; if(f) for(n=0; n<f.length; n++){els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el;}}return null;}
function FP_changeProp(){var args=arguments,d=document,i,j,id=args[0],o=FP_getObjectByID(id),s,ao,v,x;
d.$cpe=new Array(); if(o) for(i=2; i<args.length; i+=2) { v=args[i+1]; s="o"; 
ao=args[i].split("."); for(j=0; j<ao.length; j++) { s+="."+ao[j]; if(null==eval(s)){ 
s=null; break; }} x=new Object; x.o=o; x.n=new Array(); x.v=new Array();
x.n[x.n.length]=s; eval("x.v[x.v.length]="+s); d.$cpe[d.$cpe.length]=x;
if(s) eval(s+"=v");}}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

room = new Array(
<!--Awana-->
new Array(
new Array("Standard Hill / Pool View"),
new Array("Superior Ocean View"),
new Array("Deluxe Ocean View"),
new Array("Porto Malai Suite")
),
<!--Berjaya-->
new Array(
new Array("Superior Chalet"),
new Array("Deluxe Chalet"),
new Array("Premier Suite On Land"),
new Array("Junior Suite"),
new Array("Premier Suite"),
new Array("Executive Suite"),
new Array("Presidential Suite")
),
<!--Casa Del Mar-->
new Array(
new Array("Deluxe"),
new Array("Junior Suite"),
new Array("Deluxe Suite")
),
<!--City Bayview-->
null,
<!--Four Seasons-->
new Array(
new Array("Melaleuca Pavilion"),
new Array("One-Bedroom Beach Villa"),
new Array("Two-Bedroom Villa"),
new Array("Presidential Suite")
),
<!--Kg Tok Senik-->
null,
<!--LHV-->
new Array(
new Array("Run of the House"),
new Array("Studio Suite"),
new Array("Prima Suite")
),
<!--Langkawi Lagoon-->
null,
<!--LVR-->
new Array(
new Array("Standard"),
new Array("Superior"),
new Array("Deluxe Sea / Hill View"),
new Array("Deluxe Beach Front")
),
<!--Mutiara-->
new Array(
new Array("Run of the House"),
new Array("Family Cabana"),
new Array("Run of the House: Seaview"),
new Array("Family Cabana: Seaview")
),
<!--Pelangi-->
new Array(
new Array("Superior"),
new Array("Deluxe Lake / Pool View"),
new Array("Deluxe Sea Facing")
),
<!--Sheraton Langkawi-->
new Array(
new Array("Superior"),
new Array("Garden View"),
new Array("Sea Facing"),
new Array("Seafront Jacuzzi"),
new Array("Beachfront"),
new Array("Family Room"),
new Array("Executive Suite")
),
<!--Sheraton Perdana-->
new Array(
new Array("Superior"),
new Array("Garden View"),
new Array("Sea View"),
new Array("Sea Facing"),
new Array("Executive Suite"),
new Array("Premier Suite"),
new Array("Royal Suite"),
new Array("Jentayu Villa")
),
<!--Tanjung Rhu-->
new Array(
new Array("Damai"),
new Array("Cahaya"),
new Array("Bayu Suria"),
new Array("Bayu Senja"),
new Array("Anjung")
),
<!--Tanjung Sanctuary-->
new Array(
new Array("Seaview / Hilltop"),
new Array("Beachfront"),
new Array("Premier Beachfront")
),
<!--The Andaman-->
new Array(
new Array("Deluxe"),
new Array("Seaview / Lanai")
),
<!--The Datai-->
new Array(
new Array("Deluxe"),
new Array("Villa"),
new Array("Pool Villa")
));

function fillSelectFromArray(selectCtrl, itemArray, goodPrompt, badPrompt, defaultItem) {
var i, j;
var prompt;
// empty existing items
for (i = selectCtrl.options.length; i >= 0; i--) {
selectCtrl.options[i] = null; 
}
prompt = (itemArray != null) ? goodPrompt : badPrompt;
if (prompt == null) {
j = 0;
}
else {
selectCtrl.options[0] = new Option(prompt);
j = 1;
}
if (itemArray != null) {
// add new items
for (i = 0; i < itemArray.length; i++) {
selectCtrl.options[j] = new Option(itemArray[i][0]);
if (itemArray[i][1] != null) {
selectCtrl.options[j].value = itemArray[i][1]; 
}
j++;
}
// select first item (prompt) for sub list
selectCtrl.options[0].selected = true;
   }
}
function changer(id1, id2, id3)
{
for(var i=1;i<9;i++)
{
document.getElementById('cell_'+i).style.visibility='visible';
document.getElementById('r_b_part_'+i).style.visibility='hidden';
document.getElementById('l_b_part_'+i).style.visibility='hidden';
}
document.getElementById(id1).style.visibility='hidden';
document.getElementById(id3).style.visibility='visible';
document.getElementById(id2).style.visibility='visible';
}
function checkbox_checker(value)
{var state=0;
if (document.getElementById('set'+value).checked)
{state=1;}
else
{state=0;}
if(state==1)
{
	for (var counter = 1; counter < 11; counter++)
	{
		if(counter!=value)
		{
			if (document.getElementById('set'+counter))
			{
				if (document.getElementById('set'+counter).checked==true)
				{
					document.getElementById('set'+counter).checked=false;
				}
			}
		}
	}
}
if(state==0)
{
	document.getElementById('set'+value).checked=true;
}
}
//-->