function openNewWindow(fileName,windowName,theWidth,theHeight) { if (windowName == "newMessageWindow") { windowName = new String(Math.round(Math.random() * 100000)); } window.open(fileName,windowName,"toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width="+theWidth+",height="+theHeight) } function CreateWindow(fileName,windowName,theWidth,theHeight) { windowName = new String(Math.round(Math.random() * 100000)); msgWindow=window.open(fileName,windowName,"toolbar=no,width="+theWidth+",height="+theHeight+",directories=no,status=no,scrollbars=yes,resize=yes,menubar=no") } function CreateToolbarWindow(fileName,theWidth,theHeight) { windowName = new String(Math.round(Math.random() * 100000)); msgWindow=window.open(fileName,windowName,"toolbar=yes,width="+theWidth+",height="+theHeight+",directories=no,status=no,scrollbars=yes,resize=yes,menubar=yes") } function deleteRecord(sType, nID, sReturnURLDelete) { if (window.confirm("Are you sure you want to delete this record?") == true) { window.location = "/Admin/DeleteRecord.asp?Type=" + sType + "&ID=" + nID + "&ReturnURLDelete=" + escape(sReturnURLDelete); } } function AddProtocol(nProtocolID, sReturnURL) { if (window.confirm("Are you sure you want add this protocol to My Protocols?") == true) { window.location = "/Members/MyProtocols_AddProtocol.asp?ProtocolID=" + nProtocolID + "&ReturnURL=" + escape(sReturnURL); } } function AddFavorite(sPageTitle, sReturnURL) { if (window.confirm("Are you sure you want add this page to My Favorites?") == true) { window.location = "/Members/MyFavorites_AddURL.asp?PageTitle=" + escape(sPageTitle) + "&ReturnURL=" + escape(sReturnURL); } } function AddFavorite_ExternalURL(sPageTitle, sFavoriteURL, sReturnURL) { if (window.confirm("Are you sure you want add this page to My Favorites?") == true) { window.location = "/Members/MyFavorites_AddURL_External.asp?PageTitle=" + escape(sPageTitle) + "&FavoriteURL=" + escape(sFavoriteURL) + "&ReturnURL=" + escape(sReturnURL); } } function RemoveProtocol(nMyProtocolID, sReturnURL) { if (window.confirm("Are you sure you want to remove this link from My Protocols?") == true) { window.location = "/Members/MyProtocols_RemoveProtocol.asp?MyProtocolID=" + nMyProtocolID + "&ReturnURL=" + escape(sReturnURL); } } function RemoveFavorite(nMyFavoriteID, sReturnURL) { if (window.confirm("Are you sure you want to remove this link from My Favorites?") == true) { window.location = "/Members/MyFavorites_RemoveURL.asp?MyFavoriteID=" + nMyFavoriteID + "&ReturnURL=" + escape(sReturnURL); } } function deleteRecord_PD(sType, nID, sReturnURLDelete) { if (window.confirm("Are you sure you want to delete this record?") == true) { window.location = "/Members/ProtocolDevelopmentBeta/DeleteRecord.asp?Type=" + sType + "&ID=" + nID + "&ReturnURLDelete=" + escape(sReturnURLDelete); } } function copyRecord_PD(sType, nID, sReturnURLCopy) { if (window.confirm("Are you sure you want to copy this record?") == true) { window.location = "/Members/ProtocolDevelopmentBeta/CopyRecord.asp?Type=" + sType + "&ID=" + nID + "&ReturnURLCopy=" + escape(sReturnURLCopy); } }