Added a check for the right edge of the window.  The datepicker will now position itself to the right side of the textbox