// JavaScript Document

function removetext(field, text){
	//alert("test");
	if(field.value == text){
		field.value = "";
	}
}

function displaydiv(divname) {
	//alert("entered");
	document.getElementById(divname).style.display = "block";
}
function removediv(divname) {
	document.getElementById(divname).style.display = "none";
}


        function ChangeCalendarView(sender, args) {

            // sender._switchMode("years", true);         \\ this works to set the mode to years   - can do this as a calendarExtender attribute with   DefaultView="Years"
            // sender.set_selectedDate("1/1/2011");      \\ this works, but fills the date box when someone clicks the calendar
            
            var d1 = new Date("September 2, 2011 12:00:00");  
            // date needs to be a date object like above 
            sender.set_todaysDate(d1);
            // sets the todays date. this can be hidden in the stylesheet to make the calendar appear to start at a custom month

            sender._height = 190;  
            // this is needed if you screw with the dimensions of the calendar for when the mode is changed
        }

