Checks screen.availHeight : if <= 750 then popup height = availHeight. Otherwise popup height = 750 (if width is greater than 1024 then limit width to 1010 pixels.
AvailableHeight =