<!-- Begin
subcat = new Array(
new Array(
new Array("--Select Sub Category--", ""),
//new Array("Bank Attached", "Bank Attached"),
new Array("Duplex House", "Duplex House"),
//new Array("Builder Floor", "Builder Floor"),

new Array("Farm House", "Farm House"),
new Array("Independent House/Villa", "Independent House/Villa"),
new Array("Lease", "Lease"),
new Array("Residential Apartment", "Residential Apartment"),
new Array("Residential Land", "Residential Land"),
new Array("Serviced Apartment", "Serviced Apartment"),

new Array("Other", "Other")
),
new Array(
new Array("--Select Sub Category--", ""),
new Array("Agricultural Land/Farm Land", "Agricultural Land/Farm Land"),
new Array("Bank Attached", "Bank Attached"),
new Array("Business center", "Business center"),
new Array("Cold Storage", "Cold Storage"),
new Array("Commercial Shop", "Commercial Shop"),
new Array("Commercial-Showroom", "Commercial-Showroom"),
new Array("Commercial Land/Inst. Land", "Commercial Land/Inst. Land"),
new Array("Factory", "Factory"),
new Array("Farm Land", "Farm Land"),
new Array("Hotel/Guest House", "Hotel/Guest House"),
new Array("Industrial Lands/Plots", "Industrial Lands/Plots"),
new Array("Manufacturing", "Manufacturing"),
new Array("Office space in Business Park", "Office space in Business Park"),
new Array("Office space in IT Park", "Office space in IT Park"),
new Array("Space in Retail Mall", "Space in Retail Mall"),
new Array("Time Share", "Time Share"),
new Array("Ware House", "Ware House"),
new Array("Other", "Other")
),
null,
new Array(
new Array("", "")
)
);

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]; 


if (itemArray[i][1]==defaultItem)
{
	
	selectCtrl.options[j].selected = true;
}
}
j++;
}
// select first item (prompt) for sub list
//selectCtrl.options[0].selected = true;
   }
}
//  End -->
