function redirect_user_states()
{
    var URL = document.redirect_drop_down_states.page_to_go_to.options[document.redirect_drop_down_states.page_to_go_to.selectedIndex].value;
    location.href = URL;
}


function PopUpNewSearch()
{
infoWin=window.open('/Our_Work/Our_Projects/search_projects.cfm',"win",'toolbar=0,location=1,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=455,height=550');
self.name = "mainWin";
infoWin.moveTo(screen.width-460,1);
infoWin.focus();
}

function openWindow(url, winName, width, height, center, winType) {
   var xposition = 50; // Postions the window vertically in px
   var yposition = 50; // Postions the window horizontally in px
   var location, menubar, resizable, scrollbars, status, titlebar,curPopupWindow;
   if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
       xposition = (screen.width - 800) / 2;
       yposition = (screen.height - 600) / 2;
   } 
   
   if (winType == "1") {           // winType 1 is for regular popup windows
      location=1;
      menubar=1;
      resizable=1;
      scrollbars=1;
      status=1;
      titlebar=1;
   } else if (winType == "2") {   // winType 2 is for Quick Tour like popups
      location=0;
      menubar=0;
      resizable=0;
      scrollbars=0;
      status=0;
      titlebar=1;
   } else if (winType == "3") {   // winType 3 is for footer like popups
      location=0;
      menubar=0;
      resizable=1;
      scrollbars=1;
      status=0;
      titlebar=1;
   } else {                       // if no arg is passed for winType
      location=1;
      menubar=1;
      resizable=1;
      scrollbars=1;
      status=1;
      titlebar=1;
   } 
   
   // Features to specify for a new window
   args = "width=" + width + ","
   + "height=" + height + ","
   + "location=" + location + ","
   + "menubar=" + menubar + ","
   + "resizable=" + resizable + ","
   + "scrollbars=" + scrollbars + ","
   + "status=" + status + ","
   + "titlebar=" + titlebar + ","
   + "toolbar=0,"
   + "hotkeys=0,"
   + "screenx=" + xposition + ","  //NN Only
   + "screeny=" + yposition + ","  //NN Only
   + "left=" + xposition + ","     //IE Only
   + "top=" + yposition;           //IE Only
   
 // Performs the opening of the window (and closing of a window already opened for that page).
 if (curPopupWindow != null) {
  curPopupWindow.close();
 }
 curPopupWindow = window.open(url, winName, args, false);
 curPopupWindow.focus();
}

function openPopup(myurl, width, height)
{
var newWindow;
var props = 'scrollBars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,width=' + width + ',height=' + height;
newWindow = window.open(myurl, "View", props);
}

function SelectCurrentDate(cal_year,cal_month)

{

var dt = new Date() ;
var dt_year = dt.getFullYear()
var dt_month = dt.getMonth() + 1 ;
var dt_day = dt.getDate() ;
var cal_year = cal_year
var cal_month = cal_month

if (dt_month == cal_month && dt_year==cal_year)
 {
  document.getElementById("d"+dt_day).style.backgroundColor ="yellow";
 }

}