
function fillarea(){ 
 // this function is used to fill the category list on load
addOption(document.booknow.area, "HC", "Hyderabad - Central", "");
addOption(document.booknow.area, "HE", "Hyderabad - East", "");
addOption(document.booknow.area, "HW", "Hyderabad - West", "");
addOption(document.booknow.area, "HN", "Hyderabad - North", "");
addOption(document.booknow.area, "HS", "Hyderabad - South", "");
}

function SelectNp(){
// ON selection of category this function will work
removeAllOptions(document.booknow.property);
if(document.booknow.area.value == 'HC'){
addOption(document.booknow.property,"", "Select Property");
addOption(document.booknow.property,"IS", "Ivory Sands, Begumpet");
}
if(document.booknow.area.value == 'HE'){
addOption(document.booknow.property,"", "Select Property");
//addOption(document.booknow.property,"LER", "Luxury Executive Room");
}
if(document.booknow.area.value == 'HW'){
addOption(document.booknow.property,"", "Select Property");
//addOption(document.booknow.property,"RER", "Executive A/c Room");
}
if(document.booknow.area.value == 'HN'){
addOption(document.booknow.property,"", "Select Property");
//addOption(document.booknow.property,"RER", "Executive A/c Room");
}
if(document.booknow.area.value == 'HS'){
addOption(document.booknow.property,"", "Select Property");
//addOption(document.booknow.property,"RER", "Executive A/c Room");
}
}

function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		//selectbox.options.remove(i);
		selectbox.remove(i);
	}
}


function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}

