//-------------------- proj Default Func --------------------------------
function projDefaultFunc (selectobj) {
if (selectobj.selectedIndex == 0) {
onLoadProj();
onLoadBhk();
onLoadSq();
parent.homeComp.projClr_selec();
parent.homeComp.bhkClr_selec();
parent.homeComp.sqClr_selec();
}
if (selectobj.selectedIndex == 1) {
wagbilBhk();
wagbilSq();
parent.homeComp.proj1_selec();
parent.homeComp.bhkClr_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
else if (selectobj.selectedIndex == 2) {
kavesarBhk();
kavesarSq();
parent.homeComp.proj2_selec();
parent.homeComp.bhkClr_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
}
//-------------------- bhk Default Func ------------------------------------------------------------------------------------------
function bhkDefaultFunc (selectobj) {
//------ index 0 --------------------
if (selectobj.selectedIndex == 0) {
onLoadSq();
parent.homeComp.sqClr_selec();
parent.homeComp.bhkClr_selec();
}
//------ index 1 --------------------
if (selectobj.selectedIndex == 1) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Waghbil, GB Road");
for (var i=1; i<=1; i++) {
sqId.options[i] = new Option(sqArr[i]);
}
parent.homeComp.rk1_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 2 --------------------
else if (selectobj.selectedIndex == 2) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Waghbil, GB Road");
for (var i=1; i<=1; i++) {
sqId.options[i] = new Option(sqArr[i]);
}
parent.homeComp.bhk1_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 3 --------------------
else if (selectobj.selectedIndex == 3) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Waghbil, GB Road");
for (var i=1; i<=2; i++) {
sqId.options[i] = new Option(sqArr[i]);
}
parent.homeComp.bhk2_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 4 --------------------
else if (selectobj.selectedIndex == 4) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Waghbil, GB Road");
for (var i=2, t=1; i<=3; i++, t++) {
sqId.options[t] = new Option(sqArr[i]);
}
parent.homeComp.bhk3_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 5 --------------------
else if (selectobj.selectedIndex == 5) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Waghbil, GB Road");
for (var i=4, t=1; i<=4; i++, t++) {
sqId.options[t] = new Option(sqArr[i]);
}
parent.homeComp.bhk4_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 6 --------------------
if (selectobj.selectedIndex == 6) {
//---------- Changes 3rd Drop Down ------------------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Kavesar, GB Road");
for (var i=5, t=1; i<=6; i++, t++) {
sqId.options[t] = new Option(sqArr[i]);
}
parent.homeComp.bhk5_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 7 --------------------
else if (selectobj.selectedIndex == 7) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Kavesar, GB Road");
for (var i=6, t=1; i<=7; i++, t++) {
sqId.options[t] = new Option(sqArr[i]);
}
parent.homeComp.bhk6_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 8 --------------------
else if (selectobj.selectedIndex == 8) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Kavesar, GB Road");
for (var i=7, t=1; i<=7; i++, t++) {
sqId.options[t] = new Option(sqArr[i]);
}
parent.homeComp.bhk7_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
}
//---------------------------
//-------------------- sq Default Func --------------------------------
function sqDefaultFunc (selectobj) {
if (selectobj.selectedIndex == 0) {
parent.homeComp.sqClr_selec();
}
if (selectobj.selectedIndex == 1) {
parent.homeComp.sq1_selec();
window.document.getElementById("note1").innerHTML = "";
}
else if (selectobj.selectedIndex == 2) {
parent.homeComp.sq2_selec();
window.document.getElementById("note1").innerHTML = "";
}
else if (selectobj.selectedIndex == 3) {
parent.homeComp.sq3_selec();
window.document.getElementById("note1").innerHTML = "";
}
else if (selectobj.selectedIndex == 4) {
parent.homeComp.sq4_selec();
window.document.getElementById("note1").innerHTML = "";
}
else if (selectobj.selectedIndex == 5) {
parent.homeComp.sq5_selec();
window.document.getElementById("note1").innerHTML = "";
}
else if (selectobj.selectedIndex == 6) {
parent.homeComp.sq6_selec();
window.document.getElementById("note1").innerHTML = "";
}
else if (selectobj.selectedIndex == 7) {
parent.homeComp.sq7_selec();
window.document.getElementById("note1").innerHTML = "";
}
}
//---------------------------
//------------------------------------------------------------------ WAGBIL FUNCTIONS ----------------------------------------------------------------------
//-------------------------------- SELECTING WAGBIL BHK ---------------------------------------------------
function wagbilBhkFunc(selectobj) {
if (selectobj.selectedIndex == 0) {
wagbilSq();
parent.homeComp.bhkClr_selec();
parent.homeComp.sqClr_selec();
}
//------ index 1 --------------------
if (selectobj.selectedIndex == 1) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Waghbil, GB Road");
for (var i=1; i<=1; i++) {
sqId.options[i] = new Option(sqArr[i]);
}
parent.homeComp.rk1_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 2 --------------------
else if (selectobj.selectedIndex == 2) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Waghbil, GB Road");
for (var i=1; i<=1; i++) {
sqId.options[i] = new Option(sqArr[i]);
}
parent.homeComp.bhk1_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 3 --------------------
else if (selectobj.selectedIndex == 3) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Waghbil, GB Road");
for (var i=1; i<=2; i++) {
sqId.options[i] = new Option(sqArr[i]);
}
parent.homeComp.bhk2_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 4 --------------------
else if (selectobj.selectedIndex == 4) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Waghbil, GB Road");
for (var i=2, t=1; i<=3; i++, t++) {
sqId.options[t] = new Option(sqArr[i]);
}
parent.homeComp.bhk3_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 5 --------------------
else if (selectobj.selectedIndex == 5) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Waghbil, GB Road");
for (var i=4, t=1; i<=4; i++, t++) {
sqId.options[t] = new Option(sqArr[i]);
}
parent.homeComp.bhk4_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
}
//------ index 1
function wagbilStudioFunc(selectobj) {
if (selectobj.selectedIndex == 0) {
parent.homeComp.sqClr_selec();
}
else if (selectobj.selectedIndex == 1) {
parent.homeComp.sq1_selec();
}
}
//------ index 2
function wagbilBhk1Func(selectobj) {
if (selectobj.selectedIndex == 0) {
parent.homeComp.sqClr_selec();
}
else if (selectobj.selectedIndex == 1) {
parent.homeComp.sq1_selec();
}
}
//------ index 3
function wagbilBhk2Func(selectobj) {
if (selectobj.selectedIndex == 0) {
parent.homeComp.sqClr_selec();
}
else if (selectobj.selectedIndex == 1) {
parent.homeComp.sq1_selec();
}
else if (selectobj.selectedIndex == 2) {
parent.homeComp.sq2_selec();
}
}
//------ index 4
function wagbilBhk3Func(selectobj) {
if (selectobj.selectedIndex == 0) {
parent.homeComp.sqClr_selec();
}
else if (selectobj.selectedIndex == 1) {
parent.homeComp.sq2_selec();
}
else if (selectobj.selectedIndex == 2) {
parent.homeComp.sq3_selec();
}
}
//------ index 5
function wagbilBhk4Func(selectobj) {
if (selectobj.selectedIndex == 0) {
parent.homeComp.sqClr_selec();
}
else if (selectobj.selectedIndex == 1) {
parent.homeComp.sq4_selec();
}
}
//------------------------------- SELECTING WAGBIL SQ --------------------------------------------------------
function wagbilSqFunc (selectobj) {
if (selectobj.selectedIndex == 0) {
parent.homeComp.sqClr_selec();
}
if (selectobj.selectedIndex == 1) {
parent.homeComp.sq1_selec();
window.document.getElementById("note1").innerHTML = "";
}
else if (selectobj.selectedIndex == 2) {
parent.homeComp.sq2_selec();
window.document.getElementById("note1").innerHTML = "";
}
else if (selectobj.selectedIndex == 3) {
parent.homeComp.sq3_selec();
window.document.getElementById("note1").innerHTML = "";
}
else if (selectobj.selectedIndex == 4) {
parent.homeComp.sq4_selec();
window.document.getElementById("note1").innerHTML = "";
}
}
//----------------------------------------------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------ KAVESAR FUNCTIONS ----------------------------------------------------------------------
//-------------------------------- SELECTING KAVESAR BHK ---------------------------------------------------
function kavesarBhkFunc(selectobj) {
if (selectobj.selectedIndex == 0) {
kavesarSq();
parent.homeComp.bhkClr_selec();
parent.homeComp.sqClr_selec();
}
//------ index 1 --------------------
if (selectobj.selectedIndex == 1) {
//---------- Changes 3rd Drop Down ------------------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Kavesar, GB Road");
for (var i=5, t=1; i<=6; i++, t++) {
sqId.options[t] = new Option(sqArr[i]);
}
parent.homeComp.bhk5_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 2 --------------------
else if (selectobj.selectedIndex == 2) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Kavesar, GB Road");
for (var i=6, t=1; i<=7; i++, t++) {
sqId.options[t] = new Option(sqArr[i]);
}
parent.homeComp.bhk6_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
//------ index 3 --------------------
else if (selectobj.selectedIndex == 3) {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Kavesar, GB Road");
for (var i=7, t=1; i<=7; i++, t++) {
sqId.options[t] = new Option(sqArr[i]);
}
parent.homeComp.bhk7_selec();
parent.homeComp.sqClr_selec();
window.document.getElementById("note1").innerHTML = "";
}
}
//------ index 6
function kavesarBhk5Func(selectobj) {
if (selectobj.selectedIndex == 0) {
parent.homeComp.sqClr_selec();
}
else if (selectobj.selectedIndex == 1) {
parent.homeComp.sq5_selec();
}
else if (selectobj.selectedIndex == 2) {
parent.homeComp.sq6_selec();
}
}
//------ index 7
function kavesarBhk6Func(selectobj) {
if (selectobj.selectedIndex == 0) {
parent.homeComp.sqClr_selec();
}
else if (selectobj.selectedIndex == 1) {
parent.homeComp.sq6_selec();
}
else if (selectobj.selectedIndex == 2) {
parent.homeComp.sq7_selec();
}
}
//------ index 8
function kavesarBhk7Func(selectobj) {
if (selectobj.selectedIndex == 0) {
parent.homeComp.sqClr_selec();
}
else if (selectobj.selectedIndex == 1) {
parent.homeComp.sq7_selec();
}
}
//------------------------------- SELECTING KAVESAR SQ --------------------------------------------------------
function kavesarSqFunc (selectobj) {
if (selectobj.selectedIndex == 0) {
parent.homeComp.sqClr_selec();
}
if (selectobj.selectedIndex == 1) {
parent.homeComp.sq5_selec();
window.document.getElementById("note1").innerHTML = "";
}
else if (selectobj.selectedIndex == 2) {
parent.homeComp.sq6_selec();
window.document.getElementById("note1").innerHTML = "";
}
else if (selectobj.selectedIndex == 3) {
parent.homeComp.sq7_selec();
window.document.getElementById("note1").innerHTML = "";
}
}
//--------------------------------------------- ARRAYS ------------------------------------------------------------------
var projArr = new Array();
projArr[0] = "Select Location";
projArr[1] = "Waghbil, GB Road";
projArr[2] = "Kavesar, GB Road";
var bhkArr = new Array()
bhkArr[0] = "Select Apartment Type";
bhkArr[1] = "Studio (1 Room Kitchen)";
bhkArr[2] = "1 Bedroom Hall Kitchen";
bhkArr[3] = "2 Bedroom Hall Kitchen";
bhkArr[4] = "3 Bedroom Hall Kitchen";
bhkArr[5] = "4 Bedroom Hall Kitchen";
bhkArr[6] = "5 Bedroom Hall Kitchen";
bhkArr[7] = "6 Bedroom Hall Kitchen";
bhkArr[8] = "7 Bedroom Hall Kitchen";
var sqArr = new Array()
sqArr[0] = "Select Space";
sqArr[1] = "400 - 800";
sqArr[2] = "800 - 1000";
sqArr[3] = "1000 - 1200";
sqArr[4] = "1200 - 1500";
sqArr[5] = "1500 - 2000";
sqArr[6] = "2000 - 3000";
sqArr[7] = "3000 - 4500";
//-------------------------------------------------------------------------------------------------------------------
function wagbilBhk() {
//---------- Changes 2nd Drop Down ---------------------
document.getElementById("sam2").innerHTML = "";
var bhkId=document.getElementById("bhkId");
bhkId.options[0] = new Option("Select in Waghbil, GB Road");
for (var i=1; i<=5; i++) {
bhkId.options[i] = new Option(bhkArr[i]);
}
}
function wagbilSq() {
//---------- Changes 3rd Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Waghbil, GB Road");
for (var i=1; i<=4; i++) {
sqId.options[i] = new Option(sqArr[i]);
}
}
function kavesarBhk() {
//---------- Changes 2nd Drop Down --------------------------
document.getElementById("sam2").innerHTML = "";
var bhkId=document.getElementById("bhkId");
bhkId.options[0] = new Option("Select in Kavesar, GB Road");
for (var i=6, t=1; i<=8; i++, t++) {
bhkId.options[t] = new Option(bhkArr[i]);
}
}
function kavesarSq() {
//---------- Changes 3rd Drop Down --------------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
sqId.options[0] = new Option("Select in Kavesar, GB Road");
for (var i=5, t=1; i<=7; i++, t++) {
sqId.options[t] = new Option(sqArr[i]);
}
}
//-------------------------------------------------------------------------------------------------------------------
function onLoadProj() {
//---------- Changes project Drop Down ---------------------
document.getElementById("sam1").innerHTML = "";
var projId=document.getElementById("projId");
for (var i=0; i<=projArr.length-1; i++) {
projId.options[i] = new Option(projArr[i]);
}
}
function onLoadBhk() {
//---------- Changes bhk Drop Down ---------------------
document.getElementById("sam2").innerHTML = "";
var bhkId=document.getElementById("bhkId");
for (var i=0; i<=bhkArr.length-1; i++) {
bhkId.options[i] = new Option(bhkArr[i]);
}
}
function onLoadSq() {
//---------- Changes sq Drop Down ---------------------
document.getElementById("sam3").innerHTML = "";
var sqId=document.getElementById("sqId");
for (var i=0; i<=sqArr.length-1; i++) {
sqId.options[i] = new Option(sqArr[i]);
}
}