function GetCalendar(c){ var winLeft = (screen.width / 2); var winTop = (screen.height / 2) - 300; var windowFeatures = "width=325,height=270,scrollbars=no,dependent,resizable"; windowFeatures = windowFeatures + ",left=" + winLeft + ",top=" + winTop; winGrFrm = window.open("https://arbstats.psea-files.org/contols/Calendar.aspx?control=" + c + "", "CalendarWindow", windowFeatures); }