
function loadProp(src){

if(src.value == "other"){

document.form_n.action = "formdelhi.htm";

document.form_n.submit();

document.form_n.action = "formnanital.htm";

document.form_n.submit();

}

}

function newCal(src){

calWin = window.open("calb6ce.html?src="+src,"Calendar","location=500 400,status=no,toolbar=no,header=no,width=300,height=150,screenX=150,screenY=550");

}



function set_dates(){

var start_date = "";

var end_date = "";



var sel_arr_mon = document.form1.start_mon.options[document.form1.start_mon.options.selectedIndex].value;

var sel_arr_date = document.form1.start_date.options[document.form1.start_date.options.selectedIndex].value;

var sel_dep_mon = document.form1.end_mon.options[document.form1.end_mon.options.selectedIndex].value;

var sel_dep_date = document.form1.end_date.options[document.form1.end_date.options.selectedIndex].value;



var sel_st_mt = sel_arr_mon.substring(0, sel_arr_mon.indexOf("_"));

var sel_st_yr = sel_arr_mon.substring(sel_arr_mon.indexOf("_")+1);

if(parseInt(sel_st_mt) < 10 ){

sel_st_mt = "0"+sel_st_mt;

}



var sel_ed_mt = sel_dep_mon.substring(0, sel_dep_mon.indexOf("_"));

var sel_ed_yr = sel_dep_mon.substring(sel_dep_mon.indexOf("_")+1);

if(parseInt(sel_ed_mt) < 10 ){

sel_ed_mt = "0"+sel_ed_mt;

}

document.form1.arr_date.value = sel_arr_date+sel_st_mt+sel_st_yr;

document.form1.dep_date.value = sel_dep_date+sel_ed_mt+sel_ed_yr;

document.form1.submit();

}



var disp_mon = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");

var curr_date = new Date();

var curr_mon = curr_date.getMonth();

var curr_year = curr_date.getFullYear();



function MM_openBrWindow(theURL,winName,features) { //v2.0

window.open(theURL,winName,features);

}

