/* Global Forms */

$(document).ready(function() {

    // --- Clear background and border for Internet Explorer
	$("input[@type='checkbox']").each(function() {
	    $(this).css("background", "none");
	    $(this).css("border", "none");
    });
    
    $("input[@type='radio']").each(function() {
	    $(this).css("background", "none");
	    $(this).css("border", "none");
    });

    // --- Clear form inputs
    $.fn.clear = function() {
	    return this.focus(function() {
		    if( this.value == this.defaultValue ) {
			    this.value = "";
		    }
	    }).blur(function() {
		    if( !this.value.length ) {
			    this.value = this.defaultValue;
		    }
	    });
    };

    var inputArray = new Array();
	inputArray = ["ctl00_ctl00_rcr_rcr_ddlEventFromDate", "ctl00_ctl00_rcr_rcr_ddlEventToDate", "ctl00_ctl00_bcr_bcr_txtStartDate", "ctl00_ctl00_bcr_bcr_txtEndDate", "ctl00_ctl00_bcr_bcr_txtAltitude", "ctl00_ctl00_bcr_bcr_txtPilotName", "ctl00_ctl00_bcr_bcr_txtPilotAddress", "ctl00_ctl00_bcr_bcr_txtPilotPhone"];
	
	for (var i = 0; i < inputArray.length; i++) {
	    $("#" + inputArray[i]).clear();
	}
	
	 

});


