function showDiv(h) {
    for(i = 1; i < 4; i++) {
        if(i == h) { 
            document.getElementById('wn_contenttab'+i).style.display = 'block';
            document.getElementById('wn_searchtab'+i).className = 'wn_activetab';
        }
        else { 
            document.getElementById('wn_contenttab'+i).style.display = 'none';
            document.getElementById('wn_searchtab'+i).className = '';
        }
    }
}

/// <summary>
/// Launches the DatePicker page in a popup window, 
/// passing a JavaScript reference to the field that we want to set.
/// </summary>
/// <param name="strField">String. The JavaScript reference to the field that we want to set, in the format: FormName.FieldName
/// Please note that JavaScript is case-sensitive.</param>
function calendarPicker(strField)
{
	window.open('DatePicker.aspx?field=' + strField,'calendarPopup','width=250,height=190,resizable=yes');
}