function ShowDialog(UserID) { var vet; var fromDate = $(".t-fromDate").find(":input").val(); var toDate = $(".t-toDate").find(":input").val(); var reg = new RegExp("/", "g"); fromDate = fromDate.replace(reg, ""); toDate = toDate.replace(reg, ""); if (navigator.userAgent.indexOf("Safari") > 0) { vet = window.open("../Web_PopUp/PopCareInfo.aspx?CT=Menu&UserID=" + UserID + "&FromDate=" + fromDate +"&ToDate=" + toDate, "_blank", "height=550px,width=950px,toolbar=no,location=no,Directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes"); } else { vet = window.showModalDialog("../Web_PopUp/PopCareInfo.aspx?CT=Menu&UserID=" + UserID + "&FromDate=" + fromDate +"&ToDate=" + toDate, this, 'dialogHeight:550px; dialogWidth: 950px; edge: Raised; center: Yes; help: No; resizable: Yes; status: No;'); } }