https://pacs.rs-elisabeth.com/

提交的 URL:
https://pacs.rs-elisabeth.com/
报告完成时间:

链接 · 找到 0 个

从页面中识别出的传出链接

JavaScript 变量 · 找到 227 个

在页面窗口对象上加载的全局 JavaScript 变量是在函数外部声明的变量,可以从当前范围内的代码中的任何位置访问

名称类型
0object
onbeforetoggleobject
documentPictureInPictureobject
onscrollendobject
isULiteLoginboolean
strInterfaceTypestring
IsCompressstring
SiteNamestring
DisPlayNoticeBoardstring
NoticeBoardURLstring

控制台日志消息 · 找到 11 条

记录到 Web 控制台的消息

类型类别记录
verbosedom
URL
https://pacs.rs-elisabeth.com/
文本
[DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) %o
verbosedom
URL
https://pacs.rs-elisabeth.com/
文本
[DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) %o
verbosedom
URL
https://pacs.rs-elisabeth.com/
文本
[DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) %o
verbosedom
URL
https://pacs.rs-elisabeth.com/
文本
[DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) %o
verbosedom
URL
https://pacs.rs-elisabeth.com/
文本
[DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) %o
verbosedom
URL
https://pacs.rs-elisabeth.com/
文本
[DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) %o
verbosedom
URL
https://pacs.rs-elisabeth.com/
文本
[DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) %o
verbosedom
URL
https://pacs.rs-elisabeth.com/
文本
[DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) %o
verbosedom
URL
https://pacs.rs-elisabeth.com/
文本
[DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) %o
logother
URL
https://pacs.rs-elisabeth.com/
文本
storageAvailable ( localStorage) : true
logother
URL
https://pacs.rs-elisabeth.com/
文本
IsTouchablePC = function PointerEvent() { [native code] } | 0: false

HTML

页面的原始 HTML 正文

<!DOCTYPE html><html><head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
 
    <title>ULite</title>
    <link id="Link1" href="/safari_favicon/favicon_t.png" rel="shortcut icon" type="image/x-icon">

    <script>
        var isULiteLogin = true;
        var strInterfaceType = "G3_DB";
		var IsCompress = "0";
		var SiteName ="";
        var DisPlayNoticeBoard = "none";
        var NoticeBoardURL = "";
        var NoticeBoardKey = "0";
        var EnableDomainLogin = "F";
        var AutoDomainLogin = "F";
        var NetworkType = "Internal";
		var LoadType = "";
        var UseTimezones = "F";
        var DefaultTimezoneKey = "";
        var DefaultTimezoneDSTYN = "";
        var ReportTimezone = "";
        var ADIns = "INFINITT";
        var ADFac = "INFINITT";

        var strUseManualIcon = "F";
        var strManualLink = "/manual/manual.pdf";
        var strMainVersion = "5.0.2.1_BN7";
        var strReleaseDate = "20211215";
        var strIsEXI = "N";

        var strUseAzureLogin = "F";
        var strAzureTenantId = "";
        var strAzureClinetId = "";

        var strEcsDbType = "MAIN";

        var bIsUseWebStorage = false;
        var pc_touchmode = "PC";
		</script>

    <script>ResManager = function () { 
this.resource = {
"msgConfirmDelete":"Do you want to delete the selected items permanently?",
"titScoutLine":"Scout Line",
"msgMaskTexture":"MaskTexture",
"msg3DLoadFail":"3D loading failed.",
"msgFileLoading":"File Loading",
"titCopyright":"Copyright",
"titAccess":"Access",
"titActive":"Active",
"msgSelectAetitle":"Please select a DICOM Send Destination.",
"titReportCreator":"Report Creator",
"msgAutoQRISCFetchAndOpen":"Note: This will involve a short delay.<br/><br/>For larger studies, it will take longer for all images to arrive, <br/>So you may need to close the study and reopen later.",
"titConsultingDoctor":"Consulting Doctor",
"titSaveAnnotation":"Annotation",
"msgFailedImageHeader":"Failed to load the Image Header Information.",
"String1":"",
"titHighQuality":"High Quality",
"msgErrorGkeyAN":"Group Key and Accession Number cannot be used together.",
"titAttachment":"Attachment",
"msgPleaseWaitMFAAuthentication":"Please wait...MFA Authentication",
"titSignedBy":"Signed By",
"titLocalID":"Local ID",
"titContentsCreator":"Contents Creator",
"titPriorStudyHeaderColumns":"Prior Study Header Columns",
"msgSharingMethod":"Sharing method must be selected.",
"msgRequireHistory":"New password should not be the same as User ID or Old Password.",
"titCreateNewConnection":"Create new connection",
"msgCheckInputCondition":"Check the input condition.",
"titGender":"Gender",
"titSharpness":"Sharpness",
"titCloseAllExams":"Close All Exams",
"titSRViewer":"SR Viewer",
"msgExpireNoticePassword":"Your password will expire in {0} days. Would you like to change your password right now?",
"titExtension":"Extension",
"msgDataTexture":"DataTexture",
"msgADPasswordWillBeExpired":"This Active Directory account will expire soon. A password change is required within 0 days(s). Do you want change?",
"msgDownloading":"Downloading",
"titRADTech":"RAD / TECH",
"titRADOnly":"RAD Only",
"titAccessControl":"Access Control",
"msgInvalidSession2":"Invalid session 2.",
"msgInitMask":"InitMask",
"msgNotSupportColorImage":"Color images are not supported.",
"titFilterLevel":"Filter Level",
"msgStudyExportFailed":"Failed to export Study.",
"titSearchFilter":"Search Filter",
"msgNullParameterExist":"Empty values exist among the parameters.",
"titExamining":"Examining",
"titStudyPreviewSetting":"Study Preview Setting",
"titStudyDesc":"Study Desc.",
"titStudyDate":"Study Date",
"titStudyList":"Study List",
"titDictated":"Dictated",
"titDictator":"Dictator",
"titExpired":"Expired",
"titERRADTech":"ER & RAD / TECH",
"msgNotTransmittedData":"Data has not yet been translated.",
"msgGeneralSyntax":"General syntax error.",
"msgOutofRange":"Out of argument range.",
"titOtherPatientName":"Other Patient Name",
"msgNotSupportedStudy":"This study is not supported.",
"titConfig":"Config",
"msgNoMatchingActionSet":"Can not find matching ActionSet.",
"titSyncWorklistToolTip":"Set as same with the study list",
"titCircle":"Circle",
"msgErrorBuffer":"Error during buffering.",
"msgDetetedWetReadingVoiceFile":"Voice file for wet reading was deleted.",
"msgRequiredNumericCharacter":"Invalid password. A numeric character is required.",
"msgDisabledLoginMode":"ERROR_LOGIN_MODE_DISABLED",
"msgNotUnderstandWadoStudyList":"WADO error detected.",
"titCustom":"Custom",
"msgNotUnderstandWadoStoredInfo":"Failed to read Server Stored Info from Wado.",
"titEditSearchFilter":"Edit Search Filter",
"titErrorMessage":"Error Message",
"msgLoadingStudyLayout":"StudyLayout has not loaded yet. Please wait.",
"msgPosition":"Position",
"titJpegWithDemographic":"Jpeg with Demographic",
"titTranscribed":"Transcribed",
"titTranscriber":"Transcriber",
"msgAuthorization":"Your entered ID and Password combination is wrong. Please check and try again.",
"msgNotEditRootFilter":"Root filter cannot be  edited in Folder Lock Mode.",
"titPriority":"Priority",
"titDisplayCenterPoint":"Display center point",
"msgCapitalCharacters":"Capital",
"msgNotLocateDICOMFile":"DICOM file cannot be located.",
"titAllHide":"All Hide",
"titAllShow":"Show All",
"msgServerResourceUnavailable":"Server resource unavailable.",
"msgContactAdministrator":"Contact your system administrator.",
"titDeleteReason":"Reason for Deletion",
"titFileUpload":"File Upload",
"titToothNo":"Tooth No.",
"titSelectAuthType":"Select authentication type",
"titLowerNone":"None",
"titRotation":"Rotation",
"titEdit2DText":"Edit 2DText",
"titAnnotation":"Annotation",
"titWithinLast":"Within the last",
"msgTryAgainMinutes":"Please try again in a few minutes.",
"titDICOMSend":"DICOM Send",
"titReservedDate":"Reserved Date",
"titScoutLineStyle":"Scout Line Style",
"msgAllRightsReserved":"All Rights Reserved.",
"msgAuthenticationFailed":"Your entered ID and Password combination is wrong. Please check and try again.",
"msgNoAuthorization":"No access authorization.",
"titStorageLoc":"Storage Loc",
"titCombineMode":"Combine Mode",
"msgHttpRequestStatusCode":"http request status code",
"msgRetryAfterWhile":"Panel loading… \r\nRetry after a while.",
"titPatientLocation":"Patient Location",
"titReport_FontConfig":"Report - Font Name and Size",
"titWorklistOperation":"Worklist Operation",
"msgWarningNotThinVolume":"This series is not Thin slice data. If you want to open this series, press the button ‘View’.",
"titViewed":"Viewed",
"titViewer":"Viewer",
"msgWorklistIsNotAvailable":"Worklist is not available.",
"titUserlist":"Userlist",
"titUserName":"User Name",
"titSeriesNo":"Series No",
"titReportStatus":"Report Status",
"titUserID":"User ID",
"titFolderName":"Folder Name",
"msgADCannotConnect":"Failed to connect to the Active Directory Domain Controller.",
"titAvailableCritera":"Available Critera",
"titQCStatus":"QC Status",
"titCreator":"Creator",
"msgPopupOff":"Pop-up is blocked. Please enable Pop-ups.",
"titCriterion":"Criterion",
"titEditCategoryNType":"Edit Content Category & Type",
"titImageDisplayPerformance":"Image Display Performance",
"titSharingOptions":"Sharing options",
"titUnread":"Unread",
"msgNotSupport3DMode":"3D mode is supported only for 'CT' and 'MR' images.",
"titViewerFontSize":"Viewer Font Size",
"msgCreateURLbeforeSend":"Please create a URL before sending.",
"titDepartment":"Department(Branch of Service)",
"titCalibrationRealLength":"Input Real Length",
"titWWLMode":"WWL Mode",
"msgCheckPermissionForM6":"{0} of the selected exam(s) will be open. This account does not have permission to view {1} exam(s).",
"msgSessionTerminated":"Session terminated.",
"titWindowValuePreset":"Window Value Preset",
"titMultiframeImagecineplay":"Multi-frame image cineplay",
"titScreen_FontConfig":"Screen Font Name and Size",
"titRegisterDate":"Register Date",
"titErrorCode":"Error Code",
"msgRequiredPwdLength":"{0}~{1} length",
"titRoot_M":"Root",
"FilterPredefine_Today":"Today",
"titReport":"Report",
"titReason":"Reason",
"titRead_M":"Read",
"msgRequiredChangePassword2":"day(s) remain. Please reset your password.",
"msgSelectedExamOnly":"Selected Exam Only",
"titSeverity":"Severity",
"msgADAccountInactive":"Your Active Directory account is inactive.",
"titAddView":"Add view",
"titAddress":"Address",
"titLabelAnnotation":"LabelAnnotation",
"btnSave":"Save",
"btnPrev":"Prev",
"btnOpen":"Open",
"btnEdit":"Edit",
"msgCMoveReRegistrationCount":"Re-registration Count",
"msgFailedConv2jsonRelatedStudy":"conv2json RelatedStudy failed.",
"titSearchResult":"Search Result",
"msgEditCategoryNTypeChanges":"The Content Category & Type changes to the following",
"titOnlyFetch":"Only Fetch",
"titPatientID":"Patient ID",
"titStatus_M":"Status",
"titSaveImage":"Save Image",
"msgOutofbounds":"Out of bounds.",
"titPresetName":"Preset Name",
"titPresetList":"Preset List",
"msgServerCheck":"Server is in check.",
"msgWrittenBy":"Written by {0} on {1}",
"titSeparate":"Separate",
"titSaveStudy":"Save Study",
"titCalibrationYHeight":"Pixel Y spacing calibration (height)",
"msgEchoSuccess":"Network testing succeeded.",
"msgNotValidLicense":"Unable to locate valid license.",
"titContentUpload":"Content Upload",
"titOperator":"Operator",
"msgInUsePassword":"This password has been used previously. Please enter a new password. ",
"titStudyComments":"Study Comments",
"msgFailedDICOMHeader":"Failed to load to DICOM header.",
"titAvailableSCPList":"Available SCP list",
"titAccount":"Account",
"titScheduled":"Scheduled",
"titPatientSex":"Patient Sex",
"titPatientDOB":"Patient DOB",
"titPatientAge":"Patient Age",
"titStoragePath":"Storage Path",
"titPatientResidency":"Patient Residency",
"msgNoResult":"There are no results that match your search condition.",
"msgInvalidLicense":"Invalid License.",
"msgAlreadyCalledURL":"This URL has already been called.",
"titPolyLine":"PolyLine",
"msgDeleteOpenedContent":"You can't delete content that you selected because this study is opened.",
"titAcqDate":"Acquisition Date",
"titRightMove":"Move right.",
"msgNotAddRootFilter":"Root filter cannot be added in Folder Lock Mode.",
"titCombineSeries":"Combine Series",
"titRadiologyComment":"Radiology Comment",
"msgNormalMode":"Network reconnection to PACS server is completed. Please login again. The system will connect to PACS in normal mode. The report being writing is failed.",
"titStudyDescription":"Study Description",
"msgInvalidPasswordCharLength":"Password is too short.",
"btnNetworkTest":"Network test",
"titPreview":"Preview",
"titConvertType":"Convert type",
"titContextCalibration":"Calibration",
"titCurrentPassword":"Current Password",
"titDisplay":"Display",
"msgInvalidPassword":"Your entered ID and Password combination is wrong. Please check and try again.",
"msgUseCombination":"Please use combination of alphabet, number or these special characters ': ; / [ ] @ ! $ ^ ` ( ) \" * , ' | { } ~ .' for your password",
"msgContentDelete":"item(s) will be deleted. Are you sure you want to delete?",
"msgPutCode":"Please put the code",
"msgSharedLoginFail":"You have entered the password incorrectly or the period has expired.",
"msgInvalidLoginID":"Your entered ID and Password combination is wrong. Please check and try again.",
"titLoadConfiguration":"Load Configuration",
"titSystem":"System",
"msgLoadingExam":"Exam has not loaded yet. Please wait.",
"titStatus":"Status",
"titConclusion":"Conclusion",
"titReportPrintFontSize":"Report Print Font Size",
"titSmooth":"Average",
"titConfidential":"Confidential",
"titResponsiblePerson":"Responsible Person",
"titSexAge":"Sex / Age",
"titSeries":"Series",
"titSentTo":"Sent To",
"titSendTo":"Send To",
"titSelect":"Select",
"titSearch":"Search",
"titSaveID":"Save ID",
"titMeasureCTRatio2":"CT Ratio2",
"titMeasureCTRatio1":"CT Ratio1",
"msgErrorEOFReached":"Error: EOF reached.",
"titLabelPolyLine":"LabelPolyLine",
"titPatientWeight":"Patient Weight",
"titSentDate":"Sent Date",
"titSentType":"Sent Type",
"tit5Minutes":"5 Minutes",
"titSendType":"Send Type",
"titSendDate":"Send Date",
"titAddendumDictated":"Addendum_Dictated",
"titDestinationAETitle":"Destination AETitle",
"titActiveAccount":"Active Account",
"msgCRetrieveIsInProgress":"Retrieve is in progress.",
"msgNotRegisteredDevice":"Unregistered device.",
"titFinalERNotePhysician":"Final ER Note Physician",
"titTVolumeOpenMode":"T-Volume Open Mode",
"msgCheckRecipient":"Please check the recipient information.",
"titPerExam":"Per Exam",
"titOriginalValue":"Original Value",
"titLeftMove":"Left move",
"titCompression":"Compression",
"titNewModality":"New Modality",
"msgCopying":"Some images are currently being copied.",
"titSecondaryID":"Secondary ID",
"titManualExpire":"Manual Expire",
"msgLogOffPreviousUser":"Click OK to terminate the session on the other device and login on this device.",
"titStartDate":"Start Date",
"msgNoCTR":"No Critical Result Report.",
"titFontSize":"Font Size",
"msgGenerateNewUID":"Generate new UID",
"msgFetch":"Would you like to fetch? Please caution it may take a while.",
"titRelatedStudy":"Related Study",
"titYesterday":"Yesterday",
"msgCRetrieveRequestIsReRegistered":"The Retrieve request has been re-registered.",
"titReportDate":"Report Date",
"titReportView":"Report View",
"titReportText":"Report Text",
"titJpegWithAnnotation":"Jpeg with Annotation",
"titSaveOption":"Save Option",
"titPatientSearch":"Patient Search",
"msgExportStudy":"Export Study",
"titApprover2":"Approver2",
"msgCannotChangePanelLayout":"Panel loading… \r\nCannot change the panel layout.",
"msgLicenseCountExceeded":"License Count has been exceeded. Please contact your administrator or dealer.",
"titTRoomNo":"T. Room No.",
"titDontScanQRCode":"Don't Scan QRCode",
"titSelectedStudy":"Selected Study(All Images)",
"titAddendumApproved":"Addendum_Approved",
"msgBalancedQualityWarnings":"Serves interlaced images first. This brings you images as soon as possible. Most of functionalities would be accepted during exchange original one in background.",
"msgInvalidData":"Invalid data.",
"msgInvalidGKEY":"Invalid Group Key.",
"msgNotUnderstandWadoAnnotation":"Failed to read Annotation from Wado.",
"titPatientBirthDate":"Patient Birthdate",
"titCreationDate":"Creation Date",
"titSelectedMonitorNumber":"Seleted Monitor Number",
"titSelected":"selected",
"titSelector":"Selector",
"msgDefaultMessage":"Default Message",
"titPatientName_M":"Patient Name",
"msgEnterUserID":"Enter your user ID.",
"titSaveToDB":"Study Save",
"titITREmergencyStat":"ITR EMERGENCY STAT",
"titRequestingPhysician":"Requesting Physician",
"msgMissingParam":"A mandatory parameter is missing.",
"msgUnsupported":"Unsupported Format",
"msgAccountExpiredPassword":"Your password has expired. A password change is required.",
"msgErrorJPEG":"JPG loading error",
"msgPleaseWaitMoment":"Please wait for a moment.",
"titStoragePathInfoShort":"Storage Path information short",
"titRefPhysician_M":"Ref. Physician",
"titDefault":"Default",
"titMeasureFreehand":"Measure Area Freehand",
"titCalibrationReset":"Reset original pixel value",
"msgAbortJPEG":"JPG loading aborted.",
"msgWithin1Month":"Within 1 Month",
"titSessionError":"Session Notice",
"titNonDicomUploader":"NON-DICOM UPLOADER",
"titSearch_M":"Search",
"titStudyInformation":"Study Information",
"titRelatedStudyList":"Related Study List",
"msgDeleteSearchFilter":"Select the search filter to delete.",
"msgNotDeleteSearchFilter":"Search Filter not selected during Deletion.",
"msgRequireComplexity":"Password must include at least one capital, at least one small letter and one special character or one digit.",
"titAddendumDictating":"Addendum_Dictating",
"msgURLDecryptionError":"URL Decryption Error",
"msgInfoCTR":"By clicking Login,  I acknowledge receipt of  the Critical Result.",
"titUnlimited":"Unlimited",
"titModality":"Modality",
"msgTechnote":"This technologist note is NOT an official document.",
"btnLowerPause":"Pause",
"titCanceling":"Canceling",
"msgExportFailed":"Export failed.",
"btnLowerFirst":"First",
"titWithinLast1Days":"Within last 1 days",
"titWithinLast3Days":"Within last 3 days",
"msgCanOpen3DMoreThanFive":"You can only open series with at least 5 images.",
"titWithinLast7Days":"Within last 7 days",
"titUploaded":"Uploaded",
"titUploader":"Uploader",
"msgSpecialCharacters":"Special",
"msgMaximumLengthPassword":"Password can't be more than {0} characters.",
"btnFetchAndOpen":"Fetch and Open",
"msgRetrieving":"Retrieving...",
"msgCloseExam":"Do you want to continue closing the exam?",
"msgWADOAuthenticationFailed":"Upon WADO request, authentication failed.",
"msgFailedReadingDICOMFile":"Failed to read DICOM file.",
"titAge_Short":"Age",
"titReadOffline":"Read Offline",
"msgErrorAN":"There is no Accession Number.",
"msgBufferisNull":"Buffer is null or lengh is 0.",
"titChangePassword":"Change Password",
"titStudyKey":"Study Key",
"titStudyTag":"Study Tag",
"titWebInterface":"Web interface",
"msgADAccountDisabled":"Your Active Directory account has been disabled.",
"titCalibrationMode":"Select calibration mode",
"msgEnterFolderName":"Enter the search filter folder name.",
"titOtherPatientID":"Other Patient ID",
"btnSetting":"Setting",
"msgExpiredUser":"User ID is expired.",
"titHounsfieldUnits":"Hounsfield Units",
"msgWatchPositionError":"WatchPosition Error",
"msgUpdateInfoAnonymous":"Update Info as Anonymous",
"titForTheNextDays":"For the next days",
"msgMFAReject":"You have chosen to reject this login.",
"titThumbnailPosition":"Thumbnail Position",
"msgCompareModeiPad":"Compare mode is not supported in iPad.",
"titDelete2DText":"Delete 2DText",
"titAddSubFilter_M":"Add Sub-filter",
"msgAlreadyExistsFolder":"This folder already exists.",
"titTVolumeOpen_moblie":"T-Volume Open",
"btnSearch_M":"Search",
"msgErrerRequiredFactor":"Group Key or Accession Number information is required.",
"msgFailedDICOMFile":"Failed to load to DICOM file.",
"titTempVolume":"Temp Volume",
"titSearchFilter_M":"Search Filter",
"titSharingMethod":"Sharing method",
"titArrived":"Arrived",
"msgWarningThinVolume":"This series is Thin slice data. If you want to open this series, press the button 'View with T volume images'.",
"titRadiologistName":"Radiologist Name",
"titBirthDate":"Birth Date",
"msgMakeBuffer":"MakeBuffer",
"msgLicensePeriodExpired":"License period has expired. Please contact your administrator or dealer.",
"msgFailedStudyXmlInfo":"Failed to load the Study Data Xml information.",
"titSaveCalibration":"Calibration",
"titWrittenDate":"WrittenDate",
"msgQRModeIsOff":"QR Mode is off.",
"titINFINITTStore":"INFINITT Store",
"titCloseCurrentPatientExams":"Close Current Patient's Exams",
"titLUTSetting":"VOI LUT Setting",
"titAnonymize":"Anonymize",
"titNormalorAbnormal":"Normal or Abnormal",
"msgDoNotHaveAuthorization":"You do not have authorization to execute ULite. Please contact the system administrator.",
"titDefaultSearch":"Default Search",
"msgISCUnknownError":"ISC Unknown Error.",
"titEmbeddedXDSWorklist":"Embedded XDS Worklist",
"titResponsibleOrganization":"Responsible Organization",
"msgNotDeleteRootFilter":"Root filter cannot be deleted in Folder Lock Mode.",
"titDeleteSearchFilter":"Delete Search Filter",
"titAIService":"AI service",
"msgFailLoadImage":"Failed to load image.",
"titPickerMinFri":"Fr",
"titPickerMinMon":"Mo",
"titPickerMinTue":"Tu",
"titPickerMinThu":"Th",
"titPickerMinSun":"Su",
"titPickerMinSat":"Sa",
"titPickerMinWed":"We",
"titReferDoctor":"Referring Doctor",
"titReportApprovalDttm":"Report Approval DTTM",
"titDisplayMode":"Display mode",
"titWorklistStatus":"Worklist Status",
"titSetDefault":"Set Default",
"msgFailedRequestData":"System failed to bring requested data.",
"titTechnote":"Tech Note",
"msgNoMatchingAccCtrlRule":"Can not find matching Access Control Rule.",
"titRequestedDate":"Requested Date",
"titFilterName_M":"Filter Name",
"msgPleaseWaitCheckingID":"Please wait...Checking for your ID",
"titVisitNo":"Visit No",
"msgWebServiceResource":"Web-service resource error.",
"msgEnterPassword":"Enter your Password.",
"msgCanOnlyTabletOrDesktop":"This can only be done on a tablet or desktop. It is not possible on mobile phone.",
"titWritter":"Writter",
"msgErrorGroupKey":"Group Key cannot be used as a factor in XDS standard mode.",
"titDictatedBy":"Dictated By",
"msgAllAvailableModalitiesAdded":"All available modalities have been added.",
"titInputDateTime":"Input Date Time",
"msgErrorCheckStorage":"An error occurred while checking storage.",
"titStartEndLineOnly":"Start-End Line Only",
"titNewPassword":"New Password",
"titAccessionNo":"Accession No.",
"msgSystemUsingHTTPS":"This system uses HTTPS.",
"titStatusNone":"NONE",
"btnOpened":"Opened",
"titBarcodeScan":"Barcode scan",
"msgNoTargetStation":"There is no target station for sending IOCM. Please add IOCM Station.",
"titSubTitle":"Sub Title",
"titPrintSetting":"Print Setting",
"msgPasswordChanged":"Password has been successfully changed.",
"titTranscribing":"Transcribing",
"msgNotUnderstandWadoRelatedStudy":"Failed to read Related Study from Wado.",
"titWithinLast30Days":"Within last 30 days",
"msgReservedDate":"Reserved Date is required.",
"msgInsertFilterName_M":"Insert Filter Name",
"msgAlreadyLoginUser":"This account is currently active on another device.",
"msgLoading":"Loading.....",
"msgTouchViewPanel":"Currently in Cine Mode. Please touch the View Panel.",
"titKeyImageInfo":"Key Image Info",
"titKeyImageOpen":"Key Image Open",
"msgNotSupportedCombineMode":"Combine mode is not supported in this mode.",
"msgRequireCapital":"A capital character is required.",
"btnLogout":"Logout",
"msgEnterRequiredParam":"Please enter the required parameters.",
"btnManual":"Manual",
"msgSendEditInfo":"The study information edited would be applied on all studies selected. Are you sure?",
"titEdStatus":"Ed Status",
"titRequestDepartment":"Request Department",
"msgSaveGSPS":"Save GSPS",
"titPredefinedCriterion":"Predefined criterion",
"titGSPSSetting":"GSPS Setting",
"titFullScreen":"Full Screen",
"tit20To30":"20 to 30",
"titContents":"Contents",
"titComments":"Comments",
"msgCheckSharingOption":"Sharing option must be selected.",
"titSelectedImages":"Selected Images",
"titBodypart":"Bodypart",
"titMeasureRect":"Measure Area Rectangle",
"titStudyPriority":"Study Priority",
"msgInterfaceVersionUpgrade":"Interface can be supported by this version but an upgrade is required.",
"msgFailedUpdatingSyncKey":"Failed to update user sync key.",
"msgEchoFail":"No response. Network test failed.",
"tit2Hours":"2 Hours",
"tit2DText":"2D Text",
"tit2DLine":"2D Line",
"msgNotLoadedPanel":"Panel is not loaded yet.",
"msgLicenseFail":"License failed. Please contact your administrator or dealer.",
"titFrameRate":"Frame Rate",
"titCreatedBy":"Created By",
"msgAnnotationSaveCheckOneItem":"Please Check at least one item.",
"msgLoadingStoredInformation":"Please wait for a moment. Stored Information is loading now.",
"msgFailedConv2jsonStudyList":"conv2json StudyList failed.",
"msgLockedUser":"Your account is locked because you entered your ID and Password combination wrong more than (many) times.",
"titSaveReport":"Save Report",
"titInformation":"Information",
"msgInvalidAN":"Invalid accession number.",
"titVerifyPush":"Verify push",
"titVerifyCode":"Verify Code",
"titAcqusitionDate":"Acquisition Date",
"titReasonForExport":"Reason for export",
"titForTheNext":"for the next",
"FilterPredefine_Yesterday":"Yesterday",
"titSelectDate":"Select Date",
"titSelectUser":"Select User",
"titInstitution":"Institution",
"msgNotLoadedExam":"Exam is not loaded yet.",
"msgMinimumLengthPassword":"Password must be at least {0} characters.",
"titUserComment":"User Comment",
"titOverWritten":"Overwritten",
"titCircleEllipseSetting":"Circle, Ellipse, Rectangle",
"msgWithin3Months":"Within 3 Months",
"titCellular":"Cellular",
"titOrdered":"Ordered",
"titHighPerformance":"High Performance",
"titDemographicInfoLength":"Demographic Info Length",
"msgNoImagesForThisConditions":"There are no images for this conditions.",
"msgInvalidSession":"Invalid session.",
"titSignedDate":"Signed Date/Time",
"titScoutLineMode":"Scout Line Mode",
"msgFailedRelatedStudyXmlInfo":"Failed to load Related Study Xml information.",
"msgTemporaryPassword":"Temporary password (HIPAA RULE).",
"msgBecomesLogoutSameUserLogin":"Your session on this device has been terminated as a result of another active user logging in another device.",
"titCalibrationXSpacing":"Current Pixel X Spacing",
"titAnyExamStatus":"Any Exam Status",
"btnDelete":"Delete",
"msgNotSupportMultiOpenKeyImage":"Key Image Open does not support opening multiple images.",
"titAdvancedMeasure":"Advanced Measure",
"titpidissuer":"Patient ID issuer",
"titDatePicker":"Date Picker",
"titOriginalFilePath":"Original File Path",
"titOriginalFileName":"Original File Name",
"titSelectedSeries":"Selected Series",
"titAIFindings":"AI findings",
"titFreehand":"Freehand",
"msgNotDeleteRoot":"Do not delete root!",
"msgSentPasswordByEmail":"Your password has been sent by e-mail.",
"msgFailedConv2jsonAnnotation":"conv2json annotation failed.",
"btnOK":"OK",
"btnNo":"No",
"titArriving":"Arriving",
"msgDeleteFailed":"Delete failed.",
"titWindowingPreset":"Windowing Preset",
"titNo":"No.",
"titMe":"Me",
"titID":"ID",
"titOn":"On",
"titER":"ER",
"titTe":"Te.",
"titTO":"To",
"titWW":"WW",
"titWC":"WC",
"tit3D":"3D",
"titOverlayToogle":"Overlay Toogle",
"titOverlayToggle":"Overlay Toggle",
"titCloseexam":"Close Exam",
"titUserLevel":"User Level",
"msgNotSupportedMode":"This mode is not supported.",
"msgNotSupportedType":"This type is not supported.",
"msgRequireNumeric":"A numeric character is required.",
"titAIVendors":"AI vendors",
"titContinuous":"Continuous",
"msgURLERROR":"URL ERROR",
"btnCancel":"Cancel",
"msgStudyNumberExceeed":"You can select up to number in the current setting.",
"titDelete_M":"Delete",
"titSourceAETitle":"Source AETitle",
"msgChangePCMode":"Would you like to change to PC mode?",
"msgSupportedCineModeLayout":"Cine mode is supported in 1X1 layout.",
"titLocationDown":"Location Down",
"msgRequireMinimum":"The minimum length is {0} characters.",
"msgLoadingDICOMQR":"Loading... DICOM Q/R.",
"btnContentUpload":"Content Upload",
"titContentsAcqDate":"Contents Acquisition Date",
"msgChangePasswordExpiredUser":"Your password has expired. Please change your password.",
"titDicomContents":"DICOM Contents",
"msgLoadingPanel":"Panel is not loaded yet. Please wait for a moment.",
"titRefPhysician":"Ref. Physician",
"msgEnterReasonFailure":"Failed to enter a reason.",
"msgLoadingStudy":"Study has not loaded yet. Please wait.",
"msgHighPerformanceWarnings":"Serves compressed images first. This brings you images as fast as possible. Some of functionalities (like WWL) shall be limited until it gets decompressed one.",
"msgPasswordFailCount":"Your account is locked because you entered your ID and Password combination wrong more than (many) times.",
"titEmergency":"Emergency",
"titSpecialty":"Specialty",
"titMonth":"Month",
"titSamerelevantexamsforthispatientID":"Same relevant exams for this patient ID",
"titPDFReport":"PDF Report",
"titMagnifyingGlass":"Magnifying Glass",
"titAIComplexityScore":"AI complexity score",
"titImage":"Image",
"titInOut":"In/Out",
"titHours":"2 Hours",
"titHFlip":"H. Flip",
"titOther":"Other",
"titEMail":"E-mail",
"titFetch":"Fetch",
"titERRAD":"ER & RAD",
"titDisplayOption":"Display Option",
"titError":"Error",
"titDICOM":"DICOM",
"titALLER":"ALL ER",
"titBreed":"Breed",
"titAlert":"Alert",
"titAll_M":"All",
"titAngle":"2D Angle",
"titAny_M":"Any",
"msgLogoutDifferentComputer":"This program has logged out because the same user logged in from another computer.",
"titArrow":"Arrow",
"titGroup":"Group",
"titCount":"Count",
"titClear":"Clear",
"titClose":"Close",
"titSettingMonitor":"Setting Monitor",
"titPerformDoctor":"Perform Doctor",
"titTitle":"Title",
"titTimes":"Times",
"titTotal":"Total",
"titToday":"Today",
"titRight":"Right",
"titReset":"Reset",
"titReady":"Ready",
"msgRequiredChangePassword":"Your password will expire soon.",
"titRADER":"RAD & ER",
"titPrint":"Print",
"titPhone":"Phone",
"titPatientSexNeutered":"Patient’s Sex Neutered",
"titShare":"Share",
"titSaved":"Saved",
"msgCannotDeleteSendingItem":"You can't delete item(s) because selected item(s) include DICOM sending.",
"titSingleLineOnly":"Single Line Only",
"titRequestStat":"Request Stat",
"titEndSeries":"End Series",
"titOKTAQRContents":"Launch the OKTA Verify application on your mobile device and select Add Account.",
"titCancel_M":"Cancel",
"titCanceled":"Canceled",
"titStudyID":"Study ID",
"titMachine":"Machine",
"titMagnify":"Magnify",
"tit1Hour":"1 Hour",
"titMyComment":"My Comment(s)",
"titWorklistReset":"Worklist Reset",
"titSearchCondition":"Search Condition",
"titMatched":"Matched",
"titExportType":"Export Type",
"msgAllExamsforPatient":"All Exams for this patient ID",
"titStorageStatus":"Storage Status",
"titCalibrationWarning":"Pixel spacing can not be zero.",
"btnAzureLogin":"Azure Login",
"titCalibration":"Pixel spacing value calibration",
"FilterPredefine_Within":"Within",
"msgCRetrieveRequestIsRegistered":"The Retrieve request is registered.",
"titNextStudylist":"Next study tab list",
"titUnread_M":"Unread",
"titReportApproval2dttm":"Report Approval(2) DTTM",
"titMouseRightButton":"Mouse Right Button",
"titObservations":"Observations",
"titPANMode":"Pan Mode",
"btnDownload":"Download",
"titWebLink":"Web Link",
"msgAbortJPEGImage":"JPG loading aborted.",
"titDepartmentOnly":"Department",
"msgADPasswordDifferent":"Failed to verify Active Directory credentials.",
"titOpenVerify":"Open Verify",
"msgMaximumLogons":"Maximum concurrent logons.",
"titRoutine":"Routine",
"titRadiologist":"Radiologist",
"titRequirePassword":"Require Password",
"msgNumeric":"Numeric",
"titMeasureEllipse":"Measure Area Ellipse",
"msgAnnotationSaveCompleted":"saving is completed.",
"msgExportContentErrorReason":"The reason must be entered.",
"titWithOriginalFilePath":"With Original File Path",
"titSpecies":"Species",
"tit3DCursor":"3D Cursor",
"titMonitorInformation":"Monitor Information",
"msgFailedCreatingIHPUser":"Failed to create IHP user account.",
"titVerified":"Verified",
"titVerifier":"Verifier",
"titGSPSSave":"GSPS Save",
"titUploading":"Uploading",
"titExportContent":"Export Content",
"titReferenceOnly":"Reference Only",
"titMeasure":"Measure",
"titAttendingDoctor":"Attending Doctor",
"titVertical":"Vertical",
"msgADNotAllowedAnotherUser":"This user ID is not currently logged into the domain account. Please use the current logged in Active Directory account.",
"msgExamDate":"Exam Date is required.",
"titHorizontal":"Horizontal",
"msgEditSearchFilter":"Select the search filter to edit.",
"msgRequireMaximum":"The maximum length is {0} characters.",
"msgUnknown":"Unknown Error.",
"msgWarningNotThinVolumeOpenModeChange":"This series is not Thin slice data. If you want to open this series, press the button ‘View’ or change T-Volume Open Mode 'Main and Thin Volume'.",
"titAddendumTranscribed":"Addendum_Transcribed",
"titAnonymization":"Anonymization",
"titSelectAETitle":"Select AETitle",
"titSearchedPatient":"Searched Patient",
"titOpenStudyList":"Open Study List",
"titRequestingName":"Requesting Name",
"titRequestingDate":"Requesting Date",
"titRequestingCode":"Requesting Code",
"titSendStatus":"Send Status",
"titCalendar":"Calendar",
"titDateTime":"Date Time",
"msgChangePasswordFirstTime":"A user logging in for the first is required to change his/her password.",
"titCopytoclipboard":"Copy to Clipboard",
"titAnnotationHide":"Hide Annotation",
"titAnnotationShow":"Show Annotation",
"titOtherPidIssuer":"Other Patient ID Issuer",
"msgEnter2DTextbox":"Please type the annotation into the textbox.",
"msgExpiredPassword":"Password is expired.",
"titSkipped":"Skipped",
"titPickerJan":"Jan.",
"titPickerJul":"Jul.",
"titPickerJun":"Jun.",
"titPickerOct":"Oct.",
"titPickerNov":"Nov.",
"titPickerMon":"Mon",
"titPickerMar":"Mar.",
"titPickerMay":"May.",
"titPickerFeb":"Feb.",
"titPickerFri":"Fri",
"titPickerApr":"Apr.",
"titPickerAug":"Aug.",
"titPickerDec":"Dec.",
"titPickerSun":"Sun",
"titPickerSat":"Sat",
"titPickerSep":"Sep.",
"titPickerWed":"Wed",
"titPickerTue":"Tue",
"titPickerThu":"Thu",
"titShareStatus":"Share Status",
"msgNotSupportedInterface":"Interface is not supported.",
"titDictating":"Dictating",
"msgErrorJPEGImage":"JPG loading error",
"titReferringPhysician":"Referring Physician",
"select_Zoom":"Zoom",
"titTextList_FontConfig":"Text List - Font name and size",
"msgWarningThinVolumeOrNotPetched":"This series is Thin slice data or not fetched yet. If you want to open this series, press the button 'View with T volume images' or complete fetch.",
"msgNoPermission":"You do not have permission.",
"msgWADONotFind":"The study could not be found.",
"msgSelectFilter":"Select filter to add a sub-filter.",
"titSpecialNeeds":"Special Needs",
"titMinutes":"5 Minutes",
"titSaveCheckOption":"Always confirm before saving",
"titMimeType":"Mime Type",
"titCobbAngle":"Cobb Angle",
"msgSyntaxErrorParam":"Syntax error in parameters.",
"titExamStatus":"Exam Status",
"titRequire":"Require",
"titRelated":"Related",
"titExportSearchResult":"Export search result",
"titReading":"Reading",
"msgQRServiceBusy":"QR-service is busy.",
"titCompleted":"Completed",
"msgADPasswordExpired":"The Active Directory password is expired.",
"titPerPatient":"Per Patient",
"titExportToJpeg":"Export to Jpeg",
"msgFailedStudyInfo":"Failed to load the Study Data information.",
"msgAlreadyExistToken":"This token key already exists.",
"msgAlreadyExistValue":"This value key already exists.",
"titCreateSearchFilter":"Create Search Filter",
"msgRequiredPwdCharacters":"{0} characters must be included in password.",
"msgADInAuthorize":"Web service resource error. Please contact your administrator.",
"msgHaveNoImage":"This study cannot be opened because it does not have any images.",
"msgInputNumber":"Input Number",
"msgADPasswordChangeDifferent":"Your Active Directory account password has been changed. Please update your ULite password.",
"titUptotimes":"Up to times",
"titTCNotice":"Terms & Conditions Notice",
"titTVolumeOpen":"View with T Volume images",
"msgNotApprovedDevice":"Unapproved device.",
"titWorklist":"Worklist",
"titSharing":"Sharing",
"titSharpen":"Sharpen",
"titBalancedQuality":"Balanced Quality",
"titConfiguration":"Configuration",
"titAIFindingCount":"AI finding count",
"titSelectContents":"Select Contents",
"msgSuccess":"Success",
"msgReEnterNewPassword":"Re-enter your new password.",
"titLocalImageDisplayOption":"Local Image Display Option",
"msgOnlyNumbers":"Only numbers can be entered.",
"titAnonymizedDICOMExport":"DICOM(Anonymize)",
"msgErrorInStation":"There is a problem with the station.",
"titReasonofExam":"Reason for Exam",
"msgNotInsertNode":"Node cannot be inserted here.",
"titSelectedExamOnly":"Selected Exam Only",
"titModality_M":"Modality",
"titInfinittNonDicomUploader":"Infinitt Non-DICOM Uploader",
"titRequestingDoctor":"Requesting Doctor",
"titBodypart_M":"Body Part",
"msgNotParseXML":"XML string cannot be parsed.",
"msgFailedJPEG":"Failed to load to JPG.",
"titSystemUser":"System User",
"titThinVolumeOnly":"Thin Volume Only",
"typeLanguage":"default",
"titApprovalDate":"Approval Date",
"titCalibrationEqualSides":"Equal Sides",
"titMainAndThinVolume":"Main and Thin Volume",
"titOrderingDoctor":"Ordering Doctor",
"msgNoDefaultShareSetting":"There is no default sharing setting. Please contact your administrator.",
"msgDeleted":"Deleted",
"titPrintImage":"PRINTIMAGE",
"titUploaderName":"Uploader Name",
"titSending":"Sending",
"titSection":"Section",
"msgChangeInfomation":"Please change study information.",
"titModalityLayout":"Modality Layout",
"select_SelectArrow":"Select Arrow",
"msgHighQualityWarnings":"Serves original images. This brings you images as high quality as you want. Most of functionalities would be accepted after download original one in background.",
"titLocationUp":"Location Up",
"msgTryAgain":"An error occurred. Please try again.",
"titAddendumTranscribing":"Addendum_Transcribing",
"msgVersionCheckError":"An error occurred. Would you like to update again?",
"msgWADOUnknownError":"WADO Unknown Error.",
"msgEmptyRelatedStudy":"The related study is empty.",
"titApplyLUT":"Apply VOI LUT",
"titApplyAll":"Apply all",
"titAccessionNumber":"Accession Number",
"titAppended":"Appended",
"titFilterName":"Filter Name",
"titFilterType":"Filter Type",
"msgSessionTimeout":"Your session has timed out due to inactivity. Please log in again.",
"msgInitOpenGL":"InitOpenGL",
"titApproved":"Approved",
"titApprover":"Approver",
"titPassword":"Password",
"titPasscode":"Passcode",
"msgADPasswordChange":"The Active Directory password cannot be changed.",
"msgLoggingAuditEventFailure":"Audit event logging failed.",
"msgFailedConnectService":"Failed to connect to the service.",
"msgFailedConvertingDICOMFile":"DICOM file conversion failed.",
"msgFailedConnection":"Connection failed.",
"titOKTAVerify":"OKTA Verify",
"msgFailedPassword":"Your entered ID and Password combination is wrong. Please check and try again.",
"msgCannotOpenConfidentialContents":"Confidential contents that require a reason for access can only be opened when selected by itself.",
"msgNotDeleteDefault":"'Default' item cannot be deleted.",
"msgNotHavekeyImage":"This exam does not have any key images.",
"titRequesting":"Requesting",
"msgOAuthAuthenticationFailed":"OAuth authentication failed.",
"msgConfirmEdit":"Do you want to edit search filter?",
"msgLoadingViewer":"Viewer has not loaded yet. Please wait.",
"titOriginal":"Original",
"titCTRatio2Setting":"CT Ratio2 Setting",
"msgSameRelevant":"Same relevant exams for this patient ID",
"titCalibrationXWidth":"pixel X spacing calibration (width)",
"titCalibrationXYBoth":"Pixel XY spacing calibration (both)",
"msgNoSearchCondition":"No search condition.",
"msgCannotSRSeries":"This function or image is not supported.",
"titSelectedCritera":"Selected Critera",
"titImageShare":"Image Share",
"titImagePrint":"Image Print",
"titGeneral":"General",
"titTimePicker":"Time Picker",
"msgWADORequestFailed":"WADO request failed.",
"titContentCategory":"Content Category",
"msgWithin1Year":"Within 1 Year",
"msgWithin1Week":"Within 1 Week",
"msgLoadingNowStudy":"Study is loading now.",
"titAnnotation2DText":"Annotation 2D Text",
"titCommand":"Command",
"titComment":"Comment",
"titCombine":"Combine",
"msgPACSResource":"PACS resource error.",
"titSpecialRadiologist":"Special Radiologist",
"msgRejectedDevice":"Device is rejected.",
"titFacility":"Facility",
"titDisplayArrowTextAnnoSetting":"Text Annotation Setting",
"titFindCriteriaConfig":"Find Criteria Configuration",
"msgCloseWindowTryAgain":"Please close the window and try again.",
"titUnknown":"Unknown",
"msgADAccountExpired":"Your Active Directory account has expired.",
"titCalibrationPixelCounts":"Measured Pixel Counts",
"msgServiceBusy":"Service is busy.",
"titRADERTech":"RAD & ER / TECH",
"titNextPage":"Next Page",
"msgNotSupportSeriesOpen":"This function is not supported, please try the study open action.",
"titDistributedServer":"Distributed Server",
"msgOAuthUnknownError":"OAuth Unknown Error.",
"msgDuplicatePreset":"This preset already exists.",
"titExamined":"Examined",
"msgAccessedOnlyHospital":"Accessible only within the hospital.",
"titExamName":"Exam Name",
"titExamDate":"Exam Date",
"titConfirmPassword":"Confirm Password",
"titCompareMode":"Compare Mode",
"titAddSubFilter":"Add Sub-filter",
"titInputAge":"Input Age",
"msgFailedConv2jsonStoredInfo":"conv2json ServerStoredInfo failed.",
"titRelatedStudyHeaderColumns":"Related Study Header Columns",
"titAveraging":"Averaging",
"titAutoClose":"Close Automatically",
"msgNotSupportXSLT":"Your browser does not support XSLT.",
"titPatientSize":"Patient Size",
"titPatientName":"Patient Name",
"titPatientID_M":"Patient ID",
"titPatientInfo":"Patient Information",
"titHostName":"Host Name",
"msgMustbeSelectedNode":"A node must be selected.",
"titAutoQRISC":"AutoQRISC",
"titStudyDownload":"Study Download",
"msgIncorrectCurrentPassword":"Incorrect current password.",
"msgChangeTouchMode":"Would you like to change to touch mode?",
"titMouseLeftButton":"Mouse Left Button",
"titAIScore":"AI score",
"msgNoData":"No data.",
"titStudyDate_M":"Study Date",
"titContentsType":"Content Type",
"titContentsDate":"Contents Date",
"titContentsDesc":"Contents Desc",
"titContentsInfo":"Contents Info",
"msgServiceErrorCode":"Service Error Code",
"titJpegWithBoth":"Jpeg with Both",
"msgFailedStoredInfo":"Failed to load the server-stored information.",
"msgLockedSearchFilter":"This Search Filter is locked.",
"msgFailedToSave":"Failed to save. Please contact your administrator.",
"titDiscrepancy":"DISCREPANCY",
"titRediologist":"Radiologist (Reading Doctor)",
"btnYes":"Yes",
"btnNew":"New",
"btnAll":"All",
"titWetReading":"Wet Reading",
"titCategory":"Category",
"titShowPreview":"Show Preview",
"msgCannotStudy":"There is a study that can not be opened.",
"msgCannotPRSeries":"GSPS only applies to opened original images. Select any series.",
"msgLogout":"Do you really want to log out?",
"titCalibrationYSpacing":"Current Pixel Y Spacing",
"titDisplayArrowTextAnno":"Display Arrowhead",
"msgADNotAllowedDomain":"This account's domain is not registered in the domain list. Please use the proper domain user account.",
"msgDuplicateUserID":"Can not log in due to duplicate User ID.",
"msg3dRendering":"3D rendering in progress. Please wait a moment.",
"btnCreateUrl":"URL link copy to clipboard",
"msgNotSupportXMLParsing":"Your browser does not support XML parsing.",
"titRequested":"Requested",
"msgCheckboxNotChecked":"Please select a study to open and try again.",
"msgIncorrectConfirmationPassword":"Incorrect confirmation password.",
"titAutoplay":"Auto play",
"titStoragePathInfoMid":"Storage Path information mid",
"titInverse":"Inverse",
"titCombineModeOn":"Combine Mode On",
"titAETitle":"AE Title",
"titIncludeDemographic":"Include Demographic",
"titDemographicInfo":"Demographic Info",
"titDemographicHide":"Demographic Hide",
"titDemographicShow":"Demographic Show",
"titReplaced":"Replaced",
"titSimpleViewer":"Simple Viewer",
"titReported":"Reported",
"msgDontHaveAuthority":"You don't have authority to perform this operation.",
"msgBrowserNotSupported":"This browser is not supported.",
"msgNotLoadedViewer":"Viewer is not loaded yet.",
"msgFailedSecurity":"Security Authentication failed. (DeviceID or RFID)",
"titSeriesPosition":"Series Description",
"titDisplayseparated":"Display separated diameter based on the centerline",
"titRectangle":"Rectangle",
"titMedium":"Medium",
"titMinute":"Minute",
"titWindowingPreset2":"WINDOWINGPRESET",
"msgInputText":"Input Text",
"msgADPasswordPolicy":"The password does not meet the password policy requirements. Please check the minimum password length, password complexity, and password requirements.",
"titFirstSeries":"First Series",
"tit3Channel1Rh":"3 Channel 1Rh",
"titLayout":"Layout",
"btnDefaultSet":"Set as Default",
"titLabelCenterLineAngle":"LabelCenterLineAngle",
"titAllExamsforthispatientID":"All Exams for this patient ID",
"titMP4":"MP4",
"titMRN":"MRN",
"titMPR":"MPR",
"titMdl":"Mdl",
"titMon":"Mon.(Monday)",
"titLow":"Low",
"titIHP":"IHP",
"titIns":"Ins",
"titOff":"Off",
"titFri":"Fri.(Friday)",
"titEtc":"Etc",
"titDay":"Day",
"titDOB":"DOB",
"titDVR":"DVR",
"titAll":"All",
"titAny":"Any",
"titAge":"Patient Age",
"titAsc":"ASC",
"titCTR":"Critical Result Report",
"titTue":"Tues. (Tuesday)",
"titThu":"Thurs. (Thursday)",
"titTop":"Top",
"titWWL":"WWL",
"titPan":"Pan",
"titPDF":"PDF",
"titWed":"Wed. (Wednesday)",
"titSSN":"SSN",
"titSNS":"SNS",
"titSMS":"SMS",
"titSun":"Sun. (Sunday)",
"titSrs":"Srs",
"titSex":"Sex",
"titSat":"Sat. (Saturday)",
"titXDSWorklist":"XDS Worklist",
"titLogout":"Logout",
"msgRequireSpecialChar":"A special character is required.",
"msgSharingImageExpiration":"It is not showed the lists past {0} days or longer after expiration.",
"titMouseButton":"Mouse Button",
"titVerifierName":"Verifier Name",
"titCombineModeOff":"Combine Mode Off",
"titSecretCodeActiveDesc":"Enter code displayed from the application",
"titCloseCurrentExam":"Close Current Exam Only",
"titContentsSelect":"Contents Select",
"titStudyLayout":"STUDYLAYOUT",
"titSecretCodeActivation":"Secret Code Activation",
"titSystemUserSearch":"System User Search",
"titExternalUser":"External User",
"titMouseMiddleButton":"Mouse Middle Button",
"msgWithin6Months":"Within 6 Months",
"msgNotSupportedCineMode":"Cine mode is not supported in this mode.",
"msgFailedToCreateURL":"Failed to create share url.",
"titCreatorName":"Creator Name",
"msgHounsFieldUnitsValue":"HounsField Units Value",
"btnStudyLayout":"Study Layout",
"msgUserLocked":"User locked.",
"titStationName":"Station Name",
"msgNotSupportedLocalStorage":"Local storage is not supported.",
"titDescription":"Description",
"msgWarningNotThinVolumeOrNotPetched":"This series is not Thin slice data or not fetched yet. If you want to open this series, press the button ‘View’ or complete fetch.",
"titImages":"Images",
"titWithinLast2":"Within last",
"titInsert":"Insert",
"titCloseStudy":"Close Study",
"msgCheckShareMethod":"Please check the share method.",
"msgMoreThan2000Images":"There are more than 2,000 images.",
"titExpireCount":"Expire Count",
"msgVersionCheck":"Program Version Check",
"msgErrorPID":"There is no Patient ID.",
"btnLowerPlay":"Play",
"btnLowerPrev":"Prev",
"btnLowerLast":"Last",
"btnLowerNext":"Next",
"msgEnterCurrentPassword":"Enter the current password.",
"titSeriesDesc":"Series Desc",
"titSeriesList":"Series List",
"titReadDoctor":"Read Doctor",
"titNextSeries":"Next Series",
"titEditField":"Edit Field",
"btnPrint":"Print",
"msgWaitingFetchRequest":"Fetch request in progress. Please wait a moment.",
"titApplyGSPS":"Apply GSPS",
"btnLater":"Later",
"btnLogin":"Login",
"btnRetry":"Retry",
"titOption":"Option",
"titPatientIDPrefix":"Patient ID Prefix",
"titOverlabCode":"This code is already used. Please wait and enter a new code.",
"titCenterLineAngle":"CenterLineAngle",
"btnAdd_M":"Add",
"btnAgree":"Agree",
"btnAbout":"About",
"titName":"Name",
"titNone":"None",
"titMale":"Male",
"titMe_M":"Me",
"titLeft":"Left",
"titLine":"LINE",
"titLoop":"Loop",
"titIOCM":"IOCM Auto-Send",
"titJpeg":"Jpeg",
"titHigh":"High",
"titHide":"Hide",
"titHour":"Hour",
"titOpen":"Open",
"titDays":"days",
"titDate":"Date",
"titDesc":"DESC",
"titDept":"Department",
"titGSPS":"GSPS",
"titCols":"Cols",
"titCopy":"Copy",
"titCine":"Cine",
"titCell":"Cell",
"titZoom":"Zoom",
"titYear":"Year",
"titYoyo":"Yoyo",
"titUpto":"Up to",
"titTemp":"TEMP",
"titTech":"TECH",
"titDemographic":"Demographic",
"titRows":"Rows",
"titRead":"Read",
"titPort":"Port",
"titWard":"Ward",
"titWeek":"Week",
"msgEnterNewPassword":"Enter the new password.",
"titStat":"Stat",
"titShow":"Show",
"titSent":"Sent",
"titSend":"Send",
"titFilter":"Filter",
"select_Pan":"Pan",
"select_WWL":"Window Width Level",
"titFailed":"Failed",
"msgEmergencyMode":"Network connection to PACS server is not available. Please login again. The system will connect to PACS in emergency mode. The report being writing is failed.",
"titFemale":"Female",
"msgEditInfo":"Edit Info",
"titSecretCodeDesc":"Enter your Okta Account username and enter the following in the Secret Key Field",
"titStorageAccessPath":"Storage Access Path",
"titStorageAccessInfo":"Storage Access information",
"titERTech":"ER / TECH",
"titEROnly":"ER Only",
"titERDoctor":"ER Doctor",
"titEdit_M":"Edit",
"titExport":"Export",
"titExtend":"Extend",
"msgNotPermissionLogin":"No permission to log in.",
"titDayofWeek":"Day of the week",
"titDirect":"Direct",
"titResponsiblePersonRole":"Responsible Person Role",
"titDICOMExport":"DICOM",
"btnDeleteAll":"Delete All",
"titSearchPatientResult":"Search Patient Result",
"titPreviousSeries":"Previous Series",
"msgADAccountLockout":"Your Active Directory account has been locked out.",
"titSelectAll":"Apply All",
"titCanAccess":"Can Access",
"msgExportContentError":"The number of images in Content is 0.",
"msgNotUseMethod":"The selected recipient can not use the corresponding method.",
"titRecipient":"Recipient",
"msgNoImagesOrResults":"There are no images or results available for this exam currently.",
"titALLRAD":"ALL RAD",
"msgAutoQRISC":"Do you want to fetch the selected study(studies)?<br/><br/>Note: This will involve a short delay.<br/><br/>For larger studies, it will take longer for all images to arrive, <br/>So you may need to close the study and reopen later.",
"titWorklistFontSize":"Worklist Font Size",
"titPreviousPage":"Previous Page",
"titLinkableVariable":"Linkable variable",
"titEndDate":"End Date",
"titExpireDate":"Expire Date",
"eor":"end"
}; 
this.getResourceString = function (id) { 
try { 
var retval = eval("this.resource." + id); 
return retval; } 
catch (e) { 
alert(e.Message); return ""; 
}}} 
var resmgr = new ResManager();</script>

    <style type="text/css">@charset "utf-8";

* {
    outline: none !important;
}


h1 {
    font-size: 13px;
    font-weight: bold;
    color: #e7e7e7;
}

textarea {
    resize: none;
}

span.info {
    color: #ff8656;
}

input,
textarea,
button,
select {
    color: #e7e7e7;
}
    input[disabled],
    textarea[disabled],
    button[disabled],
    select[disabled] {
        color: #878787;
    }

select,
input[type="text"], input[type="password"], input[type="number"],
input.searchword-input,
textarea {
    padding: 1px 20px 0 5px;
    height: 20px;
    border: 1px solid #646464;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #000000;
    font-size: inherit;
}
input[type="number"] {
    padding: 1px 0px 0 5px;
}
    select:focus,
    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="number"]:focus,
    input.searchword-input:focus,
    textarea:focus {
        border: 1px solid #5179a6;
    }
    textarea[readonly="true"]:focus,
    textarea[readonly]:focus {
        border: 1px solid #646464;
    }
    input[type="text"][readonly], input[type="password"][readonly], input[type="number"][readonly] {
        background: #2a2a2a;
        color: #878787;
        border: 1px solid #646464;
    }
    
    select[disabled],
    input[type="text"][disabled],
    input[type="password"][disabled],
    input[type="number"][disabled],
    textarea[disabled] {
        background-color: #2a2a2a;
        border: 1px solid #4f4f4f;
        border: 1px solid #4f4f4f;
    }

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url(/Assets/Image/common/btn_dropdown.png) no-repeat top right;
    background-color: #000000;
}
    select::-ms-expand {
        display: none;
    }
    select option {
        height: 20px;
        background-color: #000000;
        color: #e7e7e7;
    }
    select::-ms-value {
        background: none; /* remove blue background on ie10/ie11 when selected*/
    }

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    height: 24px;
    border: 0;
    background-color: #646464;
    outline: none;
}

input[type="button"],
input[type="submit"],
input[type="reset"],
.create_pop button {
    min-width: 85px;
    padding: 0 10px;
}

    button:hover,
    input[type="button"]:hover,
    input[type="reset"]:hover,
    input[type="submit"]:hover {
        background-color: #707070;
    }

    button:focus,
    input[type="button"]:focus,
    input[type="reset"]:focus,
    input[type="submit"]:focus {
        background-color: #646464;
        border: 1px solid #4b8cd9;
        border-radius: 0;
    }

    button:active,
    input[type="button"]:active,
    input[type="reset"]:active,
    input[type="submit"]:active {
        background-color: #3b5777;
    }

    button[disabled],
    input[type="button"][disabled],
    input[type="reset"][disabled],
    input[type="submit"][disabled] {
        background-color: #4f4f4f;
        color: #878787;
    }

input[type="checkbox"], 
input[type="radio"] {
    display: none;
}
    input::ms-check {
        display: none;
    }
        
    input[type='checkbox'] + label:before,
    label input[type='checkbox'] + span:before {
        display: inline-block;
        width: 12px;
        height: 12px;
        padding-right: 5px;
        vertical-align: -1px;
        content: '';
        background: url('/Assets/Image/sprite/component.png') no-repeat;
        background-position: -12px 0;
        background-clip: content-box;
    }
    input[type="checkbox"] + label,
    label input[type="checkbox"] + span {
        display: inline-block;
        cursor: pointer;
        line-height: 21px;
    }
    input[type="checkbox"]:checked + label:before,
    label input[type="checkbox"]:checked + span:before {
        background-position: -12px -48px;
    }
    input[type="checkbox"][disabled] + label:before,
    label input[type="checkbox"][disabled] + span:before {
        background-position: -12px -36px;
    }
    input[type="checkbox"][disabled] + label,
    label input[type="checkbox"][disabled] + span {
        color: #878787;
    }
    input[type="checkbox"][disabled]:checked + label:before,
    label input[type="checkbox"][disabled]:checked + span:before {
        background-position: -12px -84px;
    }

    /* radio button */ 

    label input[type="radio"] + span:before,
    input[type="radio"] + label:before {
        display: inline-block;
        width: 12px;
        height: 12px;
        padding-right: 5px;
        vertical-align: -1px;
        content: '';
        background: url('/Assets/Image/sprite/component.png') no-repeat;
        background-position: -24px 0;
        background-clip: content-box;
    }
    label input[type="radio"],
    input[type="radio"] + label,
    input[type='radio'] + span {
        cursor: pointer;
        color: #e7e7e7;
    }
        label input[type="radio"]:checked:before,
        input[type="radio"]:checked + label:before,
        input[type="radio"]:checked + span:before {
            background-position: -24px -48px;
        }
        label input[type="radio"][disabled]:before,
        input[type="radio"][disabled] + label:before,
        input[type="radio"][disabled] + span:before {
            background-position: -24px -36px;
        }
        label input[type="radio"][disabled],
        input[type="radio"][disabled] + label,
        input[type="radio"][disabled] + span {
            color: #878787;
        }
        label input[type="radio"][disabled]:checked:before,
        input[type="radio"][disabled]:checked + label:before,
        input[type="radio"][disabled]:checked + span:before {
            background-position: -24px -84px;
        }

fieldset {
    padding: 0 9px 9px;
    border: 1px solid #2a2a2a;
}
legend {
    margin-left: -5px;
    padding: 0 4px;
    color: #e7e7e7;
}</style>
<style type="text/css">@charset "utf-8";

/*************************
Type: INFINITT PACS style sheet 
Date: 11/08/
**************************/


/* 전체적용 */
* 
{
	padding:0px;
	margin:0px;
}

html,body  
{
	width:100% !important;
	height:100% !important;
	font-size:12px !important;
	line-height:20px !important;
    overflow: hidden;
}

/* 나라별 언어 설정 */
body.ja { /* 일본 */
    font-family:MS PGothic, MS UI Gothic !important;
}
body.de, body.es, body.hr, body.pl {
}

table 
{
	border-collapse:collapse;
}

ul    
{
	list-style:none;
}

img   
{
	border:none;
}

.wrap {
    width: 100%;
    height: 100%;
}

.logo-background {
    position: absolute;
    width: 100%;
    height: 60px;
    background-color: #363636;
}

img.logo {
    display:block;
    margin-top: 6px;
    margin-left: auto;
    margin-right: auto;
    width: 94px;
    height: 42px;
}

img.logo-ihp {
    display: block;
    margin-top: 6px;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
    height: 42px;
}

.line {
    position: absolute;
    width: 100%;
    height: 2px;
    margin-top:60px;
    background-color: #4b8cd9;
}

.version {
    position: absolute;
    color: #888899;
    left: 20px;
    top: 21px;
    font-size: 13px;
}

.popup {
    position:absolute;
    left: 50%;
    top: 50%;
    margin: 0 auto;
    transform:translate(-50%, -50%);
}
.popup-box {
    border: 1px solid #000000;
    background-color: #474747;
}
.popup-box .tit {
    display: block;
    padding: 0 0 0 7px;
    height: 29px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    line-height: 29px;
    background-color: #707070;
}
.popup-box .popup-content {
    margin: 0 2px 2px;
    padding: 24px 5px 10px;
    min-height: 55px;
    height: auto;
    text-align: center;
    color: #e7e7e7;
}

#LoginArea {
    position: absolute;
    width: 100%;
    height: 90%;
    margin-top: 62px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    background-color: #4f4f4f;
}

.LoginContainer {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 634px;
    height: 634px;
    background: url(/Assets/Image/login/img_infinitt_logo_dark.png) no-repeat;
}

.LoginInfor {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 300px;
    margin-top: 234px;
}
.LoginInfor.ihp {
    margin-top: 200px;
}

.user caption {
    display: none;
}
.user tr:not(:first-of-type) > td {
    padding: 12px 0 0 0;
}
.user select {
    background-color: #363636;
}
a       
{
	color:#8a8b8d;text-decoration:none;
}
a:hover 
{
	color:#5d9bd0;
}

fieldset 
{
	border:0px;
}
legend 
{
	display:none;
}
input.input_login,
#sharePWD input[type="text"],
#sharePWD input[type="password"] {
    width: 300px;
    height: 34px;
    border: 1px solid #2a2a2a;
    font-size: 14px;
    background-color: #363636;
    color: #f1f1f1;
    padding: 0 10px;
    box-sizing: border-box;
    outline: none;
}
    input.input_login[disabled="disabled"],
    #sharePWD input[type="text"][disabled="disabled"],
    #sharePWD input[type="password"][disabled="disabled"] {
        color: #5a5a5a;
    }

        input.input_login::placeholder,
        #sharePWD input[type="text"]::placeholder,
        #sharePWD input[type="password"]::placeholder {
            color: #979797;
        }
        input.input_login::-webkit-input-placeholder,
        #sharePWD input[type="text"]::-webkit-input-placeholder,
        #sharePWD input[type="password"]::-webkit-input-placeholder {
            color: #707070;
        }
        input.input_login::-ms-input-placeholder,
        #sharePWD input[type="text"]::-ms-input-placeholder,
        #sharePWD input[type="password"]::-ms-input-placeholder {
            color: #707070;
        }
        input.input_login::-moz-input-placeholder,
        #sharePWD input[type="text"]::-moz-input-placeholder,
        #sharePWD input[type="password"]::-moz-input-placeholder {
            color: #707070;
        }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-transition: background-color 9999s ease-out;
    -webkit-box-shadow: 0 0 0px 1000px #363636 inset !important;
    -webkit-text-fill-color: #e7e7e7 !important;
}

.save-id {
    color: #e7e7e7;
    font-size: 13px;
}

#chkSaveID + label:before {
    width: 13px;
}

.ja label.label02 {
	letter-spacing:-1px;
}

#imgLogin,
#sharePWD input[type="submit"] {
    width: 300px;
    height: 44px;
    border: 0;
    background-color: #3f82d2;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    outline: none;
}
    #imgLogin:hover,
    #sharePWD input[type="submit"]:hover {
        background-color: #4b8cd9;
    }
    #imgLogin:active,
    #sharePWD input[type="submit"]:active {
        background-color: #3670b6;
    }
    #imgLogin[disabled="disabled"],
    #sharePWD input[type="submit"][disabled="disabled"] {
        background-color: #4e6b8b;
        color: #93a5b6;
    }

#imgLoginAzure {
    width: 300px;
    height: 44px;
    border: 0;
    background-color: #3f82d2;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    outline: none;
}

    #imgLoginAzure:hover {
        background-color: #4b8cd9;
    }

    #imgLoginAzure:active {
        background-color: #3670b6;
    }

    #imgLoginAzure[disabled="disabled"] {
        background-color: #4e6b8b;
        color: #93a5b6;
    }

#info_ctr {
	padding:10px 10px 0;
	text-align:center;
	color:#F3EF84
}
#timezone {
	margin:7px 0 0 0;
	color:#afc0cf;
	overflow:hidden;
}
#timezone select {
	float:left;
	padding: 0 0 0 3px;
	width:289px;
	height: 20px;
	border: 1px solid #385c7c;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	background: #dce8fe url('/images/worklist/dropdown_icon.gif') no-repeat right top;
	font-size: 11px;
	font-family: inherit;
	color: #41576b;
	-webkit-appearance: none;
}

#ErrorMsg {
    border: 0;
    color: #ff8656;
    font-size: 13px;
    margin-top: 2px;
    width: auto;
    text-align: center;
    display: block;
}
		#timezone input {
			float:left;
			margin:3px 5px 0 5px;
			width:15px;height:15px;
			vertical-align:middle;
		}
		#timezone label {
			float:left;
			font-size:12px;
		}
        #step_gx {
        }
            #step_gx tr:nth-child(2) th, #step_gx tr:nth-child(2) td{
                padding-bottom:10px;
            }
        #step_gx #selInstitution {
            margin-top:0;
        }
.footer-line {
    position: absolute;
    background-color: #424242;
    height: 1px;
    border: 0;
    width: 100%;
    bottom: 52px;
    margin-top: auto;
}

#FootArea {
    position: absolute;
    width: 100%;
    height: 52px;
    bottom: 0px;
    background-color: #4f4f4f;
    background-color: #4f4f4f;
    text-align: center;
    display: inline;
    color: #878787;
    font-size: 10px;
}
.footer-info {
    display: inline-block;
    text-align: left;
    margin-top: 14px;
    width: auto;
    height: 24px;
    line-height: 12px
}
.ce-ec-ref {
    margin-right: 14px;
}
.ifu {
    margin-left: 14px;
}
.FootTxt03 {
    position: absolute;
    right: 0px;
    top: 0px;
}
	#imgChangePW {
		padding:0 18px 2px 33px;
        border:1px solid #1c2933;
        border-radius:4px;
		background:#364c5c url(/Assets/Image/sprite/login.png) no-repeat -390px -96px;
        line-height:22px;
		color:#99b6cf;
		font-family: inherit;
	}
	#imgChangePW span {
		
	}

#PwdExpireNoticeBox
{
    z-index:105;
}

#AlertBox, #LoginAlertBox, #LoginErrorMsgBox {
    z-index:108;
}
#AlertBox .popup_box {
    border: 0;
}

#AlertBox .title {
    color: #b3c4ce;
}   

/* Change Pw */
#ChangeUserPassword
{
	position:absolute;
	left:0px;
	top:0px;
	width:100%;
	height:100%;
	min-height:100%;
	overflow:hidden;
	z-index:106;
}

.PwdMsgArea {
    position:relative;
	top:50%;
    left:40%;
}

#PwdMsgBox 
{
	position:absolute;
	left:0px;
	top:0px;
	width:100%;
	height:100%;
	min-height:100%;
	overflow:hidden;
	z-index:107;
}

#ChangePw_IHP
{
	position:absolute;
	left:0px;
	top:0px;
	width:100%;
	height:100%;
	min-height:100%;
	overflow:hidden;
	z-index:5;
}
.ChangeContainer_IHP 
{
    padding:0 20px 15px;
    text-align:left;
}
.ChangeArea-ihp
{
	position:relative;
	width:407px;
    height: auto;
	top:50%;
	margin:-100px auto 0 auto;
    background-image: url('/Assets/Image/login/bg_popup_change-pw_top.png'), 
                        url(/Assets/Image/login/bg_popup_change-pw_bottom.png);
    background-position: left top, left bottom, left top 36px;
    background-repeat: no-repeat, no-repeat, repeat-y;
}
.ChangeArea-ihp:before{
    content: '';
    position: absolute;
    z-index: -1; /* push it to the background */
    top: 35px; /* position it off the top background */
    right: 0;
    bottom: 10px; /* position it off the bottom background */
    left: 0;
    background: url(/Assets/Image/login/bg_popup_change-pw_middle.png) top left repeat-y;
}
.ChangeInfor_IHP th {
    width:143px;
    text-align:left;
}
.ChangeInfor_IHP th label.label02 {
    padding-left:0;
    background-image:none;
}
.ChangeInfor_IHP td {
    padding:5px 0px 5px 0;
}
.ChangeInfor_IHP caption {
    display:none;
}
.ChangeInfor_IHP #selPwdInstitution, .ChangeInfor_IHP #selPwdFacility {
    margin:0;
}
.ChangeInfor_IHP .input_change {
    margin:0;
}
#step_gx select, #selPwdInstitution, #selPwdFacility {
    width: 100%;
    height: 34px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    background-image: none;
    -webkit-appearance: none;
    background-image: url(/Assets/Image/login/ic_arrow_combobox.png);
}

#LoginErrorMsgBox {z-index:105;}
#AlertBox, #LoginAlertBox, #cacheBox {width:365px;height:140px; z-index:105;}
input.btn {z-index:106;}
input.btnhov {z-index:106;}
        
.popupLayer {position:absolute; left:0; top:0; width:100%; height:100%; z-index:104; -ms-filter: alpha(opacity=50); filter: alpha(opacity=50); opacity:0.3; -moz-opacity:0.3;}
.popupLayer .back {position:absolute; left:0; top:0; width:100%; height:100%; background:#000; z-index:104;} 
        
#checkBox {width:365px;height:auto; z-index:105;}
#LoadingBox {width:365px;height:auto; z-index:105;}
#catchBox {width:330px;height:217px; z-index:105;}

#MFA_LoadingBox {width:365px;height:auto; z-index:105;}

.footer-title {
    margin-right: 14px;
}
.footer-bold {
    font-weight: bold;
}

/*cachestatus*/
#cachestatus {
	display:none;
	position:absolute;top:0;left:0;
	padding:130px 0 0;
	width:100%;height:100%;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	background-color:rgba(0,0,0,0);
	color:#fff;
	font-weight:bold;
}
#cachestatus #now_status {
	font-size:11px;
}
#cachestatus .progressbar {
	position:relative;
	margin:0 auto;
	width:270px;height:4px;
	border-radius:3px;
	background-color:#626262;
	background-image: linear-gradient(bottom, rgb(98,98,98) 33%, rgb(69,69,69) 64%);
	background-image: -o-linear-gradient(bottom, rgb(98,98,98) 33%, rgb(69,69,69) 64%);
	background-image: -moz-linear-gradient(bottom, rgb(98,98,98) 33%, rgb(69,69,69) 64%);
	background-image: -webkit-linear-gradient(bottom, rgb(98,98,98) 33%, rgb(69,69,69) 64%);
	background-image: -ms-linear-gradient(bottom, rgb(98,98,98) 33%, rgb(69,69,69) 64%);
	background-image: -webkit-gradient(
	    linear,
	    left bottom,
	    left top,
	    color-stop(0.33, rgb(98,98,98)),
	    color-stop(0.64, rgb(69,69,69))
	);
	z-index:50;
}
#cachestatus #checking {
	position:absolute;
	top:0px;
	left:0px;
	height:4px;
	border-radius:2px;
	background-color:#65b8ff;
	background-image: linear-gradient(bottom, rgb(101,186,255) 33%, rgb(113,148,211) 64%);
	background-image: -o-linear-gradient(bottom, rgb(101,186,255) 33%, rgb(113,148,211) 64%);
	background-image: -moz-linear-gradient(bottom, rgb(101,186,255) 33%, rgb(113,148,211) 64%);
	background-image: -webkit-linear-gradient(bottom, rgb(101,186,255) 33%, rgb(113,148,211) 64%);
	background-image: -ms-linear-gradient(bottom, rgb(101,186,255) 33%, rgb(113,148,211) 64%);

	background-image: -webkit-gradient(
	    linear,
	    left bottom,
	    left top,
	    color-stop(0.33, rgb(101,186,255)),
	    color-stop(0.64, rgb(113,148,211))
	);
	z-index:55;
	overflow:hidden;
}

.popup_box {border:1px solid #304961;border-radius:4px;}
.popup_box-color {
    border: 1px solid #304961;
    border-radius: 4px;
    background-color: #2c4662;
}
.popup_box-color .tit, .popup_box .tit {
    display:block;
    padding:5px 0 0 7px;
    height:25px;
    color:#b3c4ce;
    font-size:12px;
    text-align: left;
	border-radius:4px;
    background: #707070;
    background: -ms-linear-gradient(top, #3d5872, #2e4a67);
    background: -moz-linear-gradient(top, #3d5872, #2e4a67);
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#3d5872', endColorstr='#2e4a67')";
}

.popup_box-color .wrap_Text, .popup_box .wrap_Text {
        margin:0 2px 2px;
        padding:15px 0;
	    min-height:65px;
        border:1px solid #324455;
        border-radius:4px;
        background-color: #567087;
        text-align:center;
        color:#fff;
}
.popup_box-color .wrap_Text > div, .popup_box .wrap_Text > div {margin:10px auto 0;width:150px;height:auto;}

.popup-alert-textarea {
    width:330px;
    height:30px;
    background-color:transparent;
    font-size:12px;
    border:0;
    overflow-x:hidden;
    overflow-y:auto;
    resize:none;
    margin: 0 10px;
}

.popup-alert-textarea{
    margin: 0 10px;
}

.ChangeArea-ihp textarea {
    border: 0;
    width: 100%;
    overflow-x:hidden;
    overflow-y:auto;
    resize:none;
    padding: 2px 7px 0 7px;
    box-sizing: border-box;
    vertical-align: central;
}

#ChangeUserPwdMessage {
    font-size: 12px;
    color: #ffffff;
    font-family: 'Segoe UI';
    font-weight: bold;
    text-align: center;
    background-color: transparent;
}

.password-complexity {
    border-radius: 3px;
    background-color: #293f51;
    color: #7b9cb8;
    font-family: 'Segoe UI';
    font-size: 12px;
    padding: 5px 0 0 5px;
    width: 98%;
    margin-left: 10px;
}

.create_pop {
    position: absolute;
    top: 45%;
    left: 50%;
    margin: 0 0 0 -183px;
    width: 365px;
    border: 1px solid #000000;
    border-radius: 4px;
    background-color: #474747;
    z-index: 105;
}
.create_pop .tit {
	display:block;
	padding: 0 0 0 7px;
	height:29px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    line-height: 29px;
    background-color: #707070;
}
.create_pop .msgContainer {
    border: 1px solid #324455;
    border-radius: 4px;
    background-color: #474747;
    text-align: center;
    color: #e7e7e7;
}
.create_pop .msg {
	margin: 10px;
	padding: 10px 2px;
	min-height: 25px;
	border-radius: 3px;
}
.create_pop .btns {
	padding-bottom:10px;
}
.create_pop button {
	margin:0;
	padding:0;
	width: 70px;
	height: 27px;
	border:0;
	background-color: #646464;
	cursor:pointer;
    color: #e7e7e7;
	z-index: 106;
}

#btn_manual {
    background: url('/Assets/Image/sprite/btn_worklist.png') no-repeat;
    width: 22px;
    height: 26px;
    cursor: pointer;
    border: 0;
    margin: 0;
    background-position: -113px -4px;
}

#share .LoginLine {
    width: auto;
    background-position: center center;
}

#sharePWD {
    margin: 55px auto 0;
    width: 300px;
}

    #sharePWD input[type="text"]:disabled {
        display: none;
    }

    #sharePWD input[type="submit"] {
        margin-top: 10px;
    }

.tcnArea {
    position: relative;
    text-align: center;
    top: 20%;
}

#TCNoticePopup {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    z-index: 108;
    color: #e7e7e7;
}

label.tcnLabel {
    display: block;
    padding: 9px 0 0 27px;
    height: 30px;
    white-space: nowrap;
    text-align: right;
}

label.tcnLabel2 {
    display: block;
    padding: 65px 0 0 27px;
    height: 100px;
    white-space: nowrap;
    text-align: right;
}

.tcnTd {
    text-align: left;
    width: 100%;
}

.tcnTable {
    width: 100%;
    padding: 0 0 0 8px;
    margin: 0 0 15px 0;
    border: 1px solid #2a2a2a;
}

    .tcnTable tr {
        border: 1px solid #2a2a2a;
    }

.tcnTitle {
    text-align: left;
}

.tcnText {
    text-align: left;
    font-size: 12px;
    color: #ffffff;
    background-color: transparent;
    border: none;
    padding: 5px 0 0 15px;
}

.tncTextArea {
    background-color: transparent;
    color: #ffffff;
    font-family: 'Segoe UI';
    font-size: 12px;
    padding: 5px 0 0 15px;
    border: none;
    width: 95%;
    height: 100px;
}

#btn_touchmode {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 40px;
    border: 1px solid #1e303e;
    border-radius: 4px;
    background-color: #6a8aa3;
    box-shadow: 1px 1px 0px 0px #8ca5b9 inset;
    -webkit-box-shadow: 1px 1px 0px 0px #8ca5b9 inset;
    -moz-box-shadow: 1px 1px 0px 0px #8ca5b9 inset;
    -ms-box-shadow: 1px 1px 0px 0px #8ca5b9 inset;
    -o-box-shadow: 1px 1px 0px 0px #8ca5b9 inset;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    font-weight: bold;
    white-space: normal;
}

#share #LoginArea {
    margin: 0;
    width: 100%;
    height: 100%;
}

.CLoginLogo {
    margin: 0 auto;
    width: 94px;
    height: 42px;
    background: url(/Assets/Image/login/img_logo.png) no-repeat;
}</style>
<style type="text/css">

#duo_popup{
    position: absolute;
    top: calc(50% - 165px);
    left: calc(50% - 250px);
    width: 500px;
    min-width: 304px;
    max-width: 620px;
    height: 366px;
    display: none;
    background-color: white;
}

#duo_main_iframe {
    position: absolute;
    width: 100%;
    height: 366px;
}

#duo_iframe {
    width: 100%;
    height: 350px;
}

#duo_cloasbtn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: url(/Assets/Image/Phone/png/btn_close_voice_nor.png) no-repeat;
    background-size: 30px 30px;
}


#okta_qr_popup, #okta_SecretCode_popup {
    position: absolute;
    top: calc(50% - 165px);
    left: calc(50% - 250px);
    width: 500px;
    min-width: 304px;
    max-width: 620px;
    height: 380px;
    display: none;
    background-color: white;
    color: #999999;
    background-color: #303030;
    border: 1px solid black;
}

.okta_enroll_popup_OTP_show {
    position: absolute;
    top: calc(50% - 120px);
    left: calc(50% - 250px);
    width: 500px;
    min-width: 304px;
    max-width: 620px;
    height: 240px;
    display: block;
    background-color: white;
    color: #999999;
    background-color: #303030;
    border: 1px solid black;
}

    .okta_enroll_popup_OTP_show #push_btn {
        display:none;
    }
    .okta_enroll_popup_OTP_show #okta_or {
        display: none;
    }

.okta_enroll_popup_PUSH_show {
    position: absolute;
    top: calc(50% - 165px);
    left: calc(50% - 250px);
    width: 500px;
    min-width: 304px;
    max-width: 620px;
    height: 380px;
    display: block;
    background-color: white;
    color: #999999;
    background-color: #303030;
    border: 1px solid black;
}
    .okta_enroll_popup_PUSH_show #push_btn {
        display: block;
    }

    .okta_enroll_popup_PUSH_show #okta_or {
        display: block;
    }

.okta_enroll_popup_hide {
    display: none;
}

.okta_title {
    position: relative;
    margin-top: 10px;
    margin-left: 10px;
    height: 39px;
}
    .okta_title span {
        position: relative;
        font-size: 28px;
    }

.okta_subtitle {
    position: relative;
    text-align: center;
    height: 30px;
}

    .okta_subtitle span {
        position: relative;
        font-size: 20px;
    }


.okta_container {
    position: relative;
    width: 100%;
    height: 240px;
    top: 8px;
}
.okta_container2 {
    position: relative;
    width: 100%;
    height: 240px;
    top: 30px;
}
#qr_text {
    position: absolute;
    width: 50%;
    left: 15px;
}
#qr_image {
    position: absolute;
    text-align: center;
    width: 200px;
    right: 15px;
}

    #qr_image span {
        color: #999999;
        font-size: 18px;
        cursor:default;
    }

    #qr_image span:hover {
        color: #4B8CD9;
        font-size: 18px;
        cursor: default;
    }

#secret_code {
    position: relative;
    width: 100%;
    top: 15px;
    height: 50px;
    text-align: center;
}
#sc_number {
    font-size: 21px;
    background: black;
    border: 2px solid #888888;
    padding: 5px;
}

#code_active_container {
    position: relative;
    text-align: center;
    margin-top: 5px;
}

.okta_btn_container {
    right: 15px;
    bottom: 18px;
    position: absolute;
}

    #secretcode_input input {
        width: 120px;
        height: 30px;
    }

#secretcode_btn {
    margin-top: 15px;
}

    #secretcode_btn input {
        width: 120px;
        height: 30px;
    }


.okta_btn_container input {
    width: 120px;
    height: 30px;
}

#desc_secretcode {
    position: relative;
    width: calc(100% - 100px);
    text-align: center;
    font-size: 15px;
    padding-left: 50px;
    padding-right: 50px;
}

#desc_active_secretcode {
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: 25px;
    font-size: 15px;
}

.okta_close_popup {
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    position: absolute;
    background: url(/Assets/Image/sprite/btn_worklist.png) no-repeat;
    background-position: -377px -153px;
}

#push_btn {
    position: relative;
    height: 50px;
    text-align: center;
    margin-top: 25px;
}

    #push_btn input {
        width: 160px;
        height: 35px;
    }


#code_container {
    position: relative;
    height: 50px;
    text-align: center;
    margin-top: 12px;
}

#number_input input {
    width: 160px;
    height: 35px;
    font-size: 25px;
}

#code_btn {
    margin-top: 15px;
}

    #code_btn input {
        width: 160px;
        height: 35px;
    }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#secret_copy_button {
    text-align: center;
    margin-top: 10px;
}

#secret_copy {
    width: 150px;
    height: 30px;
}</style>
<style type="text/css">@charset "utf-8";

/*************************
Type: INFINITT PACS style sheet 
Date: 11/08/
**************************/


/* 전체적용 */
* {
    padding: 0px;
    margin: 0px;
}

.input_change {
    width: 90%;
    margin: 0 0 0 7px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

label.label02 {
    display: block;
    height: 25px;
    padding: 0 0 0 12px;
    color: #e7e7e7;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
    line-height: 25px;
}

.ja label.label02 {
    letter-spacing: -1px;
}

#PwdExpireNoticeBox {
    z-index: 105;
}

#AlertBox, #LoginAlertBox, #LoginErrorMsgBox {
    z-index: 108;
}

/* Change Pw */
#ChangeUserPassword {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    z-index: 106;
}

.PwdMsgArea {
    position: relative;
    top: 50%;
    left: 40%;
}

#PwdMsgBox {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    z-index: 110;
}

#ChangePw_IHP {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    z-index: 5;
}

.ChangeArea-ihp {
    position: relative;
    width: 407px;
    height: auto;
    top: 50%;
    margin: -100px auto 0 auto;
}

    .ChangeArea-ihp:before {
        content: '';
        position: absolute;
        z-index: -1; /* push it to the background */
        top: 35px; /* position it off the top background */
        right: 0;
        bottom: 10px; /* position it off the bottom background */
        left: 0;
        background: url(/Assets/Image/login/bg_popup_change-pw_middle.png) top left repeat-y;
    }

.ChangeInfor_IHP {
    width: 100%;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 13px;
}

    .ChangeInfor_IHP th {
        width: 143px;
        text-align: left;
    }

        .ChangeInfor_IHP th label.label02 {
            padding-left: 0;
            background-image: none;
        }

    .ChangeInfor_IHP td {
        padding: 5px 0px 5px 0;
    }

    .ChangeInfor_IHP caption {
        display: none;
    }

    .ChangeInfor_IHP #selPwdInstitution, .ChangeInfor_IHP #selPwdFacility {
        margin: 0;
    }

    .ChangeInfor_IHP .input_change {
        margin: 0 0 0 5px;
    }

.changePwdPopup {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: url('../../images/login/bg_change_wrap.png') repeat;
    z-index: 5;
}

.ChangeArea {
    position: relative;
    width: 412px;
    height: 230px;
    top: 50%;
    margin: -100px auto 0 auto;
}

#chk_pw_loging {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

#chk_pw_loging_IHP {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.ChangeContainer {
    position: absolute;
    text-align: left;
    width: 380px;
    height: 220px;
    left: 16px;
    top: 5px;
}

.ChangeTitle {
    text-align: center;
    padding: 5px 0 0;
    height: 31px;
    color: #c8d4df;
    font-size: 13px;
    font-weight: bold;
}

    .ChangeTitle > span {
        display: inline-block;
        height: 15px;
    }

.ChangeInfor {
    margin: 5px 0 0;
    width: 100%;
    height: auto;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 12px;
}

    .ChangeInfor th {
        padding: 0;
        min-width: 145px;
        text-align: left;
    }

    .ChangeInfor td {
        padding: 5px 0;
    }

    .ChangeInfor caption {
        display: none;
    }

.ChangeBtn {
    text-align: center;
}

    .ChangeBtn button.BtnSend {
        padding: 0px 15px 4px 15px;
        height: 23px;
        background: url('../../images/Popup/btn2_off.png') repeat-x;
        border: 0px;
        color: #1f2f3f;
        font-size: 12px;
        font-family: inherit;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        display: inline-block;
    }

        .ChangeBtn button.BtnSend:hover {
            padding: 0px 15px 4px 15px;
            height: 22px;
            background: url('../../images/Popup/btn2_on.png') repeat-x;
            border: 0px;
            color: #1f2f3f;
            font-size: 12px;
            font-family: inherit;
            -webkit-border-radius: 3px;
            -moz-border-radius: 3px;
            border-radius: 3px;
            display: inline-block;
        }

.password-alert-msg {
    font-size: 12px;
    font-family: 'Segoe UI';
    color: #72c1f9;
    background-color: transparent;
    text-align: center;
}

    .password-alert-msg:before {
        content: '';
        background: url('/Assets/image/login/ic_alarm.png') no-repeat center;
    }

#LoginErrorMsgBox {
    z-index: 105;
}

#LoginAlertBox, #cacheBox {
    width: 365px;
    height: 140px;
    z-index: 105;
}



#checkBox {
    width: 365px;
    height: 140px;
    z-index: 105;
}

#LoadingBox {
        width: 365px;
    height: 140px;
    z-index: 105;
}

/*cachestatus*/
#cachestatus {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    padding: 130px 0 0;
    width: 100%;
    height: 100%;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: rgba(0,0,0,0);
    color: #fff;
    font-weight: bold;
}

    #cachestatus #now_status {
        font-size: 11px;
    }

    #cachestatus .progressbar {
        position: relative;
        margin: 0 auto;
        width: 270px;
        height: 4px;
        border-radius: 3px;
        background-color: #626262;
        background-image: linear-gradient(bottom, rgb(98,98,98) 33%, rgb(69,69,69) 64%);
        background-image: -o-linear-gradient(bottom, rgb(98,98,98) 33%, rgb(69,69,69) 64%);
        background-image: -moz-linear-gradient(bottom, rgb(98,98,98) 33%, rgb(69,69,69) 64%);
        background-image: -webkit-linear-gradient(bottom, rgb(98,98,98) 33%, rgb(69,69,69) 64%);
        background-image: -ms-linear-gradient(bottom, rgb(98,98,98) 33%, rgb(69,69,69) 64%);
        background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0.33, rgb(98,98,98)), color-stop(0.64, rgb(69,69,69)) );
        z-index: 50;
    }

    #cachestatus #checking {
        position: absolute;
        top: 0px;
        left: 0px;
        height: 4px;
        border-radius: 2px;
        background-color: #65b8ff;
        background-image: linear-gradient(bottom, rgb(101,186,255) 33%, rgb(113,148,211) 64%);
        background-image: -o-linear-gradient(bottom, rgb(101,186,255) 33%, rgb(113,148,211) 64%);
        background-image: -moz-linear-gradient(bottom, rgb(101,186,255) 33%, rgb(113,148,211) 64%);
        background-image: -webkit-linear-gradient(bottom, rgb(101,186,255) 33%, rgb(113,148,211) 64%);
        background-image: -ms-linear-gradient(bottom, rgb(101,186,255) 33%, rgb(113,148,211) 64%);
        background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0.33, rgb(101,186,255)), color-stop(0.64, rgb(113,148,211)) );
        z-index: 55;
        overflow: hidden;
    }

.popup_box-color {
    border: 1px solid #304961;
    border-radius: 4px;
    background-color: #2c4662;
}

    .popup_box-color .wrap_Text {
        margin: 0 2px 2px;
        padding: 15px 0;
        min-height: 65px;
        border: 1px solid #324455;
        border-radius: 4px;
        background-color: #567087;
        text-align: center;
        color: #fff;
    }

        .popup_box-color .wrap_Text > div, .popup_box .wrap_Text > div {
            margin: 10px auto 0;
            width: 150px;
            height: auto;
        }

.popup-alert-textarea {
    width: 330px;
    height: 30px;
    background-color: transparent;
    font-size: 12px;
    color: #c8d4df;
    border: 0;
    overflow-x: hidden;
    overflow-y: auto;
    resize: none;
    margin: 0 10px;
}

.popup-alert-textarea {
    margin: 0 10px;
}

.ChangeArea-ihp textarea {
    border: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    resize: none;
    padding: 2px 7px 0 7px;
    box-sizing: border-box;
    vertical-align: central;
}

#ChangeUserPwdMessage {
    font-size: 12px;
    color: #ffffff;
    font-family: 'Segoe UI';
    font-weight: bold;
    text-align: center;
    background-color: transparent;
}

.password-complexity {
    background-color: transparent;
    color: #ff8656;
    font-size: 12px;
    padding: 5px 0 0 5px;
    width: 98%;
}

#share #LoginArea, #share .LoginLine {
    width: auto;
    background-position: center center;
}
</style>
<script>/**
*@ AshAPI	|
 Author : 			An.sehan (www.happyfri.com / [email protected])
 Creation Date : 	2007.12.04
 Last Modified : 	2010.11.12
 Version : 		2.01

*/
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

if( !Array.prototype.indexOf){
	
	Array.prototype.indexOf=function(o){for(var l=this.length,i=0;i<l;i++)if(this[i]==o)return i;return-1;}}
if( !Array.prototype.remoteCall){
	Array.prototype.remoteCall=function(callback,thisObj){if(!callback)return false;for(var l=this.length,i=0;i<l;i++)if(callback.call( thisObj||this,i,this[i])===false)return false;return true;}}
var Ash=function(){};Ash.prototype={_class:null,initialize:null,
	instancedCount:0,
	getClass:function(){return this._class?this._class:this.constructor;},
	getClassName:function(){return this.getClass()._className;},
	toString:function(){var cls=this.constructor;return cls._className?'object '+cls._className:this;}}
Ash._className='Ash';
Ash.createClass=function(className,extendClass){var cls=function(){if(arguments[0]=='ashclassextended'){if(this.initialize)this.initialize(arguments[0]+'&DDAKZZI');}
else{this.instancedCount=++this.constructor._instancedCount;if(this.__commonAshreMembers!=null)this.__commonAshreMembers();
			if(this.initialize)this.initialize.apply(this,arguments);
		}}
cls._instancedCount=0;if(className)cls._className=className;if(extendClass){cls.prototype=new extendClass('ashclassextended');cls.prototype.constructor=cls;
		cls.superClass=extendClass;
		 
		cls.callSuperMethod=function(superMethodName,thisInstance,argsArray){cls.superClass.prototype[superMethodName].apply(thisInstance,argsArray?argsArray:[null]);};}
return cls;}
Ash.addPrototype=function(theClass,protoObj){for(var pro in protoObj)theClass.prototype[pro]=protoObj[pro];}
Ash.multiInheritance=function(superClass,subClass){for(var pro in superClass.prototype)subClass.prototype[pro]=superClass.prototype[pro];subClass.prototype.constructor=subClass;}  
Ash.NAMESPACE_URL='http://www.happyfri.com';Ash.support=function(){window.open(Ash.NAMESPACE_URL);};
var AshUtil=Ash.createClass('AshUtil',Ash);
AshUtil.toProperty=function(obj){var value='';for(var p in obj)value+=","+p+"="+obj[p];value=value.replace(/,/,'');return"{"+value+"}";}
AshUtil.availableBrowser=function(){var na=navigator.appVersion,nu=navigator.userAgent;return{win:/win/i.test(na),ie:/msie/i.test(na),ie8:/MSIE 8/i.test(na),ie7:/MSIE 7/i.test(na),ie6:/MSIE 6/i.test(na),ff:/firefox/i.test(nu),opera:/opera/i.test(nu),safari:/AppleWebKit/i.test(nu)&&!/chrome/i.test(nu),chrome:/chrome/i.test(nu)};}
AshUtil.browser=AshUtil.availableBrowser();var BI=AshUtil.browser;
AshUtil.random=function(max){return Math.floor(Math.random()*max);}
AshUtil.randomRange=function(min,max){return Math.floor(Math.random()*(max-min+1))+min;}
AshUtil.minToMax=function(value,min,max){return Math.min(Math.max(value,min),max);}
AshUtil.arrayShuffle=function(arr,callback){for(var ran1,ran2,save,l=arr.length,i=0;i<l;i++){ran1=AshUtil.random(l);ran2=AshUtil.random(l);save=arr[ran1];arr[ran1]=arr[ran2];arr[ran2]=save;if(callback!=null)callback(i,arr[i]);}
return arr;}
AshUtil.cloneObject=function(obj){var cloner=function(){};cloner.prototype=obj;return new cloner();}
AshUtil.obj=function(id,win){win=win||window;return win.document.getElementById(id);}
AshUtil.getElementsByCName=function(target,cname){var elements=[];var g=function(t){for(var l=t.childNodes.length,c=null,i=0;i<l;i++){c=t.childNodes[i];if(c.nodeType==1&&c.getAttribute('cname')==cname)elements.push(c);if(c.hasChildNodes())g(c);}}
g(target);return elements;}
AshUtil.getChildByName=function(obj,name){if(!obj||!name)return null;for(var l=obj.childNodes.length,c=null,cn=null,i=0;i<l;i++){cn=obj.childNodes[i];if(cn.nodeType==1&&cn.getAttribute('name')==name)return cn;if(cn.hasChildNodes())c=AshUtil.getChildByName(cn,name);if(c)return c;}
return c;}
AshUtil.getChildByDotTree=function(dotTree){var getChild=function(obj,name){for(var l=obj.childNodes.length,c,o=null,i=0;i<l;i++){c=obj.childNodes[i];if(c.nodeType==1){if(c.getAttribute('id')==name||c.getAttribute('name')==name)return c;o=getChild(c,name);if(o)return o;}}
return o;}
var trees=dotTree.split('.');var obj=AshUtil.obj(trees[0]);for(var l=trees.length,i=1;i<l;i++){obj=getChild(obj,trees[i]);if(!obj)return null;}
try{return obj;}
finally{
	};}
AshUtil.getChildByClassName=function(obj,className){if(!obj||!className)return null;for(var l=obj.childNodes.length,c=null,cn=null,i=0;i<l;i++){cn=obj.childNodes[i];if(cn.nodeType==1&&cn.className==className)return cn;if(cn.hasChildNodes())c=AshUtil.getChildByClassName(cn,className);if(c)return c;}
return c;}
AshUtil.getChildByClassNameDotTree=function(dotTree){var getChild=function(obj,className){for(var l=obj.childNodes.length,c,o=null,i=0;i<l;i++){c=obj.childNodes[i];if(c.nodeType==1){if( c.className==className)return c;o=getChild(c,className);if(o)return o;}}
return o;}
var trees=dotTree.split('.');var obj=AshUtil.obj(trees[0]);for(var l=trees.length,i=1;i<l;i++){obj=getChild(obj,trees[i]);if(!obj)return null;}
return obj;}
AshUtil.contains=function(parent,child){while(child){if(child==parent)return true;child=child.parentNode;}
return false;}
AshUtil.removeAllChild=function(target){if(!target)return;try{target.innerHTML='';}
catch(error){for(var l=target.childNodes.length,i=l-1;i>=0;i--)target.removeChild(target.childNodes[i]);};}
AshUtil.move=function(target,x,y){if(target&&target.style)target.style.left=x+'px',target.style.top=y+'px';}
AshUtil.resize=function(target,w,h){
	if(target&&target.style){target.style.width=(typeof w=='string')?w:w+'px';target.style.height=(typeof h=='string')?h:h+'px';}}
AshUtil.rebound=function(target,x,y,w,h){AshUtil.move(target,x,y);AshUtil.resize(target,w,h);}
AshUtil.getStyle=function(obj,prop){if(obj.style[prop])return obj.style[prop];else if(obj.currentStyle&&obj.currentStyle[prop])return obj.currentStyle[prop];else if(window.getComputedStyle){
		var styleobj=obj.ownerDocument.defaultView.getComputedStyle(obj,null);if(styleobj)return styleobj[prop];}
return'';}
AshUtil.getBounds=function(obj){if(!obj)return{x:0,y:0,width:0,height:0};var pl=parseInt(AshUtil.getStyle(obj,'paddingLeft')),pr=parseInt(AshUtil.getStyle(obj,'paddingRight')),pt=parseInt(AshUtil.getStyle(obj,'paddingTop')),pb=parseInt(AshUtil.getStyle(obj,'paddingBottom'));if(isNaN(pl))pl=0;if(isNaN(pr))pr=0;if(isNaN(pt))pt=0;if(isNaN(pb))pb=0;var x=obj.offsetLeft?obj.offsetLeft:parseInt(AshUtil.getStyle(obj,'left')),y=obj.offsetTop?obj.offsetTop:parseInt(AshUtil.getStyle(obj,'top')),w=obj.offsetWidth?obj.offsetWidth-(pl+pr):parseInt(AshUtil.getStyle(obj,'width')),h=obj.offsetHeight?obj.offsetHeight-(pt+pb):parseInt(AshUtil.getStyle(obj,'height'));if(isNaN(x))x=0;if(isNaN(y))y=0;if(isNaN(w))w=0;if(isNaN(h))h=0;return{x:x,y:y,width:w,height:h};}
AshUtil.globalCoordinates=function(obj){var x=0,y=0,cobj=obj;while(obj){x+=obj.offsetLeft||0;y+=obj.offsetTop||0;obj=obj.offsetParent;}
	if(AshUtil.browser.ie){for(;;){if(cobj.parentNode==document.body||!cobj)break;else cobj=cobj.parentNode;}
if(cobj){x+=-parseInt(AshUtil.getStyle(cobj,'paddingLeft'))||0;y+=-parseInt(AshUtil.getStyle(cobj,'paddingTop'))||0}}
return{x:x,y:y};}
AshUtil.hitTest=function(target1,target2){if(!target1||!target2)return false;var p1=AshUtil.globalCoordinates(target1),p2=AshUtil.globalCoordinates(target2);var w1=target1.offsetWidth,h1=target1.offsetHeight,w2=target2.offsetWidth,h2=target2.offsetHeight;if((p1.x-w2<p2.x&&p2.x<p1.x+w1)&&(p1.y-h2<p2.y&&p2.y<p1.y+h1))return true;return false;}
AshUtil.setInnerText=function(obj,value,win){win=win||window;if(obj)obj.replaceChild(win.document.createTextNode(value),obj.firstChild);}
AshUtil.getInnerText=function(obj){if(obj){if(obj.innerText)return obj.innerText;
		if(obj.textContent)return obj.textContent;
		return obj.nodeType==3?obj.nodeValue:obj.innerHTML;
	}
return'';}
AshUtil.toJSON=function(data){var result='';switch(typeof data){case'boolean':return data?'true':'false';case'number':return data;case'string':return'"'+data.replace(/\\/g,'\\\\').replace(/\r\n/g,'\\n').replace(/\r/g,'\\n').replace(/\"/g,'\\"')+'"';case'object':var isArray=data.constructor==Array?true:false;for(var i in data)result+=isArray?AshUtil.toJSON(data[i])+', ':_SAVN(i)+':'+AshUtil.toJSON(data[i])+', ';result=isArray?'['+result.substr(0,result.length-2)+']':'{'+result.substr(0,result.length-2)+'}';break;}
return result;}
function _SAVN(n){
		if(n.search(/^[0-9]+|[^a-zA-Z0-9_$]/)!=-1)return'"'+n+'"';return n;}
AshUtil.jsonToValue=function(json){eval('var value='+json);return value;}
AshUtil.document=Ash.createClass('AshUtil.document',Ash);
AshUtil.document.importJS=function(src,callback){var scriptElem=document.createElement('script'),node=document.getElementsByTagName('head')[0]||document.body;scriptElem.setAttribute('src',src);scriptElem.setAttribute('type','text/javascript');if(callback)scriptElem.onload=callback;node.appendChild(scriptElem);}
AshUtil.document.importCSS=function(href,callback){var linkElem=document.createElement('link'),node=document.getElementsByTagName('head')[0]||document.body;linkElem.setAttribute('rel','stylesheet');linkElem.setAttribute('type','text/css');linkElem.setAttribute('media','screen');linkElem.setAttribute('href',href);if(callback)linkElem.onload=callback;node.appendChild(linkElem);}
AshUtil.document.runtimeAddCSS=function(cssFullSyntax,index){var styleSheet;if(!document.getElementsByTagName('style')[index||0]){document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));styleSheet=document.styleSheets[0];}
else styleSheet=document.styleSheets[index||0];if(AshUtil.browser.ie){var selectors=cssFullSyntax.replace(/\{.*/,'').split(','),style=cssFullSyntax.replace(/^.*\{/,'').replace(/\}.*$/,'');for(var l=selectors.length,i=0;i<l;i++)styleSheet.addRule(selectors[i],style);}
else styleSheet.insertRule(cssFullSyntax,styleSheet.cssRules.length);}
AshUtil.document.runtimeReplaceCSS=function(cssFullSyntax,index){var styleSheet;if(!document.getElementsByTagName('style')[index||0]){document.getElementsByTagName('head')[0].appendChild(document.createElement('style'));styleSheet=document.styleSheets[0];}
else styleSheet=document.styleSheets[index||0];if(AshUtil.browser.ie)for(var i=styleSheet.rules.length-1;i>=0;i--)styleSheet.removeRule(i);else for(var i=styleSheet.cssRules.length-1;i>=0;i--)styleSheet.deleteRule(i);AshUtil.document.runtimeAddCSS(cssFullSyntax,index);}
AshUtil.document.getCSSInStyleElement=function(index){return document.getElementsByTagName('style')[index||0].innerHTML;}
AshUtil.document.scrollInfo=function(){var obj=document.documentElement,info={left:0,top:0};if(AshUtil.browser.safari)obj=document.body;info.left=obj.scrollLeft,info.top=obj.scrollTop;return info;}
AshUtil.document.addOption=function(selectObj,values){if(selectObj&&values){var o=document.createElement("option");selectObj.options.add(o);o.value=values.value;o.innerHTML=values.text;}}
AshUtil.filter=Ash.createClass('AshUtil.filter',AshUtil);
AshUtil.filter.opacity=function(obj,value){try{if(obj){value=AshUtil.minToMax(value,0,1);if(AshUtil.browser.ie)obj.style.filter="alpha(opacity="+(value*100)+")";
			else obj.style.opacity=value;}}
catch(error){}}
AshUtil.filter.blur=function(obj,enabled,radius){try{var availbro=AshUtil.browser;enabled=enabled?true:false;radius=radius||3;if(obj&&availbro.ie){
			if( isNaN(parseInt(obj.style.width)))obj.style.width=obj.offsetWidth+'px';if( isNaN(parseInt(obj.style.height)))obj.style.height=obj.offsetHeight+'px';obj.style.filter="progid:DXImageTransform.Microsoft.Blur(pixelradius="+radius+", enabled='"+enabled+"')";}}
catch(error){}}
AshUtil.color=Ash.createClass('AshUtil.color',AshUtil);
AshUtil.color.toRGB=function(value){if(value.search(/rgb/i)!=-1){
		value=value.replace(/rgb.*\(/,'');value=value.split(',');return Math.floor(parseInt(value[0]))*65536+Math.floor(parseInt(value[1]))*256+Math.floor(parseInt(value[2]));}
return parseInt(value.replace(/#/,'0x'))}
AshUtil.color.toHEX=function(value){if(typeof value=='string'){if(value.search(/rgb/i)!=-1){
			value=AshUtil.color.toRGB(value);}}
var c=function(v){var r=v.toString(16);if(r.length==1)r='0'+r;return r.toUpperCase();};var r=(value>>16),g=(value>>8^ r<<8),b=(value^ (r<<16|g<<8));return'#'+c(r)+c(g)+c(b);}
AshUtil.color.brightness=function(color,ratio){var colors=AshUtil.color.getGradient(color,0xffffff,100);return colors[ratio*100];}
AshUtil.color.darkness=function(color,ratio){var colors=AshUtil.color.getGradient(color,0x000000,100);return colors[ratio*100];}
AshUtil.color.getGradientMap=function(seqeunceColors,seqeunceLength){var colors=[],scs=seqeunceColors,n=seqeunceLength;for(var l=scs.length,i=0;i<l;i++)colors=colors.concat(AshUtil.color.getGradient(scs[i][0],scs[i][1],n));return colors;}
AshUtil.color.drawGradient=function(target,seqeunceColors,seqeunceLength,w,h,vertical){var colors=AshUtil.color.getGradientMap(seqeunceColors,seqeunceLength),dw,dh,l,c;var dummy=document.createElement('DIV');dummy.style.border='0px';dummy.style.position='absolute';l=colors.length;dw=Math.round(w/l);dh=Math.round(h/l);AshUtil.removeAllChild(target);for(var i=0;i<l;i++){c=target.appendChild(dummy.cloneNode(true));c.style.backgroundColor=AshUtil.color.toHEX(colors[i]);if(vertical)AshUtil.rebound(c,0,dh*i,w,dh);else AshUtil.rebound(c,dw*i,0,dw,h);}}
AshUtil.color.getGradient=function(beginColor,endColor,gLength){var colors=[],b=beginColor,e=endColor,n=gLength||100;var b1=b%256,b2=e%256;var g1=((b-b1)/256)%256,g2=((e-b2)/256)%256;var r1=(b-b1-g1*256)/65536,r2=(e-b2-g2*256)/65536;for(var i=0;i<n;i++)colors[i]=b1+(b2-b1)*i/(n-1)+Math.floor((g1+(g2-g1)*i/(n-1)))*256+Math.floor((r1+(r2-r1)*i/(n-1)))*65536;return colors;}
AshUtil.color.drawSwatch=function(target,size){var c,i,j,x,y,ri=0,gi=0,bi=0;var cols=['00','33','66','99','cc','ff'];var extraCols=[0x000000,0x333333,0x666666,0x999999,0xcccccc,0xffffff,0xff0000,0x00ff00,0x0000ff,0xffff00,0x00ffff,0xff00ff];var r=cols[0],g=cols[0],b=cols[0],col;var dummy=document.createElement('DIV'),createPallet;dummy.style.border='0px';dummy.style.position='absolute';size=size||9;createPallet=function(color){var d=dummy.cloneNode(true);AshUtil.resize(d,size,size);d.style.backgroundColor=AshUtil.color.toHEX(color);try{return d;}
finally{
		};}
for(i=0;i<36;i++){if(i%6==0)r=cols[ri++];g=cols[gi++];if(gi>5)gi=0;for(j=0;j<6;j++){b=cols[j];col='0x'+r+g+b;c=createPallet(parseInt(col));x=size+(i*size-(i<18?0:18*size));y=j*size+(i<18?0:6*size);target.appendChild(c);AshUtil.move(c,x,y);}}
for(i=0;i<12;i++){c=createPallet(extraCols[i]);target.appendChild(c);AshUtil.move(c,0,i*size);}}
var AshEvent=Ash.createClass('AshEvent',Ash);Ash.addPrototype(AshEvent,{
	type:null,
	bubbles:false,
	cancelable:false,
	target:null,
	eventPhase:null,
	currentTarget:null,
	parameters:null});
AshEvent.prototype.initialize=function(){var args=arguments;this.type=args[0]||null,this.bubbles=args[1]?true:false,this.cancelable=args[2]?true:false;}
var AshEventDispatcher=Ash.createClass('AshEventDispatcher',Ash);Ash.addPrototype(AshEventDispatcher,{
	owner:null,
	_listenerObj:null,
	tempData:null,
	openData:null,
	_processDispatchEvent:function(event){var listeners=this._listenerObj[event.type];if(listeners){for(var listener,l=listeners.length,i=0;i<l;i++){listener=listeners[i];listener.call(this,event);}}}});
AshEventDispatcher.prototype.__commonAshreMembers=function(){this._listenerObj={};this.tempData={},this.openData={};}
AshEventDispatcher.prototype.initialize=function(){this.owner=arguments[0]||null;}
AshEventDispatcher.prototype.addEventListener=function(type,listener,useCapture){try{if(!this._listenerObj[type])this._listenerObj[type]=[];this.removeEventListener(type,listener,useCapture);this._listenerObj[type].push(listener);if(this.owner){if(this.owner.addEventListener)this.owner.addEventListener(type,listener,useCapture);else if(this.owner.attachEvent)this.owner.attachEvent('on' +type,listener);}}
catch(err){};}
AshEventDispatcher.prototype.removeEventListener=function(type,listener,useCapture){try{var listeners=this._listenerObj[type];if(this.owner){if(this.owner.removeEventListener)this.owner.removeEventListener(type,listener,useCapture);else if(this.owner.attachEvent)this.owner.detachEvent('on' +type,listener);}
if(listeners){for(var l=listeners.length,i=0;i<l;i++){if(listeners[i]==listener){listeners.splice(i,1);return;}}}}
catch(err){};}
AshEventDispatcher.prototype.dispatchEvent=function(event,parameters){if(!event||!event.type||typeof event!='object')return;if(!event.target)event.target=this.owner?this.owner:this;if(parameters)event.parameters=parameters;this._processDispatchEvent(event);}
AshEventDispatcher.prototype.hasEventListener=function(type){return this._listenerObj[type]?true:false;}
AshEventDispatcher.prototype.getEventListeners=function(type){return this._listenerObj[type];}
var AshTimer=Ash.createClass('AshTimer',AshEventDispatcher);
AshTimer.TIMER="timer";
AshTimer.FINISH="finish ";
AshTimer.DEFAULT_DELAY=Math.round(1000/60);
AshTimer.engine=(function(){var isAF=true,f=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(!f){isAF=false;f=function(callback){return window.setTimeout(callback,1000/60);};}
return{isAF:isAF,f:f};})();Ash.addPrototype(AshTimer,{
	delay:0,
	repeatCount:0,
	currentCount:0,
	running:false,
	onTimer:null,
	onFinish:null,
		_intervalID:null,
	initialize:function(delay,repeatCount){this.delay=delay||AshTimer.DEFAULT_DELAY;this.repeatCount=repeatCount||0;var eventHandler=function(e){switch(e.type){case AshTimer.TIMER:this.running=true;if(this.onTimer)this.onTimer(e);if((this.currentCount>=this.repeatCount)&&this.repeatCount!=0)this.stop();else this.currentCount++;break;case AshTimer.FINISH:this.running=false;if(this.onFinish)this.onFinish(e);break;}}
this.addEventListener(AshTimer.TIMER,eventHandler);this.addEventListener(AshTimer.FINISH,eventHandler);},
	start:function(){var own=this,isAF=AshTimer.engine.isAF,f=AshTimer.engine.f;this._timingFunciton=function(){own.dispatchEvent(new AshEvent(AshTimer.TIMER),{delay:own.delay,repeatCount:own.repeatCount,currentCount:own.currentCount,running:own.running});}
		if(isAF&&this.delay<=AshTimer.DEFAULT_DELAY){this._aFCallback=function(){if(own._timingFunciton)own._timingFunciton();f(own._aFCallback);}
f(this._aFCallback);}
else{window.clearInterval(this._intervalID);this._intervalID=window.setInterval(this._timingFunciton,this.delay);}},
	stop:function(){this._timingFunciton=null;this._aFCallback=null;window.clearInterval(this._intervalID);if(this.running)this.dispatchEvent(new AshEvent(AshTimer.FINISH),{delay:this.delay,repeatCount:this.repeatCount,currentCount:this.currentCount,running:this.running});},
	reset:function(){this.stop();this.currentCount=0;}});
var AshTween=Ash.createClass('AshTween',AshEventDispatcher);
AshTween.START='start';
AshTween.PLAYING='playing';
AshTween.REPEAT='repeat';
AshTween.FINISH='finish';
AshTween.EASING_DEFAULT='out';
AshTween.EASING_NONE_IN='none.in';
AshTween.EASING_NONE_OUT='none.out';
AshTween.EASING_NONE_INOUT='none.inout';
AshTween.EASING_REGULAR_IN='regular.in';
AshTween.EASING_REGULAR_OUT='regular.out';
AshTween.EASING_REGULAR_INOUT='regular.inout';
AshTween.EASING_STRONG_IN='strong.in';
AshTween.EASING_STRONG_OUT='strong.out';
AshTween.EASING_STRONG_INOUT='strong.inout';
AshTween.EASING_BACK_IN='back.in';
AshTween.EASING_BACK_OUT='back.out';
AshTween.EASING_BACK_INOUT='back.inout';
AshTween.EASING_BOUNCE_IN='bounce.in';
AshTween.EASING_BOUNCE_OUT='bounce.out';
AshTween.EASING_BOUNCE_INOUT='bounce.inout';
AshTween.tweenLength=0;
AshTween.listeners=[];AshTween.timer=new AshTimer;AshTween.ct=0;AshTween.started=false;AshTween.easing={none:{_in:function(t,b,c,d){return c*t/d+b;},_out:function(t,b,c,d){return c*t/d+b;},_inout:function(t,b,c,d){return c*t/d+b;}},regular:{_in:function(t,b,c,d){return c*(t/=d)*t+b;},_out:function(t,b,c,d){return-c*(t/=d)*(t-2)+b;},_inout:function(t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;}},strong:{_in:function(t,b,c,d){return c*(t/=d)*t*t*t*t+b;},_out:function(t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},_inout:function(t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;}},back:{_in:function(t,b,c,d){var s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},_out:function(t,b,c,d){var s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},_inout:function(t,b,c,d){var s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;}},bounce:{_in:function(t,b,c,d){return c-AshTween.easing.bounce._out(d-t,0,c,d)+b;},_out:function(t,b,c,d){if((t/=d)<(1/2.75))return c*(7.5625*t*t)+b;else if(t<(2/2.75))return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;else if(t<(2.5/2.75))return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;else return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;},_inout:function(t,b,c,d){if(t<d/2)return AshTween.easing.bounce._in(t*2,0,c,d)*.5+b;else return AshTween.easing.bounce._out(t*2-d,0,c,d)*.5+c*.5+b;}}}
	AshTween.getEasing=function(easingName){easingName=easingName||'out';var f=AshTween.easing;var dotStr=(easingName.toLowerCase()).split('.');if(dotStr.length==1)dotStr=['strong'].concat(dotStr);dotStr[1]='_'+dotStr[1];for(var i=0;i<dotStr.length;i++){f=f[dotStr[i]];if(!f)return AshTween.easing.bounce._out;}
return f;}
	AshTween.addListener=function(tween){var index=AshTween.listeners.length;if(AshTween.existTween(tween))return;AshTween.listeners[index]=tween;tween.tweenIndex=index;}
	AshTween.removeListenerToIndex=function(index){return delete AshTween.listeners[index];}
	AshTween.removeListener=function(tween){for(var i in AshTween.listeners){if(AshTween.listeners[i]==tween){return delete AshTween.listeners[i];}}
return false;}
AshTween.existTween=function(tween){for(var i in AshTween.listeners){if(AshTween.listeners[i]==tween){return true;}}
return false;}
AshTween.start=function(){if(this.started)return;this.started=true;var internalFunc=function(){var t=AshTween.ct=(new Date).getTime(),tween,leng=0;for(var i in AshTween.listeners){tween=AshTween.listeners[i];if(tween.isPlaying)tween.tweenValidate(t);leng++;}
AshTween.tweenLength=leng;}
this.timer.addEventListener(AshTimer.TIMER,internalFunc);this.timer.start();internalFunc();}
Ash.addPrototype(AshTween,{
	useCountDuration:false,
	startValue:null,
	endValue:null,
	tweenedValue:null,
	duration:0,
	position:0,
	repeatCount:0,
	isPlaying:false,
	coworkMotioner:null,
	coworkName:null,
	easing:null,tweenIndex:0,repeatCountLength:0,callback:null,st:0,
	initialize:function(){var own=this;var args=arguments;this.startValue=args[0];this.endValue=args[1];this.duration=args[2]||1000;this.setEasing(args[3]);this.repeatCount=args[4]!=null?args[4]:1;this.useCountDuration=args[5]?true:false;},
	setEasing:function(easingName){this.easing=AshTween.getEasing(easingName||'out');},
	play:function(callback){this.callback=null;
		if( callback!=null)this.callback=callback;this.position=this.repeatCountLength=0;this.isPlaying=true;if( !this.useCountDuration)this.st=AshTween.ct;this.tweenedValue=this.ipv( this.startValue,this.endValue,this.easing(this.position,0,1,this.duration));this.castEvent(AshTween.START);AshTween.addListener(this);},
	stop:function(){this.callback=null;this.isPlaying=false;AshTween.removeListenerToIndex(this.tweenIndex);},
	pause:function(){this.isPlaying=false;},
	resume:function(){this.isPlaying=true;if( !this.useCountDuration)this.st=AshTween.ct-this.position;},
		tweenValidate:function(t){if( this.useCountDuration)this.position++;else this.position=(t-this.st);if( this.position<=this.duration){this.tweenedValue=this.ipv( this.startValue,this.endValue,this.easing(this.position,0,1,this.duration));this.castEvent( AshTween.PLAYING);}
else{this.repeatCountLength++;if( this.repeatCount==0?true:this.repeatCountLength<this.repeatCount)
				{this.castEvent( AshTween.REPEAT);this.position=0;if( !this.useCountDuration)this.st=t;}
else{this.tweenedValue=this.endValue;this.position=0;this.isPlaying=false;this.castEvent( AshTween.FINISH);
					
					
					if(this.isPlaying)return;this.stop();}}},ipv:function(s,e,p){var r;if(typeof e=='number')r=Number(s)*(1-p)+Number(e)*p;else if( typeof e=='object' ){r=new e['constructor'];
				for(var i in e)r[i]=ipv( s[i],e[i],p);}
return r;},castEvent:function(type){var e=new AshEvent(type);e.parameters={tweenedValue:this.tweenedValue,position:this.position,duration:this.duration};if(this.coworkMotioner)this.coworkMotioner.remoteCallAshTween(e,this.coworkName);else{if(this.callback)this.callback.call(this,e);}
this.dispatchEvent( e);}});AshTween.start();
var AshMotioner=Ash.createClass('AshMotioner',AshEventDispatcher);
AshMotioner.X='x';
AshMotioner.Y='y';
AshMotioner.WIDTH='width';
AshMotioner.HEIGHT='height';
AshMotioner.ALPHA='alpha';
AshMotioner.ALL='all';
Ash.addPrototype(AshMotioner,{
	duration:1000,
	easingName:'out',
	repeatCount:1,
	useCountDuration:false,
	tweens:null,fromV:null,toV:null,allp:null,
	
	initialize:function(){var own=this;var args=arguments;this.tweens={};this.fromV={};this.toV={};this.allp={};this.owner=args[0]||null;if(args[1])this.duration=args[1];if(args[2])this.easingName=args[2];if(args[3])this.repeatCount=Number(args[3]);if(args[4])this.useCountDuration=true;},
	x:function(value,duration,easingName,callback,repeatCount,useCountDuration){this._playAsOne('x',value,duration,easingName,callback,repeatCount,useCountDuration);},
	y:function(value,duration,easingName,callback,repeatCount,useCountDuration){this._playAsOne('y',value,duration,easingName,callback,repeatCount,useCountDuration);},
	width:function(value,duration,easingName,callback,repeatCount,useCountDuration){this._playAsOne('width',value,duration,easingName,callback,repeatCount,useCountDuration);},
	height:function(value,duration,easingName,callback,repeatCount,useCountDuration){this._playAsOne('height',value,duration,easingName,callback,repeatCount,useCountDuration);},
	alpha:function(value,duration,easingName,callback,repeatCount,useCountDuration){this._playAsOne('alpha',value,duration,easingName,callback,repeatCount,useCountDuration);},_playAsOne:function( p,value,duration,easingName,callback,repeatCount,useCountDuration){if(!this.owner)return;var at=this.getTween(p);at.startValue=0;at.endValue=1;this.fromV[p]=this.getFromValue(p);this.toV[p]=value;if(duration)at.duration=duration;if(repeatCount!=null)at.repeatCount=repeatCount;if(useCountDuration)at.useCountDuration=useCountDuration;if(easingName)at.setEasing(easingName);at.play(callback);},
	play:function( values,duration,easingName,callback,repeatCount,useCountDuration){if(!this.owner)return;var at=this.getTween('all');
		at.startValue=0;at.endValue=1;this.allp={};for(var p in values){this.clearTween(p);
			this.fromV[p]=this.getFromValue(p);this.toV[p]=values[p];this.allp[p]=true;}
if(duration)at.duration=duration;if(repeatCount!=null)at.repeatCount=repeatCount;if(useCountDuration)at.useCountDuration=useCountDuration;if(easingName)at.setEasing(easingName);at.play(callback);},
	stop:function(){for(var n in this.tweens)this.clearTween(n);this.tweens={};},
	getTween:function(name){var at=this.tweens[name];if(!at){at=this.tweens[name]=new AshTween();at.duration=this.duration;at.repeatCount=this.repeatCount;at.useCountDuration=this.useCountDuration;at.setEasing(this.easingName);at.coworkMotioner=this;at.coworkName=name;}
return at;},
	clearTween:function( name){if( this.tweens[name]){this.tweens[name].coworkMotioner=null;this.tweens[name].coworkName=null;this.tweens[name].stop();delete this.tweens[name];}},
	existTween:function(name){if( this.tweens[name])return true;return false;},
		getFromValue:function(p){var value,p1,p2;if(p=='alpha'){if(AshUtil.browser.ie)value=this.owner.style.filter.indexOf('opacity')!=-1?parseInt((this.owner.style.filter.split('='))[1])/100:1;else{value=parseInt(this.owner.style.opacity);if(isNaN(value))value=1;}}
else{switch(p){case'x':p1='left',p2='offsetLeft';break;case'y':p1='top',p2='offsetTop';break;case'width':p1='width',p2='offsetWidth';break;case'height':p1='height',p2='offsetHeight';break;}
value=parseInt(this.owner.style[p1]);if(isNaN(value)){value=parseInt(this.owner[p2]);if(isNaN(value))value=0;}}
return value;},remoteCallAshTween:function(e,name){var tv=e.parameters.tweenedValue;if(name=='all')for(var n in this.allp)this.processMotion(n,tv);else this.processMotion( name,tv);if(this.tweens[name].callback)this.tweens[name].callback.call(this.tweens[name],e);if(e.type==AshTween.FINISH)this.clearTween(name);this.dispatchEvent(new AshEvent(name),{tweenEvent:e});},processMotion:function(n,p){var value=this.fromV[n]*(1-p)+this.toV[n]*p;switch(n){case'x':this.owner.style.left=Math.round(value)+'px';break;case'y':this.owner.style.top=Math.round(value)+'px';break;case'width':this.owner.style.width=Math.round(value)+'px';break;case'height':this.owner.style.height=Math.round(value)+'px';break;case'alpha':if( /[^.0-9]/g.test(value.toString()))value=Math.round(value);
					if(AshUtil.browser.ie)this.owner.style.filter="alpha(opacity="+(value*100)+")";else this.owner.style.opacity=value;break;}}});
AshMotioner.prototype.left=AshMotioner.prototype.x;
AshMotioner.prototype.top=AshMotioner.prototype.y;
AshMotioner.prototype.tween=AshMotioner.prototype.play;
var AshMotionAgent=Ash.createClass('AshMotionAgent',AshMotioner);
AshMotionAgent.tween=function(target,props,duration,easingName,callback,repeatCount,useCountDuration){var sma=new AshMotionAgent(target);sma.tween(props,duration,easingName,callback,repeatCount,useCountDuration);return sma;}
var AshAgent=Ash.createClass('AshAgent',AshMotionAgent);Ash.addPrototype(AshAgent,{
	initialize:function(){
		this.tweens={};this.fromV={};this.toV={};this.allp={};this.owner=arguments[0];if(arguments[1]&&typeof arguments[1]=='function')arguments[1].call(this);
	},
	getHTML:function(){return this.owner.innerHTML;},
	getOuterHTML:function(){try{if(this.owner.outerHTML)return this.owner.outerHTML;else return(new XMLSerializer).serializeToString(this.owner);}
catch(err){};return'';},
	setHTML:function(htmlText){if(htmlText=='reset')htmlText='';this.owner.innerHTML=htmlText;},
	insertHTML:function(htmlText){var dummy=document.createElement('div');dummy.innerHTML=htmlText;try{return this.addChild(dummy.firstChild);}
finally{
		};},
	insertBeforeHTML:function(htmlText,targetElement){var dummy=document.createElement('div');dummy.innerHTML=htmlText;try{return this.insertBefore(dummy.firstChild,targetElement);}
finally{
		};},
	setInnerText:function(text){AshUtil.setInnerText(this.owner,text);},
	getInnerText:function(){return AshUtil.getInnerText(this.owner);},
	addChild:function(element){return this.owner.appendChild(element);},
	removeChild:function(element){return this.owner.removeChild(element);},
	insertBefore:function(element,targetElement){return this.owner.insertBefore(element,targetElement);},
	getChildAt:function(index){return this.owner.childNodes[index];},
	getFirstChild:function(){return this.owner.firstChild;},
	getLastChild:function(){return this.owner.lastChild;},
	getChildByName:function(name){return AshUtil.getChildByName(this.owner,name);},
	contains:function(child){return AshUtil.contains(this.owner,child);},
	getStyle:function(prop){return AshUtil.getStyle(this.owner,prop);},
	setStyle:function(prop,value){this.owner.style[prop]=value;},
	resetWidth:function(){this.setStyle('width','auto');},
	resetHeight:function(){this.setStyle('height','auto');},
	getWidth:function(){return this.owner.offsetWidth;},
	settWidth:function(value){this.setStyle('width',value+'px');},
	getHeight:function(){return this.owner.offsetHeight;},
	setHeight:function(value){this.setStyle('height',value+'px');},
	move:function(x,y){AshUtil.move(this.owner,x,y);},
	resize:function(w,h){AshUtil.resize(this.owner,w,h);},
	rebound:function(x,y,w,h){AshUtil.rebound(this.owner,x,y,w,h);},
	getBounds:function(){return AshUtil.getBounds(this.owner);},
	globalCoordinates:function(){return AshUtil.globalCoordinates(this.owner);},
	hitTest:function(targetElement){return AshUtil.hitTest(this.owner,targetElement);},
	setOpacity:function(value){AshUtil.filter.opacity(this.owner,value);}});
var AshAJAX=Ash.createClass('AshAJAX',AshEventDispatcher);
AshAJAX.ABORTED='aborted';
AshAJAX.COMPLETED='completed';
AshAJAX.LOAD_ERROR='loadError';
AshAJAX.limitTime=10000;
AshAJAX.createXMLHttp=function(){var xhr;
	try{if(window.ActiveXObject){
			try{
				xhr=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{xhr=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e2){}}}
		else if(window.XMLHttpRequest)xhr=new XMLHttpRequest();return xhr;}
finally{
	}}
AshAJAX.send=function(callback,content,method,url,async,user,password){var ajax=new AshAJAX(content,method,url,async,user,password);ajax.onCompleted=callback;ajax.send();return ajax;}
Ash.addPrototype(AshAJAX,{
	xhr:null,
	content:null,
	method:'POST',
	url:'',
	async:true,
	user:null,
	password:null,
	running:false,
	responseText:null,
	responseXML:null,
	_interval:null,
	onAborted:null,
	onCompleted:null,
	onLoadError:null,
	_onAborted:function(event){if(this.onAborted!=null)this.onAborted(event);},_onCompleted:function(event){if(this.onCompleted!=null)this.onCompleted(event);},_onLoadError:function(event){if(this.onLoadError!=null)this.onLoadError(event);},_reset:function(){this.running=false;clearTimeout(this._interval);},_loadComplete:function(){try{this._reset();this.responseText=this.xhr.responseText;this.responseXML=this.xhr.responseXML;this.dispatchEvent(new AshEvent(AshAJAX.COMPLETED),{readyState:this.xhr.readyState,responseText:this.xhr.responseText,status:this.xhr.status});
			this.xhr.abort();this.xhr=null;}
catch(error){}},_encode:function(data){var result='';for(var p in data)result+=p+'=' +encodeURIComponent(data[p])+'&';return result;}});
AshAJAX.prototype.initialize=function(){args=arguments;this.content=args[0]||null;if(args[1]&&args[1].toUpperCase()=='GET')this.method=args[1];if(args[2])this.url=encodeURI(args[2]);if(args[3]!=null)this.async=args[3];if(args[4])this.user=args[4];if(args[5])this.password=args[5];this.addEventListener(AshAJAX.ABORTED,this._onAborted);this.addEventListener(AshAJAX.COMPLETED,this._onCompleted);this.addEventListener(AshAJAX.LOAD_ERROR,this._onLoadError);}
AshAJAX.prototype.send=function(content,method,url,async,user,password){if(this.running)return;this.running=true;try{var own=this,xhr=this.xhr=AshAJAX.createXMLHttp();this.content=content||this.content;this.method=method||this.method;this.url=url?encodeURI(url):this.url;this.async=async!=null?async:this.async;this.user=user||this.user;this.password=password||this.password;if(!this.url){this._reset();return;}
if(AshUtil.browser.ie){xhr.onreadystatechange=function(){if(xhr.readyState==4)own._loadComplete();};}
else{xhr.onreadystatechange=function(){if(xhr.readyState==4)own._loadComplete();};}
xhr.open(this.method,this.url,this.async,this.user,this.password);if(this.method.toUpperCase()=='POST')xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");xhr.send(this.method.toUpperCase()=='POST'?this._encode(this.content):'unique='+(new Date()).getTime());clearTimeout(this._interval);this._interval=setTimeout(function(){own.abort();own.dispatchEvent(new AshEvent(AshAJAX.LOAD_ERROR));},AshAJAX.limitTime);}
catch(error){this._reset();}}
AshAJAX.prototype.abort=function(){this._reset();if(this.xhr){this.dispatchEvent(new AshEvent(AshAJAX.ABORTED));this.xhr.abort();}}
var AshDepthManager=Ash.createClass('AshDepthManager',AshEventDispatcher);
AshDepthManager.MANAGED='managed';
Ash.addPrototype(AshDepthManager,{
	extraDepth:100,
	lastManagedDepth:100,targets:null,onManaged:null,
	_onManaged:function(e){if(this.onManaged!=null)this.onManaged(e);},isAvailable:function(target){
		if(target&&target.style&&AshUtil.getStyle(target,'position')=='absolute' )return true;return false;},duplieCheckAndReconstruction:function(target){for(var t,ts=this.targets,l=ts.length,i=0;i<l;i++){if(ts[i]==target){ts[i]=null;ts.splice(i,1);return;}}},applyDepth:function(target,mode){this.duplieCheckAndReconstruction(target);switch(mode){case'front':this.targets.push(target);break;case'back':this.targets.unshift(target);break;case'next':if(target.__saveDepthIndex!=null)this.targets.splice(target.__saveDepthIndex+1,0,1);else this.targets.push(target);break;case'prev':if(target.__saveDepthIndex!=null)this.targets.splice(target.__saveDepthIndex-1,0,1);else this.targets.unshift(target);break;}
for(var t,ts=this.targets,l=ts.length,i=0;i<l;i++){t=ts[i];if(t){t.__saveDepthIndex=i;t.style.zIndex=i+this.extraDepth;}
else ts.splice(i,1);}
if( target.__saveDepthIndex!=null){this.lastManagedDepth=target.style.zIndex;this.dispatchEvent(new AshEvent(AshDepthManager.MANAGED),{target:t,depth:t.__saveDepthIndex});}}});
AshDepthManager.prototype.initialize=function(){if(this.instancedCount>=2)throw new Error('no more can’t create an instance[AshDepthManager]');this.targets=[];this.addEventListener(AshDepthManager.MANAGED,this._onManaged);}
AshDepthManager.prototype.register=function(target,applyDepthNow){if(this.isAvailable(target)){this.duplieCheckAndReconstruction(target);this.targets.push(target);if(applyDepthNow)target.style.zIndex=this.lastManagedDepth;}}
AshDepthManager.prototype.unRegister=function(target){if(this.isAvailable(target))this.duplieCheckAndReconstruction(target);}
AshDepthManager.prototype.front=function(target){if(this.isAvailable(target))this.applyDepth(target,'front');}
AshDepthManager.prototype.back=function(target){if(this.isAvailable(target))this.applyDepth(target,'back');}
AshDepthManager.prototype.next=function(target){if(this.isAvailable(target))this.applyDepth(target,'next');}
AshDepthManager.prototype.prev=function(target){if(this.isAvailable(target))this.applyDepth(target,'prev');}
AshDepthManager.manager=new AshDepthManager();
var AshDrag=Ash.createClass('AshDrag',AshEventDispatcher);
AshDrag.DRAG_START='dragStart';
AshDrag.DRAGGING='dragging';
AshDrag.DRAG_STOP='dragStop';
AshDrag.createInitPositionValueForRelative=function(t){if(t){if( !t.__init_for_relative){try{var left=parseInt(AshUtil.getStyle(t,'left')),top=parseInt(AshUtil.getStyle(t,'top'));t.__init_for_relative={x:t.offsetLeft-left||t.offsetLeft,y:t.offsetTop-top||t.offsetTop};}
catch(error){t.__init_for_relative={x:0,y:0};};}}}
Ash.addPrototype(AshDrag,{
	target:null,
	x:0,
	y:0,
	left:0,
	top:0,
	result:{x:0,y:0,left:0,top:0,target:null},
	draggable:true,
	onDragStart:null,
	onDragging:null,
	onDragStop:null,
	_agent:new AshEventDispatcher(document),sx:0,sy:0,useok:false,_onDragStart:function(e){if(this.onDragStart!=null)this.onDragStart(e);},_onDragging:function(e){if(this.onDragging!=null)this.onDragging(e);},_onDragStop:function(e){if(this.onDragStop!=null)this.onDragStop(e);},_pv:function(value){return parseInt(value);},_castEvent:function(eventType){var r=this.result,t=r.target=this.target;r.x=r.left=this.x=this.left=this._pv(t.style.left);r.y=r.top=this.y=this.top=this._pv(t.style.top);this.dispatchEvent(new AshEvent(eventType),r);},
	_onMouseDownRemoteTarget:function(e,callOwner){if(!e||callOwner!=AshDragAndDrop.manager)return;this._onMouseDown(e);},_onMouseDown:function(e){
		var own=arguments.callee.owner,t=e.target||e.srcElement,targetName=null,sinfo=AshUtil.document.scrollInfo();if(!own.useok)return;if(t&&t.getAttribute('ashdrag')=='true'){targetName=t.getAttribute('ashdragtarget');if(targetName){ns=targetName.split('.');if(ns.length==1&&ns[0]!='parent')t=AshUtil.obj(ns[0]);else{for(var i=0;i<ns.length;i++)if(ns[i]=='parent')t=t.parentNode;}}
if(!t)return;if(t.__remoteAccessResizeable)return;
			own.draggable=true;own.target=own.result.target=t;own.sx=sinfo.left+(e.clientX-t.offsetLeft);own.sy=sinfo.top+(e.clientY-t.offsetTop);AshDrag.createInitPositionValueForRelative(t);
			if(AshUtil.getStyle(t,'position')=='relative')own.sx+=t.__init_for_relative.x,own.sy+=t.__init_for_relative.y;own._castEvent(AshDrag.DRAG_START);}},_onMouseMove:function(e){var own=arguments.callee.owner,r=own.result,t=own.target,x,y,dragArea,b,sinfo=AshUtil.document.scrollInfo();if(!own.useok)return;if(t&&own.draggable){x=sinfo.left+(e.clientX-own.sx);y=sinfo.top+(e.clientY-own.sy);dragArea=t.getAttribute('ashdragarea');if(dragArea){b=dragArea.split(',');x=AshUtil.minToMax(x,parseInt(b[0]),parseInt(b[0])+parseInt(b[2]));y=AshUtil.minToMax(y,parseInt(b[1]),parseInt(b[1])+parseInt(b[3]));}
AshUtil.move(t,x,y);own._castEvent(AshDrag.DRAGGING);}},_onMouseUp:function(e){var own=arguments.callee.owner;if(!own.useok)return;own.draggable=false;if( own.target)own._castEvent(AshDrag.DRAG_STOP);own.target=null;},initialize:function(){if(this.instancedCount>=2)throw new Error('no more can’t create an instance[AshDrag]');
		this._onMouseDown.owner=this._onMouseMove.owner=this._onMouseUp.owner=this;this._agent.addEventListener('mousedown',this._onMouseDown);this._agent.addEventListener('mousemove',this._onMouseMove);this._agent.addEventListener('mouseup',this._onMouseUp);this.addEventListener(AshDrag.DRAG_START,this._onDragStart);this.addEventListener(AshDrag.DRAGGING,this._onDragging);this.addEventListener(AshDrag.DRAG_STOP,this._onDragStop);}});
AshDrag.prototype.start=function(){this.useok=true;this.draggable=false;}
AshDrag.prototype.stop=function(){this.useok=false;this.draggable=false;}
AshDrag.prototype.abort=function(){if(this.draggable)this._onMouseUp();}
AshDrag.manager=new AshDrag();AshDrag.manager.start();
var AshDragAndDrop=Ash.createClass('AshDragAndDrop',AshEventDispatcher);
Ash.addPrototype(AshDragAndDrop,{
	target:null,
	targetOwner:null,
	result:{x:0,y:0,left:0,top:0,target:null,targetOwner:null},
	alpha:0.5,
	onDragStart:null,
	onDragging:null,
	onDragStop:null,
	useok:false,_agent:new AshEventDispatcher(document),_onDragStart:function(e){if(this.onDragStart!=null)this.onDragStart(e);},_onDragging:function(e){if(this.onDragging!=null)this.onDragging(e);},_onDragStop:function(e){if(this.onDragStop!=null)this.onDragStop(e);},_clearTarget:function(){if(this.target){if(this.target.parentNode)this.target.parentNode.removeChild(this.target);AshDepthManager.manager.unRegister(this.target);}},_onAshDragCastEvent:function(e){var own=arguments.callee.owner;own.result=e.parameters;own.result.targetOwner=own.targetOwner;own.dispatchEvent(new AshEvent(e.type),own.result);switch(e.type){case AshDrag.DRAG_STOP:own._clearTarget();break;}},_onMouseDown:function(e){var own=arguments.callee.owner,t=e.target||e.srcElement,targetName,b=document.body,c,p,se;own._clearTarget();if(!own.useok)return;try{if(t&&(t=own._findParent(t))){targetName=t.getAttribute('ashdragtarget');if(targetName){ns=targetName.split('.');if(ns.length==1&&ns[0]!='parent')t=AshUtil.obj(ns[0]);else{for(var i=0;i<ns.length;i++)if(ns[i]=='parent')t=t.parentNode;}}
if(!t)return;p=AshUtil.globalCoordinates(t);c=own.target=b.appendChild(t.cloneNode(true));c.owner=own.targetOwner=t;c.setAttribute('ashdrag','true');c.style.position='absolute';c.onselectstart=c.ondragtstart=function(){return false;};if( t.parentNode&&!AshUtil.browser.opera){
					if(t.parentNode.scrollLeft)p.x-=parseInt(t.parentNode.scrollLeft);if(t.parentNode.scrollTop)p.y-=parseInt(t.parentNode.scrollTop);}
AshUtil.rebound(c,p.x,p.y,t.offsetWidth,t.offsetHeight);AshUtil.filter.opacity(c,own.alpha);AshDepthManager.manager.front(c);se=new AshEvent();se.target=c;se.clientX=e.clientX;se.clientY=e.clientY;AshDrag.manager._onMouseDownRemoteTarget(se,own);c.style.display='none';
			}}
catch(error){};},_onMouseMove:function(){var own=arguments.callee.owner;if(own.target){if(own.target.moving)return;own.target.moving=true;own.target.style.display='block';}},_findParent:function(t){var gp=function(t){var obj=null;if(t.nodeName.toUpperCase()=='HTML')return null;if( t.getAttribute('ashdraganddrop')=='true' )return t;else{if(t.parentNode&&t.parentNode!=document.body)obj=gp(t.parentNode);}
return obj;}
try{return gp(t)}
finally{
			};},
	initialize:function(){if(this.instancedCount>=2)throw new Error('no more can’t create an instance[AshDragAndDrop]');this._onMouseDown.owner=this._onMouseMove.owner=this._onAshDragCastEvent.owner=this;this._agent.addEventListener('mousedown',this._onMouseDown);this._agent.addEventListener('mousemove',this._onMouseMove);AshDrag.manager.addEventListener(AshDrag.DRAG_START,this._onAshDragCastEvent);AshDrag.manager.addEventListener(AshDrag.DRAGGING,this._onAshDragCastEvent);AshDrag.manager.addEventListener(AshDrag.DRAG_STOP,this._onAshDragCastEvent);this.addEventListener(AshDrag.DRAG_START,this._onDragStart);this.addEventListener(AshDrag.DRAGGING,this._onDragging);this.addEventListener(AshDrag.DRAG_STOP,this._onDragStop);}});
AshDragAndDrop.prototype.start=function(){this.useok=true;}
AshDragAndDrop.prototype.stop=function(){this.useok=false;}
AshDragAndDrop.manager=new AshDragAndDrop();AshDragAndDrop.manager.start();
var AshResize=Ash.createClass('AshResize',AshEventDispatcher);
AshResize.RESIZE_START='resizeStart';
AshResize.RESIZING='resizing';
AshResize.RESIZE_STOP='resizeStop';
Ash.addPrototype(AshResize,{
	target:null,
	x:0,
	y:0,
	width:0,
	height:0,
	direction:'',
	result:{x:0,y:0,width:0,height:0,direction:'',target:null},
	resizeable:false,
	onResizeStart:null,
	onResizing:null,		
	onResizeStop:null,
	_agent:new AshEventDispatcher(document),useok:false,captured:false,sx:0,sy:0,sl:0,st:0,sw:0,sh:0,_onResizeStart:function(e){if(this.onResizeStart!=null)this.onResizeStart(e);},_onResizing:function(e){if(this.onResizing!=null)this.onResizing(e);},_onResizeStop:function(e){if(this.onResizeStop!=null)this.onResizeStop(e);},_castEvent:function(eventType){var r=this.result,t=this.target;r.x=this.x=t.offsetLeft;r.y=this.y=t.offsetTop;r.width=this.width=t.offsetWidth;r.height=this.height=t.offsetHeight;r.direction=this.direction;this.dispatchEvent(new AshEvent(eventType),r);},_available:function(v){switch(v){case'n':case'e':case's':case'w':case'ne':case'nw':case'se':case'sw':return true;break;};return false;},
	initialize:function(){this.setTarget(arguments[0]);
		var td=this.tempData;
		td.onMouseDown=function(e){var own=arguments.callee.owner,t=own.target;if(!own.useok||!t)return;var sinfo=AshUtil.document.scrollInfo();
			var pl=parseInt(AshUtil.getStyle(t,'paddingLeft')),pr=parseInt(AshUtil.getStyle(t,'paddingRight')),pt=parseInt(AshUtil.getStyle(t,'paddingTop')),pb=parseInt(AshUtil.getStyle(t,'paddingBottom'));if(isNaN(pl))pl=0;if(isNaN(pr))pr=0;if(isNaN(pt))pt=0;if(isNaN(pb))pb=0;if(own.resizeable){own.captured=true;own.sx=sinfo.left+e.clientX,own.sy=sinfo.top+e.clientY;own.sl=t.offsetLeft,own.st=t.offsetTop,own.sw=t.offsetWidth-(pl+pr),own.sh=t.offsetHeight-(pt+pb);AshDrag.createInitPositionValueForRelative(t);
				if(AshUtil.getStyle(t,'position')=='relative')own.sl-=t.__init_for_relative.x,own.st-=t.__init_for_relative.y;own._castEvent(AshResize.RESIZE_START);}}
td.onMouseMove=function(e){var own=arguments.callee.owner,t=own.target,d='';if(!own.useok||!t)return;if(own.captured){try{var x=e.clientX,y=e.clientY,d=own.direction,minW=own.minWidth,maxW=own.maxWidth,minH=own.minHeight,maxH=own.maxHeight;var isMaxW=(maxW>-1&&maxW>minW)?true:false,isMaxH=(maxH>-1&&maxH>minH)?true:false,conditionX,conditionY;var sinfo=AshUtil.document.scrollInfo();x+=sinfo.left;y+=sinfo.top;if(d.search(/n/)!=-1){conditionY=isMaxH?((own.sy+own.sh)-maxH<y&&y<(own.sy+own.sh)-minH):(y<(own.sy+own.sh)-minH);if(conditionY)t.style.top=own.st+(y-own.sy)+'px';t.style.height=isMaxH?AshUtil.minToMax(own.sh+(own.sy-y),minH,maxH)+'px':Math.max(own.sh+(own.sy-y),minH)+'px';}
if(d.search(/e/)!=-1){t.style.width=isMaxW?AshUtil.minToMax(own.sw+(x-own.sx),minW,maxW)+'px':Math.max(own.sw+(x-own.sx),minW)+'px';}
if(d.search(/s/)!=-1){t.style.height=isMaxH?AshUtil.minToMax(own.sh+(y-own.sy),minH,maxH)+'px':Math.max(own.sh+(y-own.sy),minH)+'px';}
if(d.search(/w/)!=-1){conditionX=isMaxW?((own.sx+own.sw)-maxW<x&&x<(own.sx+own.sw)-minW):(x<(own.sx+own.sw)-minW);if(conditionX)t.style.left=own.sl+(x-own.sx)+'px';t.style.width=isMaxW?AshUtil.minToMax(own.sw+(own.sx-x),minW,maxW)+'px':Math.max(own.sw+(own.sx-x),minW)+'px';}
own._castEvent(AshResize.RESIZING);}
catch(error){};}
else{own.resizeable=false;own.direction='';t.__remoteAccessResizeable=false;
				if(AshUtil.getStyle(t,'position')!='static'){var x=e.clientX,y=e.clientY,tl=t.offsetLeft,tt=t.offsetTop,tw=t.offsetWidth,th=t.offsetHeight,s=own.sensitivity;var sinfo=AshUtil.document.scrollInfo();x+=sinfo.left;y+=sinfo.top;if(tt<=y&&y<=tt+s)d='n';if(tt+th-s<=y&&y<=tt+th)d='s';if(tl<=x&&x<=tl+s)d+='w';if(tl+tw-s<=x&&x<=tl+tw)d+='e';if(own.allowedDirection){var cds=own.allowedDirection.split(',');chk=function(v){for(var l=cds.length,i=0;i<l;i++){if(cds[i]==v)return true;}
return false;};if(!chk(d))d='';
					}
t.style.cursor=d?(d+"-resize"):(own.defaultCursor?own.defaultCursor:"default");if(own._available(d)){
						own.resizeable=true;own.direction=d;t.__remoteAccessResizeable=true;}}}}
td.onMouseUp=function(e){var own=arguments.callee.owner,t=own.target;if(!own.useok||!t||!own.resizeable)return;own.resizeable=own.captured=false;own._castEvent(AshResize.RESIZE_STOP);t.style.cursor=own.defaultCursor?own.defaultCursor:"default";t.__remoteAccessResizeable=false;}
td.onMouseDown.owner=td.onMouseMove.owner=td.onMouseUp.owner=this;
		this._agent.addEventListener('mousedown',td.onMouseDown);this._agent.addEventListener('mousemove',td.onMouseMove);this._agent.addEventListener('mouseup',td.onMouseUp);this.addEventListener(AshResize.RESIZE_START,this._onResizeStart);this.addEventListener(AshResize.RESIZING,this._onResizing);this.addEventListener(AshResize.RESIZE_STOP,this._onResizeStop);}});
AshResize.prototype.sensitivity=10;
AshResize.prototype.minWidth=20;
AshResize.prototype.minHeight=20;
AshResize.prototype.maxWidth=-1;
AshResize.prototype.maxHeight=-1;
AshResize.prototype.allowedDirection='';
AshResize.prototype.defaultCursor='';
AshResize.prototype.setTarget=function(target){if(target)this.target=this.owner=target;}
AshResize.prototype.start=function(){this.useok=true;this.resizeable=this.captured=false;}
AshResize.prototype.stop=function(){this.useok=false;this.resizeable=this.captured=false;}
AshResize.prototype.abort=function(){if(this.resizeable)this.tempData.onMouseUp();}
var AshPopup=Ash.createClass('AshPopup',AshEventDispatcher);
AshPopup.CREATE='create';
AshPopup.CLEAR='clear';
Ash.addPrototype(AshPopup,{
	target:null,
	cloner:null,
	coordinates:null,
	useMotion:true,
	onCreate:null,
	onClear:null,
	callback:null,
	useAutoClearAsRollout:true,
	_agent:null,event:null,rollover:false,_onCreate:function(e){if(this.onCreate!=null)this.onCreate(e);},_onClear:function(e){if(this.onClear!=null)this.onClear(e);},_createDummyElement:function(){var d=this.tempData.lineDummy=document.createElement('DIV');d.style.backgroundColor='transparent';d.style.border='1px solid #000000';d.style.position='absolute';},_createLineMotioner:function(){var d=this.tempData.lineDummy.cloneNode(true);var m=this.tempData.currentLineMotioner=new AshMotionAgent( document.body.appendChild(d));var b=this.tempData.lineMotionBoundsOut;AshUtil.rebound(d,b.x,b.y,0,0);AshDepthManager.manager.register(d,true);},_motionOrder:function(mode){if(!this.tempData.currentLineMotioner)return;var own=this,m=this.tempData.currentLineMotioner,b;if(mode=='in'){own.cloner.style.display='none';b=this.tempData.lineMotionBoundsIn;m.tween({x:b.x,y:b.y,width:b.width,height:b.height,alpha:0},200,'in',function(e){if(e.type==AshTween.FINISH){own.cloner.style.display='block';AshUtil.move(own.cloner,b.x,b.y);}});}
else{b=this.tempData.lineMotionBoundsOut;AshUtil.move(m.owner,this.cloner.offsetLeft,this.cloner.offsetTop);m.tween({x:b.x,y:b.y,width:0,height:0,alpha:0.5},200,'out',function(e){if(e.type==AshTween.FINISH){AshDepthManager.manager.unRegister(m.owner);document.body.removeChild(m.owner);}});}},_process:function(t){var doc=document,docElement=doc.documentElement,c=null,e=this.event,coor=this.coordinates;var sinfo=AshUtil.document.scrollInfo(),x,y,p,b;if(!t)return c;try{this.target=t;c=this.cloner=t.cloneNode(true);c.className=t.className;c.style.position='absolute';doc.body.appendChild(c);if(coor){if(coor.nodeName){p=AshUtil.globalCoordinates(coor);x=p.x;y=p.y;y+=coor.offsetHeight;x-=sinfo.left;y-=sinfo.top;}
else if(coor.target){p=AshUtil.globalCoordinates(coor.target);x=p.x;y=p.y;x+=coor.x||0;y+=coor.y||0;x-=sinfo.left;y-=sinfo.top;}
else{x=coor.x;y=coor.y;}}
else{x=e?e.clientX:0;y=e?e.clientY:0;}
x+=sinfo.left;y+=sinfo.top;bx=x;by=y;
			c.style.left=x+'px';c.style.top=y+'px';
			if(x+c.offsetWidth>docElement.clientWidth+sinfo.left)x=x-( x+c.offsetWidth-docElement.clientWidth);if(y+c.offsetHeight>docElement.clientHeight+sinfo.top)y=y-c.offsetHeight;if(this.useMotion){
				b=this.tempData.lineMotionBoundsOut=AshUtil.getBounds(this.cloner);this.tempData.lineMotionBoundsIn={x:x,y:y,width:b.width,height:b.height};this._createLineMotioner();this._motionOrder('in');}
else{c.style.left=x+'px';c.style.top=y+'px';}
AshDepthManager.manager.front(c);if(this.useAutoClearAsRollout)this._agent.addEventListener('mouseover',this._onMouseOver);this.dispatchEvent(new AshEvent(AshPopup.CREATE),{target:t,cloner:c,left:c.offsetLeft,top:c.offsetTop});}
catch(error){};return c;},_onMouseOver:function(e){var own=arguments.callee.owner,t=e.target||e.srcElement;if(own.cloner){if(own.callback!=null)own.callback.call(own,'mouseover');if(own.coordinates&&own.coordinates.nodeName){
				if(t!=own.coordinates&&!AshUtil.contains(own.cloner,t))own.clear();}
else
			{if(AshUtil.contains(own.cloner,t)){if(own.rollover==false)own.rollover=true;}
else{if(own.rollover)own.clear();}}}},_onMouseDown:function(e){var own=arguments.callee.owner,t=e.target||e.srcElement;if(own.cloner){if(own.callback!=null)own.callback.call(own,'mousedown');if(!AshUtil.contains(own.cloner,t))own.clear();}
own.event=e;},_onMouseUp:function(e){var own=arguments.callee.owner,t=e.target||e.srcElement;if(own.cloner&&own.callback!=null){setTimeout(function(){if(own.cloner&&own.callback!=null)own.callback.call(own,'mouseup');},1);
		}},
	initialize:function(){if(this.instancedCount>=2)throw new Error('no more can’t create an instance[AshPopup]');this._agent=new AshEventDispatcher(document);this.tempData.clonerMotioner=new AshMotionAgent();this._onMouseDown.owner=this._onMouseOver.owner=this._onMouseUp.owner=this;this._agent.addEventListener('mousedown',this._onMouseDown);this._agent.addEventListener('mouseup',this._onMouseUp);this.addEventListener(AshPopup.CREATE,this._onCreate);this.addEventListener(AshPopup.CLEAR,this._onClear);this._createDummyElement();}});
AshPopup.prototype.create=function(target,coordinates,useMotion,callback,useAutoClearAsRollout){if(!target)return this.cloner;if(typeof target=='string'){target=AshUtil.getChildByDotTree(target);if(!target)return this.cloner;}
if(this.target==target)return this.cloner;this.clear();this.coordinates=coordinates;this.useMotion=useMotion==false?false:true;this.callback=callback;this.useAutoClearAsRollout=useAutoClearAsRollout==false?false:true;return this._process(target);}
AshPopup.prototype.clear=function(){if(!this.cloner)return;if(this.useMotion)this._motionOrder('out');if(this.cloner&&this.cloner.parentNode){AshDepthManager.manager.unRegister(this.cloner);this.cloner.parentNode.removeChild(this.cloner);this.dispatchEvent(new AshEvent(AshPopup.CLEAR),{target:this.target,cloner:this.cloner});}
this.target=null;this.cloner=null;this.coordinates=null;this.useMotion=true;this.callback=null;this.rollover=false;this.useAutoClearAsRollout=true;this._agent.removeEventListener('mouseover',this._onMouseOver);}
AshPopup.manager=new AshPopup();
var AshLocationHistory=new AshEventDispatcher();
AshLocationHistory.RECALL='recall'
AshLocationHistory.autoExecute=true;
AshLocationHistory.contentURL='history.html';
AshLocationHistory.initialize=function(){var own=this;var createIframe=function(){var ele=document.createElement('iframe');ele.setAttribute('frameBorder','0');ele.style.display='none';AshUtil.resize(ele,0,0);return ele;}
this._convert=function(data,mode){if(mode=='encoding')return'?'+encodeURIComponent(AshUtil.toJSON(data));var cdata={};if(data.length>0)return AshUtil.jsonToValue(decodeURIComponent(data.substr(1)));}
this.iframe=document.body.appendChild(createIframe());this._agent=new AshEventDispatcher(this.iframe);this._agent.addEventListener('load',function(e){if(own.ulcerativecolitisfucku){own.ulcerativecolitisfucku=false;return;}
var data=own._convert(own.iframe.contentWindow.location.search);if(own.autoExecute&&typeof data=='object' &&data.exec)eval(data.exec);own.dispatchEvent(new AshEvent(AshLocationHistory.RECALL),data);});}
AshLocationHistory.setHistory=function(data){if(!this._initialized){this._initialized=true;this.initialize();}
this.ulcerativecolitisfucku=true;this.iframe.contentWindow.location.href=this.contentURL+this._convert(data,'encoding');}
var AshCalendar=Ash.createClass('AshPopup',AshEventDispatcher);
AshCalendar.EXTRACT='extract';
AshCalendar.ELEMENTS_LENGTH=42;AshCalendar.MONTH_LAST_DAYS=[31,28,31,30,31,30,31,31,30,31,30,31];AshCalendar.DAY_TO_STRING=['sunday','monday','tuesday','wednesday','thursday','friday','saturday'];Ash.addPrototype(AshCalendar,{
	elements:null,
	theDate:null,todayDate:null,
	onExtract:null,
	_onExtract:function(e){if(this.onExtract!=null)this.onExtract(e);},
	initialize:function(){this.theDate=new Date();this.todayDate=new Date();this.addEventListener(AshCalendar.EXTRACT,this._onExtract);},
	today:function(){this.extract();},
	getYear:function(){return this.theDate.getFullYear();},
	setYear:function(value){if(value==this.getYear())return;this.theDate.setFullYear(value);this.extract();},
	getMonth:function(){return this.theDate.getMonth();},
	setMonth:function(value){if(value==this.getMonth())return;this.theDate.setMonth(value);this.extract();},
	getRealMonth:function(){return this.theDate.getMonth()+1;},
	setRealMonth:function(value){if(value-1!=this.getMonth())this.setMonth(value-1);},
	getDate:function(){return this.theDate.getDate();},
	setDate:function(value){if(value==this.getDate())return;this.theDate.setDate(value);this.extract();},
	getDay:function(){return this.theDate.getDay();},
	getDayToString:function(){return AshCalendar.DAY_TO_STRING[this.getDay()];},
	getFirstWeekDay:function(){var date=new Date( this.getYear(),this.getMonth(),1);return date.getDay();},
	thisYear:function(){this.setYear(this.todayDate.getFullYear());},
	prevYear:function(){this.setYear(this.getYear()-1);},
	nextYear:function(){this.setYear(this.getYear()+1);},
	thisMonth:function(){this.theDate.setFullYear( this.todayDate.getFullYear());this.theDate.setMonth( this.todayDate.getMonth());this.extract();},
	prevMonth:function(){this.setMonth(this.getMonth()-1);},
	nextMonth:function(){this.setMonth(this.getMonth()+1);},
	anyMonth:function(year,realMonth){this.theDate.setFullYear(year||this.todayDate.getFullYear());this.theDate.setMonth(realMonth>0?realMonth-1:this.todayDate.getMonth());this.extract();},
	extract:function(){var lastDay=AshCalendar.MONTH_LAST_DAYS[this.getMonth()],leng=AshCalendar.ELEMENTS_LENGTH;
		if(this.getMonth()==1)lastDay+=(this.getYear()%4==0)?1:0;var elements=[];for(var i=0,wd=0,j=0,firstWeekDay=this.getFirstWeekDay();i<leng;i++){if(i<firstWeekDay)elements[i]={value:'',today:false};else{j++;if(j<=lastDay){elements[i]={value:j,today:false};
					if(this.getYear()==this.todayDate.getFullYear()&&this.getMonth()==this.todayDate.getMonth()&&j==this.getDate())elements[i].today=true;}
else elements[i]={value:'',today:false};}
wd++;if(i%7==0)wd=0;elements[i].day=wd;}
this.dispatchEvent(new AshEvent(AshCalendar.EXTRACT),{elements:elements});return(this.elements=elements);}});
var AshImageViewer=Ash.createClass('AshImageViewer',AshAgent);
AshImageViewer.LOADED='loaded';
AshImageViewer.APPLY='apply';
Ash.addPrototype(AshImageViewer,{
	cover:null,
	body:null,
	fileInfo:null,
	img:null,
	resizer:null,
	onLoaded:null,
	onApply:null,
		bnds:null,
	initialize:function(){var own=this;this.owner=(function(){var ele=document.createElement('div');ele.innerHTML="<div style='position:absolute; display:none; padding:5px 5px 30px 5px; background-color:#000000; width:1px; height:1px;' ashdrag='true' onselectstart='return false;' ondragstart='return false;'>"+"<div name='cover' style='position:absolute; z-index:1; left:0px; top:0px; width:100%; height:100%; background-color:#000000; _height:expression(parentNode.offsetHeight-10);'></div>"+"<div name='body' style='width:100%; height:100%;'></div>"+"<div name='fileInfo' style='position:absolute; left:5px; bottom:10px; color:#999999; font-family:arial; font-size:9px; cursor:default; '></div>"+"<div onclick='Ash.support();' style='position:absolute; right:5px; bottom:10px; color:#666666; font-family:arial; font-size:10px; cursor:pointer; font-weight:bold;'>"+"AshImageViewer<span style='color:#444444; font-size:9px; font-weight:normal;'> (ver 0.2)</span><span style='color:#CA6500; font-size:9px;'> By AshAPI</span></div>"+"</div>";return document.body.appendChild(ele.firstChild);})();this.cover=new AshAgent(this.getChildByName('cover'));this.body=this.getChildByName('body');this.fileInfo=this.getChildByName('fileInfo');this.resizer=new AshResize(this.owner);this.resizer.start();this.resizer.onResizeStart=function(){own.setBounds();}
		if(arguments[0]){this.cover.setHTML("<table width='100%' height='100%' onclick='siv.hide();'><tr><td align='center' valign='middle'><img src='"+arguments[0]+"'></td></tr></table>");this.cover.getFirstChild().siv=own;}
		if(arguments[1]&&typeof arguments[1]=='function')arguments[1].call(this);this.addEventListener(AshImageViewer.LOADED,function(e){if(this.onLoaded!=null)this.onLoaded(e);});this.addEventListener(AshImageViewer.APPLY,function(e){if(this.onApply!=null)this.onApply(e);});},
	show:function(src){this.owner.style.display='block';AshDepthManager.manager.front(this.owner);if(src){this.resizer.defaultCursor='default';this.cover.owner.style.display='block';this.cover.setOpacity(1);this.body.innerHTML="<img src='"+src+"' style='visibility:hidden;' onload='siv.onImageLoaded(event);' ashdrag='true' ashdragtarget='parent.parent' "+"onmousedown='siv.setBounds(); return false;' onmousemove='return false;' onclick='siv.checkAndHide();'>";this.body.firstChild.siv=this;}},
	hide:function(){this.owner.style.display='none';},
	setBounds:function(){this.bnds=this.getBounds();AshDepthManager.manager.front(this.owner);},checkAndHide:function(){var bnds=this.getBounds();if(bnds.x==this.bnds.x&&bnds.y==this.bnds.y&&bnds.width==this.bnds.width&&bnds.height==this.bnds.height)this.hide();},onImageLoaded:function(e){var own=this,img=this.img=e.target||e.srcElement;var d=document.documentElement,dw=d.clientWidth,dh=d.clientHeight,sinfo=AshUtil.document.scrollInfo();var w=img.width,h=img.height;var x=sinfo.left+(dw/2-w/2),y=sinfo.top+(dh/2-h/2);AshUtil.resize(img,'100%','100%');this.tween( {x:x,y:y,width:w,height:h},800,'back.out',function(e2){if(e2.type==AshTween.FINISH){img.style.visibility='visible';own.resizer.defaultCursor='move';own.cover.alpha(0,800,'out',function(e3){if(e3.type==AshTween.FINISH)own.cover.owner.style.display='none';});own.dispatchEvent(new AshEvent(AshImageViewer.APPLY));}});this.dispatchEvent(new AshEvent(AshImageViewer.LOADED),{src:img.src,img:img});if(AshUtil.browser.ie)this.fileInfo.innerHTML=this.getFileSize(img.fileSize);},getFileSize:function(size){size=+size;size=size/1024;if(size<1024)return Math.ceil(size)+" K byte";else{size=size/1024;if(size<1024)return Math.ceil(size)+" M byte";else{size=size/1024;if(size<1024)return Math.ceil(size)+" G byte";}}
return'0 byte';}});
var AshAccordion=Ash.createClass('AshAccordion',AshEventDispatcher);
AshAccordion.APPLY='apply';
AshAccordion.FINISH='finish';
AshAccordion.apply=function(target,mode,duration,easingName,callback){if(!target)return;if(!target.__r_accoditon__)target.__r_accoditon__=new AshAccordion(target);if(target.__r_accoditon__.targetChild)target.__r_accoditon__.apply(mode,duration,easingName,callback);return target.__r_accoditon__;}
Ash.addPrototype(AshAccordion,{
	target:null,
	targetChild:null,
	motioner:null,
	mode:'auto',
	onApply:null,
	onFinish:null,
	initialize:function(target){var targetChild=this.getTargetChild(target);if(!target||!targetChild)throw new Error('can’t create an instance[missing arguments]');
		target.style.cssText+=';overflow:hidden; position:relative;';this.motioner=new AshMotionAgent(target);this.target=target;this.targetChild=targetChild;this.addEventListener(AshAccordion.APPLY,function(e){if(this.onApply!=null)this.onApply(e);});this.addEventListener(AshAccordion.FINISH,function(e){if(this.onFinish!=null)this.onFinish(e);});},
	apply:function(mode,duration,easingName,callback){var own=this,h=this.target.offsetHeight,value;this.target.accorIsMotioning=true;if(!mode||mode=='auto')mode=AshUtil.getStyle(this.targetChild,'display')=='none'?'open':'close';this.mode=mode;this.target.style.height='auto';this.targetChild.style.display=mode=='open'?'block':'none';value=this.target.offsetHeight;this.target.style.height=h+'px';this.targetChild.style.display='block';this.motioner.height(value,duration||700,easingName,function(e){if(e.type==AshTween.FINISH){if(mode=='close')own.targetChild.style.display='none';else own.target.style.height='auto';own.target.accorIsMotioning=false;own.dispatchEvent(new AshEvent(AshAccordion.FINISH),{mode:mode,event:e});if(callback!=null)callback(e);}});this.dispatchEvent(new AshEvent(AshAccordion.APPLY),{mode:mode});},
	getTargetChild:function(o){for(var children=o.getElementsByTagName('*'),l=children.length,i=0;i<l;i++)if(children[i].className.indexOf('Accordion')!=-1)return children[i];return null;}});
var AshTextMarquee=Ash.createClass('AshTextMarquee',AshEventDispatcher);
AshTextMarquee.PLAY="play";
AshTextMarquee.STOP="stop ";
AshTextMarquee.SCROLLING='scrolling';
Ash.addPrototype(AshTextMarquee,{
	marqueer:null,
	delay:100,
	text:'',
	onPlay:null,
	onStop:null,
	onScrolling:null,
	_timer:null,_text:'',_onTimer:function(e){var own=this.tempData.owner;if(own.marqueer&&own._text){var n=own.marqueer.tagName.toLowerCase();own.marqueer[n=='input'?'value':'innerHTML']=(own._text=own._text.substring(1,own._text.length)+own._text.substring(0,1));own.dispatchEvent(new AshEvent(AshTextMarquee.SCROLLING),{marqueer:own.marqueer,delay:own.delay,text:own.text});}},_onPlay:function(e){if(this.onPlay!=null)this.onPlay(e);},_onStop:function(e){if(this.onStop!=null)this.onStop(e);},_onScrolling:function(e){if(this.onScrolling!=null)this.onScrolling(e);},
	initialize:function(){this._timer=new AshTimer(100);this._timer.tempData.owner=this;this._timer.addEventListener(AshTimer.TIMER,this._onTimer);this.addEventListener(AshTextMarquee.PLAY,this._onPlay);this.addEventListener(AshTextMarquee.STOP,this._onStop);this.addEventListener(AshTextMarquee.SCROLLING,this._onScrolling);this.setMarquee.apply(this,arguments);},
	setMarquee:function(element,delay,text){this.stop();if( element.nodeType==1){
			this.marqueer=element;if(this.text=='')this.setText(element.innerHTML||element.value);
		}
if(delay)this.delay=this._timer.delay=delay;this.setText(text);},
	setText:function(text){if(!text)return;this.text=text;this._text=' '+text;},
	play:function(delay,text){if(delay)this.delay=this._timer.delay=delay;this.setText(text);this._timer.start();this.dispatchEvent(new AshEvent(AshTextMarquee.PLAY),{marqueer:this.marqueer,delay:this.delay,text:this.text});},
	stop:function(){this._timer.stop();this.dispatchEvent(new AshEvent(AshTextMarquee.STOP),{marqueer:this.marqueer,delay:this.delay,text:this.text});}});
var AshMarquee=Ash.createClass('AshMarquee',AshEventDispatcher);
AshMarquee.PLAY="play";
AshMarquee.STOP="stop ";
AshMarquee.SCROLLING='scrolling';
Ash.addPrototype(AshMarquee,{
	marqueer:null,
	width:100,
	height:100,
	delay:100,
	content:null,
	scrollValue:1,
	direction:'left',
	onPlay:null,
	onStop:null,
	onScrolling:null,
	_timer:null,_contentWidth:0,_contentHeight:0,_setScroll:function(o,p,v){o.style[p]=v+'px';},_getScroll:function(o,p,p2){var v=parseInt(o.style[p]);if(isNaN(v)){v=parseInt(o[p2]);if(isNaN(v))v=0;}
return v;},_onTimer:function(e){var own=this.tempData.owner,mq=own.marqueer,c=own.content,v=own.scrollValue,w=own._contentWidth,h=own._contentHeight;if(!mq||!c)return;if(own.direction=='left'){var cx=own._getScroll(c,'left','offsetLeft'),x=cx-v;if(x+w<0)x=own.width;own._setScroll(c,'left',x);}
else{var cy=own._getScroll(c,'top','offsetTop'),y=cy-v;if(y+h<0)y=own.height;own._setScroll(c,'top',y);}
own.dispatchEvent(new AshEvent(AshMarquee.SCROLLING),{marqueer:own.marqueer,width:own.width,height:own.height,delay:own.delay,content:own.content,scrollValue:own.scrollValue,direction:own.direction});},_onPlay:function(e){if(this.onPlay!=null)this.onPlay(e);},_onStop:function(e){if(this.onStop!=null)this.onStop(e);},_onScrolling:function(e){if(this.onScrolling!=null)this.onScrolling(e);},
	initialize:function(){this._timer=new AshTimer(100);this._timer.tempData.owner=this;this._timer.addEventListener(AshTimer.TIMER,this._onTimer);this.addEventListener(AshMarquee.PLAY,this._onPlay);this.addEventListener(AshMarquee.STOP,this._onStop);this.addEventListener(AshMarquee.SCROLLING,this._onScrolling);this.setMarquee.apply(this,arguments);},
	setMarquee:function(element,width,height,delay,content,scrollValue,direction){this.stop();if(element){var n=element.nodeName.toLowerCase();if( n=='div' ||n=='span' ){var position=AshUtil.getStyle(element,'position')=='absolute'?'absolute':'relative',display=n=='div'?'block':'inline-block';this.marqueer=element;this.marqueer.style.cssText+='; position:'+position+'; display:'+display+'; overflow:hidden;';}}
if(width!=null)this.setWidth(width);if(height!=null)this.setHeight(height);if(delay)this.delay=this._timer.delay=delay;if(content!=null)this.setContent(content);if(scrollValue!=null)this.setScrollValue(scrollValue);if(direction!=null)this.setDirection(direction);},
	setWidth:function(value){var w=this.width=Math.abs(value||100);if(this.marqueer)this.marqueer.style.width=w+'px';},
	setHeight:function(value){var h=this.height=Math.abs(value||100);if(this.marqueer)this.marqueer.style.height=h+'px';},
	resize:function(w,h){this.setWidth(w);this.setHeight(h);},
	setContent:function(content){if(!content)return;if(this.content){if(this.marqueer)this.marqueer.removeChild(this.content);}
this.content=content;if((typeof content)=='string'){this.content=document.createElement('span');this.content.innerHTML=content;}
if(this.content.nodeType!=1)return;if(this.marqueer)this.marqueer.appendChild(this.content);this._updateContent();},
		_updateContent:function(){
			var d,bw,bh;if(this.marqueer){d=document.documentElement;bw=this.marqueer.offsetWidth,bh=this.marqueer.offsetHeight;AshUtil.resize(this.marqueer,d.clientWidth,d.clientHeight);}
this.content.style.width='auto';this.content.style.height='auto';this._contentWidth=this.content.offsetWidth;this._contentHeight=this.content.offsetHeight;this.content.style.cssText+='; position:absolute; width:'+this._contentWidth+'px; height:'+this._contentHeight+'px; ';
			if(d)AshUtil.resize(this.marqueer,bw,bh);},
	setScrollValue:function(value){this.scrollValue=Math.abs(value||1);},
	setDirection:function(value){value=value=='top'?'top':'left';if(value==this.direction)return;this.direction=value;if(this.content)this.content.style[this.direction=='left'?'top':'left']='0px';this.refresh();this.play();},
	play:function(delay,content,scrollValue,direction){if(delay)this.delay=this._timer.delay=delay;if(content!=null)this.setContent(content);if(scrollValue!=null)this.setScrollValue(scrollValue);if(direction!=null)this.setDirection(direction);this._timer.start();this.dispatchEvent(new AshEvent(AshMarquee.PLAY),{marqueer:this.marqueer,width:this.width,height:this.height,delay:this.delay,content:this.content,scrollValue:this.scrollValue,direction:this.direction});},
	stop:function(){this._timer.stop();this.dispatchEvent(new AshEvent(AshMarquee.STOP),{marqueer:this.marqueer,width:this.width,height:this.height,delay:this.delay,content:this.content,scrollValue:this.scrollValue,direction:this.direction});},
	refresh:function(){if(this.marqueer){this.setWidth(this.marqueer.offsetWidth);this.setHeight(this.marqueer.offsetHeight);}
if(this.content)this._updateContent();}});
var AshScrollBar=Ash.createClass('AshScrollBar',AshEventDispatcher);
AshScrollBar.SCROLLING='scrolling';
AshScrollBar.UPDATE='update';
Ash.addPrototype(AshScrollBar,{
	scrollbarType:'vertical',
	scrollTarget:null,
	scrollbarElement:null,
	tracker:null,
	firstArrow:null,
	secondArrow:null,
	autoHide:true,
	fixedSize:-1,
	scrollable:false,
	scrollDistance:0,
	arrowScrollingValue:20,
	wheelScrollingValue:-1,
	trackerMinSize:10,
	useMotionInScroll:true,
	firstArrowMargin:0,
	secondArrowMargin:0,
	onScrolling:null,
	onUpdate:null,
	_scrollAreaSize:0,_clientAreaSize:0,_startValue:0,_trackDistance:0,_scrolledValue:0,_trackerSize:0,_wheelEvent:null,_timer:null,_interval:null,_saveScrollValue:0,_tween:null,_fakeScrollTarget:null,_updateTimer:null,
	initialize:function(){if(arguments[0]=='ashclassextended&DDAKZZI')return;
		this._initialize.apply(this,arguments);},_initialize:function(){var own=this;this.register.apply(this,arguments);if(!AshScrollBar.docEvent){AshScrollBar.docEvent=new AshEventDispatcher(document);}
this._timer=new AshTimer(50);this._timer.addEventListener(AshTimer.TIMER,function(e){own.scrollBy(own._saveScrollValue);});this._onDocMouseUpEvent=function(e){window.clearTimeout(own._interval);own._timer.stop();AshScrollBar.docEvent.removeEventListener('mouseup',this._onDocMouseUpEvent);}
this.addEventListener(AshScrollBar.SCROLLING,function(e){if(own.onScrolling!=null)own.onScrolling(e);});this.addEventListener(AshScrollBar.UPDATE,function(e){if(own.onUpdate!=null)own.onUpdate(e);});AshDrag.manager.addEventListener(AshDrag.DRAGGING,function(e){if(this.target!=own.tracker)return;var fromV=0,toV=own.scrollDistance;var value=own.scrollbarType=='horizontal'?this.x:this.y;var p=(value-own._startValue)/own._trackDistance;var scrollValue=fromV*(1-p)+toV*p;own._scrollTo(scrollValue,true);});this._tween=new AshTween();this._tween.duration=500;this._updateTimer=new AshTimer(1000);this._updateTimer.addEventListener(AshTimer.TIMER,function(e){if(!own.scrollTarget)return;try{if( own.scrollTarget[own.scrollbarType=='horizontal'?'scrollWidth':'scrollHeight' ]!=own._scrollAreaSize||own.scrollTarget[own.scrollbarType=='horizontal'?'clientWidth':'clientHeight' ]!=own._clientAreaSize)own.update();}
catch(err){own.scrollTarget=null;}});if(this.scrollTarget)this.setAutoUpdate(true);},_createMouseUpEvent:function(){AshScrollBar.docEvent.addEventListener('mouseup',this._onDocMouseUpEvent);},
	register:function(scrollTarget,scrollbarElement,autoHide,fixedSize){if(!scrollTarget||!scrollbarElement)return;var own=this;this.scrollbarElement=scrollbarElement;for(var l=scrollbarElement.childNodes.length,i=0,c,n;i<l;i++){c=scrollbarElement.childNodes[i];if(c.nodeType==1){n=c.getAttribute('asbname');if(n=='firstArrow')this.firstArrow=c;if(n=='tracker')this.tracker=c;if(n=='secondArrow')this.secondArrow=c;}}
if(!this.tracker)return;if(scrollbarElement.getAttribute('asbtype')=='horizontal')this.scrollbarType='horizontal';if( AshUtil.getStyle(scrollbarElement,'position')=='static')scrollbarElement.style.position='relative';this.tracker.style.position='absolute';if(this.firstArrow){this.firstArrow.onmousedown=function(){own.scrollBy( (own._saveScrollValue=-own.arrowScrollingValue));window.clearTimeout(own._interval);own._interval=setTimeout(function(){own._timer.start();},500);own._createMouseUpEvent();}}
if(this.secondArrow){this.secondArrow.onmousedown=function(){own.scrollBy(  (own._saveScrollValue=own.arrowScrollingValue));window.clearTimeout(own._interval);own._interval=setTimeout(function(){own._timer.start();},500);own._createMouseUpEvent();}}
this.tracker.setAttribute('ashdrag','true');this.setScrollTarget(scrollTarget);this.autoHide=autoHide==false?false:true;this.fixedSize=fixedSize>0?fixedSize:-1;
		var imgs=this.tracker.getElementsByTagName('img'),img;for(l=imgs.length,i=0;i<l;i++){img=imgs[i];img.style.position='absolute';img.setAttribute('ashdrag','true');img.setAttribute('ashdragtarget','parent');img.onmousedown=function(){return false;};img.onmousemove=function(){return false;};AshUtil.move(img,0,0);}
scrollbarElement.onmousedown=function(e){var e=e||window.event;var t=e.target||e.srcElement,x=e.layerX||(e.offsetX||0),y=e.layerY||(e.offsetY||0),val;if(t!=this||!own.scrollTarget)return;if(own.scrollbarType=='horizontal'){val=own.scrollTarget.clientWidth;if(x<own.tracker.offsetLeft)val=-val;}
else{val=own.scrollTarget.clientHeight;if(y<own.tracker.offsetTop)val=-val;}
own.scrollBy( (own._saveScrollValue=val));window.clearTimeout(own._interval);own._interval=setTimeout(function(){own._timer.start();},500);own._createMouseUpEvent();}
this.update();if(!scrollbarElement._wheelEvent){scrollbarElement._wheelEvent=new AshEventDispatcher(scrollbarElement);scrollbarElement._wheelEventListener=function(e){var own=arguments.callee.owner;own._wheelScroll(e);}
scrollbarElement._wheelEvent.addEventListener('DOMMouseScroll',scrollbarElement._wheelEventListener);scrollbarElement._wheelEvent.addEventListener('mousewheel',scrollbarElement._wheelEventListener);}
scrollbarElement._wheelEventListener.owner=this;},
	update:function(){if(!this.scrollTarget)return;try{var hs=this.scrollbarType=='horizontal'?true:false;var t=this.scrollTarget,scb=this.scrollbarElement,tr=this.tracker,fa=this.firstArrow,sa=this.secondArrow;var dsize,darea,triv=200;
			if(AshUtil.getStyle(t,'display')=='none')return;this._updateGetScroll();this._scrollAreaSize=t[hs?'scrollWidth':'scrollHeight'];this._clientAreaSize=t[hs?'clientWidth':'clientHeight'];this.scrollDistance=Math.max(0,this._scrollAreaSize-this._clientAreaSize);this.scrollable=this.scrollDistance>0?true:false;if( !this.scrollable&&this.autoHide){tr.style.visibility='hidden';return;}
tr.style.visibility='visible';this._startValue=(fa&&fa[hs?'offsetWidth':'offsetHeight']>1)?fa[hs?'offsetLeft':'offsetTop']+fa[hs?'offsetWidth':'offsetHeight']:0;this._startValue+=this.firstArrowMargin;dsize=((sa&&sa[hs?'offsetWidth':'offsetHeight']>1)?sa[hs?'offsetLeft':'offsetTop']:scb[hs?'clientWidth':'clientHeight'])-this._startValue;dsize+=this.secondArrowMargin;this._trackerSize=this.fixedSize;if(  this.fixedSize==-1){this._trackerSize=dsize*(triv/(this.scrollDistance+triv));if( this._trackerSize<this.trackerMinSize)this._trackerSize=this.trackerMinSize;}
this._trackDistance=(dsize-this._trackerSize);
			var bl=0,bt=0;if(BI.ie8){bl=parseInt(AshUtil.getStyle(scb,'borderLeftWidth'));bt=parseInt(AshUtil.getStyle(scb,'borderTopWidth'));if(isNaN(bl))bl=0;if(isNaN(bt))bt=0;}
darea=hs?(this._startValue+','+(tr.offsetTop-bt)+','+this._trackDistance+',0'):( (tr.offsetLeft-bl)+','+this._startValue+',0,'+this._trackDistance);tr.setAttribute('ashdragarea',darea);tr.style[hs?'width':'height']=this._trackerSize+'px';this._moveTracker(hs?'left':'top');
			var imgs=this.tracker.getElementsByTagName('img');for(var l=imgs.length,i=0;i<l;i++){AshUtil.resize(imgs[i],this.tracker.clientWidth,this.tracker.clientHeight);imgs[i].style.zIndex=100+i;}
this.dispatchEvent(new AshEvent(AshScrollBar.UPDATE),{scroll:this.getScroll()});}
catch(err){this.scrollTarget=null;}},
	setScrollTarget:function(scrollTarget){if(!scrollTarget||!scrollTarget.style||this.scrollTarget==scrollTarget)return;
		if(this.scrollTarget&&this.scrollTarget.asbWheelSystem){this.scrollTarget.asbWheelSystem[this.scrollbarType=='horizontal'?'hasb':'vasb' ]=null;delete this.scrollTarget.asbWheelSystem[this.scrollbarType=='horizontal'?'hasb':'vasb' ];}
		this.scrollTarget=scrollTarget;scrollTarget.style.overflow='hidden';this._fakeScrollTarget=null;
		if( scrollTarget.tagName.toLowerCase()=='html' &&(BI.safari||BI.chrome)){this._fakeScrollTarget=scrollTarget.getElementsByTagName('body')[0];}
		if(!scrollTarget.asbWheelSystem){scrollTarget.asbWheelSystem={hasb:null,vasb:null,event:new AshEventDispatcher(scrollTarget),eventListener:null};scrollTarget.asbWheelSystem.eventListener=function(e){var s=arguments.callee.system,a,h=s.hasb,v=s.vasb;if(v&&v.scrollable)a=v;else if(h&&h.scrollable)a=h;if(a)a._wheelScroll(e);}
scrollTarget.asbWheelSystem.eventListener.system=scrollTarget.asbWheelSystem;scrollTarget.asbWheelSystem.event.addEventListener('DOMMouseScroll',scrollTarget.asbWheelSystem.eventListener);scrollTarget.asbWheelSystem.event.addEventListener('mousewheel',scrollTarget.asbWheelSystem.eventListener);}
scrollTarget.asbWheelSystem[this.scrollbarType=='horizontal'?'hasb':'vasb' ]=this;},
		_wheelScroll:function(e){e=e||window.event;var delta=0;if(e.wheelDelta)delta=-e.wheelDelta;else if(e.detail)delta=e.detail;if(this.wheelScrollingValue!=-1)delta=delta>0?this.wheelScrollingValue:-this.wheelScrollingValue;else{delta=this.scrollDistance/(delta>0?20:-20);delta+=(delta>0?15:-15);}
this.scrollBy(delta);
			if(e.preventDefault!=null)e.preventDefault();e.returnValue=false;},
	scrollTo:function(value){this._scrollTo(value,false);},_scrollTo:function(value,noMoveTracker){if( !this.scrollTarget||!this.scrollable)return;if(this.useMotionInScroll){var own=this;this._tween.startValue=this.getScroll();this._tween.endValue=value;this._tween.play(function(e){own._processScroll(e.parameters.tweenedValue,noMoveTracker);});}
else this._processScroll(value,noMoveTracker);},_processScroll:function(value,noMoveTracker){var t=this._fakeScrollTarget?this._fakeScrollTarget:this.scrollTarget;if(!t)return;try{t[this.scrollbarType=='horizontal'?'scrollLeft':'scrollTop' ]=value;this._scrolledValue=t[this.scrollbarType=='horizontal'?'scrollLeft':'scrollTop' ];if(!noMoveTracker)this._moveTracker( this.scrollbarType=='horizontal'?'left':'top');this.dispatchEvent(new AshEvent(AshScrollBar.SCROLLING),{scroll:this.getScroll()});}
catch(err){this.scrollTargt=null;}},_moveTracker:function(prop,refresh){var trackValue=this._startValue+( this.getScroll(refresh)/this.scrollDistance*this._trackDistance);trackValue=AshUtil.minToMax(trackValue,this._startValue,this._startValue+this._trackDistance);if(isNaN(trackValue))trackValue=0;this.tracker.style[prop]=trackValue+'px';},
	scrollBy:function(value){if( !this.scrollTarget||!this.scrollable)return;this.scrollTo( this.getScroll()+value);},
	getScroll:function(refresh){if(refresh)this._updateGetScroll();return this._scrolledValue;},_updateGetScroll:function(){var t=this._fakeScrollTarget?this._fakeScrollTarget:this.scrollTarget;try{if(t)this._scrolledValue=t[this.scrollbarType=='horizontal'?'scrollLeft':'scrollTop' ];}
catch(err){this.scrollTarget=null;}},
	setAutoUpdate:function(doApply,updateInterval){if(doApply){if(updateInterval)this._updateTime.delay=updateInterval;this._updateTimer.start();}
else this._updateTimer.stop();}});
var AshScrollBarEX=Ash.createClass('AshScrollBarEX',AshScrollBar);Ash.addPrototype(AshScrollBarEX,{
	iframe:null,
	doc:null,
		_docEvent:null,
	initialize:function(){if( !arguments[0])throw new Error("Sorry, an AshScrollBarEX's instance aborted! because the scrollTarget isn't iframe or null");var own=this;this.onIframeLoaded=function(e){var doc=own.iframe.contentWindow.document;if(own.doc==doc&&own.scrollTarget==doc.documentElement)return;own.setScrollTarget(doc.documentElement);}
		this.onContentResized=function(e){own.update();}
this.onMouseDownForTrackMover=function(e){own.doc.asbEvent.addEventListener('mousemove',own.onMouseMoveScroll);}
this.onMouseMoveScroll=function(e){own._moveTracker( own.scrollbarType=='horizontal'?'left':'top',true);}
this.onApplyKeyScroll=function(e){switch(e.keyCode){case 33:case 34:case 37:case 38:case 39:case 40:own._moveTracker( own.scrollbarType=='horizontal'?'left':'top',true);break;}}
this.onUnfireMouseup=function(e){
			AshDrag.manager.abort();own._onDocMouseUpEvent();own.doc.asbEvent.removeEventListener('mousemove',own.onMouseMoveScroll);}
this._initialize.apply(this,arguments);},_clearEvents:function(){try{if(this.iframe){
					if(this.iframe.asbEvent)this.iframe.asbEvent.removeEventListener('load',this.onIframeLoaded);if(this.iframe.contentWindow.asbEvent)this.iframe.contentWindow.asbEvent.removeEventListener('resize',this.onContentResized);if(this.doc&&this.doc.asbEvent){this.doc.asbEvent.removeEventListener('mousedown',this.onMouseDownForTrackMover);this.doc.asbEvent.removeEventListener('mousemove',this.onApplyKeyScroll);this.doc.asbEvent.removeEventListener('keydown',this.onApplyKeyScroll);this.doc.asbEvent.removeEventListener('mouseup',this.onUnfireMouseup);}}}
catch(err){}
finally{this.iframe=this.doc=null;this.scrollTarget=null;}},
	setScrollTarget:function(scrollTarget){if(!scrollTarget||!scrollTarget.style||this.scrollTarget==scrollTarget)return;var own=this;
		this._clearEvents();if(scrollTarget.tagName.toLowerCase()=='iframe'){this.iframe=scrollTarget;this.iframe.setAttribute('scrolling','no');this.doc=this.iframe.contentWindow.document;if( !this.iframe.asbEvent)this.iframe.asbEvent=new AshEventDispatcher(this.iframe);if( !this.iframe.contentWindow.asbEvent)this.iframe.contentWindow.asbEvent=new AshEventDispatcher(this.iframe.contentWindow);this.iframe.asbEvent.addEventListener('load',this.onIframeLoaded);this.iframe.contentWindow.asbEvent.addEventListener('resize',this.onContentResized);if( !this.doc.asbEvent){this.doc.asbEvent=new AshEventDispatcher(this.doc);}
this.doc.asbEvent.addEventListener('mousedown',this.onMouseDownForTrackMover);this.doc.asbEvent.addEventListener('keydown',this.onApplyKeyScroll);this.doc.asbEvent.addEventListener('mouseup',this.onUnfireMouseup);scrollTarget=this.doc.documentElement;}
		if(this.scrollTarget&&this.scrollTarget.asbWheelSystem){this.scrollTarget.asbWheelSystem[this.scrollbarType=='horizontal'?'hasb':'vasb' ]=null;delete this.scrollTarget.asbWheelSystem[this.scrollbarType=='horizontal'?'hasb':'vasb' ];}
		this.scrollTarget=scrollTarget;scrollTarget.style.overflow='hidden';this._fakeScrollTarget=null;
		if( scrollTarget.tagName.toLowerCase()=='html' &&(BI.safari||BI.chrome)){this._fakeScrollTarget=scrollTarget.getElementsByTagName('body')[0];}
		if(!scrollTarget.asbWheelSystem){scrollTarget.asbWheelSystem={hasb:null,vasb:null,event:new AshEventDispatcher(scrollTarget),eventListener:null};scrollTarget.asbWheelSystem.eventListener=function(e){var s=arguments.callee.system,a,h=s.hasb,v=s.vasb;if(v&&v.scrollable)a=v;else if(h&&h.scrollable)a=h;if(a)a._wheelScroll(e);}
scrollTarget.asbWheelSystem.eventListener.system=scrollTarget.asbWheelSystem;scrollTarget.asbWheelSystem.event.addEventListener('DOMMouseScroll',scrollTarget.asbWheelSystem.eventListener);scrollTarget.asbWheelSystem.event.addEventListener('mousewheel',scrollTarget.asbWheelSystem.eventListener);}
scrollTarget.asbWheelSystem[this.scrollbarType=='horizontal'?'hasb':'vasb' ]=this;this.update();}});</script>
<script>/** 
*@class AshSelectBox
*@extends AshEventDispatcher
*@desc
<pre>
 Author			: Sehan. An
 Creation Date : 	2011.08.25
 Last Modified : 	2011.08.25

 * description |
	- 본 클래스는 표준 selectbox의 디자인 커스터마이징을 위해서 고안된 클래스이다.

	- 본클래스는 static 타입의 클래스이다. 즉, 클래스이자 자체가 이미 인스턴스이다. 따라서 그냥 바로 클래스로 바로 사용하면 된다.
	  런타임에 현재 적용된 프로젝트의 모든 select 개체를 하나의 디자인으로 일괄적용하기 위한 방법임으로 개별설정은 무시된다.
	  개별 디자인 커스터마이징은 AshSelectBoxEX 클래스를 이용토록 한다.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

* usage|
<code>

</code>
</pre>
*/

var AshSelectBox = new AshEventDispatcher();

/** it can replace the following properies with the specified custom colors in runtime.
*@static
*@return String
*@desc
	ex)
	AshSelectBox.mouseOverColor = '#d0d0d0';
	AshSelectBox.mouseOverBgColor = '#000000';
	AshSelectBox.textPadding = '5px';
	AshSelectBox.verticalAlign = 'text-bottom';
*/
AshSelectBox.mouseOverColor = '#ffffff';

/**
*@static
*@return String
*/
AshSelectBox.mouseOverBgColor = '#333333';

/**
*@static
*@return uint
*/
AshSelectBox.textPadding = 10;

/**
*@static
*@return String
*/
AshSelectBox.verticalAlign = 'middle';


/**
*@static
*@return Array
*/
AshSelectBox.dispatchEventList = [ 'change', 'mousedown', 'mouseup', 'mousemove', 'click' ];

AshSelectBox.initialize = function() 
{
	var own = this;
	this.selects = [];
	this._dEvent = null;
	this._builtInSelects = null;

	this._createCustomSelect = function(bsElement) {
		var x, y, w, h, list;
		var element = document.createElement('span'); // it must be a span not div. (div로 처리하면 ie6~7까지 block엘리먼트로 동작해서 다음엘리먼트가 줄바꿈되는현상발생)

		bsElement.style.display = 'inline'; // force shows to calculate the layout size of the builtin select, because if display prop's 'none', the rendering size will always be return 0,
		x = bsElement.offsetLeft, y = bsElement.offsetTop, w = bsElement.offsetWidth + this.textPadding, h = bsElement.offsetHeight;
		bsElement.style.display = 'none';

		element.cowork = bsElement;
		element.className = bsElement.className;
		element.style.cssText += ';display:inline-block; vertical-align:'+this.verticalAlign+'; width:'+w+'px; height:'+h+'px; cursor:default; ';
		element.innerHTML = "<span style='padding: 0px "+this.textPadding+"px; '></span>";
		element.onmousedown = function() {
			own._show(this);
		};
		
		list = element.listElement = document.createElement('div');
		list.className =  bsElement.className;
		list.style.cssText += '; position:absolute; width:'+w+'px; height:auto;  background-image: none; cursor:default; ';

		for(var l = bsElement.options.length, o, c, sc, span, i = 0; i < l; i++) {
			o = bsElement.options[i];
			c = list.appendChild(document.createElement('div'));
			c.style.cssText += '; padding: 0px '+this.textPadding+'px; height:'+h+'px; ';

			c.index = i;
			c.value = o.value;
			c.innerHTML = o.innerHTML;

			c.onmouseover = function() {
				this.style.color = own.mouseOverColor;
				this.style.backgroundColor = own.mouseOverBgColor
			}
			c.onmouseout = function() {
				this.style.color ='';
				this.style.backgroundColor ='';
			}
			c.onclick = function() {
				own._changeValue(element, this);
			}

			if(!sc) sc = c;
			if(o.selected) sc = c;
		}
		
		for(l = this.dispatchEventList.length, i = 0; i < l; i++) {
			var type = this.dispatchEventList[i];
			if(bsElement['on'+type]) {
				if(element['on'+type]) element['_on'+type] = element['on'+type];
				element['on'+type] = function() {
					var type = arguments.callee.delegateType;
					if(this['_on'+type]) this['_on'+type].call(this);
					own._dispatchEvent(this.cowork, type);
				}
				element['on'+type].delegateType = type;
			}
		}

		bsElement.parentNode.insertBefore(element, bsElement);
		own._changeValue(element, sc, false);

		return element;
	};

	this._changeValue = function(element, c, noEvent) {
		var bsElement = element.cowork;
		element.firstChild.innerHTML = c.innerHTML;
		if(bsElement.selectedIndex != c.index) {
			bsElement.options[c.index].selected = true;
			if(!noEvent) this._dispatchEvent(bsElement, 'change');
		}
		this._hide();
	};

	this._show = function(element) {
		var list = element.listElement;
		if(list.style.display == 'block') return;
		list.style.display = 'block';
		document.body.appendChild(list);

		var sinfo = AshUtil.document.scrollInfo(), d = document.documentElement, x,y, p;
		p = AshUtil.globalCoordinates(element);
		x = p.x; y = p.y; y += element.offsetHeight-1;
		
		if(y + list.offsetHeight > d.clientHeight + sinfo.top) y = y - list.offsetHeight - element.offsetHeight+2;
		AshUtil.move(list, x,y);
		
		window.setTimeout(function() {
			own._oldSelect = element;
			own._dEvent.addEventListener('mousedown', own._hide);
		},200);
	};

	this._hide = function(e) {
		if(!own._oldSelect) return;
		var list = own._oldSelect.listElement;
		if(e) if(AshUtil.contains(list, e.target || e.srcElement)) return;
		list.style.display = 'none';
		own._dEvent.removeEventListener('mousedown', own._hide);
	};

	this._dispatchEvent = function(bsElement, type) {
		if(bsElement.dispatchEvent) {
			var evt = document.createEvent("Event");
			evt.initEvent(type, true, false);
			bsElement.dispatchEvent(evt);
		}
		else {
			type = 'on'+type;
			if(bsElement[type]) bsElement[type].call(bsElement);
		}
	};

	this._initialize = function() {
		this._dEvent = new AshEventDispatcher(document);
		this._builtInSelects = document.body.getElementsByTagName('select');
		for(var l = this._builtInSelects.length, i = 0; i < l; i++) {
			if(this._builtInSelects[i].className) this.selects.push( this._createCustomSelect(this._builtInSelects[i]) );
		}
	};

	var oEvt = new AshEventDispatcher(window); oEvt.addEventListener('load', function() { own._initialize(); });
}; AshSelectBox.initialize();
</script>
<script>function changePassword_IHP(pId,pCurrPwd,pNewPwd,pNewConfirmPwd,pIns,pFac){var iAccount=new Common_Control_Account();if(pId==""){iAccount.Show_Message(resmgr.getResourceString("msgEnterUserID"));return;};if(pCurrPwd==""){iAccount.Show_Message(resmgr.getResourceString("msgEnterCurrentPassword"));return;};if(pNewPwd==""){iAccount.Show_Message(resmgr.getResourceString("msgEnterNewPassword"));return;};if(pNewConfirmPwd==""){iAccount.Show_Message(resmgr.getResourceString("msgReEnterNewPassword"));return;};if(pNewPwd!=pNewConfirmPwd){iAccount.Show_Message(resmgr.getResourceString("msgIncorrectConfirmationPassword"));return;}else {iAccount.ChangePassword(pId,pCurrPwd,pNewPwd,pIns,pFac);}};function changePassword(pId,pCurrPwd,pNewPwd,pNewConfirmPwd){var iAccount=new Common_Control_Account();if(pId==""){iAccount.Show_Alert(resmgr.getResourceString("msgEnterUserID"));return;};if(pCurrPwd==""){iAccount.Show_Alert(resmgr.getResourceString("msgEnterCurrentPassword"));return;};if(pNewPwd==""){iAccount.Show_Alert(resmgr.getResourceString("msgEnterNewPassword"));return;};if(pNewConfirmPwd==""){iAccount.Show_Alert(resmgr.getResourceString("msgReEnterNewPassword"));return;};if(pNewPwd!=pNewConfirmPwd){iAccount.Show_Alert(resmgr.getResourceString("msgIncorrectConfirmationPassword"));return;}else {iAccount.ChangePassword(pId,pCurrPwd,pNewPwd);}};</script>
<script>var LoginObj=new LoginObject();function LoginObject(){var parent=parent||window;if(parent.window.name=='mainworklist'||parent.window.name=='mainviewer')return;this.ResultMsg=new Array();this.ResultMsg["-1"]=parent.resmgr.getResourceString("msgUnknown");this.ResultMsg["-100"]=parent.resmgr.getResourceString("msgNotSupportedMode");this.ResultMsg["-101"]=parent.resmgr.getResourceString("msgNotSupportedType");this.ResultMsg["-102"]=parent.resmgr.getResourceString("msgEnterRequiredParam");this.ResultMsg["-103"]=parent.resmgr.getResourceString("msgAlreadyCalledURL");this.ResultMsg["-104"]=parent.resmgr.getResourceString("msgFailedSecurity");this.ResultMsg["-105"]=parent.resmgr.getResourceString("msgURLDecryptionError");this.ResultMsg["0"]=parent.resmgr.getResourceString("msgSuccess");this.ResultMsg["20001"]=parent.resmgr.getResourceString("msgAlreadyLoginUser");this.ResultMsg["20042"]=parent.resmgr.getResourceString("msgExpireNoticePassword");this.ResultMsg["10000"]=parent.resmgr.getResourceString("msgNoData");this.ResultMsg["10001"]=parent.resmgr.getResourceString("msgNotTransmittedData");this.ResultMsg["20400"]=parent.resmgr.getResourceString("msgInterfaceVersionUpgrade");this.ResultMsg["20600"]=parent.resmgr.getResourceString("msgQRServiceBusy");this.ResultMsg["-10000"]=parent.resmgr.getResourceString("msgAccessedOnlyHospital");this.ResultMsg["-10001"]=parent.resmgr.getResourceString("msgDoNotHaveAuthorization");this.ResultMsg["-20000"]=parent.resmgr.getResourceString("msgAuthorization");this.ResultMsg["-20001"]=parent.resmgr.getResourceString("msgInvalidSession");this.ResultMsg["-20002"]=parent.resmgr.getResourceString("msgInvalidLoginID");this.ResultMsg["-20003"]=parent.resmgr.getResourceString("msgSessionTerminated");this.ResultMsg["-20004"]=parent.resmgr.getResourceString("msgSessionTerminated");this.ResultMsg["-20005"]=parent.resmgr.getResourceString("msgRequiredChangePassword");this.ResultMsg["-20006"]=parent.resmgr.getResourceString("msgExpiredPassword");this.ResultMsg["-20007"]=parent.resmgr.getResourceString("msgMaximumLogons");this.ResultMsg["-20008"]=parent.resmgr.getResourceString("msgInvalidPasswordCharLength");this.ResultMsg["-20009"]=parent.resmgr.getResourceString("msgUserLocked");this.ResultMsg["-20010"]=parent.resmgr.getResourceString("msgFailedPassword");this.ResultMsg["-20011"]=parent.resmgr.getResourceString("msgTemporaryPassword");this.ResultMsg["-20012"]=parent.resmgr.getResourceString("msgInvalidPassword");this.ResultMsg["-20013"]=parent.resmgr.getResourceString("msgInvalidPassword");this.ResultMsg["-20014"]=parent.resmgr.getResourceString("msgMinimumLengthPassword");this.ResultMsg["-20015"]=parent.resmgr.getResourceString("msgRequiredNumericCharacter");this.ResultMsg["-20016"]=parent.resmgr.getResourceString("msgMaximumLengthPassword");this.ResultMsg["-20017"]=parent.resmgr.getResourceString("msgInvalidSession2");this.ResultMsg["-20018"]=parent.resmgr.getResourceString("msgSessionTimeout");this.ResultMsg["-20019"]=parent.resmgr.getResourceString("msgDuplicateUserID");this.ResultMsg["-20021"]=parent.resmgr.getResourceString("msgAuthenticationFailed");this.ResultMsg["-20031"]=parent.resmgr.getResourceString("msgNotRegisteredDevice");this.ResultMsg["-20032"]=parent.resmgr.getResourceString("msgNotApprovedDevice");this.ResultMsg["-20033"]=parent.resmgr.getResourceString("msgRejectedDevice");this.ResultMsg["-20034"]=parent.resmgr.getResourceString("msgNotValidLicense");this.ResultMsg["-20041"]=parent.resmgr.getResourceString("msgPasswordFailCount");this.ResultMsg["-20042"]=parent.resmgr.getResourceString("msgInUsePassword");this.ResultMsg["-20043"]=parent.resmgr.getResourceString("msgLockedUser");this.ResultMsg["-20044"]=parent.resmgr.getResourceString("msgExpiredUser");this.ResultMsg["-20045"]=parent.resmgr.getResourceString("msgAccountExpiredPassword");this.ResultMsg["-20046"]=parent.resmgr.getResourceString("msgRequireMinimum");this.ResultMsg["-20047"]=parent.resmgr.getResourceString("msgRequireMaximum");this.ResultMsg["-20048"]=parent.resmgr.getResourceString("msgRequireNumeric");this.ResultMsg["-20049"]=parent.resmgr.getResourceString("msgRequireCapital");this.ResultMsg["-20050"]=parent.resmgr.getResourceString("msgRequireSpecialChar");this.ResultMsg["-20055"]=parent.resmgr.getResourceString("msgUseCombination");this.ResultMsg["-20035"]=parent.resmgr.getResourceString("msgAlreadyExistToken");this.ResultMsg["-20036"]=parent.resmgr.getResourceString("msgFailedCreatingIHPUser");this.ResultMsg["-20037"]=parent.resmgr.getResourceString("msgNoMatchingActionSet");this.ResultMsg["-20038"]=parent.resmgr.getResourceString("msgNoMatchingAccCtrlRule");this.ResultMsg["-20039"]=parent.resmgr.getResourceString("msgFailedUpdatingSyncKey");this.ResultMsg["-20099"]=parent.resmgr.getResourceString("msgChangePasswordExpiredUser");this.ResultMsg["-20100"]=parent.resmgr.getResourceString("msgGeneralSyntax");this.ResultMsg["-20101"]=parent.resmgr.getResourceString("msgSyntaxErrorParam");this.ResultMsg["-20102"]=parent.resmgr.getResourceString("msgMissingParam");this.ResultMsg["-20200"]=parent.resmgr.getResourceString("msgPACSResource");this.ResultMsg["-20201"]=parent.resmgr.getResourceString("msgNotLocateDICOMFile");this.ResultMsg["-20202"]=parent.resmgr.getResourceString("msgFailedReadingDICOMFile");this.ResultMsg["-20203"]=parent.resmgr.getResourceString("msgFailedConvertingDICOMFile");this.ResultMsg["-20204"];this.ResultMsg["-20205"];this.ResultMsg["-20206"];this.ResultMsg["-20207"];this.ResultMsg["-20213"]="GSPS SAVE FAILURE";this.ResultMsg["-20214"]="GSPS SAVE EXCEPTION";this.ResultMsg["-20215"]="WetReading SAVE FAILURE";this.ResultMsg["-20216"]="WetReading SAVE EXCEPTION";this.ResultMsg["-20217"]="Additional Field SAVE EXCEPTION";this.ResultMsg["-20300"]=parent.resmgr.getResourceString("msgWebServiceResource");this.ResultMsg["-20301"]=parent.resmgr.getResourceString("msgServerResourceUnavailable");this.ResultMsg["-20302"]=parent.resmgr.getResourceString("msgServiceBusy");this.ResultMsg["-20400"]=parent.resmgr.getResourceString("msgNotSupportedInterface");this.ResultMsg["-20410"]=parent.resmgr.getResourceString("msgEmergencyMode");this.ResultMsg["-20411"]=parent.resmgr.getResourceString("msgNormalMode");this.ResultMsg["-20500"]=parent.resmgr.getResourceString("msgDisabledLoginMode");this.ResultMsg["-40000"]=parent.resmgr.getResourceString("msgInvalidLicense");this.ResultMsg["-40100"]=parent.resmgr.getResourceString("msgNotPermissionLogin");this.ResultMsg["-41000"]=parent.resmgr.getResourceString("msgLicenseFail");this.ResultMsg["-41001"]=parent.resmgr.getResourceString("msgLicensePeriodExpired");this.ResultMsg["-41002"]=parent.resmgr.getResourceString("msgLicenseCountExceeded");this.ResultMsg["50000"]=parent.resmgr.getResourceString("msgADPasswordWillBeExpired");this.ResultMsg["-50001"]=parent.resmgr.getResourceString("msgADCannotConnect");this.ResultMsg["-50021"]=parent.resmgr.getResourceString("msgADAccountInactive");this.ResultMsg["-50022"]=parent.resmgr.getResourceString("msgADAccountLockout");this.ResultMsg["-50023"]=parent.resmgr.getResourceString("msgADAccountExpired");this.ResultMsg["-50024"]=parent.resmgr.getResourceString("msgADAccountDisabled");this.ResultMsg["-50025"]=parent.resmgr.getResourceString("msgADPasswordDifferent");this.ResultMsg["-50041"]=parent.resmgr.getResourceString("msgADPasswordDifferent");this.ResultMsg["-50042"]=parent.resmgr.getResourceString("msgADPasswordExpired");this.ResultMsg["-50043"]=parent.resmgr.getResourceString("msgADPasswordPolicy");this.ResultMsg["-50044"]=parent.resmgr.getResourceString("msgADPasswordChange");this.ResultMsg["-50045"]=parent.resmgr.getResourceString("msgADPasswordChangeDifferent");this.ResultMsg["-50061"]=parent.resmgr.getResourceString("msgADNotAllowedDomain");this.ResultMsg["-50062"]=parent.resmgr.getResourceString("msgADNotAllowedAnotherUser");this.ResultMsg["-50100"]=parent.resmgr.getResourceString("msgADInAuthorize");this.ResultMsg["-60001"]=parent.resmgr.getResourceString("msgDetetedWetReadingVoiceFile");this.ResultMsg["-99999"]=parent.resmgr.getResourceString("msgFailedConnection");this.prevOrientation="";};</script>
<script>var topWin=function(win){var currentWindow=win;var limitCount=10;while(parent&&limitCount--){try{if(currentWindow.isULiteMain||(currentWindow.isULiteLogin&&(currentWindow.frameElement==null||currentWindow.frameElement.id!='Update')))break;currentWindow=currentWindow.parent;}catch(e){return currentWindow;}};return currentWindow;}(window);function pause(numberMillis){var now=(new Date()).getTime();var exitTime=now+numberMillis;while(true){now=(new Date()).getTime();if(now>exitTime){return;}}};function include(path){var js=document.createElement("script");js.setAttribute("type","text/javascript");js.setAttribute("src",path);document.getElementsByTagName("head")[0].appendChild(js);};function exists(pItem,pArray){if(pArray!=null&&pArray.length!=0){var len=pArray.length;for(var i=0;i<len;i++){if(pItem==pArray[i])return true;}};return false;};String.prototype.format=function(args){var str=this;return str.replace(String.prototype.format.regex,function(item){var intVal=parseInt(item.substring(1,item.length-1));var replace;if(intVal>=0){replace=args[intVal];}else  if(intVal===-1){replace="{";}else  if(intVal===-2){replace="}";}else {replace="";};return replace;});};String.prototype.format.regex=new RegExp("{-?[0-9]+}","g");String.prototype.existsItem=function(pArray){if(pArray!=null&&pArray.length!=0){var len=pArray.length;for(var i=0;i<len;i++){if(this==pArray[i])return true;}};return false;};function convertArrayToStr(pArray,pDelim,pFlag){var tmpList="";var len=pArray.length;for(var i=0;i<len;i++){if(pArray[i]!=null&&pArray[i]!="")tmpList+=pArray[i]+pDelim;};tmpList=tmpList.substr(0,tmpList.length-pDelim.length);return tmpList;};function getNumberByDirection(pTotalLength,pDirection,pNumber){if(pDirection>0)return pNumber;else  return pTotalLength-(pNumber+1);};IntervalChecker=function(pInterval){this.Before;this.Interval;this.loadFlag=true;this.init=function(pInterval){this.Before=(new Date()).getTime();this.Interval=pInterval;};this.checkInterval=function(){var Now=(new Date()).getTime();var PassTime=this.Before+this.Interval;if(Now<PassTime){this.loadFlag=false;};this.Before=Now;};this.setFlag=function(pFlag){this.loadFlag=pFlag;};this.getFlag=function(){return this.loadFlag;}};ImageLocation=function(){this.itemKey=0;this.seriesIndex=0;this.imageIndex=0;this.frameIndex=0;this.setLocation=function(itemKey,seriesIndex,imageIndex,frameIndex){this.itemKey=itemKey;this.seriesIndex=seriesIndex;this.imageIndex=imageIndex;if(frameIndex!=null)this.frameIndex=frameIndex;};this.getLocation=function(){return this;};this.setItemKey=function(itemKey){this.itemKey=itemKey;};this.setSeriesIndex=function(seriesIndex){this.seriesIndex=seriesIndex;};this.setImageIndex=function(imageIndex){this.imageIndex=imageIndex;};this.setFrameIndex=function(frameIndex){this.frameIndex=frameIndex;};this.getItemKey=function(){return this.itemKey>>0;};this.getSeriesIndex=function(){return this.seriesIndex>>0;};this.getImageIndex=function(){return this.imageIndex>>0;};this.getFrameIndex=function(){return this.frameIndex>>0;};this.isFirstImage=function(){if(this.getSeriesIndex()==0&&this.getImageIndex()==0)return true;else  return false;};this.isLastImage=function(pCtrlStudy){if((this.getSeriesIndex()+1)==pCtrlStudy.getJsonSeriesLength(this.getItemKey())&&(this.getImageIndex()+1)==pCtrlStudy.getJsonImageLength(this.getItemKey(),this.getSeriesIndex()))return true;else  return false;};this.isOutOfIndex=function(pDirection,pCtrlStudy){if(pDirection<0&&this.isFirstImage())return true;if(pDirection>0&&this.isLastImage(pCtrlStudy))return true;return false;}};makePosition=function(nValue){xFlag=(nValue<0)?-1:1;var nValue=Math.abs(nValue);var dotLoc=(nValue+"").indexOf(".");if(xFlag>0){switch(dotLoc){case-1:switch((nValue+"").length){case 0:break;case 1:nValue="   "+nValue;break;case 2:nValue="  "+nValue;break;case 3:nValue=" "+nValue;break;case 4:break;default:};break;case 0:break;case 1:nValue=parseInt(nValue*100)/100;break;case 2:nValue=parseInt(nValue*10)/10;break;case 3:nValue=" "+parseInt(nValue);break;case 4:nValue=parseInt(nValue);break;default:};nValue=nValue+"";}else {switch(dotLoc){case-1:switch((nValue+"").length){case 0:break;case 1:nValue="  -"+nValue;break;case 2:nValue=" -"+nValue;break;case 3:nValue="-"+nValue;break;case 4:nValue="-"+nValue;break;default:};break;case 0:break;case 1:nValue="-"+parseInt(nValue*10)/10;break;case 2:nValue=" -"+parseInt(nValue);break;case 3:nValue="-"+parseInt(nValue);break;case 4:nValue='-'+parseInt(nValue);break;default:};nValue=nValue+"";};return makePosition2(nValue);};makePosition2=function(nValue){var nValue=parseInt(nValue);xFlag=(nValue<0)?"-":" ";nValue=Math.abs(nValue);var tmpValue=Math.floor(nValue);switch((tmpValue+"").length){case 0:break;case 1:nValue="  ";break;case 2:nValue=" ";break;case 3:nValue="";break;case 4:nValue="";xFlag=(xFlag==="-")?xFlag:"";break;default:};return nValue+xFlag+tmpValue;};function IsPortraitMode(nOrientation){if(BrowserDetect.OS=="iPhone/iPod"||BrowserDetect.OS=="iPad"){var topWidth=topWin.window.innerWidth;var topHeight=topWin.window.innerHeight;if(topHeight>topWidth){return true;};return false;}else {var mode=topWin.orientation;if(nOrientation!=null)mode=nOrientation;if(BrowserDetect.OS=="Android"){if(BrowserDetect.Model=="SHW-M480W"||BrowserDetect.Model=="SM-P600"){mode+=90;}}else  if(BrowserDetect.OS=="Windows"){var _pc_touchmode=localStorage.getItem('PC_TOUCHMODE');if(_pc_touchmode=="TABLET"){var topWidth=topWin.window.innerWidth;var topHeight=topWin.window.innerHeight;if(topHeight>topWidth){return true;};return false;}};switch(mode){case 0:case 180:return true;break;case-90:case 90:case 270:return false;break;default:return false;}}};function IsPotrateState(nOrientation){var mode=topWin.orientation;if(nOrientation!=null)mode=nOrientation;if(BrowserDetect.OS=="Android"){if(BrowserDetect.Model=="SHW-M480W"){mode+=90;}};switch(mode){case 0:case 180:return true;break;case-90:case 90:case 270:return false;break;default:return false;}};function IsPortraitModeInLogin(nOrientation){var mode=topWin.orientation;if(nOrientation!=null)mode=nOrientation;var agent=navigator.userAgent;if(BrowserDetect.OS=="Android"){if(BrowserDetect.Model=="SHW-M480W"){mode+=90;}};switch(mode){case 0:case 180:return true;break;case-90:case 90:case 270:return false;break;default:return false;}};function NoClickDelay(el){this.element=el;var HAS_TOUCH=('ontouchstart'in window);if(HAS_TOUCH&&this.element&&this.element.addEventListener)this.element.addEventListener('touchstart',this,false);};NoClickDelay.prototype={handleEvent:function(e){switch(e.type){case'touchstart':this.onTouchStart(e);break;case'touchmove':this.onTouchMove(e);break;case'touchend':this.onTouchEnd(e);break;}},onTouchStart:function(e){e.preventDefault();this.moved=false;this.element.addEventListener('touchmove',this,false);this.element.addEventListener('touchend',this,false);},onTouchMove:function(e){this.moved=true;},onTouchEnd:function(e){this.element.removeEventListener('touchmove',this,false);this.element.removeEventListener('touchend',this,false);if(!this.moved){var theTarget=document.elementFromPoint(e.changedTouches[0].clientX,e.changedTouches[0].clientY);if(theTarget.nodeType==3)theTarget=theTarget.parentNode;var theEvent=document.createEvent('MouseEvents');theEvent.initEvent('click',true,true);theTarget.dispatchEvent(theEvent);}}};var nIntervalTime=10;var scrollTimer;function hideAddressBar(){return;};function execHide(){if(!pageYOffset){nIntervalTime=10;window.scrollTo(0,1);}else {nIntervalTime=1000;clearInterval(scrollTimer);scrollTimer=setInterval(execHide,nIntervalTime);}};String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");};String.prototype.ltrim=function(){return this.replace(/^\s*/,"");};String.prototype.rtrim=function(){return this.replace(/\s*$/,"");};function CustomError(name,message){this.name=name||"Error";this.message=message||"Default Message";};CustomError.prototype=new Error();CustomError.prototype.constructor=CustomError;function DisplayTime(bIsStart){var d=new Date();var s=bIsStart+"==="+leadingZeros(d.getHours(),2)+':'+leadingZeros(d.getMinutes(),2)+':'+leadingZeros(d.getSeconds(),2)+':'+leadingZeros(d.getMilliseconds(),2);console.log(s);};function leadingZeros(n,digits){var zero='';n=n.toString();if(n.length<digits){for(i=0;i<digits-n.length;i++)zero+='0';};return zero+n;};function setfocus(oEvent){oEvent.focus();};function setfocus_Delay(oEvent,nTime){this.oEvn=oEvent;if(nTime)setTimeout("this.setfocus();",nTime);else  setTimeout("this.setfocus();",500);this.setfocus=function(){this.oEvn.focus();}};function hideCustomSelect(){var customSelectList=document.getElementsByClassName('opt_list');var customSelectListLength=customSelectList.length;for(var i=0;i<customSelectListLength;i++){customSelectList[i].style.display='none';}};function CustomSelect(id,onclick_func){var blind=document.getElementById("blind")||document.getElementById("anno2D_blind")||document.getElementById("Blind_alt"),select=document.getElementById(id),customSelect=select.nextElementSibling,customSel=document.createElement("div"),optWrap=document.createElement("div"),wrapClassName="opt_list",optList=document.createElement("ul"),customScroll,wrapHeight=0;customSel.setAttribute("class","custom_sel");customSel.textContent=(select.options.selectedIndex>=0)?select[select.options.selectedIndex].text:"";optWrap.setAttribute("id",'wrap'+select.id);optWrap.setAttribute("class",wrapClassName);var _setItems=function(){while(optList.firstChild){optList.removeChild(optList.firstChild);};var optCnt=select.childElementCount;if(!optCnt){return false;};for(var i=0;i<optCnt;i++){var item=document.createElement("li");var ipt=document.createElement("input");var label=document.createElement("label");ipt.setAttribute("type","radio");ipt.setAttribute("name","c_"+select.id);ipt.setAttribute("id","c_"+select.id+i);label.setAttribute("for","c_"+select.id+i);label.setAttribute("class","itemLabel");label.textContent=select[i].text;item.appendChild(ipt);item.appendChild(label);optList.appendChild(item);if(select.options.selectedIndex>-1){customSel.textContent=select[select.options.selectedIndex].text;}(function(){var idx=i;label.onclick=function(){select.options.selectedIndex=idx;select.onchange&&select.onchange();if(select.options.selectedIndex>-1){customSel.textContent=select[select.options.selectedIndex].text;};optWrap.style.display="none";if(BrowserDetect.Device!=="Phone")blind.style.display="none";}})();};return true;};var _show=function(){if(!_setItems()){return;};if(customSel.parentElement.getAttribute("class").indexOf("dis")!==-1){return;};if(select.options.selectedIndex>-1){customSel.textContent=select[select.options.selectedIndex].text;document.getElementsByName("c_"+select.id)[select.options.selectedIndex].checked=true;};optWrap.style.display="block";_setSelect();};var _setSelect=function(){wrapHeight=(wrapHeight)?optWrap.firstChild.clientHeight:((optWrap.clientHeight)?optWrap.clientHeight:optWrap.firstChild.clientHeight);var wHeight=(BrowserDetect.browser=="Chrome"||BrowserDetect.Device=="Tablet")?window.innerHeight:window.outerHeight/2;if(wrapHeight<wHeight){optWrap.style.top=parseInt((wHeight/ 2) - (wrapHeight /2))+'px';optWrap.style.height=wrapHeight+"px";}else {optWrap.style.height=wHeight-40+"px";optWrap.style.top=20+"px";};if(!customScroll){customScroll=new iScroll("#"+optWrap.id,{hScroll:false,vScrollbar:false,bounce:false});}else {customScroll._resize();};window.addEventListener('resize',_setSelect);};var _init=function(obj,onclick_func){var that=obj;optWrap.appendChild(optList);customSelect.appendChild(customSel);document.body.appendChild(optWrap);select.style.display="none";if(BrowserDetect.Device=="Tablet"&&(customSelect.id==="custom_modality"||customSelect.id==="custom_study-date")){customSelect.style.display="inline-block";}else {customSelect.style.display="block";};customSel.onclick=function(e){if(onclick_func!=null)onclick_func();_show();};var setCustomItem=document.createEvent("Event");var setCustomName=document.createEvent("Event");setCustomItem.initEvent("setCustomItem",false,false);setCustomName.initEvent("setCustomName",false,false);select.dispatchEvent(setCustomItem);select.dispatchEvent(setCustomName);select.setCustomItem=_setItems;select.setCustomName=function(){if(select.options.selectedIndex>-1){customSel.textContent=select[select.options.selectedIndex].text;}}};_init(this,onclick_func);};function createMessage(obj){var _default={tit:"information",msg:"message",btns:true,okCancel:false,display:false,reuse:false,blind:"blind",btnOK:topWin.resmgr.getResourceString("btnOK"),btnCancel:topWin.resmgr.getResourceString("titCancel_M"),fn:false,fn2:false},_init;for(var key in obj){_default[key]=obj[key];};_createDom=function(){var args=Array.prototype.slice.call(arguments),dom,i=0;while(i<args.length){if(i==0)dom=document.createElement(args[i]);if(i==1)dom.className=args[i];if(i==2)dom.textContent=args[i];i++};return dom;};_checkSamePopup=function(){var ret=false;var popup=document.getElementsByClassName("create_pop");var len=popup.length;var create_popup=null;var title="";var msg="";for(var i=0;i<len;i++){create_popup=popup[i];title=create_popup.childNodes[0].textContent;msg=create_popup.childNodes[1].childNodes[0].textContent;if(_default.tit==title&&_default.msg==msg){ret=true;break;}};return ret;};_init=function(){var ret=_checkSamePopup();if(ret)return;var wrapper=_createDom("div","create_pop"),tit=_createDom("div","tit",_default.tit),msgContainer=_createDom("div","msgContainer"),msg=_createDom("div","msg",_default.msg),btns=_createDom("div","btns"),btn_ok=_createDom("button","btn_ok",_default.btnOK),btn_cancel=_createDom("button","btn_cancel",_default.btnCancel);if(_default.btns){if(_default.fn!=false){if(!_default.okCancel){btn_ok.onclick=function(){_showHide();_default.fn();};btns.appendChild(btn_ok);}else {btn_ok.onclick=_default.fn;if(!_default.fn2)btn_cancel.onclick=_showHide;else  btn_cancel.onclick=_default.fn2;btns.appendChild(btn_ok);btns.appendChild(btn_cancel);}}else {if(!_default.okCancel){btn_ok.onclick=_showHide;btns.appendChild(btn_ok);}else {btn_ok.onclick=_showHide;btn_cancel.onclick=_showHide;btns.appendChild(btn_ok);btns.appendChild(btn_cancel);}};msgContainer.appendChild(msg);msgContainer.appendChild(btns);}else {msgContainer.appendChild(msg);};wrapper.appendChild(tit);wrapper.appendChild(msgContainer);if(document.getElementById(_default.blind)!==null)document.getElementById(_default.blind).style.display="block";document.body.appendChild(wrapper);_default.display=true;_default.btns&&btn_ok.focus();function _showHide(option){if(option){if(option=="show"){_default.display=true;if(document.getElementById(_default.blind)!==null)document.getElementById(_default.blind).style.display="block";wrapper.style.display="block";btn_ok.focus();}else {_default.display=false;if(document.getElementById(_default.blind)!==null)document.getElementById(_default.blind).style.display="none";wrapper.style.display="none";if(!_default.reuse){if(wrapper.parentNode)wrapper.parentNode.removeChild(wrapper);}}}else {if(_default.display){_default.display=false;if(document.getElementById(_default.blind)!==null)document.getElementById(_default.blind).style.display="none";wrapper.style.display="none";if(!_default.reuse){wrapper.parentNode.removeChild(wrapper);}}else {_default.display=true;if(document.getElementById(_default.blind)!==null)document.getElementById(_default.blind).style.display="block";wrapper.style.display="block";btn_ok.focus();}}};return{showHide:_showHide,isDispaly:function(){return _default.display;}}};return _init();};var initCanvas=function initCanvas(canvas){var originalCanvasWidth=canvas.width;var originalCanvasHeight=canvas.height;canvas.width=0;canvas.height=0;canvas.width=originalCanvasWidth;canvas.height=originalCanvasHeight;return;};var copyImageData=function copyImageData(source){var canvasTemp=vViewProp.canvasTempImage;initCanvas(canvasTemp);canvasTemp.width=source.width;canvasTemp.height=source.height;var contextTemp=canvasTemp.getContext("2d");contextTemp.imageSmoothingEnabled=false;contextTemp.mozImageSmoothingEnabled=false;contextTemp.webkitImageSmoothingEnabled=false;contextTemp.msImageSmoothingEnabled=false;contextTemp.putImageData(source,0,0);return contextTemp.getImageData(0,0,canvasTemp.width,canvasTemp.height).data;};Date.prototype.YYYYMMDDHHMMSS=function(){var yyyy=this.getFullYear().toString();var MM=pad(this.getMonth()+1,2);var dd=pad(this.getDate(),2);var hh=pad(this.getHours(),2);var mm=pad(this.getMinutes(),2);var ss=pad(this.getSeconds(),2);return yyyy+MM+dd+hh+mm+ss;};function pad(number,length){var str=''+number;while(str.length<length){str='0'+str;};return str;};function IsTouchablePC(){try{if(!window.PointerEvent||navigator.maxTouchPoints==0){console.log("IsTouchablePC = "+window.PointerEvent+" | "+navigator.maxTouchPoints+": false");return false;};console.log("IsTouchablePC = "+window.PointerEvent+" | "+navigator.maxTouchPoints+": true");return true;}catch(e){console.log(this.declaredClass+" | "+Error.message);return false;}};function storageAvailable(type){var storage;try{storage=window[type];var x='__storage_test__';storage.setItem(x,x);storage.removeItem(x);console.log("storageAvailable ( "+type+") : true");return true;}catch(e){console.log("storageAvailable : error ( code : "+e.code+" e.name : "+e.name);return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==='QuotaExceededError'||e.name==='NS_ERROR_DOM_QUOTA_REACHED')&&(storage&&storage.length!==0);}};function simple_unicode_decode(str){str=str.replace("u0001","âº");str=str.replace("u0002","â»");str=str.replace("u0003","â¥");str=str.replace("u0004","â¦");str=str.replace("u0005","â£");str=str.replace("u0006","â ");str=str.replace("u0007","â¢");str=str.replace("u0008","â");str=str.replace("u0009","â");str=str.replace("u000A","â");str=str.replace("u000B","â");str=str.replace("u000C","â");str=str.replace("u000D","âª");str=str.replace("u000E","â«");str=str.replace("u000F","â¼");str=str.replace("u0010","âº");str=str.replace("u0011","â");str=str.replace("u0012","â");str=str.replace("u0013","â¼");str=str.replace("u0014","¶");str=str.replace("u0015","§");str=str.replace("u0016","?");str=str.replace("u0017","?");str=str.replace("u0018","â");str=str.replace("u0019","â");str=str.replace("u001A","â");str=str.replace("u001B","â");str=str.replace("u001C","â");str=str.replace("u001D","â");str=str.replace("u001E","â²");str=str.replace("u001F","â¼");str=str.replace("u0020"," ");str=str.replace("u0021","!");str=str.replace("u0022","\"");str=str.replace("u0023","#");str=str.replace("u0024","$");str=str.replace("u0025","%");str=str.replace("u0026","&");str=str.replace("u0027","'");str=str.replace("u0028","(");str=str.replace("u0029",")");str=str.replace("u002A","*");str=str.replace("u002B","+");str=str.replace("u002C",",");str=str.replace("u002D","-");str=str.replace("u002E",".");str=str.replace("u2026","â¦");str=str.replace("u002F","/");str=str.replace("u0030","0");str=str.replace("u0031","1");str=str.replace("u0032","2");str=str.replace("u0033","3");str=str.replace("u0034","4");str=str.replace("u0035","5");str=str.replace("u0036","6");str=str.replace("u0037","7");str=str.replace("u0038","8");str=str.replace("u0039","9");str=str.replace("u003A",":");str=str.replace("u003B",";");str=str.replace("u003C","<");str=str.replace("u003D","=");str=str.replace("u003E",">");str=str.replace("u2264","â¤");str=str.replace("u2265","â¥");str=str.replace("u003F","?");str=str.replace("u0040","@");str=str.replace("u0041","A");str=str.replace("u0042","B");str=str.replace("u0043","C");str=str.replace("u0044","D");str=str.replace("u0045","E");str=str.replace("u0046","F");str=str.replace("u0047","G");str=str.replace("u0048","H");str=str.replace("u0049","I");str=str.replace("u004A","J");str=str.replace("u004B","K");str=str.replace("u004C","L");str=str.replace("u004D","M");str=str.replace("u004E","N");str=str.replace("u004F","O");str=str.replace("u0050","P");str=str.replace("u0051","Q");str=str.replace("u0052","R");str=str.replace("u0053","S");str=str.replace("u0054","T");str=str.replace("u0055","U");str=str.replace("u0056","V");str=str.replace("u0057","W");str=str.replace("u0058","X");str=str.replace("u0059","Y");str=str.replace("u005A","Z");str=str.replace("u005B","[");str=str.replace("u005C","\\");str=str.replace("u005D","]");str=str.replace("u005E","^");str=str.replace("u005F","_");str=str.replace("u0060","`");str=str.replace("u0061","a");str=str.replace("u0062","b");str=str.replace("u0063","c");str=str.replace("u0064","d");str=str.replace("u0065","e");str=str.replace("u0066","f");str=str.replace("u0067","g");str=str.replace("u0068","h");str=str.replace("u0069","i");str=str.replace("u006A","j");str=str.replace("u006B","k");str=str.replace("u006C","l");str=str.replace("u006D","m");str=str.replace("u006E","n");str=str.replace("u006F","o");str=str.replace("u0070","p");str=str.replace("u0071","q");str=str.replace("u0072","r");str=str.replace("u0073","s");str=str.replace("u0074","t");str=str.replace("u0075","u");str=str.replace("u0076","v");str=str.replace("u0077","w");str=str.replace("u0078","x");str=str.replace("u0079","y");str=str.replace("u007A","z");str=str.replace("u007B","{");str=str.replace("u007C","|");str=str.replace("u007D","}");str=str.replace("u02DC","Ë");str=str.replace("u007E","â¼");str=str.replace("u007F","");str=str.replace("u00A2","¢");str=str.replace("u00A3","£");str=str.replace("u00A4","¤");str=str.replace("u20AC","â¬");str=str.replace("u00A5","Â¥");str=str.replace("u0026quot;","\"");str=str.replace("u0026gt;",">");str=str.replace("u0026lt;",">");return str;};Date.prototype.format=function(f){if(!this.valueOf())return" ";var weekName=[topWin.resmgr.getResourceString("titSunday"),topWin.resmgr.getResourceString("titMonday"),topWin.resmgr.getResourceString("titTuesday"),topWin.resmgr.getResourceString("titWednesday"),topWin.resmgr.getResourceString("titThursday"),topWin.resmgr.getResourceString("titFriday"),topWin.resmgr.getResourceString("titSaturday")];var d=this;return f.replace(/(yyyy|yy|MM|dd|E|hh|mm|ss|a\/p|MS)/gi,function($1){var h;switch($1){case"yyyy":return d.getFullYear();case"yy":return(d.getFullYear()%1000).zf(2);case"MM":return(d.getMonth()+1).zf(2);case"dd":return d.getDate().zf(2);case"E":return weekName[d.getDay()];case"HH":return d.getHours().zf(2);case"hh":return((h=d.getHours()%12)?h:12).zf(2);case"mm":return d.getMinutes().zf(2);case"ss":return d.getSeconds().zf(2);case"a/p":return d.getHours()<12?topWin.resmgr.getResourceString("titAM"):topWin.resmgr.getResourceString("titPM");case"MS":return d.getMilliseconds().zf(3);default:return $1;}});};String.prototype.string=function(len){var s='',i=0;while(i++<len){s+=this;};return s;};String.prototype.zf=function(len){return"0".string(len-this.length)+this;};Number.prototype.zf=function(len){return this.toString().zf(len);};function getRandomRGB(){var r=leadingZeros(Math.round(Math.random()*0x55+0x55).toString(16),2);var g=leadingZeros(Math.round(Math.random()*0x55+0x55).toString(16),2);var b=leadingZeros(Math.round(Math.random()*0x55+0x55).toString(16),2);return"#"+r+g+b;};function isOverflown(element,xy){var overflowX=(element.scrollWidth>element.clientWidth),overflowY=(element.scrollHeight>element.clientHeight),isOverflownFlag=(xy)?((xy=='x')?overflowX:overflowY):(overflowX||overflowY);return isOverflownFlag;};function removeChildren(element){while(element.hasChildNodes()){element.removeChild(element.firstChild);}};function createCSSClass(className,element,value){var style=document.createElement('style');style.type='text/css';style.innerHTML='.'+className+' {'+element+':'+((value)?value:'')+';}';document.getElementsByTagName('head')[0].appendChild(style);};function changeCSSClassAttribute(className,element,value){var cssRules,existsClass=false;for(var S=0;S<document.styleSheets.length;S++){if(!cssRules){if(document.styleSheets[S]['rules']){cssRules='rules';}else  if(document.styleSheets[S]['cssRules']){cssRules='cssRules';}else {break;}};for(var R=0;R<document.styleSheets[S][cssRules].length;R++){if(document.styleSheets[S][cssRules][R].selectorText==className){document.styleSheets[S][cssRules][R].style[element]=value;existsClass=true;break;}}};if(!existsClass){createCSSClass(className,value);}};function cancelFullScreen(el){var requestMethod=el.cancelFullScreen||el.webkitCancelFullScreen||el.mozCancelFullScreen||el.exitFullscreen;if(requestMethod){requestMethod.call(el);}else  if(typeof window.ActiveXObject!=="undefined"){var wscript=new ActiveXObject("WScript.Shell");if(wscript!==null){wscript.SendKeys("{F11}");}}};function requestFullScreen(el){var requestMethod=el.requestFullScreen||el.webkitRequestFullScreen||el.mozRequestFullScreen||el.msRequestFullscreen;if(requestMethod){requestMethod.call(el);}else  if(typeof window.ActiveXObject!=="undefined"){var wscript=new ActiveXObject("WScript.Shell");if(wscript!==null){wscript.SendKeys("{F11}");}};return false};function toggleFull(elementId){var elem=(elementId&&document.querySelector(elementId))?document.querySelector(elementId):document.body;var isInFullScreen=(document.fullScreenElement&&document.fullScreenElement!==null)||(document.mozFullScreen||document.webkitIsFullScreen);if(isInFullScreen){cancelFullScreen(document);}else {requestFullScreen(elem);};return false;};var TouchEventDetect={init:function(){this.eventstart="touchstart";this.eventmove="touchmove";this.eventend="touchend";if(window.PointerEvent){this.eventstart="pointerdown";this.eventmove="pointermove";this.eventend="pointerup";};this.oneventstart="on"+this.eventstart;this.oneventmove="on"+this.eventmove;this.oneventend="on"+this.eventend;}};TouchEventDetect.init();function isPassive(){var supportsPassiveOption=false;try{addEventListener("test",null,Object.defineProperty({},'passive',{get:function(){supportsPassiveOption=true;}}));}catch(e){};return supportsPassiveOption;};document.addEventListener('touchmove',function(e){if(e.target.className!="tagit-choice ui-widget-content ui-state-default ui-corner-all tagit-choice-editable"&&e.target.className!="tagit-label"&&e.target.className!="Share_Input tagit ui-widget ui-widget-content ui-corner-all"&&e.target.className!="tagit-new"&&e.target.tagName!="LABEL"){e.preventDefault();}},isPassive()?{capture:false,passive:false}:false);function SetPC_touchmode(value){localStorage.setItem('PC_TOUCHMODE',value);var f=document.createElement("form");f.setAttribute("method","post");f.setAttribute("action","/login/ChangeTouchMode");document.body.appendChild(f);var i=document.createElement("input");i.setAttribute("type","hidden");i.setAttribute("name","MODE");i.setAttribute("value",value);f.appendChild(i);var j=document.createElement("input");j.setAttribute("type","hidden");j.setAttribute("name","URL");j.setAttribute("value",location.href);f.appendChild(j);f.submit();};String.prototype.toHHMMSS=function(){var myNum=parseInt(this,10);var hours=Math.floor(myNum/3600);var minutes=Math.floor((myNum-(hours*3600))/60);var seconds=myNum-(hours*3600)-(minutes*60);if(hours<10){hours="0"+hours;};if(minutes<10){minutes="0"+minutes;};if(seconds<10){seconds="0"+seconds;};return hours+':'+minutes+':'+seconds;};String.prototype.toMMSS=function(){var myNum=parseInt(this,10);var minutes=Math.floor(myNum/60);var seconds=myNum-(minutes*60);if(minutes<10){minutes="0"+minutes;};if(seconds<10){seconds="0"+seconds;};return minutes+':'+seconds;};function Login_MsgBox(title,contents,isShow){if(isShow){document.getElementById('Blind_alt').style.display='block';var LoadingBoxObj=document.getElementById('LoadingBox');if(LoadingBoxObj){LoadingBoxObj.style.display='block';var titObj=LoadingBoxObj.getElementsByClassName('tit');if(titObj&&titObj.length>0)titObj[0].innerText=title;var contentsObj=LoadingBoxObj.getElementsByClassName('popup-content');if(contentsObj&&contentsObj.length>0)contentsObj[0].innerText=contents;var contentsObjForMobile=LoadingBoxObj.getElementsByClassName('wrap-txt');if(contentsObjForMobile&&contentsObjForMobile.length>0)contentsObjForMobile[0].innerText=contents;}}else {document.getElementById('Blind_alt').style.display='none';document.getElementById('LoadingBox').style.display='none';}};</script>
<script>var cTest=function(){this.Test="";};var cProfile=function(){this.UserKey=0;this.UserID="";this.Section="";this.Entry="";this.Type="";this.Value="";this.CvalueLob="";};var cAccount=function(){this.SessionKey="";this.UserKey=0;this.UserID="";this.UserPassword="";this.UserName="";this.UserName_First="";this.UserName_Last="";this.LevelCode=0;this.LevelCode_Maro="";this.TimezoneKey="";this.UseDST="N";this.TimezoneName="";this.InstitutionCode_IHP="";this.FacilityCode_IHP="";this.CheckOption="T";this.SensitiveLoginID="";this.IsReferringPhysician="";this.UserHideCodes="";this.Department="";this.UserInstitutionCode="";this.UserIDForDisplay="";this.IsAzureAccess="";this.IsChangePwdLater="F";this.MFAType="";this.MFAInfo=null;};var cMFAInfomation=function(){this.Action="";this.factorID="";this.stateToken="";};var cPatient=function(){this.PatientList=new Array();};var cPatientInfo=function(){this.patient_id="";this.patient_id_issuer="";this.patient_name="";this.patient_sex="";this.patient_age="";this.patient_birth_date="";this.patient_ssn_mrn="";this.phone="";this.address="";this.global_patient_id="";};var cWorklist=function(){this.Action="";this.Condition=new Array();this.ParentUID=new Array();this.Name="";this.FetchCountStart=0;this.RelatedFetchCountStart=0;this.TargetTable="";this.StudyKey=-1;this.Priority="";this.Msg="";this.Institution_DST="";this.Institution_SRC="";this.TVolumeType="0";this.CheckStudyStatusType="0";this.SeriesListStorageCheck="";this.StudyKeyList=new Array();this.StudyInstanceUIList=new Array();this.OnlyFetch="";};var cWorklist_Study=function(){this.study_key="";this.study_instance_uid="";this.patient_id="";this.patient_name="";this.FIELD_1="";this.FIELD_2="";this.FIELD_3="";this.FIELD_4="";this.FIELD_5="";this.FIELD_6="";this.FIELD_7="";this.FIELD_8="";this.FIELD_9="";this.FIELD_10="";this.isMod_1="";this.isMod_2="";this.isMod_3="";this.isMod_4="";this.isMod_5="";this.isMod_6="";this.isMod_7="";this.isMod_8="";this.isMod_9="";this.isMod_10="";};var cStudy_Info=function(){this.svc_cd_str="";this.study_key="";this.patient_id="";this.access_no="";};var cWorklist_Report=function(){this.study_info=new cStudy_Info();};var cSearchFilter=function(){this.Action="";this.ParentUID=new Array();this.Default="";this.FolderLock="";this.OldName="";this.Name="";this.Description="";this.Expression="";this.Condition=new Array();this.folder_key=null;this.parent_key=null;this.user_folder_key=null;};var cConditionInfo=function(){this.ConditionName="";this.ConditionValue="";this.ConditionType="";this.Expression="";this.Code_Expansion="";this.Criterion=new Array();};var cCriterion=function(){this.Type="";this.MacroID="";this.CriterionValue="";};var RequestInfo=function(){this.Account=null;this.Profile=null;this.Configuration=null;};var RequestObject=function(){this.RemoteCallAction="";this.Command="";this.Parameters=new cRequestInfo();};var cConfiguration=function(){this.Action="";this.CRUD="";this.ModalityLayout=null;this.WindowPreset=null;this.AutoLogout=null;this.WorklistConfig=null;this.ViewerConfig=null;this.Apply_VOILUT="";this.Apply_GSPS="";this.Print_Demo="";this.Apply_CTR2="";this.Save_Annotation="";this.Save_Calibration="";this.Save_Rotation="";this.Save_WWL="";this.SaveCheckOption="";this.DisplayArrowAnnoSetting="";this.Frame_Rate=0;this.AutoClose=0;this.Worklist_FontSize=0;this.Viewer_FontSize=0;this.ReportPrint_FontSize=0;this.LocalImage_DisplayOption="";this.UseReduceImage=false;this.UsePreJpegDisplay=true;this.DisplayStudyPreviewOption="";this.WorklistDefaultSearch="";this.Show_Preview="";this.Multiframe_Autoplay="";this.MouseLeftSetting="";this.MouseMiddleSetting="";this.MouseRightSetting="";this.AutoScrollDrag="";this.T_VolumeOpenMode="";};var cModalityLayout=function(){this.Modality="";this.Setting="";this.DisplayMode="";this.ThumbnailMode="";this.CombineSeries="";this.ApplyAll="";};var cWindowPreset=function(){this.ModalityCode="";this.BeforeTitle="";this.Title="";this.Level="";this.Width="";this.Filter="";this.FilterValue="";};var cAutoLogout=function(){this.Period="";this.Unit="";};var cWorklistConfig=function(){this.TextListFont=null;this.ReportFont=null;this.PatientIdPrefix="";this.UsePatientIdPrefix="";this.WorklistColumns=null;};var cViewerConfig=function(){this.ScreenFont=null;};var cFont=function(){this.FontName="";this.FontSize=0;};var cWorklistColumn=function(){this.Selected="";this.Value=0;};var cScoutLine=function(){this.Type=3;};var cStats=function(){this.type="";this.startdate="";this.enddate="";};var cParam=function(){this.ParamName="";this.ParamValue="";};var cViewer=function(){this.Action="";this.Param=new Array();};var cStudyViewerParam=function(){this.serviceCode=[];this.storageLocation=[];this.studyKey=[];this.studyUid=[];this.seriesUid=[];this.isRelated=[];this.modality=[];this.viewType=[];this.isSeries=[];this.numInfoArray=[];this.vnaInfo=[];this.serviceCodeRelated=[];this.syncStudyKey=[];this.is_TVolume=[];};var cViewerData=function(){this.storage_location="";this.study_key="";this.study_uid="";this.series_uid="";this.accession_number="";this.patient_id="";this.is_ko_modality=false;this.image_panel_width=0;this.image_panel_height=0;this.body_part="";this.Action="";};var cNonDicomData=function(){this.service_code="";this.related_service_code="";this.group_key="";this.document_unique_id="";this.content_category_key="";};var cG3_ViewerData=function(){this.instance_uid="";this.patient_name="";this.patient_id_issuer="";this.other_patient_id_issuer="";this.is_related_open=false;this.search_filter_folder_name="";this.is_anonymize=false;this.related_range="";this.relevant_key="";this.storage_location="";this.study_key="";this.study_uid="";this.series_uid="";this.accession_number="";this.patient_id="";this.is_ko_modality=false;this.image_panel_width=0;this.image_panel_height=0;this.body_part="";this.Action="";this.is_TVolume="";};var cM6_ViewerData=function(){this.his_order_id="";this.storage_location="";this.study_key="";this.study_uid="";this.series_uid="";this.accession_number="";this.patient_id="";this.is_ko_modality=false;this.image_panel_width=0;this.image_panel_height=0;this.body_part="";this.Action="";};var cStationInfo=function(){this.IPAddress="";this.port="";this.station_key="";this.hostname="";this.aetitle="";this.new_uid_yn="";this.compression_type="";};var cRecipient=function(){this.recipient_location="";this.recipient_user_key="";this.recipient_name="";this.recipient_email="";this.recipient_phone_no="";this.shared_method="";this.sms_endpoint="";};var cWebSocketEntity=function(){this.Action="";};</script>
<script>var cRequestInfo=function(){this.Account=null;this.Profile=null;this.Worklist=null;this.Worklist_Study_IDB=null;this.SearchFilter=null;this.RequestType=null;this.Patient=null;this.StationInfo=null;this.Worklist_SendStatus=null;this.WebSocketEntity=null;};var cEXIUrl=function(){this.url="";this.LikeSearchList=[];};var cRequestObject=function(){this.RemoteCallAction="";this.Command="";this.Parameters=new cRequestInfo();this.oRequestTime=null;this.EXIUrl=new cEXIUrl();this.ParameterList;};var tmp_cAjaxEngine=null;var g_RequestWorklist="0";function Common_AjaxEngine(){this.url='/requestData/RequestWorklistData';this.SendData=new cRequestObject();this.EncodedParam=null;this.postData=null;this.handleAs="json";this.headers={"Content-Type":"application/json"};this.paramArray=null;this.CallBackFunction=null;this.load=function(data,ioArgs){if(this.CallBackFunction!=null)this.CallBackFunction(data);};this.error=function(error){alert(error.toString());};this.handle=function(){hasBeenSent=true;};this.CallxhrPost=function(type){var oCurrentDate=new Date();this.SendData.strRequestTime=oCurrentDate.getTime();this.postData=Base64.encode(JSON.stringify(this.SendData));var Worklist_Request=new XMLHttpRequest();var pCallBackObj=this;var callType=type;this.WorklistRequest_Receive1=function(){var responseStudyData="";var studyDataSize=0;if(Worklist_Request!="undefined"){if(Worklist_Request.readyState==4){if(Worklist_Request.status==200){g_RequestWorklist="0";if(Worklist_Request.responseText=="Exception"){var strErrorText=parent.resmgr.getResourceString("msgFailedStudyInfo");alert(strErrorText);}else {if(Worklist_Request.responseText=="{Nothing}"){pCallBackObj.load();return;};if(callType=="CTR"||callType=="TimeZone"||callType=="saveGSPS"||callType=="saveStudy"){responseStudyData=Worklist_Request.responseText;}else {if(Worklist_Request.responseText==""||Worklist_Request.responseText=="null"){var v=window.name?top:window;v.Hide_3dRenderingMsg();v.Hide_studyloadMsg();v.createMessage({msg:"Server response null",});return;};var index=Worklist_Request.responseText.indexOf("<");if(-1<index&&index<10){responseStudyData=Worklist_Request.responseText;}else {responseStudyData=JSON.parse(Worklist_Request.responseText);};var win=window;if(window.name=="ReportView"){win=(opener)?(BrowserDetect.browser==="Edge"||BrowserDetect.browser==="Explorer")?opener:window:window;};if(callType!="getList"&&responseStudyData[0]&&responseStudyData[0].RemoteCallAction!="AccountAction"&&(win.sessionStorage.getItem("SessionKey")==null||win.sessionStorage.getItem("SessionKey")=="")){return;};studyDataSize=responseStudyData.length;};pCallBackObj.load(responseStudyData,null);}}else {g_RequestWorklist="0";var strErrorText=parent.resmgr.getResourceString("msgFailedConnectService");if(BrowserDetect.Device!="Phone"){tmp_cAjaxEngine.AlertMessageFromString(tmp_cAjaxEngine.declaredClass,tmp_cAjaxEngine.SendData.Command,strErrorText);}};Worklist_Request.onload=Worklist_Request.onreadystatechange=null;}}};Worklist_Request.onload=this.WorklistRequest_Receive1;Worklist_Request.open('POST',this.url,true);if(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)){Worklist_Request.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=utf-8');}else {Worklist_Request.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=utf-8');};this.postData=this.postData.replace(/=/gi,"-");this.postData=this.postData.replace(/\+/gi,"^");this.postData=this.postData+"=";tmp_cAjaxEngine=this;Worklist_Request.send(this.postData);};this.AlertMessage=function(declaredClass,command,errorObject){var catch_box=document.getElementById('catchBox');if(catch_box){catch_box.style.display='block';var oIDOK_Btn=document.getElementById('Button3');if(oIDOK_Btn)oIDOK_Btn.focus();var strClassname="";var strMsg="";if(document.getElementById('infom')){if(declaredClass==""){document.getElementById('infom').value="Session Error";var strMsg="\nCommand : "+command+"\n"+"Message : "+"\n"+errorObject.message;}else {document.getElementById('infom').value="Alert";var strMsg="Class : "+strClassname+"\n \n"+"Command : "+command+"\n \n"+"Message : "+"\n"+errorObject.message;}}else {};if(document.getElementById('Msg')){document.getElementById('Msg').value=strMsg;}}};this.AlertMessageFromString=function(declaredClass,command,errorString){if(BrowserDetect.Device=="PC"){var w_preloader=document.getElementById('worklistPreloader');if(w_preloader)w_preloader.style.display="none";};var catch_box=document.getElementById('catchBox');if(catch_box)catch_box.style.display='block';var btn3=document.getElementById('Button3');if(btn3&&btn3.focus)btn3.focus();if(declaredClass){var strClassname=declaredClass.toString();};var strMsg="";if(document.getElementById('infom')){if(declaredClass==""){document.getElementById('infom').value="Session Error";var strMsg="\nCommand : "+command+"\n"+"Message : "+"\n"+errorString;}else {document.getElementById('infom').value="Alert";var strMsg="Class : "+strClassname+"\n \n"+"Command : "+command+"\n \n"+"Message : "+"\n"+errorString;}}else {};if(document.getElementById('Msg')){document.getElementById('Msg').value=strMsg;}};this.showErrorMessage=function(strTitle,strErrorText){if(BrowserDetect.Device=="PC")document.getElementById('worklistPreloader').style.display="none";document.getElementById('ErrorBox').style.display='block';if(document.getElementById('Button3').focus)document.getElementById('Button3').focus();document.getElementById('errorinfom').value=strTitle;document.getElementById('errorMsg').value=strErrorText;}};</script>
<script>function Common_SignalREngine(signalR_Hub){var hubObj=signalR_Hub;this.SendData=new cRequestObject();this.EncodedParam=null;this.postData=null;this.paramArray=null;this.CallBackFunction=null;this.CallBackFunctionObjList=[];this.RequestingQueue=[];var Common_SignalREngineObj=this;this.Add_requestingQueue=function(){var Item={'SendData':this.SendData,'RemoteCallAction':this.SendData.RemoteCallAction,'Command':this.SendData.Command,'CallBackFunction':this.CallBackFunction};this.RequestingQueue.push(Item);};this.IsRemain_requestingQueue=function(){if(this.RequestingQueue.length>1){this.Add_requestingQueue();return true;};return false;};this.Call_LastRequestingQueue=function(){if(this.RequestingQueue.length>1){var QueueItem=this.RequestingQueue.pop();this.RequestingQueue.clear();this.SendData=QueueItem.SendData;this.SendData.RemoteCallAction=QueueItem.RemoteCallAction;this.SendData.Command=QueueItem.Command;this.CallBackFunction=QueueItem.CallBackFunction;this.Request3DData();}};this.init=function(){hubObj.set_receiveFn(this.WorklistRequest_Receive);hubObj.set_receive3DFn(this._3DImage_Receive);};this.CallxhrPost=function(){var oCurrentDate=new Date();this.SendData.strRequestTime=oCurrentDate.getTime();this.postData=Base64.encode(JSON.stringify(this.SendData));this.Register_ReceiveFn(this.SendData.RemoteCallAction,this.SendData.Command,this.CallBackFunction);hubObj.requestWorklistData(this.postData);};this.WorklistRequest_Receive=function(pData){var IndexText=pData[0].RemoteCallAction+"."+pData[0].Command;var finded_Obj=topWin.ctrl3DViewer.CallBackFunctionObjList[IndexText];if(finded_Obj&&typeof(finded_Obj)!='undefined')topWin.ctrl3DViewer.CallBackFunctionObjList[IndexText](pData);else  console.log('WorklistRequest_Receive::CallBackFunctionObj is null.');};this.Request3DData=function(){var oCurrentDate=new Date();this.SendData.strRequestTime=oCurrentDate.getTime();this.postData=Base64.encode(JSON.stringify(this.SendData));if(this.IsRemain_requestingQueue())return;this.Register_ReceiveFn(this.SendData.RemoteCallAction,this.SendData.Command,this.CallBackFunction);hubObj.Request3DData(this.postData);};this._3DImage_Receive=function(pData){var nHeaderSize=pData.substring(0,4)<<0;var strHeader=pData.substring(4,4+nHeaderSize);var pImageBuf=pData.substring(4+nHeaderSize,pData.length);var IndexText=strHeader;IndexText=Common_SignalREngineObj.ConvertRemoteCallAction(IndexText);var finded_Obj=topWin.ctrl3DViewer.CallBackFunctionObjList[IndexText];if(finded_Obj&&typeof(finded_Obj)!='undefined')topWin.ctrl3DViewer.CallBackFunctionObjList[IndexText](pImageBuf,strHeader);else  console.log('_3DImage_Receive::CallBackFunctionObj is null.');if(topWin!=null&&typeof(topWin)!='undefined')topWin.ctrl3DViewer.Call_LastRequestingQueue();};this.ConvertRemoteCallAction=function(Action){var returnValue=Action;switch(Action){case"Mpr_Inverse":case"Mpr_Move_Slice":case"Mpr_thickness":case"Mpr_thicknessMode":case"Mpr_reset":case"Mpr_Zoom":case"Mpr_Window":case"Mpr_pan":case"Mpr_oblique":case"Dvr_Orientation":case"Dvr_Reset":case"Dvr_Zoom":case"Dvr_Pan":case"Dvr_Rotate":case"Dvr_Projection":returnValue="Get_3DJpeg";break;case"Open3D_ImageRendering_InitMask.":case"Open3D_ImageRendering_InitOpenGL.":case"Open3D_ImageRendering_DataTexture.":case"Open3D_ImageRendering_MaskTexture.":case"Open3D_ImageRendering_MPR.":case"Open3D_ImageRendering_DVR.":case"Open3D_ImageRendering_MakeBuffer.":returnValue="Open3D_LoadFile.";break;};return returnValue;};this.Register_ReceiveFn=function(RemoteCallAction,Command,FnObject){if(FnObject==null)return;RemoteCallAction=this.ConvertRemoteCallAction(RemoteCallAction);var IndexText=RemoteCallAction+"."+Command;this.CallBackFunctionObjList[IndexText]=FnObject;};this.ClearCallBackFunctionObjList=function(){this.CallBackFunctionObjList=[];};this.init();};</script>
<script>var g_ins_count=0;function Common_Control_Account(){Common_AjaxEngine.call(this);this.updateSessionTime=false;this.setUpdateSessionTime=function(updateSessionTime){this.updateSessionTime=updateSessionTime;};this.getUpdateSessionTime=function(){return this.updateSessionTime;};this.GetInstitution=function(){try{this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="GetInstitution";this.CallBackFunction=this.cbResultIns;this.CallxhrPost('getList');}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);document.getElementById('LoadingBox').style.display='none';}};this.GetFacility=function(code){try{var iUser=new cAccount();iUser.InstitutionCode_IHP=code;iUser.SessionKey=sessionStorage.getItem("SessionKey");this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="GetFacility";this.SendData.Parameters.Account=iUser;this.CallBackFunction=this.cbResultFac;this.CallxhrPost('getList');}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);document.getElementById('LoadingBox').style.display='none';}};this.GetPwdFacility=function(code){try{var iUser=new cAccount();iUser.InstitutionCode_IHP=code;iUser.SessionKey=sessionStorage.getItem("SessionKey");this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="GetFacility";this.SendData.Parameters.Account=iUser;this.CallBackFunction=this.cbResultPwdFac;this.CallxhrPost('getList');}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);document.getElementById('LoadingBox').style.display='none';}};this.TryToAuth=function(o){try{var iUser=new cAccount();iUser.UserID=o.id;iUser.UserPassword=o.pwd;iUser.Force=o.force;iUser.IsAzureAccess=o.IsAzureAccess;iUser.UserName=o.UserName;iUser.UserName_First=o.UserName_First;iUser.UserName_Last=o.UserName_Last;iUser.SessionKey=sessionStorage.getItem("SessionKey");if(UseTimezones==="T"){iUser.TimezoneKey=o.tzKey;iUser.UseDST=o.DSTYN;};if(o.ins){iUser.InstitutionCode_IHP=o.ins;iUser.FacilityCode_IHP=o.fac;if(o.check==undefined||o.check==null){iUser.CheckOption="T";}else {iUser.CheckOption=o.check;};iUser.SensitiveLoginID=o.sensitiveLoginID;};iUser.IsChangePwdLater=o.changePwdLater?o.changePwdLater:"F";this.SendData.ECS_dbType=strEcsDbType;this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="TryToAu";this.SendData.Parameters.Account=iUser;this.SendData.Parameters.Device=BrowserDetect.Device;this.CallBackFunction=this.cbPreResultAuth;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);document.getElementById('LoadingBox').style.display='none';}};this.TryToAuth_EXI=function(id,password,force,tzKey,DSTYN){try{var iUser=new cAccount();iUser.UserID=id;iUser.UserPassword=password;iUser.Force=force;iUser.SessionKey=sessionStorage.getItem("SessionKey");if(UseTimezones==="T"){iUser.TimezoneKey=tzKey;iUser.UseDST=DSTYN;};this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="TryToAu";this.SendData.Parameters.Account=iUser;this.SendData.Parameters.Device=BrowserDetect.Device;this.CallBackFunction=this.cbResultAuth_EXI;this.CallxhrPost();}catch(Error){console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.Logout=function(id,sessionKey){try{var iUser=new cAccount();iUser.UserID=id;iUser.SessionKey=sessionStorage.getItem("SessionKey");if(topWin.strInterfaceType=="Gx_DB"){iUser.InstitutionCode_IHP=sessionStorage.getItem("InstitutionCode_IHP");iUser.FacilityCode_IHP=sessionStorage.getItem("FacilityCode_IHP");};this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="TryToLogout";this.SendData.Parameters.Account=iUser;this.CallBackFunction=this.cbResultLogout;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.CheckedSession=function(id,sessionKey){try{var iUser=new cAccount();iUser.UserID=id;iUser.SessionKey=sessionKey;if(topWin.strInterfaceType=="Gx_DB"){iUser.InstitutionCode_IHP=sessionStorage.getItem("InstitutionCode_IHP");iUser.FacilityCode_IHP=sessionStorage.getItem("FacilityCode_IHP");};this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="CheckedSession";this.SendData.Parameters.Account=iUser;this.SendData.Parameters.Device=BrowserDetect.Device;this.CallBackFunction=this.cbResultCheckedSession;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.PeriodicCheckedSession=function(id,sessionKey){try{var iUser=new cAccount();iUser.UserID=id;iUser.SessionKey=sessionKey;iUser.UpdateAutoLogoutSession=false;if(topWin.strInterfaceType=="Gx_DB"){iUser.InstitutionCode_IHP=sessionStorage.getItem("InstitutionCode_IHP");iUser.FacilityCode_IHP=sessionStorage.getItem("FacilityCode_IHP");};this.SendData.RemoteCallAction="AccountAction";if(this.getUpdateSessionTime()){iUser.UpdateAutoLogoutSession=true;this.setUpdateSessionTime(false);};this.SendData.Command="Invalid_Checked";this.SendData.Parameters.Account=iUser;this.SendData.Parameters.Device=BrowserDetect.Device;this.CallBackFunction=this.cbResultCheckedSession;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.ChangePassword=function(id,oldpwd,newpwd,institution,facility,isEXI){try{var iUser=new cAccount();iUser.UserID=id;iUser.UserPassword=oldpwd;iUser.UserNewPassword=newpwd;iUser.InstitutionCode_IHP=institution;iUser.FacilityCode_IHP=facility;iUser.SessionKey=sessionStorage.getItem("SessionKey");this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="ChangePassword";this.SendData.Parameters.Account=iUser;if(topWin.strInterfaceType=="Gx_DB"){iUser.SensitiveLoginID=loginCtrl.sensitiveLoginID;this.CallBackFunction=this.cbResultChangePassword_IHP;}else  if(isEXI==="Y"){this.CallBackFunction=this.cbResultChangePassword_EXI;}else {this.CallBackFunction=this.cbResultChangePassword;};this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.GetPasswordComplexity=function(institution,facility){try{var iUser=new cAccount();iUser.InstitutionCode_IHP=institution;iUser.FacilityCode_IHP=facility;iUser.SessionKey=sessionStorage.getItem("SessionKey");this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="GetPasswordProfile";this.SendData.Parameters.Account=iUser;this.CallBackFunction=this.cbGetPasswordComplexity;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.GetCurPassword=function(id,userKey){try{var iUser=new cAccount();iUser.UserID=id;iUser.UserKey=userKey;iUser.SessionKey=sessionStorage.getItem("SessionKey");this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="GetCurPassword";this.SendData.Parameters.Account=iUser;this.CallBackFunction=this.cbGetCurPassword;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.Request_QREnroll=function(statecode){try{var iUser=new cAccount();iUser.MFAInfo=new cMFAInfomation();iUser.MFAInfo.Action="RequestEnroll";iUser.MFAInfo.stateToken=statecode;this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="MFAAction";this.SendData.Parameters.Account=iUser;this.CallBackFunction=this.cbRequest_QREnroll;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.Request_SecrectCodeEnroll=function(statecode,id){try{var iUser=new cAccount();iUser.UserID=id;iUser.MFAInfo=new cMFAInfomation();iUser.MFAInfo.Action="RequestSecretCodeEnroll";iUser.MFAInfo.stateToken=statecode;this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="MFAAction";this.SendData.Parameters.Account=iUser;this.CallBackFunction=this.cbRequest_SecretCodeEnroll;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.Okta_PushVerify=function(type,id,userKey){try{var iUser=new cAccount();iUser.UserID=id;iUser.UserKey=userKey;iUser.MFAType=type;iUser.MFAInfo=new cMFAInfomation();iUser.MFAInfo.Action="OKTAVerify";this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="MFAAction";this.SendData.Parameters.Account=iUser;this.CallBackFunction=this.cbOkta_PushVerify;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.Okta_ActivceCode=function(type,id,userKey,Code){try{var iUser=new cAccount();iUser.UserID=id;iUser.UserKey=userKey;iUser.MFAType=type;iUser.MFAInfo=new cMFAInfomation();iUser.MFAInfo.actCode=Code;iUser.MFAInfo.Action="OKTAVerify";this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="MFAAction";this.SendData.Parameters.Account=iUser;this.CallBackFunction=this.cbOkta_ActivceCode;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.ActiveSecretCode=function(code,stateToken,factorID){try{var iUser=new cAccount();iUser.MFAInfo=new cMFAInfomation();iUser.MFAInfo.actCode=code;iUser.MFAInfo.factorID=factorID;iUser.MFAInfo.stateToken=stateToken;iUser.MFAInfo.Action="ActiveSecretCode";this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="MFAAction";this.SendData.Parameters.Account=iUser;this.CallBackFunction=this.cbActiveSecretCode;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.VerifyFactor=function(factorID,stateToken){try{var iUser=new cAccount();iUser.MFAType="PUSH";iUser.MFAInfo=new cMFAInfomation();iUser.MFAInfo.factorID=factorID;iUser.MFAInfo.stateToken=stateToken;iUser.MFAInfo.Action="VerifyFactor";this.SendData.RemoteCallAction="AccountAction";this.SendData.Command="MFAAction";this.SendData.Parameters.Account=iUser;this.CallBackFunction=this.cbVerifyFactor;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbResultIns=function(data){try{if(data==undefined||data.length==0){var tmpins=document.getElementById("selInstitution");tmpins.innerHTML="";opts=document.createElement("option");opts.value=JSON.stringify({code:"none",saveLoginID:""});opts.text="None";tmpins.appendChild(opts);var tmpfac=document.getElementById("selFacility");tmpfac.innerHTML="";opts=document.createElement("option");opts.value=JSON.stringify({code:"none",saveLoginID:"",sensitiveLoginID:""});opts.text="None";opts.name="";tmpfac.appendChild(opts);return;};var _d=document,ins,rData=data[0],tmp,opts=null,opt,i,attCode;ins=_d.getElementById("selInstitution");ins.innerHTML="";g_ins_count=rData.length;if(g_ins_count>1&&document.getElementById("step_gx"))document.getElementById("step_gx").style="";rData.sort(function(a,b){var descA=a.Desc;var descB=b.Desc;if(descA<descB){return-1;};if(descA>descB){return 1;};return 0;});for(i=0;i<rData.length;i=i+1){opts=document.createElement("option");opts.value=JSON.stringify(rData[i].Code);opts.text=rData[i].Desc;if(JSON.parse(opts.value)===getCookie("InstitutionCode")){opts.selected="selected";};ins.appendChild(opts);};this.GetFacility(JSON.parse(ins.value));}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbResultFac=function(data){try{if(data==undefined||data.length==0){var tmpfac=document.getElementById("selFacility");tmpfac.innerHTML="";opts=document.createElement("option");opts.value=JSON.stringify({code:"none",saveLoginID:"",sensitiveLoginID:""});opts.text="None";opts.name="";tmpfac.appendChild(opts);return;};var _d=document,fac,rData=data[0],tmp,opts=null,opt,i,attCode;fac=_d.getElementById("selFacility");fac.innerHTML="";var facility={};if(rData.length===1){facility.code=rData[0].FacilityCode;facility.saveLoginID=rData[0].SaveLoginID;facility.sensitiveLoginID=rData[0].SensitiveLoginID;opts=document.createElement("option");opts.value=JSON.stringify(facility);opts.text=rData[0].FacilityName;fac.appendChild(opts);facility={};if(g_ins_count==1){if(document.getElementById("step_gx"))document.getElementById("step_gx").style.display="none";}}else {if(rData.length>1&&document.getElementById("step_gx"))document.getElementById("step_gx").style="";rData.sort(function(a,b){var nameA=a.FacilityName;var nameB=b.FacilityName;if(nameA<nameB){return-1;};if(nameA>nameB){return 1;};return 0;});for(i=0;i<rData.length;i=i+1){facility.code=rData[i].FacilityCode;facility.saveLoginID=rData[i].SaveLoginID;facility.sensitiveLoginID=rData[i].SensitiveLoginID;opts=document.createElement("option");opts.value=JSON.stringify(facility);opts.text=rData[i].FacilityName;if(facility.code===getCookie("FacilityCode")){opts.selected="selected";};fac.appendChild(opts);facility={}}};selectFacility();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbResultPwdFac=function(data){try{if(data==undefined)return;var _d=document,fac,rData=data[0],tmp,opts=null,opt,i,attCode;fac=_d.getElementById("selPwdFacility");fac.innerHTML="";var facility={};if(rData.length===1){facility.code=rData[0].FacilityCode;facility.saveLoginID=rData[0].SaveLoginID;facility.sensitiveLoginID=rData[0].SensitiveLoginID;opts=document.createElement("option");opts.value=JSON.stringify(facility);opts.text=rData[0].FacilityName;fac.appendChild(opts);fac.onchange();facility={}}else {if(rData.length==0){document.getElementById("PwComplexity").value="";}else {var insCode=rData[0].InstitutionCode;for(i=0;i<rData.length;i=i+1){facility.code=rData[i].FacilityCode;facility.saveLoginID=rData[i].SaveLoginID;facility.sensitiveLoginID=rData[i].SensitiveLoginID;opts=document.createElement("option");opts.value=JSON.stringify(facility);opts.text=rData[i].FacilityName;if(facility.code===getCookie("FacilityCode")){opts.selected="selected";};fac.appendChild(opts);facility={}};this.GetPasswordComplexity(insCode,getCookie("FacilityCode"));}}}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbPreResultAuth=function(data){try{var account_info=data[0].Parameters.Account;var jsonTCNotice=account_info.EnableTCPopupNotice==null||account_info.EnableTCPopupNotice=="F"?"F":JSON.parse(account_info.EnableTCPopupNotice);var useTargetLevel=jsonTCNotice.TargetLevelCode==null||jsonTCNotice.TargetLevelCode.length==0||jsonTCNotice.TargetLevelCode.indexOf(account_info.LevelCode)>=0?true:false;var useTargetkey=jsonTCNotice.TargetUserKey==null||jsonTCNotice.TargetUserKey.length==0||jsonTCNotice.TargetUserKey.indexOf(account_info.UserKey)>=0?true:false;sessionStorage.setItem('ResultAuth',JSON.stringify(data));document.getElementById('Blind_alt').style.display='none';document.getElementById('LoadingBox').style.display='none';if(BrowserDetect.Device=="PC"&&jsonTCNotice!="F"&&parent.strInterfaceType=="G3_DB"&&useTargetLevel&&useTargetkey){document.getElementById("tcnTitle").textContent=jsonTCNotice.Title;document.getElementById("tcnWrittenDate").textContent=jsonTCNotice.WrittenDate;document.getElementById("tcnWritter").textContent=jsonTCNotice.Writter;document.getElementById("tcnContents").textContent=jsonTCNotice.Contents;document.getElementById("tcnAttachment").textContent=jsonTCNotice.Attachment;document.getElementById("tcnAttachment").href=jsonTCNotice.AttachmentURL;document.getElementById('tcnArea').style.setProperty('left',(window.innerWidth-655)/2+'px');document.getElementById('TCNoticePopup').style.display='block';}else {this.cbResultAuth(data);}}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbResultAuth=function(data){try{var account_info=data[0].Parameters.Account;var ResultCode=account_info.ResultCode;var errorMsg=LoginObj.ResultMsg[ResultCode];var ResultMsg=account_info.ResultMsg;var ResultCodeExtend=account_info.ResultCode_Extend;var ResultMsgExtend=LoginObj.ResultMsg[ResultCodeExtend];var IsPROMPT=account_info.IsPROMPT;this.ResultCode=ResultCode;this.ResultCodeExtend=ResultCodeExtend;sessionStorage.setItem('LevelAction',account_info.LevelAction);sessionStorage.setItem('LevelCode',account_info.LevelCode);sessionStorage.setItem('LevelCode_Maro',account_info.LevelCode_Maro);sessionStorage.setItem('SessionKey',account_info.SessionKey);sessionStorage.setItem('UserID',account_info.UserID);sessionStorage.setItem('UserIDForDisplay',account_info.UserIDForDisplay);sessionStorage.setItem('UserKey',account_info.UserKey);sessionStorage.setItem('UserName',account_info.UserName);sessionStorage.setItem('UserLevel',account_info.UserLevel);sessionStorage.setItem('WorklistMode',account_info.WorklistMode);sessionStorage.setItem('Department',account_info.Department);sessionStorage.setItem('IsCommonUser',account_info.IsCommonUser);sessionStorage.setItem('IsReferringPhysician',(account_info.IsReferringPhysician&&account_info.IsReferringPhysician!="null")?account_info.IsReferringPhysician:"");sessionStorage.setItem('UserHideCodes',(account_info.UserHideCodes&&account_info.UserHideCodes!="null")?account_info.UserHideCodes:"");if(account_info.UserInstitutionCode){sessionStorage.setItem('UserInstitutionCode',account_info.UserInstitutionCode);};if(account_info.InstitutionCode_IHP!=null){sessionStorage.setItem('InstitutionCode_IHP',account_info.InstitutionCode_IHP);setCookie('InstitutionCode',account_info.InstitutionCode_IHP,7);};if(account_info.FacilityCode_IHP){sessionStorage.setItem('FacilityCode_IHP',account_info.FacilityCode_IHP);setCookie('FacilityCode',account_info.FacilityCode_IHP,7);};if(account_info.Department){sessionStorage.setItem('Department',account_info.Department);setCookie('Department',account_info.Department);};if(UseTimezones==="T"){sessionStorage.setItem('TimezoneKey',account_info.TimezoneKey);sessionStorage.setItem('TimezoneName',account_info.TimezoneName);sessionStorage.setItem('TimezoneShortName',account_info.TimezoneShortName);sessionStorage.setItem('UseDST',account_info.UseDST);};if(account_info.IsOpenConfidential){sessionStorage.setItem('IsOpenConfidential',account_info.IsOpenConfidential);};if(account_info.IHPUserKey){sessionStorage.setItem('IHPUserKey',account_info.IHPUserKey);};if(account_info.IHPUserID){sessionStorage.setItem('IHPUserID',account_info.IHPUserID);};if(account_info.IsAzureAccess){sessionStorage.setItem('IsAzureAccess',account_info.IsAzureAccess);};if((ResultCodeExtend=="50000"&&ResultCode=="0")||(ResultCodeExtend=="50000"&&ResultCode=="20001")){ResultMsgExtend=ResultMsgExtend.replace("0",ResultMsg);var ErTxt=ResultMsgExtend;var MsgObject={tit:"Warning",msg:ErTxt,okCancel:true,display:false,blind:"Blind_alt",fn:this.CloseMsg_Remain(),fn2:this.CloseMsg_Login(),btnOK:"YES",btnCancel:"NO"};this.oMsg=createMessage(MsgObject);return;};if(ResultCode==""||typeof(errorMsg)=="undefined"){errorMsg=topWin.resmgr.getResourceString("msgFailedConnection");};var strType=topWin.document.EXIInfo.TYPE.value;if(topWin.strInterfaceType=="Gx_DB"){switch(ResultCode){case"0":if(IsPROMPT=="Y")topWin.location.replace("../externalinterface/viewexi");else  if(strType=="CTR"){document.EXIInfo.action="../externalinterface/viewexi";document.EXIInfo.method="post";document.EXIInfo.SESSIONKEY.value=account_info.SessionKey;document.EXIInfo.submit();document.EXIInfo.SESSIONKEY.value="";}else {if(BrowserDetect.Device=="PC"&&document.getElementById("hid_resultCode").value==ResultCode){document.getElementById("hid_resultCode").value=ResultCode;};var use2fa=document.getElementById('input_use_2fa').value=='Y'?true:false;account_info.IsTwoFAUser=true;if(use2fa&&account_info.IsTwoFAUser){var userId=sessionStorage.getItem('UserID');var userKey=sessionStorage.getItem('UserKey');var productType="IHP";sessionStorage.setItem('ProductType',productType);var redirectUrl=window.location.protocol+'//'+window.location.hostname;if(window.location.port!=''){redirectUrl+=':'+window.location.port+'/Login/TwoFAResult';}else {redirectUrl+='/Login/TwoFAResult';};var authServerBaseUrl=document.getElementById('input_auth_server_base_url').value;sessionStorage.setItem('AuthServerBaseUrl',authServerBaseUrl);var newOpenUrl=authServerBaseUrl+"/TwoFactorAuthentication?userId="+userId+"&userKey="+userKey+"&productType="+productType+"&redirectUrl="+redirectUrl;var w=640;var h=540;var y=window.top.outerHeight/ 2 + window.top.screenY - (h /2);var x=window.top.outerWidth/ 2 + window.top.screenX - (w /2);var win=window.open('','targetWindow','toolbar=no, location=no, status=no, menubar=no, scrollbar=yes, resizable=yes, width='+w+'px, height='+h+'px'+', top='+y+', left='+x);win.document.write('<iframe width="100%", height="100%" src="'+newOpenUrl+'" frameborder="0" allowfullscreen></iframe>');return;};topWin.location.replace("/worklist/SimpleViewerMain?wMode="+sessionStorage.getItem("WorklistMode"));if(BrowserDetect.Device=="PC"&&document.getElementById("hid_resultCode").value==ResultCode){document.getElementById("hid_resultCode").value=ResultCode;}};break;case"-10001":this.Show_AlertBlind();this.Show_LoginErrorMsgBox(errorMsg);break;case"-20041":case"-20043":case"-20044":document.getElementById("login-pwd").value="";this.Show_ErrorBox(ResultCode,errorMsg);document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';break;case"-20045":this.Show_ChangeUserPassword(errorMsg);document.getElementById("hid_ErrorCode").value=ResultCode;this.GetPasswordComplexity(account_info.InstitutionCode_IHP,account_info.FacilityCode_IHP);break;case"20001":this.OnError20001();break;case"20041":this.Show_ChangeUserPassword("");document.getElementById("hid_ErrorCode").value=ResultCode;this.GetPasswordComplexity(account_info.InstitutionCode_IHP,account_info.FacilityCode_IHP);break;case"20042":this.Show_AlertBlind();var popup=document.getElementById("PwdExpireNoticeBox");popup.style.display="block";if(ResultMsg=(ResultMsg==null)?"0":ResultMsg){document.getElementById("pwdExpireNoticeMsg").value=topWin.resmgr.getResourceString("msgExpireNoticePassword").format(ResultMsg);};break;case"-50044":var ErTxt=errorMsg+ResultMsg;document.getElementById("login-pwd").value="";this.Show_ErrorBox(ResultCode,ErTxt);document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';break;case"-50025":case"-50041":document.getElementById("login-pwd").value="";this.Show_ErrorBox(ResultCode,errorMsg);break;case"-50042":if(BrowserDetect.Device!=="Phone"){this.Show_Alert("["+ResultCode+"]"+errorMsg);}else {document.getElementById("login-pwd").value="";this.Show_ErrorBox(ResultCode,errorMsg);};break;case"-50045":var ErTxt=errorMsg+ResultMsg;document.getElementById("login-pwd").value="";this.Show_ErrorBox(ResultCode,ErTxt);document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';break;case"-20002":case"-20021":document.getElementById("login-pwd").value="";this.Show_ErrorBox(ResultCode,errorMsg);document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';break;default:document.getElementById("login-pwd").value="";this.Show_ErrorBox(ResultCode,errorMsg);document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';break;}}else {switch(ResultCode){case"0":if(IsPROMPT=="Y")topWin.location.replace("../externalinterface/viewexi");else  if(strType=="CTR"){document.EXIInfo.action="../externalinterface/viewexi";document.EXIInfo.method="post";document.EXIInfo.SESSIONKEY.value=account_info.SessionKey;document.EXIInfo.submit();document.EXIInfo.SESSIONKEY.value="";}else {if(BrowserDetect.Device=="PC"&&document.getElementById("hid_resultCode").value==ResultCode){document.getElementById("hid_resultCode").value=ResultCode;};var use2fa=document.getElementById('input_use_2fa').value=='Y'?true:false;if(use2fa&&account_info.Is2FAUser=='Y'){var userId=sessionStorage.getItem('UserID');var userKey=sessionStorage.getItem('UserKey');var productType="G3";sessionStorage.setItem('ProductType',productType);var redirectUrl=window.location.protocol+'//'+window.location.hostname;if(window.location.port!=''){redirectUrl+=':'+window.location.port+'/Login/TwoFAResult';};var authServerBaseUrl=document.getElementById('input_auth_server_base_url').value;sessionStorage.setItem('AuthServerBaseUrl',authServerBaseUrl);var newOpenUrl=authServerBaseUrl+"/TwoFactorAuthentication?userId="+userId+"&userKey="+userKey+"&productType="+productType+"&redirectUrl="+redirectUrl;var w=640;var h=540;var y=window.top.outerHeight/ 2 + window.top.screenY - (h /2);var x=window.top.outerWidth/ 2 + window.top.screenX - (w /2);var win=window.open('','targetWindow','toolbar=no, location=no, status=no, menubar=no, scrollbar=yes, resizable=yes, width='+w+'px, height='+h+'px'+', top='+y+', left='+x);win.document.write('<iframe width="100%", height="100%" src="'+newOpenUrl+'" frameborder="0" allowfullscreen></iframe>');return;};var useMFA=account_info.UseMFA==="T"?true:false;if(useMFA){var mfa_Popup=document.getElementById('duo_popup');var mfa_Iframe=document.getElementById('duo_main_iframe');mfa_Popup.style.display="block";mfa_Iframe.contentWindow.Reqeust_DuoSig(account_info);return;};topWin.location.replace("/worklist/SimpleViewerMain?wMode="+sessionStorage.getItem("WorklistMode"));if(BrowserDetect.Device=="PC"&&document.getElementById("hid_resultCode").value==ResultCode){document.getElementById("hid_resultCode").value=ResultCode;}};break;case"-20011":document.getElementById("change-pw00").value=document.getElementById("login-id").value;document.getElementById("imgCancle").style.display="inline";document.getElementById("ChangePw").style.display="inline";document.getElementById("hid_resultCode").value=ResultCode;this.Show_Alert(topWin.resmgr.getResourceString("msgChangePasswordFirstTime"));break;case"-20099":document.getElementById("change-pw00").value=document.getElementById("login-id").value;document.getElementById("imgCancle").style.display="none";document.getElementById("ChangePw").style.display="inline";document.getElementById("hid_resultCode").value=ResultCode;this.Show_Alert(topWin.resmgr.getResourceString("msgChangePasswordExpiredUser"));break;case"-20005":document.getElementById("change-pw00").value=document.getElementById("login-id").value;document.getElementById("imgCancle").value=topWin.resmgr.getResourceString("btnLater");document.getElementById("imgCancle").style.display="inline";document.getElementById("ChangePw").style.display="inline";document.getElementById("hid_resultCode").value=ResultCode;loginCtrl.isChangePwdLater="T";this.Show_Alert(topWin.resmgr.getResourceString("msgRequiredChangePassword")+"\n"+ResultCodeExtend+" "+topWin.resmgr.getResourceString("msgRequiredChangePassword2"));break;case"20001":this.Show_AlertBlind();this.Show_AlertBox(errorMsg);break;case"-50044":var ErTxt=errorMsg+ResultMsg;document.getElementById("login-pwd").value="";this.Show_ErrorBox(ResultCode,ErTxt);document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';break;case"-50025":case"-50041":case"-50045":var ErTxt=errorMsg+ResultMsg;document.getElementById("login-pwd").value="";this.Show_ErrorBox(ResultCode,ErTxt);document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';break;case"-20410":case"-20411":if(BrowserDetect.Device!=="Phone"){strEcsDbType=ResultCodeExtend;var errMsg;if(ResultCode==="-20410")errMsg=topWin.resmgr.getResourceString("msgEmergencyMode");else  errMsg=topWin.resmgr.getResourceString("msgNormalMode");var MsgObject={tit:topWin.resmgr.getResourceString("titInformation"),msg:errMsg,okCancel:false,display:false,blind:"Blind_alt",fn:this.CloseMsg_Remain(),btnOK:"OK"};this.oMsg=createMessage(MsgObject);};break;case"-30000":case"-30002":case"-30003":case"-30004":case"-30005":case"-30006":createMessage({tit:topWin.resmgr.getResourceString("titInformation"),msg:account_info.ResultMsg+" ("+ResultCode+")",okCancel:false,display:false,btnOK:"OK"});break;case"-30001":createMessage({tit:topWin.resmgr.getResourceString("titInformation"),msg:"There is not e-mail in the account."+" ("+ResultCode+")",okCancel:false,display:false,btnOK:"OK"});break;case"-30008":Open_Enroll_OKTAPopup(account_info.MFAInfo.factorType);break;case"-30009":Request_Enroll(data[0].Parameters.Account.MFAInfo.stateToken);break;default:document.getElementById("login-pwd").value="";this.Show_ErrorBox(ResultCode,errorMsg);document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';break;}}}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbGetPasswordComplexity=function(data){try{var pwdProfile=data[0].Parameters.PasswordProfile;var nText="";if(pwdProfile.Length_Check=="T"){loginCtrl.pwdMinLength=pwdProfile.Min_Length;loginCtrl.pwdMaxLength=pwdProfile.Max_Length;var args=[pwdProfile.Min_Length,pwdProfile.Max_Length];nText=topWin.resmgr.getResourceString("msgRequiredPwdLength").format(args);};var cTemp="";switch(pwdProfile.Complexity){case 1:cTemp=topWin.resmgr.getResourceString("msgNumeric");break;case 2:cTemp=topWin.resmgr.getResourceString("msgSpecialCharacters");break;case 3:cTemp=topWin.resmgr.getResourceString("msgCapitalCharacters");break;case 4:cTemp=topWin.resmgr.getResourceString("msgNumeric")+" & "+topWin.resmgr.getResourceString("msgSpecialCharacters");break;case 5:cTemp=topWin.resmgr.getResourceString("msgNumeric")+" & "+topWin.resmgr.getResourceString("msgCapitalCharacters");break;case 6:cTemp=topWin.resmgr.getResourceString("msgSpecialCharacters")+" & "+topWin.resmgr.getResourceString("msgCapitalCharacters");break;case 7:cTemp=topWin.resmgr.getResourceString("msgNumeric")+" & "+topWin.resmgr.getResourceString("msgSpecialCharacters")+" & "+topWin.resmgr.getResourceString("msgCapitalCharacters");break;};var cText="";if(cTemp!=""){cText=topWin.resmgr.getResourceString("msgRequiredPwdCharacters").format([cTemp]);};var pc;if(document.getElementById("ChangeUserPassword").style.display!="none"){pc=document.getElementById("PasswordComplexity");}else {pc=document.getElementById("PwComplexity");};pc.value=nText+" "+cText;this.ChangeTextAreaHeight(pc);}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbGetCurPassword=function(data){try{var ResultCode=data[0].Parameters.Account.ResultCode;switch(ResultCode){case"0":var UserPW=data[0].Parameters.Account.UserPassword;if(BrowserDetect.Device==="PC")weblink.callbackWebLinkPopup(UserPW);else  document.getElementById("mainviewer").contentWindow.OpenWebLink(UserPW);break;case"-20001":break;case"10000":default:break;}}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.Show_ChangeUserPassword=function(msg){var popup=document.getElementById("ChangeUserPassword");popup.style.display="inline";document.getElementById('changeUserPwd02').focus();var obj=document.getElementById("ChangeUserPwdMessage");if(msg!=null){obj.value=msg;};this.ChangeTextAreaHeight(obj);};this.ChangeTextAreaHeight=function(obj,wrapper,popup){obj.style.height="1px";var textareaHeight=5+obj.scrollHeight;if(textareaHeight<7||obj.value==""){obj.style.display="none";}else {obj.style.height=textareaHeight+"px";};if(wrapper!=null){wrapper.style.height=(30+textareaHeight)+"px";};if(popup!=null){popup.style.height=(30+wrapper.style.height)+"px";}};this.OnError20001=function(){this.Show_AlertBlind();if(strInterfaceType=="Gx_DB"){this.Show_LoginAlertBox(LoginObj.ResultMsg["20001"]+" "+topWin.resmgr.getResourceString("msgLogOffPreviousUser"));}else {this.Show_AlertBox(LoginObj.ResultMsg["20001"]);}};this.CloseMsg_Login=function(){var that=this;var tempFn2=function(){that.oMsg.showHide("hide");if(that.ResultCodeExtend="50000"){document.getElementById('AlertBox').style.display='none';document.getElementById("change-pw00").value=document.getElementById("login-id").value;document.getElementById("ChangePw").style.display="inline";document.getElementById("hid_resultCode").value=that.ResultCode;document.getElementById("login-pwd").value="";}else  if(that.ResultCode=="20001"){that.OnError20001();}else {topWin.location.replace("/worklist/SimpleViewerMain?wMode="+sessionStorage.getItem("WorklistMode"));}};return tempFn2;};this.CloseMsg_Remain=function(){var that=this;var tempFn=function(){that.oMsg.showHide();if(that.ResultCode=="20001"){that.OnError20001();}else {topWin.location.replace("/worklist/SimpleViewerMain?wMode="+sessionStorage.getItem("WorklistMode"));}};return tempFn;};this.CloseMsg_ChPW=function(){var that=this;var tempFn=function(){if(loginCtrl){if(loginCtrl.OnChangePW){that.oMsg.showHide();loginCtrl.OnChangePW();}}};return tempFn;};this.CloseMsg_ChPWad=function(){var that=this;var tempFn=function(){that.oMsg.showHide();loginCtrl.onChkPW(false);};return tempFn;};this.cbResultAuth_EXI=function(data){try{var accountInfo=data[0].Parameters.Account;var ResultCode=accountInfo.ResultCode;var ResultCodeExtend=accountInfo.ResultCode_Extend;var errorMsg=LoginObj.ResultMsg[ResultCode];sessionStorage.setItem('LevelAction',accountInfo.LevelAction);sessionStorage.setItem('LevelCode',accountInfo.LevelCode);sessionStorage.setItem('LevelCode_Maro',accountInfo.LevelCode_Maro);sessionStorage.setItem('SessionKey',accountInfo.SessionKey);sessionStorage.setItem('UserID',accountInfo.UserID);sessionStorage.setItem('UserIDForDisplay',account_info.UserIDForDisplay);sessionStorage.setItem('UserKey',accountInfo.UserKey);sessionStorage.setItem('UserName',accountInfo.UserName);if(ResultCode==""||typeof(errorMsg)=="undefined"){errorMsg=topWin.resmgr.getResourceString("msgFailedConnection");};var strType=topWin.document.EXIInfo.TYPE.value;switch(ResultCode){case"0":if(strType=="CTR"){document.EXIInfo.action="../externalinterface/viewexi";document.EXIInfo.method="post";document.EXIInfo.SESSIONKEY.value=accountInfo.SessionKey;document.EXIInfo.submit();}else  topWin.document.ViewEXI.submit();break;case"20001":document.getElementById('errorMsg').innerHTML="["+ResultCode+"] "+errorMsg;document.getElementById('errorMsgBox').style.display='block';break;default:document.getElementById('errorMsg').innerHTML="["+ResultCode+"] "+errorMsg;document.getElementById('errorMsgBox').style.display='block';break;}}catch(Error){console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.Show_LoginErrorMsgBox=function(msg){document.getElementById("LoginErrorMsgBox").style.display="block";document.getElementById("loginErrorMsg").value=msg;this.ChangeTextAreaHeight(document.getElementById("loginErrorMsg"));};this.MessageBox_result=function(val){var that=this;setTimeout(function(){if(val=="ok"){var popup=document.getElementById('ChangePw').style.display;if(document.getElementById("alertMsg").value.indexOf(topWin.resmgr.getResourceString("msgChangePasswordFirstTime")+" ("+topWin.resmgr.getResourceString("msgCanOnlyTabletOrDesktop")+")")>-1){document.getElementById('AlertBox').style.display='none';return;};if(document.getElementById("alertMsg").value.indexOf("-50042")>-1){document.getElementById('AlertBox').style.display='none';document.getElementById("change-pw00").value=document.getElementById("login-id").value;document.getElementById("ChangePw").style.display="inline";document.getElementById("hid_resultCode").value=that.ResultCode;document.getElementById("login-pwd").value="";return;}else  if(document.getElementById("alertMsg").value.indexOf("-50041")>-1){document.getElementById('AlertBox').style.display='none';return;};if(popup=="inline"){document.getElementById('AlertBox').style.display='none';}else {var user={id:document.getElementById("login-id").value,pwd:document.getElementById('login-pwd').value,force:"Y"};if(UseTimezones==="T"){user.tzKey=document.getElementById("tzKey").value;user.DSTYN=(document.getElementById("useDST").checked)?"Y":"N";};that.TryToAuth(user);document.getElementById('AlertBox').style.display='none';document.getElementById('LoadingBox').style.display='block';}}else  if(val=="cancel"){document.getElementById('AlertBox').style.display='none';document.getElementById('Blind_alt').style.display='none';document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';document.getElementById('ErrorMsg').value='';};loginCtrl.onChkPW(false);},500);};this.MessageBox_result_IHP=function(val){var that=this;setTimeout(function(){if(val=="ok"){var popup=document.getElementById('ChangePw').style.display;if(popup=="inline"){document.getElementById('LoginAlertBox').style.display='none';}else {var user=that.SetLoginUser("T");that.TryToAuth(user);document.getElementById('LoginAlertBox').style.display='none';document.getElementById('LoadingBox').style.display='block';}}else  if(val=="cancel"){document.getElementById('LoginAlertBox').style.display='none';document.getElementById('Blind_alt').style.display='none';document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';document.getElementById('LoginAlertMsg').value='';};loginCtrl.onChkPW_IHP(false);},500);};this.PwdExpireNoticeBox_result=function(val){var that=this;setTimeout(function(){if(val=="cancel"){var user=that.SetLoginUser("F");that.TryToAuth(user);document.getElementById('PwdExpireNoticeBox').style.display='none';document.getElementById('LoadingBox').style.display='block';}else {that.Show_ChangeUserPassword();that.GetPasswordComplexity(sessionStorage.getItem("InstitutionCode_IHP"),sessionStorage.getItem('FacilityCode_IHP'));}},500);};this.SetLoginUser=function(expiredDaysFlag){var sensitiveLoginID=JSON.parse(document.getElementById("selFacility").value).sensitiveLoginID;var user={ins:JSON.parse(document.getElementById("selInstitution").value),fac:JSON.parse(document.getElementById("selFacility").value).code,id:(sensitiveLoginID==="T")?document.getElementById("login-id").value:document.getElementById("login-id").value.toUpperCase(),pwd:document.getElementById('login-pwd').value,force:"Y",check:expiredDaysFlag,sensitiveLoginID:sensitiveLoginID};if(UseTimezones==="T"){user.tzKey=document.getElementById("tzKey").value;user.DSTYN=(document.getElementById("useDST").checked)?"Y":"N";};return user;};this.Show_ErrorBox=function(strCode,strErrorText){try{if(document.getElementById('ErrorBox'))document.getElementById('ErrorBox').style.display='block';document.getElementById('ErrorMsg').innerHTML=strErrorText;}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.Show_AlertBox=function(strErrorText){try{document.getElementById('btn_cancel').style.display='inline';document.getElementById('AlertBox').style.display='block';document.getElementById('alertMsg').value=strErrorText+" "+topWin.resmgr.getResourceString("msgLogOffPreviousUser");var disable1=document.getElementById('btn_cancel').disabled;var disable2=document.getElementById('cookie_ok').disabled;if(disable1==true||disable2==true){document.getElementById('btn_cancel').disabled='';document.getElementById('cookie_ok').disabled='';};document.getElementById('cookie_ok').focus();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.Show_LoginAlertBox=function(strErrorText){try{var popup=document.getElementById('LoginAlertBox');popup.style.display='block';var obj=document.getElementById('LoginAlertMsg');obj.value=strErrorText;this.ChangeTextAreaHeight(obj,document.getElementById('LoginAlertMsgWrapper'),popup);var disable1=document.getElementById('btn_loginAlertBoxCancel').disabled;var disable2=document.getElementById('btn_loginAlertBoxOk').disabled;if(disable1==true||disable2==true){document.getElementById('btn_loginAlertBoxCancel').disabled='';document.getElementById('btn_loginAlertBoxOk').disabled='';};document.getElementById('btn_loginAlertBoxOk').focus();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.Show_Alert=function(strErrorText){try{var AlertBoxObj=document.getElementById('AlertBox');if(AlertBoxObj==null||typeof(AlertBoxObj)=='undefined'){Show_informationMsg(strErrorText);};document.getElementById('btn_cancel').style.display='none';document.getElementById('AlertBox').style.display='block';document.getElementById('alertMsg').value=strErrorText;document.getElementById('cookie_ok').focus();Login_MsgBox(resmgr.getResourceString("titInformation"),resmgr.getResourceString("msgPleaseWaitMFAAuthentication"),false);}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.Show_Message=function(strErrorMessage){var obj;if(document.getElementById("ChangeUserPassword").style.display!="none"){obj=document.getElementById("PasswordErrorMessage");}else {obj=document.getElementById("PwErrorMessage");};obj.value=strErrorMessage;this.ChangeTextAreaHeight(obj);loginCtrl.onChkPW_IHP(false);};this.Show_AlertBlind=function(){try{document.getElementById('Blind_alt').style.display='block';}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbResultLogout=function(data){try{outMsgFlag=false;sessionStorage.clear();if(strType=="V"||strType=="VE"||strType=="CTR"||topWin.contrlServerStoredInfo.ActionInfo.useActionValue('DISABLE_LOGINPAGE')=="T"){topWin.CloseSimpleVeiwer();}else {var LogoutURL=contrlServerStoredInfo.getLogoutURL();if(LogoutURL!="")location.replace(LogoutURL);else  if("T"==strEnableLogout)location.replace("/Login/Logout");else  location.replace("/");}}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbResultCheckedSession=function(data){try{var ResultCode=data[0].Parameters.Account.ResultCode;var errorMsg=LoginObj.ResultMsg[ResultCode];if(topWin.android){topWin.android.refreshResponse((ResultCode=="0")?true:false,ResultCode,errorMsg);};if(ResultCode!="0"){if(ResultCode=="-20004"){errorMsg=topWin.resmgr.getResourceString("msgBecomesLogoutSameUserLogin")+" (Code "+ResultCode+")";}else {errorMsg="Code "+ResultCode+" : "+errorMsg;};topWin.Show_sessionoutMsg(errorMsg);this.CheckSessionTimer&&clearInterval(this.CheckSessionTimer);if(topWin.strIsEXI=="Y"){topWin.strSessionKey="";}else {sessionStorage.setItem('SessionKey',"");}}else {if(typeof(this.CheckSessionTimer)==undefined||this.CheckSessionTimer==null){this.CheckSessionTimer=setInterval(function(){var SessionKey="";if(topWin.strIsEXI=="Y"){SessionKey=topWin.strSessionKey;}else {SessionKey=sessionStorage.getItem('SessionKey');};var ID=sessionStorage.getItem("UserID");topWin.PeriodicCheckedSession(ID,SessionKey);},120000);}}}catch(Error){console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);this.AlertMessage(this.declaredClass,this.SendData.Command,Error);}};this.cbResultChangePassword=function(data){try{var ResultCode=data[0].Parameters.Account.ResultCode;var ResultMsg=data[0].Parameters.Account.ResultMsg;var errorMsg=LoginObj.ResultMsg[ResultCode];if(ResultCode==""||typeof(errorMsg)=="undefined"){errorMsg=topWin.resmgr.getResourceString("msgFailedConnection");};switch(ResultCode){case"0":document.getElementById("MsgSpan").innerHTML=topWin.resmgr.getResourceString("msgPasswordChanged");document.getElementById("PwdMsgBox").style.display="inline";document.getElementById("btnSuccess").focus();break;case"20001":this.Show_AlertBlind();this.Show_Alert(ResultCode+" : "+errorMsg);document.getElementById('cookie_ok').focus();break;case"-20002":this.Show_Alert(errorMsg);document.getElementById('cookie_ok').focus();break;case"-20013":this.Show_Alert("Incorrect current password");document.getElementById('cookie_ok').focus();break;case"-20014":this.Show_Alert(ResultMsg);document.getElementById('cookie_ok').focus();break;case"-20015":this.Show_Alert(topWin.resmgr.getResourceString("msgRequireNumeric"));document.getElementById('cookie_ok').focus();break;case"-20016":this.Show_Alert(ResultMsg);document.getElementById('cookie_ok').focus();break;case"-20022":this.Show_Alert(topWin.resmgr.getResourceString("msgRequireCapital"));document.getElementById('cookie_ok').focus();break;case"-20023":this.Show_Alert(topWin.resmgr.getResourceString("msgRequireComplexity"));document.getElementById('cookie_ok').focus();break;case"-20024":this.Show_Alert(topWin.resmgr.getResourceString("msgRequireSpecialChar"));document.getElementById('cookie_ok').focus();break;case"-20025":this.Show_Alert(topWin.resmgr.getResourceString("msgRequireHistory"));document.getElementById('cookie_ok').focus();break;case"-50044":var ErTxt="Error Code["+ResultCode+"] : "+errorMsg+" "+ResultMsg;var MsgObject={tit:"Error",msg:ErTxt,okCancel:false,display:false,blind:"Blind_alt",fn:this.CloseMsg_ChPWad()};this.oMsg=createMessage(MsgObject);break;default:this.Show_Alert(ResultCode+" : "+errorMsg);document.getElementById('cookie_ok').focus();break;}}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbResultChangePassword_IHP=function(data){try{var ResultCode=data[0].Parameters.Account.ResultCode;var ResultMsg=data[0].Parameters.Account.ResultMsg;var errorMsg=LoginObj.ResultMsg[ResultCode];if(ResultCode==""||typeof(errorMsg)=="undefined"){errorMsg=topWin.resmgr.getResourceString("msgFailedConnection");};switch(ResultCode){case"0":document.getElementById("MsgSpan").innerHTML=topWin.resmgr.getResourceString("msgPasswordChanged");document.getElementById("PwdMsgBox").style.display="inline";document.getElementById("btnSuccess").focus();break;case"-20002":case"-20048":case"-20049":case"-20050":this.Show_Message(errorMsg);break;case"-20013":this.Show_Message("Incorrect current password");break;case"-20046":this.Show_Message(errorMsg.format([loginCtrl.pwdMinLength]));break;case"-20047":this.Show_Message(errorMsg.format([loginCtrl.pwdMaxLength]));break;case"-50044":var ErTxt="Error Code["+ResultCode+"] : "+errorMsg+" "+ResultMsg;var MsgObject={tit:"Error",msg:ErTxt,okCancel:false,display:false,blind:"Blind_alt",fn:this.CloseMsg_ChPWad()};this.oMsg=createMessage(MsgObject);break;default:this.Show_Message(errorMsg);break;}}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbResultChangePassword_EXI=function(data){try{var ResultCode=data[0].Parameters.Account.ResultCode;var ResultMsg=data[0].Parameters.Account.ResultMsg;var errorMsg=LoginObj.ResultMsg[ResultCode];if(ResultCode==""||typeof(errorMsg)=="undefined"){errorMsg=topWin.resmgr.getResourceString("msgFailedConnection");};switch(ResultCode){case"0":Show_informationMsg(topWin.resmgr.getResourceString("msgPasswordChanged")+"</br>"+topWin.resmgr.getResourceString("msgCloseWindowTryAgain"));document.getElementById('ChangePw').style.display='none';break;case"20001":Show_errorMsg(ResultCode+" : "+errorMsg);break;case"-20002":Show_errorMsg(errorMsg);break;case"-20013":Show_errorMsg("Incorrect current password");break;case"-20014":Show_errorMsg(ResultMsg);break;case"-20015":Show_errorMsg(topWin.resmgr.getResourceString("msgRequireNumeric"));break;case"-20016":Show_errorMsg(ResultMsg);break;case"-20022":Show_errorMsg(topWin.resmgr.getResourceString("msgRequireCapital"));break;case"-20023":Show_errorMsg(topWin.resmgr.getResourceString("msgRequireComplexity"));break;case"-20024":Show_errorMsg(topWin.resmgr.getResourceString("msgRequireSpecialChar"));break;case"-20025":Show_errorMsg(topWin.resmgr.getResourceString("msgRequireHistory"));break;case"-50044":var ErTxt="Error Code["+ResultCode+"] : "+errorMsg+" "+ResultMsg;var MsgObject={tit:"Error",msg:ErTxt,okCancel:false,display:false,blind:"Blind_alt",fn:this.CloseMsg_ChPWad()};this.oMsg=createMessage(MsgObject);break;default:Show_errorMsg(ResultCode+" : "+errorMsg);break;}}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbOkta_PushVerify=function(data){var ResultCode=data[0].Parameters.Account.ResultCode;var ResultMsg=data[0].Parameters.Account.ResultMsg;switch(ResultCode){case"-30005":var account_info=data[0].Parameters.Account.MFAInfo;setTimeout(function(){iAccount.VerifyFactor(account_info.factorID,account_info.stateToken);},3000);break;default:Login_MsgBox(null,null,false);createMessage({tit:topWin.resmgr.getResourceString("titInformation"),msg:ResultMsg+" ("+ResultCode+")",okCancel:false,display:false,btnOK:"OK"});break;}};this.cbRequest_QREnroll=function(data){var ResultCode=data[0].Parameters.Account.ResultCode;var ResultMsg=data[0].Parameters.Account.ResultMsg;switch(ResultCode){case"-30007":var account_info=data[0].Parameters.Account;Open_QR_OKTAPopup(account_info.MFAQRCode);break;default:Login_MsgBox(null,null,false);createMessage({tit:topWin.resmgr.getResourceString("titInformation"),msg:ResultMsg+" ("+ResultCode+")",okCancel:false,display:false,btnOK:"OK"});break;}};this.cbRequest_SecretCodeEnroll=function(data){var ResultCode=data[0].Parameters.Account.ResultCode;var ResultMsg=data[0].Parameters.Account.ResultMsg;switch(ResultCode){case"-30012":var account_info=data[0].Parameters.Account;View_SecretCode(account_info.MFASecretCode,account_info.MFAInfo.stateToken,account_info.MFAInfo.factorID);break;default:Login_MsgBox(null,null,false);createMessage({tit:topWin.resmgr.getResourceString("titInformation"),msg:ResultMsg+" ("+ResultCode+")",okCancel:false,display:false,btnOK:"OK"});break;}};this.cbOkta_ActivceCode=function(data){var ResultCode=data[0].Parameters.Account.ResultCode;var ResultMsg=data[0].Parameters.Account.ResultMsg;switch(ResultCode){case"0":ResultAction_VerifyFactor();break;default:document.getElementById("MFACodeInput").value="";var okta_enroll_popup=document.getElementById("okta_enroll_popup");var factorType=okta_enroll_popup.getAttribute("data-type");Login_MsgBox(null,null,false);createMessage({tit:topWin.resmgr.getResourceString("titInformation"),msg:ResultMsg+" ("+ResultCode+")",okCancel:false,display:false,fn:function(){Open_Enroll_OKTAPopup(factorType)},btnOK:"OK"});break;}};this.cbActiveSecretCode=function(data){var ResultCode=data[0].Parameters.Account.ResultCode;var ResultMsg=data[0].Parameters.Account.ResultMsg;switch(ResultCode){case"0":Close_SecretPopup();Open_Enroll_OKTAPopup("OKTA_OTP");break;default:document.getElementById("SecretCodeInput").value="";Login_MsgBox(null,null,false);createMessage({tit:topWin.resmgr.getResourceString("titInformation"),msg:ResultMsg+" ("+ResultCode+")",okCancel:false,display:false,btnOK:"OK"});break;}};this.cbVerifyFactor=function(data){try{var account_info=data[0].Parameters.Account;var ResultCode=data[0].Parameters.Account.ResultCode;var ResultMsg=data[0].Parameters.Account.ResultMsg;var errorMsg=LoginObj.ResultMsg[ResultCode];if(ResultCode==""||typeof(errorMsg)=="undefined"){errorMsg=topWin.resmgr.getResourceString("msgFailedConnection");};switch(ResultCode){case"0":ResultAction_VerifyFactor();break;case"-30005":setTimeout(function(){iAccount.VerifyFactor(account_info.MFAInfo.factorID,account_info.MFAInfo.stateToken);},3000);break;case"-30010":Login_MsgBox(null,null,false);createMessage({tit:topWin.resmgr.getResourceString("titInformation"),msg:ResultMsg+" ("+ResultCode+")",okCancel:false,display:false,fn:function(){Open_Enroll_OKTAPopup("OKTA_PUSH")},btnOK:"OK"});break;default:Login_MsgBox(null,null,false);createMessage({tit:topWin.resmgr.getResourceString("titInformation"),msg:ResultMsg+" ("+ResultCode+")",okCancel:false,display:false,btnOK:"OK"});break;}}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}}};</script>
<script>Array.prototype.clear=function(){var i=this.length;while(i>0){var data=this.pop();i--;}};var TimeCompare={strPreTime:null,strDicomPreTime:null,strNonDicomPreTime:null,CompareRequestTime:function(strNewTime){if(!this.strPreTime){this.strPreTime=strNewTime;return true;};if(strNewTime<this.strPreTime)return false;this.strPreTime=strNewTime;return true;},CompareDicomRequestTime:function(strNewTime){if(!this.strDicomPreTime){this.strDicomPreTime=strNewTime;return true;};if(strNewTime<this.strDicomPreTime)return false;this.strDicomPreTime=strNewTime;return true;},CompareNonDicomRequestTime:function(strNewTime){if(!this.strNonDicomPreTime){this.strNonDicomPreTime=strNewTime;return true;};if(strNewTime<this.strNonDicomPreTime)return false;this.strNonDicomPreTime=strNewTime;return true;}};var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;input=Base64._utf8_encode(input);while(i<input.length){chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else  if(isNaN(chr3)){enc4=64;};output=output+this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4);};return output;},decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i<input.length){enc1=this._keyStr.indexOf(input.charAt(i++));enc2=this._keyStr.indexOf(input.charAt(i++));enc3=this._keyStr.indexOf(input.charAt(i++));enc4=this._keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2);};if(enc4!=64){output=output+String.fromCharCode(chr3);}};output=Base64._utf8_decode(output);return output;},_utf8_encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}else  if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}else {utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}};return utftext;},_utf8_decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}else  if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}else {c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}};return string;}};function SHA1(msg){function rotate_left(n,s){var t4=(n<<s)|(n>>>(32-s));return t4;};function lsb_hex(val){var str="";var i;var vh;var vl;for(i=0;i<=6;i+=2){vh=(val>>>(i*4+4))&0x0f;vl=(val>>>(i*4))&0x0f;str+=vh.toString(16)+vl.toString(16);};return str;};function cvt_hex(val){var str="";var i;var v;for(i=7;i>=0;i--){v=(val>>>(i*4))&0x0f;str+=v.toString(16);};return str;};function Utf8Encode(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}else  if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}else {utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}};return utftext;};var blockstart;var i,j;var W=new Array(80);var H0=0x67452301;var H1=0xEFCDAB89;var H2=0x98BADCFE;var H3=0x10325476;var H4=0xC3D2E1F0;var A,B,C,D,E;var temp;msg=Utf8Encode(msg);var msg_len=msg.length;var word_array=new Array();for(i=0;i<msg_len-3;i+=4){j=msg.charCodeAt(i)<<24|msg.charCodeAt(i+1)<<16|msg.charCodeAt(i+2)<<8|msg.charCodeAt(i+3);word_array.push(j);};switch(msg_len%4){case 0:i=0x080000000;break;case 1:i=msg.charCodeAt(msg_len-1)<<24|0x0800000;break;case 2:i=msg.charCodeAt(msg_len-2)<<24|msg.charCodeAt(msg_len-1)<<16|0x08000;break;case 3:i=msg.charCodeAt(msg_len-3)<<24|msg.charCodeAt(msg_len-2)<<16|msg.charCodeAt(msg_len-1)<<8|0x80;break;};word_array.push(i);while((word_array.length%16)!=14)word_array.push(0);word_array.push(msg_len>>>29);word_array.push((msg_len<<3)&0x0ffffffff);for(blockstart=0;blockstart<word_array.length;blockstart+=16){for(i=0;i<16;i++)W[i]=word_array[blockstart+i];for(i=16;i<=79;i++)W[i]=rotate_left(W[i-3]^W[i-8]^W[i-14]^W[i-16],1);A=H0;B=H1;C=H2;D=H3;E=H4;for(i=0;i<=19;i++){temp=(rotate_left(A,5)+((B&C)|(~B&D))+E+W[i]+0x5A827999)&0x0ffffffff;E=D;D=C;C=rotate_left(B,30);B=A;A=temp;};for(i=20;i<=39;i++){temp=(rotate_left(A,5)+(B^C^D)+E+W[i]+0x6ED9EBA1)&0x0ffffffff;E=D;D=C;C=rotate_left(B,30);B=A;A=temp;};for(i=40;i<=59;i++){temp=(rotate_left(A,5)+((B&C)|(B&D)|(C&D))+E+W[i]+0x8F1BBCDC)&0x0ffffffff;E=D;D=C;C=rotate_left(B,30);B=A;A=temp;};for(i=60;i<=79;i++){temp=(rotate_left(A,5)+(B^C^D)+E+W[i]+0xCA62C1D6)&0x0ffffffff;E=D;D=C;C=rotate_left(B,30);B=A;A=temp;};H0=(H0+A)&0x0ffffffff;H1=(H1+B)&0x0ffffffff;H2=(H2+C)&0x0ffffffff;H3=(H3+D)&0x0ffffffff;H4=(H4+E)&0x0ffffffff;};var temp=cvt_hex(H0)+cvt_hex(H1)+cvt_hex(H2)+cvt_hex(H3)+cvt_hex(H4);return temp.toLowerCase();};function endsWith(sourceText,pattern){var returnValue=false;if(sourceText.length>=pattern.length){if(sourceText.substr((sourceText.length-pattern.length),sourceText.length)==pattern){returnValue=true;}};return returnValue;};function startsWith(sourceText,pattern){var returnValue=false;if(sourceText.length>=pattern.length){if(sourceText.substr(0,pattern.length)==pattern){returnValue=true;}};return returnValue;};function contains(sourceText,pattern){var returnValue=false;if(new RegExp(pattern,"g").test(sourceText)){returnValue=true;};return returnValue;};function setCookie(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+((expiredays==null)?"":";expires="+exdate.toGMTString())+";path=/";};function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}};return'';};function roundTable(objID){var obj=document.getElementById(objID);var Parent,objTmp,Table,TBody,TR,TD;var bdcolor,bgcolor,Space;var trIDX,tdIDX,MAX;var styleWidth,styleHeight;Parent=obj.parentNode;objTmp=document.createElement('SPAN');Parent.insertBefore(objTmp,obj);Parent.removeChild(obj);bdcolor=obj.getAttribute('rborder');bgcolor=obj.getAttribute('rbgcolor');radius=parseInt(obj.getAttribute('radius'));if(radius==null||radius<1)radius=1;else  if(radius>6)radius=6;MAX=radius*2+1;Table=document.createElement('TABLE');TBody=document.createElement('TBODY');Table.cellSpacing=0;Table.cellPadding=0;for(trIDX=0;trIDX<MAX;trIDX++){TR=document.createElement('TR');Space=Math.abs(trIDX-parseInt(radius));for(tdIDX=0;tdIDX<MAX;tdIDX++){TD=document.createElement('TD');styleWidth='1px';styleHeight='1px';if(tdIDX==0||tdIDX==MAX-1)styleHeight=null;else  if(trIDX==0||trIDX==MAX-1)styleWidth=null;else  if(radius>2){if(Math.abs(tdIDX-radius)==1)styleWidth='2px';if(Math.abs(trIDX-radius)==1)styleHeight='2px';};if(styleWidth!=null)TD.style.width=styleWidth;if(styleHeight!=null)TD.style.height=styleHeight;if(Space==tdIDX||Space==MAX-tdIDX-1)TD.style.backgroundColor=bdcolor;else  if(tdIDX>Space&&Space<MAX-tdIDX-1)TD.style.backgroundColor=bgcolor;if(Space==0&&tdIDX==radius)TD.appendChild(obj);TR.appendChild(TD);};TBody.appendChild(TR);};Table.appendChild(TBody);Parent.insertBefore(Table,objTmp);};function XYZ_info(){this.x;this.y;this.z;this.SetValue=function(pXYZ){this.x=pXYZ.x;this.y=pXYZ.y;this.z=pXYZ.z;};this.InnerProduct=function(pXYZ){var dReturnValue;dReturnValue=(this.x*pXYZ.x+this.y*pXYZ.y+this.z*pXYZ.z);return dReturnValue;};this.CrossProduct=function(pXYZ){var XYZ_val=new XYZ_info();XYZ_val.x=this.y*pXYZ.z-this.z*pXYZ.y;XYZ_val.y=this.z*pXYZ.x-this.x*pXYZ.z;XYZ_val.z=this.x*pXYZ.y-this.y*pXYZ.x;return XYZ_val;};this.Isparallel=function(pXYZ){var pParallelTolerance=0.001;var bReturnValue;var XYZ_Temp=new XYZ_info();XYZ_Temp=this.CrossProduct(pXYZ);var dMag=Math.sqrt(XYZ_Temp.x*XYZ_Temp.x+XYZ_Temp.y*XYZ_Temp.y+XYZ_Temp.z*XYZ_Temp.z);if(Math.abs(dMag)<pParallelTolerance)bReturnValue=true;else  bReturnValue=false;return bReturnValue;};this.Length=function(){return Math.sqrt(this.InnerProduct(this));};this.Unify=function(){var dLen=this.Length();this.x=this.x/dLen;this.y=this.y/dLen;this.z=this.z/dLen;};this.Minus=function(pObj1,pObj2){this.x=pObj1.x-pObj2.x;this.y=pObj1.y-pObj2.y;this.z=pObj1.z-pObj2.z;}};function Info_Slice(){this.xyzDirCosRow=new XYZ_info();this.xyzDirCosCol=new XYZ_info();this.xyzPos=new XYZ_info();this.dPixelSpacingCol=0;this.dPixelSpacingRow=0;this.nImageRows;this.nImageCols;this.xyzDirCosNormal=new XYZ_info();this.dRowLength;this.dColLength;this.CheckValid=function(){var dNormalTolerance=0.001;var CheckValue;var CheckValue_Temp;if(this.dPixelSpacingCol==0||this.dPixelSpacingRow==0)return false;CheckValue_Temp=this.xyzDirCosRow.x*this.xyzDirCosRow.x+this.xyzDirCosRow.y*this.xyzDirCosRow.y+this.xyzDirCosRow.z*this.xyzDirCosRow.z-1.0;CheckValue=Math.abs(CheckValue_Temp);if(CheckValue>=dNormalTolerance)return false;CheckValue_Temp=this.xyzDirCosCol.x*this.xyzDirCosCol.x+this.xyzDirCosCol.y*this.xyzDirCosCol.y+this.xyzDirCosCol.z*this.xyzDirCosCol.z-1.0;CheckValue=Math.abs(CheckValue_Temp);if(CheckValue>=dNormalTolerance)return false;CheckValue_Temp=this.xyzDirCosNormal.x*this.xyzDirCosNormal.x+this.xyzDirCosNormal.y*this.xyzDirCosNormal.y+this.xyzDirCosNormal.z*this.xyzDirCosNormal.z-1.0;CheckValue=Math.abs(CheckValue_Temp);if(CheckValue>=dNormalTolerance)return false;CheckValue_Temp=this.xyzDirCosRow.x*this.xyzDirCosCol.x+this.xyzDirCosRow.y*this.xyzDirCosCol.y+this.xyzDirCosRow.z*this.xyzDirCosCol.z;CheckValue=Math.abs(CheckValue_Temp);if(CheckValue>=dNormalTolerance)return false;CheckValue_Temp=this.xyzDirCosRow.x*this.xyzDirCosNormal.x+this.xyzDirCosRow.y*this.xyzDirCosNormal.y+this.xyzDirCosRow.z*this.xyzDirCosNormal.z;CheckValue=Math.abs(CheckValue_Temp);if(CheckValue>=dNormalTolerance)return false;CheckValue_Temp=this.xyzDirCosCol.x*this.xyzDirCosNormal.x+this.xyzDirCosCol.y*this.xyzDirCosNormal.y+this.xyzDirCosCol.z*this.xyzDirCosNormal.z;CheckValue=Math.abs(CheckValue_Temp);if(CheckValue>=dNormalTolerance)return false;return true;};this.getSliceScoutInfo=function(pImgObj){var dicom_header_data=pImgObj.pDicomHeaderData;if(!dicom_header_data)return;this.nImageCols=dicom_header_data.ImageWidth;this.nImageRows=dicom_header_data.ImageHeight;this.dPixelSpacingCol=dicom_header_data.pPixelSpacingCol;this.dPixelSpacingRow=dicom_header_data.pPixelSpacingRow;this.xyzPos.x=dicom_header_data.pxyzImagePosition_x;this.xyzPos.y=dicom_header_data.pxyzImagePosition_y;this.xyzPos.z=dicom_header_data.pxyzImagePosition_z;this.xyzDirCosRow.x=dicom_header_data.pinfoImageOrientation_xyzDirCosRow_x;this.xyzDirCosRow.y=dicom_header_data.pinfoImageOrientation_xyzDirCosRow_y;this.xyzDirCosRow.z=dicom_header_data.pinfoImageOrientation_xyzDirCosRow_z;this.xyzDirCosCol.x=dicom_header_data.pinfoImageOrientation_xyzDirCosCol_x;this.xyzDirCosCol.y=dicom_header_data.pinfoImageOrientation_xyzDirCosCol_y;this.xyzDirCosCol.z=dicom_header_data.pinfoImageOrientation_xyzDirCosCol_z;this.xyzDirCosNormal=this.xyzDirCosRow.CrossProduct(this.xyzDirCosCol);this.dRowLength=this.nImageRows*this.dPixelSpacingRow;this.dColLength=this.nImageCols*this.dPixelSpacingCol;return this.CheckValid();}};function Localizer(){this.GetCuttingLine=function(pScoutLine,pTargetSliceInfo,pDestSliceInfo){var bReturnValue=false;if(this.IsParallel(pTargetSliceInfo,pDestSliceInfo))return false;var fDot=this.InnerProduct(pTargetSliceInfo.xyzDirCosNormal,pDestSliceInfo.xyzDirCosNormal);var fangle=Math.acos(fDot)*180/Math.PI;if(fangle<=20)return false;var normProjRow=pTargetSliceInfo.xyzDirCosNormal.InnerProduct(pDestSliceInfo.xyzDirCosRow);var normProjCol=pTargetSliceInfo.xyzDirCosNormal.InnerProduct(pDestSliceInfo.xyzDirCosCol);if(Math.abs(normProjRow)>Math.abs(normProjCol)){bReturnValue=this.CalcCuttingRows(pScoutLine,pTargetSliceInfo,pDestSliceInfo,normProjRow,normProjCol);}else {bReturnValue=this.CalcCuttingCols(pScoutLine,pTargetSliceInfo,pDestSliceInfo,normProjRow,normProjCol);};return bReturnValue;};this.InnerProduct=function(pTargetNormal,pDestNormal){var dReturnValue;dReturnValue=(pTargetNormal.x*pDestNormal.x+pTargetNormal.y*pDestNormal.y+pTargetNormal.z*pDestNormal.z);return dReturnValue;};this.IsParallel=function(pTargetSliceInfo,pDestSliceInfo){if(pTargetSliceInfo.xyzDirCosRow.Isparallel(pDestSliceInfo.xyzDirCosRow)&&pTargetSliceInfo.xyzDirCosCol.Isparallel(pDestSliceInfo.xyzDirCosCol))return true;return false;};this.CalcCuttingRows=function(pScoutLine,pTargetSliceInfo,pDestSliceInfo,normProjRow,normProjCol){var TargetRow=new XYZ_info();TargetRow.SetValue(pTargetSliceInfo.xyzDirCosRow);var TargetCol=new XYZ_info();TargetCol.SetValue(pTargetSliceInfo.xyzDirCosCol);var TargetNormal=new XYZ_info();TargetNormal.SetValue(pTargetSliceInfo.xyzDirCosNormal);var DestRow=new XYZ_info();DestRow.SetValue(pDestSliceInfo.xyzDirCosRow);var DestCol=new XYZ_info();DestCol.SetValue(pDestSliceInfo.xyzDirCosCol);var DestNormal=new XYZ_info();DestNormal.SetValue(pDestSliceInfo.xyzDirCosNormal);var Offset=new XYZ_info();Offset.Minus(pDestSliceInfo.xyzPos,pTargetSliceInfo.xyzPos);TargetRow.Unify();TargetCol.Unify();TargetNormal.Unify();DestRow.Unify();DestCol.Unify();DestNormal.Unify();var k1=TargetNormal.InnerProduct(Offset)/normProjRow;var k2=normProjCol/normProjRow;var rr=TargetRow.InnerProduct(DestRow);var cr=TargetCol.InnerProduct(DestRow);var ax=TargetRow.InnerProduct(Offset)-k1*rr;var ay=TargetCol.InnerProduct(Offset)-k1*cr;var bx=ax+pDestSliceInfo.dRowLength*(TargetRow.InnerProduct(DestCol)-k2*rr);var by=ay+pDestSliceInfo.dRowLength*(TargetCol.InnerProduct(DestCol)-k2*cr);pScoutLine[0]=Math.round(ax/pTargetSliceInfo.dPixelSpacingCol);pScoutLine[1]=Math.round(ay/pTargetSliceInfo.dPixelSpacingRow);pScoutLine[2]=Math.round(bx/pTargetSliceInfo.dPixelSpacingCol);pScoutLine[3]=Math.round(by/pTargetSliceInfo.dPixelSpacingRow);return true;};this.CalcCuttingCols=function(pScoutLine,pTargetSliceInfo,pDestSliceInfo,normProjRow,normProjCol){var TargetRow=new XYZ_info();TargetRow.SetValue(pTargetSliceInfo.xyzDirCosRow);var TargetCol=new XYZ_info();TargetCol.SetValue(pTargetSliceInfo.xyzDirCosCol);var TargetNormal=new XYZ_info();TargetNormal.SetValue(pTargetSliceInfo.xyzDirCosNormal);var DestRow=new XYZ_info();DestRow.SetValue(pDestSliceInfo.xyzDirCosRow);var DestCol=new XYZ_info();DestCol.SetValue(pDestSliceInfo.xyzDirCosCol);var DestNormal=new XYZ_info();DestNormal.SetValue(pDestSliceInfo.xyzDirCosNormal);var Offset=new XYZ_info();Offset.Minus(pDestSliceInfo.xyzPos,pTargetSliceInfo.xyzPos);TargetRow.Unify();TargetCol.Unify();TargetNormal.Unify();DestRow.Unify();DestCol.Unify();DestNormal.Unify();var k1=TargetNormal.InnerProduct(Offset)/normProjCol;var k2=normProjRow/normProjCol;var rc=TargetRow.InnerProduct(DestCol);var cc=TargetCol.InnerProduct(DestCol);var ax=TargetRow.InnerProduct(Offset)-k1*rc;var ay=TargetCol.InnerProduct(Offset)-k1*cc;var bx=ax+pDestSliceInfo.dColLength*(TargetRow.InnerProduct(DestRow)-k2*rc);var by=ay+pDestSliceInfo.dColLength*(TargetCol.InnerProduct(DestRow)-k2*cc);pScoutLine[0]=Math.round(ax/pTargetSliceInfo.dPixelSpacingCol);pScoutLine[1]=Math.round(ay/pTargetSliceInfo.dPixelSpacingRow);pScoutLine[2]=Math.round(bx/pTargetSliceInfo.dPixelSpacingCol);pScoutLine[3]=Math.round(by/pTargetSliceInfo.dPixelSpacingRow);return true;}};</script>
<script>function detectChromeExtension(extensionId,accesibleResource,callback){if(typeof(chrome)!=='undefined'){var xmlHttp=new XMLHttpRequest(),testUrl='chrome-extension://'+extensionId+'/'+accesibleResource;xmlHttp.open('HEAD',testUrl,true);xmlHttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');xmlHttp.timeout=1000;xmlHttp.onload=function(){if(xmlHttp.readyState==4&&typeof(callback)=='function'){if(xmlHttp.status==200){callback.call(this,true);}else {callback.call(this,false);};xmlHttp.onload=xmlHttp.onreadystatechange=null;}};xmlHttp.ontimeout=function(){if(typeof(callback)=='function')callback.call(this,false);};xmlHttp.send();}else {if(typeof(callback)=='function')callback.call(this,false);}};function retry(isDone,next){var current_trial=0,max_retry=50,interval=10,is_timeout=false;var id=window.setInterval(function(){if(isDone()){window.clearInterval(id);next(is_timeout);};if(current_trial++>max_retry){window.clearInterval(id);is_timeout=true;next(is_timeout);}},10);};function isIE10OrLater(user_agent){var ua=user_agent.toLowerCase();if(ua.indexOf('msie')===0&&ua.indexOf('trident')===0){return false;};var match=/(?:msie|rv:)\s?([\d\.]+)/.exec(ua);if(match&&parseInt(match[1],10)>=10){return true;};return false;};function detectPrivateMode(){var is_private;if(window.webkitRequestFileSystem){window.webkitRequestFileSystem(window.TEMPORARY,1,function(){is_private=false;},function(e){console.log(e);is_private=true;});}else  if(window.indexedDB&&/Firefox/.test(window.navigator.userAgent)){var db;try{db=window.indexedDB.open('test');}catch(e){is_private=true;};if(typeof is_private==='undefined'){retry(function isDone(){return db.readyState==='done'?true:false;},function next(is_timeout){if(!is_timeout){is_private=db.result?false:true;}});}}else  if(isIE10OrLater(window.navigator.userAgent)){is_private=false;try{if(!window.indexedDB){is_private=true;}}catch(e){is_private=true;}}else  if(window.localStorage&&/Safari/.test(window.navigator.userAgent)){try{window.localStorage.setItem('test',1);}catch(e){is_private=true;};if(typeof is_private==='undefined'){is_private=false;window.localStorage.removeItem('test');}};if(is_private==true){BrowserDetect.privateMode=true;}};var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.privateMode=false;detectPrivateMode();this.OS=this.searchString(this.dataOS)||"an unknown OS";this.OSversion=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.Model=this.seacrhModel(this.dataModel)||"an unknown Model";this.Device=this.searchDevice();this.Event=this.setEvent();},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch;if(dataString){if(dataString.indexOf(data[i].subString)!=-1)return data[i].identity;}else  if(dataProp)return data[i].identity;}},searchVersion:function(dataString){var index=dataString.indexOf(this.versionSearchString);if(index==-1)return;return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},checkBrowser:function(){var index=dataString.indexOf(this.versionSearchString);if(index==-1)return;return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},seacrhModel:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;if(dataString){if(dataString.indexOf(data[i].subString)!=-1)return data[i].identity;}}},searchDevice:function(){if(this.OS=="iPad"||localStorage.getItem('PC_TOUCHMODE')=="TABLET"){return"Tablet";}else  if(this.OS=="iPhone/iPod"){return"Phone";}else  if(this.OS=="Android"){if(this.Model=="Tablet"||this.Model=="SHW-M480W"||this.Model=="rk30"||this.Model=="SM-P600"||this.Model=="SM-T713"||this.Model=="SM-T813"||this.Model=="SM-T715"||this.Model=="SM-T815"||this.Model=="Samsung Tablet")return"Tablet";else  return"Phone";}else {return"PC";}},setEvent:function(){if(this.OS=="iPad"){return"ontouchend";}else  if(this.OS=="iPhone/iPod"){return"ontouchend";}else  if(this.OS=="Android"){return"ontouchend";}else {return"onclick";}},dataBrowser:[{string:navigator.userAgent,subString:"Edge",identity:"Edge",versionSearch:"Edge"},{string:navigator.userAgent,subString:"Chrome",identity:"Chrome",versionSearch:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox",versionSearch:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Trident",identity:"Explorer",versionSearch:"rv"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.userAgent,subString:"Windows",versionSearch:"NT",identity:"Windows"},{string:navigator.userAgent,subString:"iPhone",versionSearch:"Version",identity:"iPhone/iPod"},{string:navigator.userAgent,subString:"iPad",versionSearch:"Version",identity:"iPad"},{string:navigator.userAgent,subString:"Android",versionSearch:"Version",identity:"Android"},{string:navigator.userAgent,subString:"OS X",versionSearch:"OS X",identity:"Mac OS"}],dataModel:[{string:navigator.userAgent,subString:"SHW-M480W",versionSearch:"Version",identity:"SHW-M480W"},{string:navigator.userAgent,subString:"rk30",versionSearch:"Version",identity:"rk30"},{string:navigator.userAgent,subString:"SM-P600",versionSearch:"Version",identity:"SM-P600"},{string:navigator.userAgent,subString:"SM-T713",versionSearch:"Version",identity:"SM-T713"},{string:navigator.userAgent,subString:"SM-T813",versionSearch:"Version",identity:"SM-T813"},{string:navigator.userAgent,subString:"SM-T715",versionSearch:"Version",identity:"SM-T715"},{string:navigator.userAgent,subString:"SM-T815",versionSearch:"Version",identity:"SM-T815"},{string:navigator.userAgent,subString:"Tablet",versionSearch:"Version",identity:"Tablet"},{string:navigator.userAgent,subString:"SM-T",versionSearch:"Version",identity:"Samsung Tablet"},{string:navigator.userAgent,subString:"SM-P",versionSearch:"Version",identity:"Samsung Tablet"}]};BrowserDetect.init();</script>
<script>var loginCtrl;function show_position(position){var lat=position.coords.latitude;var lon=position.coords.longitude;alert(resmgr.getResourceString("msgPosition")+" : "+lat+","+lon);};function show_error(e){alert(resmgr.getResourceString("msgWatchPositionError"));};window.onorientationchange=function(e){};window.onresize=function(e){var strOS=BrowserDetect.OS;if(strOS=="iPad"){if(LoginObj.prevOrientation!=window.orientation){window.scrollTo(0,0);}};if(LoginObj.prevOrientation!=window.orientation){LoginObj.prevOrientation=window.orientation;}};window.onload=function(){if(!Check_spec())return;Check_WebStorage();if(SiteName!="SMC"){if(BrowserDetect.Device!="Phone")var pw=document.getElementById("imgChangePW");if(pw){document.getElementById("imgChangePW").style.display="block";};if(BrowserDetect.Device=="PC"&&(DisPlayNoticeBoard=="display"&&NoticeBoardURL!=null&&NoticeBoardKey>0)){if(window.showModalDialog){var retVal=window.showModalDialog(NoticeBoardURL,'welcome_notice','center:yes; dialogWidth:540px; dialogHeight:390px; help:no; status:no; resizable:no; scroll:no;');}else {var retVal=window.open(NoticeBoardURL,'welcome_notice','resize=no,toobar=no,scrollbars=no,menubar=no,status=yes,directories=no,resizable=1,width=540,height=390');}}};if(strInterfaceType.indexOf("MARO")>-1&&BrowserDetect.Device!="Phone"){document.getElementById("imgChangePW")&&(document.getElementById("imgChangePW").style.display="none");};var strIsEXI=topWin.strIsEXI||parent.strIsEXI;if(parent.parent&&typeof(strIsEXI)=='undefined')strIsEXI=parent.parent.strIsEXI;if(BrowserDetect.Device=="PC"){if(strIsEXI!="Y")sessionStorage.clear();else {sessionStorage.setItem("ReportSeparatorInfo",document.getElementById("reportseparatorinfo").value);};if(strUseManualIcon=="T"){var manual=document.getElementById("open_manual");manual.style.display="block";var btn_manual=document.getElementById("btn_manual");btn_manual.onclick=function(e){window.open(strManualLink);}};var btn_touchmode=document.getElementById("btn_touchmode");btn_touchmode.onclick=function(e){SetPC_touchmode("TABLET");}}else {if(strIsEXI!="Y")sessionStorage.clear();else {sessionStorage.setItem("ReportSeparatorInfo",document.getElementById("reportseparatorinfo").value);};var btn_touchmode=document.getElementById("btn_touchmode");if(btn_touchmode){btn_touchmode.onclick=function(e){SetPC_touchmode("PC");}}};if(UseTimezones==="T"){var timeZone=new Common_timeZone();timeZone.GetTimeZone();};if(BrowserDetect.OS=="iPhone/iPod"||BrowserDetect.OS=="iPad"){document.ontouchstart=function(e){if(document.activeElement.tagName=="INPUT"&&e.target.tagName!="INPUT"){document.activeElement.blur();}}};document.onkeydown=keyDown;document.onselectstart=new Function('return false');document.oncontextmenu=new Function('return false');document.ondragstart=new Function('return false');if(document.getElementById("step_gx")){document.getElementById("selFacility").onchange=selectFacility;};if(!document.getElementById("step_gx")&&getCookie("LoginID")&&LoadType!="CTR"){document.getElementById('login-id').value=getCookie("LoginID");if(document.getElementById("chkSaveID")!=null){document.getElementById("chkSaveID").checked="checked";}};if(strInterfaceType=="Gx_DB"){loginCtrl=new InitControl_IHP();}else {loginCtrl=new InitControl();};if(IsCompress=="1"&&BrowserDetect.privateMode==false)Check_AppCache();LoginObj.prevOrientation=window.orientation;(function(){var req=new XMLHttpRequest();req.open('GET','/images/login/line.png',true);req.onload=function(){if(req.readyState==4&&req.status==403){location.href='/Error';};req.onload=req.onreadystatechange=null;};req.send();if(document.getElementById("step_gx")){document.getElementById("divLoginInfo").classList.add('ihp');var iAccount=new Common_Control_Account();var ins=document.getElementById("selInstitution");iAccount.GetInstitution();ins.onchange=function(){iAccount.GetFacility(JSON.parse(this.value));}}})();if(strUseAzureLogin=="T")AzureInterface.init(strAzureClinetId,strAzureTenantId);sessionStorage.setItem('ECS_dbType',strEcsDbType);if(topWin.strInterfaceType=="G3_DB"&&BrowserDetect.Device!="Phone")Check_TouchablePC();ADFlag();};function selectFacility(){var facValue=document.getElementById('selFacility').options[document.getElementById('selFacility').selectedIndex].value;var facility=JSON.parse((facValue&&facValue!=null)?facValue:"{}");if(facility.sensitiveLoginID=="T"){document.getElementById('login-id').style.textTransform="none";}else {document.getElementById('login-id').style.textTransform="uppercase";};if(facility.saveLoginID==null||facility.saveLoginID!="T"){document.getElementById('SaveIDArea').style.display="none";document.getElementById("chkSaveID").checked="";document.getElementById('login-id').value="";document.getElementById('login-pwd').value="";}else {document.getElementById('SaveIDArea').style.display="inline";if(getCookie("InstitutionCode")&&getCookie("FacilityCode")&&getCookie("LoginID")&&LoadType!="CTR"){if(getCookie("InstitutionCode")==JSON.parse(document.getElementById("selInstitution").value)&&getCookie("FacilityCode")==facility.code){document.getElementById('login-id').value=getCookie("LoginID");document.getElementById("chkSaveID").checked="checked";}}};loginCtrl.sensitiveLoginID=facility.sensitiveLoginID;};function Drag_check(){var test=event.srcElement.type;if(test&&(test=='text'||test=='password')||event.srcElement.tagName=="SPAN"){document.onselectstart=new Function('return true');document.ondragstart=new Function('return true');}else {document.onkeydown=keyDown;document.oncontextmenu=new Function('return false');document.onselectstart=new Function('return false');document.ondragstart=new Function('return false');}};function keyDown(e){var eventObj;var key;var ctrl;var alt;var shift;if(typeof(e)!="undefined"){eventObj=e;key=eventObj.which;}else {eventObj=window.event;key=eventObj.keyCode;};ctrl=eventObj.ctrlKey;alt=eventObj.altKey;shift=eventObj.shiftKey;var login_s=document.getElementById("AlertBox").style.display;switch(key){default:return;}};function checkLoginStatus(id){if(!cacheStatus){return false;};if(topWin.SiteName=="SMC"&&document.domain!="localhost"&&document.domain=="smartpacs.samsunghospital.co.kr"&&(document.URL).indexOf("https")<0){var iAccount=new Common_Control_Account();iAccount.Show_ErrorBox("-",resmgr.getResourceString("msgSystemUsingHTTPS"));document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';return false;};return true;};function checkInvalidId(pId){var arr_Invalid_Id=["104018"];var tmp_length=arr_Invalid_Id.length;var ret=false;for(var i=0;i<tmp_length;i++){if(arr_Invalid_Id[i]==pId){ret=true;break;}};return ret;};function Login(o){var user=o;var checkLoginStatusFlag=checkLoginStatus(user.id);if(!checkLoginStatusFlag){return;};if(document.getElementById('chkSaveID')&&document.getElementById('chkSaveID').checked){sessionStorage.setItem('LoginID',document.getElementById('login-id').value);setCookie('LoginID',document.getElementById('login-id').value,7);}else {sessionStorage.setItem('LoginID',"");setCookie('LoginID',"",7);};document.getElementById('Blind_alt').style.display='block';document.getElementById('LoadingBox').style.display='block';if(SiteName=="SMC"&&NetworkType=="External"){if(checkInvalidId(user.id))pwd="smcInvaildId";};var iAccount=new Common_Control_Account();iAccount.TryToAuth(user);var ReportSeparatorInfo=document.getElementById("reportseparatorinfo").value;sessionStorage.setItem('ReportSeparatorInfo',ReportSeparatorInfo);};function InitControl_IHP(){var pwdMinLength;var pwdMaxLength;var sensitiveLoginID;var btnChangePW=document.getElementById("imgChangePW");var btnSave_IHP=document.getElementById("imgSave_IHP");var btnCancel_IHP=document.getElementById("imgCancel_IHP");var btnChangePW00_IHP=document.getElementById("change-pw00_IHP");var btnChangePW01_IHP=document.getElementById("change-pw01_IHP");var btnChangePW02_IHP=document.getElementById("change-pw02_IHP");var btnChangePW03_IHP=document.getElementById("change-pw03_IHP");var txtComplexity=document.getElementById("PwComplexity");var txtAlert=document.getElementById("PwErrorMessage");var btnLogin=document.getElementById("imgLogin");var btnLogin_IHP=document.getElementById("imgLogin");var ChangePwd_IHP=document.getElementById("ChangePw_IHP");this.OnChangePW_IHP=function(){var ins=document.getElementById("selInstitution");var ins_options=ins.innerHTML;var pwdIns=document.getElementById("selPwdInstitution");var iptUserId=document.getElementById('login-id');pwdIns.innerHTML=ins_options;pwdIns.selectedIndex=ins.selectedIndex;pwdIns.onchange=function(){var insValue=JSON.parse(pwdIns.value).code==undefined?JSON.parse(pwdIns.value):JSON.parse(pwdIns.value).code;iAccount.GetPwdFacility(insValue);};var fac=document.getElementById("selFacility");var fac_options=fac.innerHTML;var pwdFac=document.getElementById("selPwdFacility");pwdFac.innerHTML=fac_options;pwdFac.selectedIndex=fac.selectedIndex;var insValue=JSON.parse(pwdIns.value).code==undefined?JSON.parse(pwdIns.value):JSON.parse(pwdIns.value).code;iAccount.GetPasswordComplexity(insValue,JSON.parse(pwdFac.value).code);pwdFac.onchange=function(){var facValue=pwdFac.options[pwdFac.selectedIndex].value;var facility=JSON.parse((facValue&&facValue!=null)?facValue:"{}");loginCtrl.sensitiveLoginID=facility.sensitiveLoginID;if(loginCtrl.sensitiveLoginID=="T"){document.getElementById('change-pw00_IHP').style.textTransform="none";}else {document.getElementById('change-pw00_IHP').style.textTransform="uppercase";};var insValue=JSON.parse(pwdIns.value).code==undefined?JSON.parse(pwdIns.value):JSON.parse(pwdIns.value).code;iAccount.GetPasswordComplexity(insValue,JSON.parse(pwdFac.value).code);};btnChangePW00_IHP.style.textTransform=iptUserId.style.textTransform;if(str!=""){var str=document.getElementById("login-id").value;btnChangePW00_IHP.value=str;};if(SiteName!="SMC"){ChangePw_IHP.style.display="inline";}};this.onChkPW_IHP=function(type){var blind=document.getElementById('chk_pw_loging_IHP');blind.style.display=(type)?'block':'none';var blindAlt=document.getElementById('Blind_alt');blindAlt.style.display=(type)?'block':'none';};this.OnChPWSave_IHP=function(){monChkPW_IHP(true);var ins=document.getElementById("selPwdInstitution");var fac=document.getElementById("selPwdFacility");if(ins[ins.selectedIndex].text==""||ins[ins.selectedIndex].text=="None"){iAccount.Show_Message("Select Institution.");return;};if(fac[fac.selectedIndex].text==""||fac[fac.selectedIndex].text=="None"){iAccount.Show_Message("Select Facility");return;};var id;if(loginCtrl.sensitiveLoginID=="T"){id=btnChangePW00_IHP.value;}else {id=btnChangePW00_IHP.value.toUpperCase();};changePassword_IHP(id,btnChangePW01_IHP.value,btnChangePW02_IHP.value,btnChangePW03_IHP.value,JSON.parse(ins.value),JSON.parse(fac.value).code);btnChangePW01_IHP.value="";btnChangePW02_IHP.value="";btnChangePW03_IHP.value="";};this.OnChPWCancel_IHP=function(){ChangePw_IHP.style.display="none";btnChangePW01_IHP.value="";btnChangePW02_IHP.value="";btnChangePW03_IHP.value="";txtAlert.value="";monChkPW_IHP(false);};this.OnChangeUserPassword=function(){var ins=document.getElementById("selInstitution");var fac=document.getElementById("selFacility");var id=document.getElementById("login-id");var pwd=document.getElementById("login-pwd");var newPwd=document.getElementById("changeUserPwd02");var confirmPwd=document.getElementById("changeUserPwd03");changePassword_IHP(id.value,pwd.value,newPwd.value,confirmPwd.value,JSON.parse(ins.value),JSON.parse(fac.value).code);};this.OnCancelChangeUserPassword=function(){document.getElementById("ChangeUserPwdMessage").value="";document.getElementById("changeUserPwd02").value="";document.getElementById("changeUserPwd03").value="";document.getElementById("PasswordErrorMessage").value="";document.getElementById('ChangeUserPassword').style.display='none';};var eventStr="click";if(document.addEventListener){(typeof btnSave_IHP!='undefined')&&btnSave_IHP&&btnSave_IHP.addEventListener(eventStr,this.OnChPWSave_IHP,false);(typeof btnCancel_IHP!='undefined')&&btnCancel_IHP&&btnCancel_IHP.addEventListener(eventStr,this.OnChPWCancel_IHP,false);btnLogin.addEventListener(eventStr,VerifyLogin,false);(typeof btnPwSave!='undefined')&&btnPwSave&&btnPwSave.addEventListener(eventStr,this.OnChangeUserPassword,false);(typeof btnPwCancel!='undefined')&&btnPwCancel&&btnPwCancel.addEventListener(eventStr,this.OnCancelChangeUserPassword,false);}else {eventStr="onclick";(typeof btnSave_IHP!='undefined')&&btnSave_IHP&&btnSave_IHP.attachEvent(eventStr,this.OnChPWSave_IHP);(typeof btnCancel_IHP!='undefined')&&btnCancel_IHP&&btnCancel_IHP.attachEvent(eventStr,this.OnChPWCancel_IHP);btnLogin.attachEvent(eventStr,VerifyLogin);(typeof btnPwSave!='undefined')&&btnPwSave&&btnPwSave.attachEvent(eventStr,this.OnChangeUserPassword);(typeof btnPwCancel!='undefined')&&btnPwCancel&&btnPwCancel.attachEvent(eventStr,this.OnCancelChangeUserPassword);};var monChkPW_IHP=this.onChkPW_IHP;};function InitControl(){var btnChangePW=document.getElementById("imgChangePW");var btnSave=document.getElementById("imgSave");var btnCancle=document.getElementById("imgCancle");var btnChangePW00=document.getElementById("change-pw00");var btnChangePW01=document.getElementById("change-pw01");var btnChangePW02=document.getElementById("change-pw02");var btnChangePW03=document.getElementById("change-pw03");var btnLogin=document.getElementById("imgLogin");var btnLoginAzure=document.getElementById("imgLoginAzure");var ChangePwd=document.getElementById("ChangePw");this.OnChangePW=function(){if(str!=""){var str=document.getElementById("login-id").value;document.getElementById("change-pw00").value=str;};if(SiteName!="SMC"){ChangePwd.style.display="inline";}};this.onChkPW=function(type){if(BrowserDetect.Device!="Phone"){var blind=document.getElementById("chk_pw_loging");blind.style.display=(type)?"block":"none";};var Blind_alt=document.getElementById("Blind_alt");Blind_alt.style.display=(type)?"block":"none";};this.OnChPWSave=function(){monChkPW(true);changePassword(btnChangePW00.value,btnChangePW01.value,btnChangePW02.value,btnChangePW03.value);btnChangePW01.value="";btnChangePW02.value="";btnChangePW03.value="";};this.OnChPWCancel=function(){if(loginCtrl.isChangePwdLater=="T"){VerifyLogin();};ChangePw.style.display="none";btnChangePW01.value="";btnChangePW02.value="";btnChangePW03.value="";monChkPW(false);};if(document.addEventListener){if(btnChangePW)btnChangePW.addEventListener("click",this.OnChangePW,false);if(btnSave)btnSave.addEventListener("click",this.OnChPWSave,false);if(btnCancle)btnCancle.addEventListener("click",this.OnChPWCancel,false);if(btnLogin)btnLogin.addEventListener("click",VerifyLogin,false);if(btnLoginAzure)btnLoginAzure.addEventListener("click",VerifyLoginAzure,false);}else  if(document.attachEvent){if(btnChangePW)btnChangePW.attachEvent("onclick",this.OnChangePW);if(btnSave)btnSave.attachEvent("onclick",this.OnChPWSave);if(btnCancle)btnCancle.attachEvent("onclick",this.OnChPWCancel);if(btnLogin)btnLogin.attachEvent("onclick",VerifyLogin);if(btnLoginAzure)btnLoginAzure.addEventListener("onclick",VerifyLoginAzure,false);};var monChkPW=this.onChkPW;};function OnbtnSuccess(){if(document.getElementById("PwdMsgBox").style.display!="none"){document.getElementById("PwdMsgBox").style.display="none";document.getElementById("MsgSpan").innerHTML=topWin.resmgr.getResourceString("msgSuccess");if(document.getElementById("ChangePw").style.display!="none"){document.getElementById("ChangePw").style.display="none";}else {document.getElementById("ChangeUserPassword").style.display="none";}}else {document.getElementById('ChangePw_IHP').style.display="none";document.getElementById("chk_pw_loging_IHP").style.display="none";};if(topWin.strInterfaceType=="Gx_DB"){if(document.getElementById("changeUserPwd02").value==""||document.getElementById("changeUserPwd03").value==""){topWin.location.replace("/");}else {document.getElementById("login-pwd").value=document.getElementById("changeUserPwd03").value;VerifyLogin();}}else  if(topWin.strInterfaceType=="G3_DB"){if(document.getElementById("change-pw02").value==""||document.getElementById("change-pw03").value==""){topWin.location.replace("/");}else {document.getElementById("login-pwd").value=document.getElementById("change-pw03").value;VerifyLogin();}}};function OnClickNoticeAgree(){if(document.getElementById("TCNoticePopup").style.display!="none"){document.getElementById("TCNoticePopup").style.display="none";var data=JSON.parse(sessionStorage.getItem("ResultAuth"));sessionStorage.setItem('ResultAuth',"");var account_info=data[0].Parameters.Account;var iSystem=new Common_Control_System();iSystem.SetAuditLog("User agree to terms",account_info.UserID);iAccount.cbResultAuth(data);}};function OnClickNoticeCancel(){if(document.getElementById("TCNoticePopup").style.display!="none"){document.getElementById("TCNoticePopup").style.display="none";}};function VerifyLoginAzure(){AzureInterface.signIn();};function VerifyLogin(){var oLogin;if(document.getElementById("step_gx")){var facValue=document.getElementById('selFacility').options[document.getElementById('selFacility').selectedIndex].value;var facility=JSON.parse((facValue&&facValue!=null)?facValue:"{}");oLogin={id:facility.sensitiveLoginID=="T"?document.getElementById("login-id").value:document.getElementById("login-id").value.toUpperCase(),pwd:document.getElementById("login-pwd").value,force:"N",};var insValue=JSON.parse(document.getElementById("selInstitution").value);oLogin.ins=insValue.code==undefined?insValue:insValue.code;oLogin.fac=JSON.parse(document.getElementById("selFacility").value).code;oLogin.sensitiveLoginID=facility.sensitiveLoginID;}else {oLogin={id:document.getElementById("login-id").value,pwd:document.getElementById("login-pwd").value,force:"N",changePwdLater:loginCtrl.isChangePwdLater?loginCtrl.isChangePwdLater:"F"}};if(UseTimezones==="T"){oLogin.tzKey=document.getElementById("tzKey").value;oLogin.DSTYN=(document.getElementById("useDST").checked)?"Y":"N";};var iAccount=new Common_Control_Account();if(BrowserDetect.Device!="PC"){if(oLogin.id==""){iAccount.Show_ErrorBox("-",resmgr.getResourceString("msgEnterUserID"));document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';return;}else  if(oLogin.pwd==""){iAccount.Show_ErrorBox("-",resmgr.getResourceString("msgEnterPassword"));document.getElementById('imgLogin').disabled='';document.getElementById('imgLogin').src='/Assets/image/login/btn_login.png';return;}else {document.getElementById('ErrorMsg').innerHTML='';if(UseTimezones==="T"){Login(oLogin);}else {Login(oLogin);}}}else {if(oLogin.id==""){document.getElementById("ErrorMsg").innerHTML=resmgr.getResourceString("msgEnterUserID");document.getElementById('imgLogin').disabled='';return;}else  if(oLogin.pwd==""){document.getElementById("ErrorMsg").innerHTML=resmgr.getResourceString("msgEnterPassword");document.getElementById('imgLogin').disabled='';return;}else {document.getElementById('ErrorMsg').innerHTML='';if(UseTimezones==="T"){Login(oLogin);}else {Login(oLogin);}}}};var iAccount=new Common_Control_Account();function Check_spec(){if(BrowserDetect.browser=="Chrome"&&BrowserDetect.version<16||BrowserDetect.browser=="Explorer"&&BrowserDetect.version<9||BrowserDetect.browser=="Firefox"&&BrowserDetect.version<9||BrowserDetect.browser=="Safari"&&BrowserDetect.version<5.1){console.log(BrowserDetect.browser+", "+BrowserDetect.version);Show_msgBox();return false;}else {var check_canvas=document.createElement('canvas');if(!check_canvas){Show_msgBox();return false;}};return true;};function Show_msgBox(){document.getElementById('checkBox').style.display='block';document.getElementById('Blind_alt').style.display='block';};function Ok_msgBox(val){if(val=="ok"){document.getElementById('checkBox').style.display='none';}};function MessageBox(val){if(val=="ok"){var catch_box=document.getElementById('catchBox');if(catch_box)catch_box.style.display='none';document.location="/worklist/SimpleViewerMain";}};function loginErrorBox(val){if(val=="ok"){document.getElementById('ErrorBox').style.display='none';};return false;};window.ontouchmove=function(e){e.preventDefault();};function loginRemoveAddressBar(){if(BrowserDetect.Device!="Phone")return;if(BrowserDetect.OS=="iPhone/iPod"){if(BrowserDetect.version>=7){document.activeElement.blur();setTimeout(function(){window.scrollTo(0,0);},50);return;};if(("standalone"in window.navigator)&&window.navigator.standalone){var height=(IsPortraitMode(window.orientation))?window.screen.height-20:window.innerHeight;if(document.body.style.height&&document.body.style.height.replace('px','')==height)return;if(document.height<=window.outerHeight+10){document.body.style.height=height+'px';setTimeout(function(){window.scrollTo(0,0);},50);}else {setTimeout(function(){window.scrollTo(0,0);},50);};return;};if(!window.location.hash){var height=(IsPortraitMode(window.orientation))?window.screen.height-60:window.innerHeight+60;if(document.body.style.height&&document.body.style.height.replace('px','')==height)return;document.activeElement.blur();if(document.height<=window.outerHeight+10){document.body.style.height=height+'px';setTimeout(function(){window.scrollTo(0,0);},50);}else {setTimeout(function(){window.scrollTo(0,0);},50);}}}else {if(!window.location.hash){if(document.documentElement.scrollHeight<(window.outerHeight/window.devicePixelRatio)){document.documentElement.style.height=(window.outerHeight/window.devicePixelRatio+3)+'px';};setTimeout(function(){window.scrollTo(0,1);},50);}}};var cacheStatus=(IsCompress==="1"&&BrowserDetect.privateMode==false&&window.ApplicationCache)?false:true;function cachestatus(id){var wapper=document.getElementById(id),status={},cachestatus=document.createElement("div"),now_status=document.createElement("div"),progressbar=document.createElement("div"),checking=document.createElement("span");checking.id="checking";progressbar.className="progressbar";progressbar.appendChild(checking);now_status.id="now_status";cachestatus.appendChild(now_status);cachestatus.appendChild(progressbar);cachestatus.id="cachestatus";wapper.appendChild(cachestatus);status.login=wapper.getElementsByTagName("fieldset")[0];status.wrapper=document.getElementById("cachestatus");status.txt_status=document.getElementById("now_status");status.progress=document.getElementById("checking");status.showHide=function(visible){if(visible==false){this.login.style.opacity="1";this.wrapper.style.display="none";window.cacheStatus=true;}else {this.login.style.opacity="0.5";this.wrapper.style.display="block";window.cacheStatus=false;}};status.setStatus=function(obj){if(obj.txt){this.txt_status.innerHTML=obj.txt;};if(obj.per){status.progress.style.width=obj.per+"%";}};status.error=function(obj){status.showHide(false);document.getElementById("cacheBox").style.display="block";document.getElementById("cacheMsg").value=obj.message;};status.close=function(){document.getElementById("cacheBox").style.display="none";};return function(obj){switch(obj.type){case'showHide':status.showHide(obj.visible);break;case'status':status.setStatus(obj);break;case'error':status.error(obj);break;case'close':status.close();break;default:break;}}};function Common_timeZone(){Common_AjaxEngine.call(this);this.GetTimeZone=function(){try{this.SendData.RemoteCallAction="SystemAction";this.SendData.Command="GetTimezones";this.CallBackFunction=this.cbSetTimeZone;this.CallxhrPost("TimeZone");}catch(Error){console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.cbSetTimeZone=function(data){try{var timezoneData=JSON.parse(data),doc=document,wrapper=doc.getElementById("timezone"),strOps="",i=0,n=timezoneData.length,strDst="",checked="";defaultKey=sessionStorage.getItem("TimezoneKey")||DefaultTimezoneKey,defaultSDTYN=sessionStorage.getItem("UseDST")||DefaultTimezoneDSTYN;checked=(defaultSDTYN==="Y")?"checked='checked'":"";wrapper.style.display="block";strOps+="<select id='tzKey'>";for(i;i<n;i++){if(defaultKey==timezoneData[i].key){strOps+="<option value='"+timezoneData[i].key+"' selected>"+timezoneData[i].display_name+"</option>";}else {strOps+="<option value='"+timezoneData[i].key+"'>"+timezoneData[i].display_name+"</option>";}};strOps+="</select>";if(BrowserDetect.OS=="Android"){strOps+="<div id='customSel'></div>";};strDst+="<input type='checkbox' id='useDST' "+checked+" />";strDst+="<label for='useDST'>DST</label>";wrapper.innerHTML=strOps+strDst;if(BrowserDetect.OS=="Android"){var customSel1=CustomSelect("tzKey",null);}}catch(Error){console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}}};function Check_AppCache(){if(!!window.applicationCache){}else {return;};if(!window.name||cachestatus){chkAppCache=cachestatus("LoginContainerId");}else {chkAppCache=topWin.cacheUi;};window.applicationCache.addEventListener('cached',handleCacheEvent,false);window.applicationCache.addEventListener('checking',handleCacheEvent,false);window.applicationCache.addEventListener('downloading',handleCacheEvent,false);window.applicationCache.addEventListener('progress',handleCacheEvent,false);window.applicationCache.addEventListener('noupdate',handleCacheEvent,false);window.applicationCache.addEventListener('obsolete',handleCacheEvent,false);window.applicationCache.addEventListener('updateready',handleCacheEvent,false);window.applicationCache.addEventListener('error',handleCacheError,false);};var nCacheEventCnt=1;var cacheEnd=null;function handleCacheEvent(e){switch(e.type){case"updateready":chkAppCache({type:"showHide",visible:true});if(window.applicationCache.status==window.applicationCache.UPDATEREADY){if(window.frameElement&&window.frameElement.name=="Update"){topWin.outMsgFlag=false;};AppReload();}else  if(window.applicationCache.status==window.applicationCache.IDLE){chkAppCache({type:"showHide",visible:false});};break;case"downloading":chkAppCache({type:"showHide",visible:true});break;case"cached":setTimeout(function(){if(window.frameElement&&window.frameElement.name=="Update"){if(topWin.g_IsAppCache==false){topWin.PanelLoadCompleted("APPCACHE");};if(BrowserDetect.Device!="PC"&&BrowserDetect.browser=="Safari"){window.location.reload(true);}};chkAppCache({type:"showHide",visible:false});ADFlag();},500);break;case"progress":chkAppCache({type:"showHide",visible:true});if(!e.loaded&&!e.total){clearTimeout(cacheEnd);e.loaded=nCacheEventCnt;e.total=nCacheEventCnt+1;nCacheEventCnt++;chkAppCache({type:"status",txt:resmgr.getResourceString("msgDownloading")+" ("+e.loaded+"/"+e.total+")",per:e.loaded/e.total*100});cacheEnd=setTimeout(function(){chkAppCache({type:"showHide",visible:false});},3000);}else {chkAppCache({type:"status",txt:resmgr.getResourceString("msgDownloading")+" ("+e.loaded+"/"+e.total+")",per:e.loaded/e.total*100});};break;case"checking":chkAppCache({type:"status",txt:resmgr.getResourceString("msgVersionCheck")});break;case"noupdate":if(window.frameElement&&window.frameElement.name=="Update"){if(topWin.g_IsAppCache==false){topWin.PanelLoadCompleted("APPCACHE");}};chkAppCache({type:"showHide",visible:false});ADFlag();break;}};function ADFlag(){if(BrowserDetect.Device=="PC"){if(EnableDomainLogin=="T"&&AutoDomainLogin=="T"){Login({id:"",pwd:"",force:false,ins:ADIns,fac:ADFac,});}}};function AppReload(){window.applicationCache.swapCache();window.location.reload();};function handleCacheError(e){chkAppCache({type:"showHide",visible:false});console.log("error: AppCache Error");ADFlag();};var myScroll=null;function ShowInfomation(){this.pad=function(n,width){n=n+'';return n.length>=width?n:new Array(width-n.length+1).join('0')+n;};var txtVersion=document.getElementById("txtVersion");var version=strMainVersion.split('_')[0]+" "+strMainVersion.split('_')[1];txtVersion.innerHTML="Version "+version;var txtReleaseDate=document.getElementById("txtReleaseDate");txtReleaseDate.innerHTML=strReleaseDate;var txtPI=document.getElementById("txtPI");var txtPI1=document.getElementById("txtPI1");var tmp=version.split(" ");txtPI.innerHTML="(10) 801."+tmp[0].replace(/\./g,"")+"."+this.pad(tmp[1].substr(2),3)+"."+strReleaseDate;txtPI1.innerHTML="801."+tmp[0].replace(/\./g,"")+"."+this.pad(tmp[1].substr(2),3)+"."+strReleaseDate;var txtReleaseYear=document.getElementById("txtReleaseYear");txtReleaseYear.innerHTML=strReleaseDate.substr(0,4);var txtKFDAtxtReleaseYear=document.getElementById("txtKFDAtxtReleaseYear");txtKFDAtxtReleaseYear.innerHTML=strReleaseDate.substr(0,4)+"."+strReleaseDate.substr(4,2);var popup=document.getElementById("CertificationPopup");popup.style.display="block";if(myScroll){myScroll._resize();}else {myScroll=new iScroll('#CertificationPopup',{hScroll:false,vScrollbar:false,bounce:false});}};function HideInfomation(){var popup=document.getElementById("CertificationPopup");popup.style.display="none";};function Check_TouchablePC(){var Msgobj=null;this.YesAction=function(){if(Msgobj)Msgobj.showHide();SetPC_touchmode("TABLET");};var touchmodeBtn=document.getElementById("touch_mode");if(IsTouchablePC()&&bIsUseWebStorage){touchmodeBtn.style.display="block";var _pc_touchmode=localStorage.getItem('PC_TOUCHMODE');if(_pc_touchmode==null&&BrowserDetect.Device=="PC"){Msgobj=createMessage({"tit":resmgr.getResourceString("titInformation"),"msg":resmgr.getResourceString("msgChangeTouchMode"),"btnOK":resmgr.getResourceString("btnYes"),"btnCancel":resmgr.getResourceString("btnNo"),"okCancel":true,"blind":"Blind_alt","fn":this.YesAction});}else  if(_pc_touchmode==null&&BrowserDetect.Device=="Tablet"){touchmodeBtn.style.display="none";}else  if(_pc_touchmode=="TABLET"&&BrowserDetect.Device=="Tablet"){if(_pc_touchmode!=pc_touchmode)SetPC_touchmode(_pc_touchmode);}}else  touchmodeBtn.style.display="none";};function Check_WebStorage(){if(storageAvailable('localStorage'))bIsUseWebStorage=true;else  bIsUseWebStorage=false;};function After_MFAauthentication(resultCode,mfaSession){if(resultCode==0)topWin.location.replace("/worklist/SimpleViewerMain?wMode="+sessionStorage.getItem("WorklistMode"));else {alert("DUO fail");}};function Close_MFAPopup(){document.getElementById("duo_popup").style.display="none";};function Open_QR_OKTAPopup(_qr){document.getElementById("okta_qr_popup").style.display="block";var UrlData=Base64.encode(_qr);var QRURL='/RequestDataReadOnly/GetImageByURL?strURL='+UrlData;document.getElementById("qrcode").src=QRURL;};function View_SecretCode(_scode,_statetoken,_factorid){Close_OKTAPopup();Open_SecretPopup();document.getElementById("sc_stateToken").value=_statetoken;document.getElementById("sc_factorID").value=_factorid;document.getElementById("sc_number").innerText=_scode;};function Request_Enroll(stateToken){document.getElementById("qrcode").setAttribute("data-type",stateToken);iAccount.Request_QREnroll(stateToken);};function Open_Enroll_OKTAPopup(factorType){var okta_enroll_popup=document.getElementById("okta_enroll_popup");okta_enroll_popup.setAttribute("data-type",factorType);if(factorType=='OKTA_OTP')okta_enroll_popup.className='okta_enroll_popup_OTP_show';else  if(factorType=='OKTA_PUSH')okta_enroll_popup.className='okta_enroll_popup_PUSH_show';};function Close_OKTAPopup(){document.getElementById("okta_qr_popup").style.display="none";};function Close_Enroll_OKTAPopup(){document.getElementById("okta_enroll_popup").className="okta_enroll_popup_hide";};function Open_SecretPopup(){document.getElementById("okta_SecretCode_popup").style.display="block";};function Close_SecretPopup(){document.getElementById("okta_SecretCode_popup").style.display="none";};function Click_PushVerify(){var UserKey=sessionStorage.getItem("UserKey"),UserID=sessionStorage.getItem("UserID");iAccount.Okta_PushVerify("PUSH",UserID,UserKey);Close_Enroll_OKTAPopup();Login_MsgBox(resmgr.getResourceString("titInformation"),resmgr.getResourceString("msgPleaseWaitMFAAuthentication"),true);};function Click_CodeVerify(){var UserKey=sessionStorage.getItem("UserKey"),UserID=sessionStorage.getItem("UserID");var code=document.getElementById("MFACodeInput").value;if(code==null||code==""){createMessage({tit:topWin.resmgr.getResourceString("titInformation"),msg:resmgr.getResourceString("msgPutCode"),okCancel:false,display:false,btnOK:"OK"});return;};var backupcode=document.getElementById("vc_mobileCode").value;if(backupcode!==""&&backupcode===code){createMessage({tit:topWin.resmgr.getResourceString("titInformation"),msg:resmgr.getResourceString("titOverlabCode"),okCancel:false,display:false,btnOK:"OK"});return;};iAccount.Okta_ActivceCode("token:software:totp",UserID,UserKey,code);Close_Enroll_OKTAPopup();Login_MsgBox(resmgr.getResourceString("titInformation"),resmgr.getResourceString("msgPleaseWaitMFAAuthentication"),true);};function ResultAction_VerifyFactor(){Close_Enroll_OKTAPopup();topWin.location.replace("/worklist/SimpleViewerMain?wMode="+sessionStorage.getItem("WorklistMode"));Login_MsgBox(resmgr.getResourceString("titInformation"),resmgr.getResourceString("msgPleaseWaitMFAAuthentication"),true);};function getEnrollSecretCode(){var UserID=sessionStorage.getItem("UserID");var statecode=document.getElementById("qrcode").getAttribute("data-type");iAccount.Request_SecrectCodeEnroll(statecode,UserID);};function ActiveSecretCode(){var stateToken=document.getElementById("sc_stateToken").value;var factorID=document.getElementById("sc_factorID").value;var code=document.getElementById("SecretCodeInput").value;if(code==null||code==""){createMessage({tit:topWin.resmgr.getResourceString("titInformation"),msg:resmgr.getResourceString("msgPutCode"),okCancel:false,display:false,btnOK:"OK"});return;};document.getElementById("vc_mobileCode").value=code;iAccount.ActiveSecretCode(code,stateToken,factorID);};function copy_to_clipboard(){var copyText=document.getElementById("sc_number").innerText;var createInput=document.createElement("input");createInput.setAttribute("type","text");document.getElementById("sc_number").appendChild(createInput);createInput.value=copyText;createInput.select();document.execCommand('copy');document.getElementById("sc_number").removeChild(createInput);};</script>
<script>function Common_Control_System(signalR_Hub){if(signalR_Hub&&typeof(signalR_Hub)!='undefined')Common_SignalREngine.call(this,signalR_Hub);else  Common_AjaxEngine.call(this);this.SetAuditLog=function(eventcode,id){try{var iUser=new cAccount();iUser.UserID=id;iUser.SessionKey=sessionStorage.getItem("SessionKey");this.SendData.RemoteCallAction="SystemAction";this.SendData.Command="SetAuditLog";this.SendData.Parameters.AuditMessage=eventcode;this.SendData.Parameters.Account=iUser;this.SendData.Parameters.Device=BrowserDetect.Device;this.CallBackFunction=this.cbResult;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);document.getElementById('LoadingBox').style.display='none';}};this.GetECSChangeServer=function(){try{this.SendData.RemoteCallAction="SystemAction";this.SendData.Command="Change_ECSServer";this.CallBackFunction=this.ECSChangeServer_Result;this.CallxhrPost();}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);document.getElementById('LoadingBox').style.display='none';}};this.cbResult=function(data){try{var result=data;}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}};this.ECSChangeServer_Result=function(data){var CloseMsg_Remain=function(){var that=this;var tempFn=function(){location.replace("/");};return tempFn;};try{var strEcsDbTypeFromLocal=sessionStorage.getItem('ECS_dbType');var strEcsDbTypeFromServer=data[0].ECS_dbType;if(strEcsDbTypeFromLocal!=strEcsDbTypeFromServer){console.log("Local : "+strEcsDbTypeFromLocal+", Server : "+strEcsDbTypeFromServer);var errMsg;if(strEcsDbTypeFromServer=="LOCAL")errMsg=topWin.resmgr.getResourceString("msgEmergencyMode");else  if(strEcsDbTypeFromServer=="MAIN")errMsg=topWin.resmgr.getResourceString("msgNormalMode");var MsgObject={tit:topWin.resmgr.getResourceString("titInformation"),msg:errMsg,okCancel:false,display:false,blind:"blind",fn:CloseMsg_Remain(),btnOK:"OK"};this.oMsg=createMessage(MsgObject);}}catch(Error){this.AlertMessage(this.declaredClass,this.SendData.Command,Error);console.log(this.declaredClass+" | "+this.SendData.Command+" | "+Error.message);}}};</script>

    
</head>

<body class="default" onmousedown="Drag_check();">

<div id="PwdMsgBox" style="display:none;">
    <div class="PwdMsgArea">
        <div class="popup-box" style="width:355px; height:auto;">
		    <span class="tit">Information</span>
            <div class="popup-content">
			    <span id="MsgSpan">Success</span>
                <div class="btn-area">
				    <input type="button" id="btnSuccess" onclick="OnbtnSuccess();" value="OK" class="btn" onmouseout="this.className='btn'">
                </div>
            </div>
	    </div>
    </div>
</div>

<!-- [#93934] Terms & Conditions Popup -->
<div id="TCNoticePopup" style="display:none;">
    <div id="tcnArea" class="tcnArea">
        <div class="popup-box" style="width:655px; height:auto;">
		    <span class="tit tcnTitle">Terms &amp; Conditions Notice</span>
            <div class="popup-content" style="padding-left:15px;padding-right:15px;">
                <table class="tcnTable">
                    <tbody><tr>
                        <th style="width:25%;"><label for="tcnTitle" class="tcnLabel">Title</label></th>
                        <td class="tcnTd"><span class="tcnText" id="tcnTitle">asdafsdfasdfa</span></td>
                    </tr>
                    <tr>
                        <th><label for="tcnWrittenDate" class="tcnLabel">WrittenDate</label></th>
                        <td class="tcnTd"><span class="tcnText" id="tcnWrittenDate">asdfasdf</span></td>
                    </tr>
                    <tr>
                        <th><label for="tcnWritter" class="tcnLabel">Writter</label></th>
                        <td class="tcnTd"><span class="tcnText" id="tcnWritter">asdfas</span></td>
                    </tr>
                    <tr>
                        <th><label for="tcnContents" class="tcnLabel2">Contents</label></th>
                        <td class="tcnTd"><textarea readonly="" id="tcnContents" class="tncTextArea">asdfasdf</textarea></td>
                    </tr>
                    <tr>
                        <th><label for="tcnAttachment" class="tcnLabel">Attachment</label></th>
                        <td class="tcnTd"><a class="tcnText" id="tcnAttachment" target="_blank">asdfasdf</a></td>
                    </tr>
	            </tbody></table>
                <div>
                    <input type="button" id="btnNoticeAgree" onclick="OnClickNoticeAgree();" value="Agree" class="btn" onmouseout="this.className='btn'">
                    <input type="button" id="btnNoticeCancel" onclick="OnClickNoticeCancel();" value="Cancel" class="btn" onmouseout="this.className='btn'">
                </div>
            </div>
	    </div>
    </div>
</div>

<!-- 암호변경 -->
<div id="ChangePw" class="changePwdPopup" style="display:none">
	<div class="ChangeArea">
		<div class="popup-box">
			<span class="tit">Change Password</span>
            <input type="hidden" id="hid_resultCode">
	        <table class="ChangeInfor" summary="change password">
                <caption>change password</caption>
                <tbody>
                    <tr>
                        <th><label for="change-pw00" class="label02">User ID</label></th>
                        <td><input id="change-pw00" type="text" class="input_change" name="id" size="64" placeholder="Enter your user ID." style="ime-mode:inactive;" maxlength="64" readonly="readonly"></td>
                    </tr>
                    <tr>
                        <th><label for="change-pw01" class="label02">Current Password</label></th>
                        <td><input id="change-pw01" type="password" class="input_change" name="id" size="64" placeholder="Enter the current password." style="ime-mode:inactive;" maxlength="64"></td>
                    </tr>
                    <tr>
                        <th><label for="change-pw02" class="label02">New Password</label></th>
                        <td><input id="change-pw02" type="password" class="input_change" name="pw" size="64" placeholder="Enter the new password." style="ime-mode:inactive;" maxlength="64"></td>
                    </tr>
                    <tr>
                        <th><label for="change-pw03" class="label02">Confirm Password</label></th>
                        <td><input id="change-pw03" type="password" class="input_change" name="pw" size="64" placeholder="Re-enter your new password." style="ime-mode:inactive;" maxlength="64"></td>
                    </tr>
                    <tr>
                        <td colspan="2" class="ChangeBtn">
                            <input type="button" id="imgSave" value="Save" title="Save">
						    <input type="button" id="imgCancle" value="Cancel" title="Cancel">
                        </td>
                    </tr>
                </tbody>
	        </table>
		</div>
	</div>
    <div id="chk_pw_loging"></div>
</div>

<div id="ChangePw_IHP" style="display:none">
	<div id="changePwdArea" class="ChangeArea-ihp">
		<div class="ChangeContainer_IHP">
			<p class="ChangeTitle"><span>Change Password</span></p>
            <input type="hidden" id="hid_resultCode_IHP">
	        <table class="ChangeInfor_IHP" summary="change password">
                <caption>change password</caption>
                <tbody>
                    <tr>
                        <th><label for="selPwdInstitution" class="label02">Institution</label></th>
                        <td><select id="selPwdInstitution" onchange="OnPwdInstitutionChange()"><option>Loading...</option></select></td>
                    </tr>
                    <tr>
                        <th><label for="selPwdFacility" class="label02">Facility</label></th>
                        <td><select id="selPwdFacility"><option>Loading...</option></select></td>
                    </tr>
                    <tr>
                        <th><label for="change-pw00_IHP" class="label02">User ID</label></th>
                        <td><input id="change-pw00_IHP" type="text" class="input_change" name="id" size="64" placeholder="Enter your user ID." style="ime-mode:inactive;" maxlength="64" readonly="readonly"></td>
                    </tr>
                    <tr>
                        <th><label for="change-pw01_IHP" class="label02">Current Password</label></th>
                        <td><input id="change-pw01_IHP" type="password" class="input_change" name="id" size="64" placeholder="Enter the current password." style="ime-mode:inactive;" maxlength="64"></td>
                    </tr>
                    <tr>
                        <th><label for="change-pw02_IHP" class="label02">New Password</label></th>
                        <td><input id="change-pw02_IHP" type="password" class="input_change" name="pw" size="64" placeholder="Enter the new password." style="ime-mode:inactive;" maxlength="64"></td>
                    </tr>
                    <tr>
                        <th><label for="change-pw03_IHP" class="label02">Confirm Password</label></th>
                        <td><input id="change-pw03_IHP" type="password" class="input_change" name="pw" size="64" placeholder="Re-enter your new password." style="ime-mode:inactive;" maxlength="64"></td>
                    </tr>
                    <tr>
                        <td colspan="2"><textarea readonly="" id="PwComplexity" class="password-complexity"></textarea></td>
                    </tr>
                    <tr>
                        <td colspan="2"><textarea readonly="" id="PwErrorMessage" class="password-alert-msg" style="height:23px;"></textarea></td>
                    </tr>
                    <tr>
                        <td colspan="2" class="ChangeBtn">
                            <input type="button" id="imgSave_IHP" value="Save" title="Save">
						    <input type="button" id="imgCancel_IHP" value="Cancel" title="Cancel">
                        </td>
                    </tr>
                </tbody>
	        </table>
		</div>
	</div>
    <div id="chk_pw_loging_IHP"></div>
</div>

 <div id="ChangeUserPassword" style="display:none">
	<div id="changeUserPasswordArea" class="ChangeArea-ihp">
		<div class="popup-box">
			<span class="tit">Change Password</span>
            <input type="hidden" id="hid_ErrorCode">
            <textarea readonly="" id="ChangeUserPwdMessage" style="margin-top:13px;" onfocus="this.blur( );"></textarea>
	        <div class="popup-content">
                <table>
                    <tbody>
                        <tr>
                            <th><label for="change-pw02" class="label02">New Password</label></th>
                            <td><input id="changeUserPwd02" type="password" class="input_change" name="pw" size="64" title="Enter the new password." style="ime-mode:inactive;" maxlength="64"></td>
                        </tr>
                        <tr>
                            <th><label for="change-pw03" class="label02">Confirm Password</label></th>
                            <td><input id="changeUserPwd03" type="password" class="input_change" name="pw" size="64" title="Re-enter your new password." style="ime-mode:inactive;" maxlength="64"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><textarea readonly="" id="PasswordComplexity" class="password-complexity"></textarea></td>
                        </tr>
                        <tr>
                            <td colspan="2"><div><textarea readonly="" id="PasswordErrorMessage" class="password-alert-msg" style="height:23px;"></textarea></div></td>
                        </tr>
                    </tbody>
	            </table>
                <div class="btn-area">
                    <input type="button" id="btnPwSave" value="Save" title="Save">
			        <input type="button" id="btnPwCancel" value="Cancel" title="Cancel">
                </div>
            </div>
		</div>
	</div>
</div>

<!-- 로그인 -->
<div class="wrap">
    <div id="Blind_alt" style="display:none;">
        <div class="popupLayer">
            <div class="back"></div>
        </div>
    </div>
    <div class="logo-background">
         
            <img class="logo" src="/Assets/Image/login/img_logo.png" alt="ULite">
                 
    </div>
    <div class="line"></div>
    <div id="version" class="version">
        <div><img id="lt_logo" style="display:none;" src="" alt="Xeron"></div>
        <div>Version 5.0.2.1_BN7</div>
    </div>
	<div id="LoginArea">
        <div class="LoginContainer">
            <form id="LoginContainerId" onsubmit="return false">
			    <fieldset>
				    <legend>로그인</legend>
				    <div id="divLoginInfo" class="LoginInfor">
                        <table class="user" summary="login form">
                            <caption>login</caption>
                            
                            <tbody>
                                <tr>
                                    <td>
                                        <input id="login-id" type="text" placeholder="User ID" class="input_login" name="id" size="64" style="ime-mode:inactive;" maxlength="64">
                                        
                                        <input id="reportseparatorinfo" type="hidden" name="reportseparatorinfo" value="
--
@====== [Conclusion] ======@Addendum Report Added by">
                                    </td>
                                </tr>
                                <tr>
                                    <td><input id="login-pwd" type="password" class="input_login" name="pw" size="64" placeholder="Password" style="ime-mode:inactive;" maxlength="64"></td>
                                </tr>
                                <tr>
                                    <td>
                                        
						                        <input id="chkSaveID" type="checkbox">
						                        <label class="save-id" for="chkSaveID">Save ID</label>
                                            
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="submit" id="imgLogin" value="Login">
                                    </td>
                                </tr>

                                

                                <tr>
                                    <td>
                                        <span id="ErrorMsg"></span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        
                        

                        <div id="timezone" style="display:none;"></div>
                        <!-- login error message box -->
                        
                    </div>
			    </fieldset>
            </form>

            <!-- cache message box -->
            <div id="cacheBox" class="popup" style="display:none;">
                <div class="popup-box" style="width:365px; height:auto;">
                    <span class="tit">Information</span>
                    <div class="popup-content">
                        <textarea readonly="" id="cacheMsg" rows="6" style="width:330px;height:50px;background-color:transparent;font-size:12px;overflow-x:hidden;border:0; overflow-y:auto;resize:none;" onfocus="this.blur( );"></textarea>
                        <div>
                            <a href="javascript:AppReload();"><input type="button" name="btn_ok" id="Button1" value="OK" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="this.className='btn';"></a>
                            <a href="javascript:chkAppCache({type:'close'});"><input type="button" id="Button2" value="Cancel" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="this.className='btn';this.disabled='true'"></a>
                        </div>
                    </div>
                </div>
            </div>

            <!-- alert message box -->
            <div id="AlertBox" class="popup" style="display:none;">
                <div class="popup-box" style="width:365px; height:auto;">
	                <span class="tit">Information</span>
                    <div class="popup-content">
                        <textarea readonly="" id="alertMsg" rows="6" style="width:330px;height:50px;background-color:transparent;font-size:12px;border:0;overflow-x:hidden; overflow-y:auto;resize:none;" onfocus="this.blur( );">testesste</textarea>
				        <div>
                            <a href="javascript:iAccount.MessageBox_result('ok');"><input type="button" name="btn_ok" id="cookie_ok" value="OK" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="this.className = 'btn';"></a>
                            <a href="javascript:iAccount.MessageBox_result('cancel');"><input type="button" id="btn_cancel" value="Cancel" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="this.className = 'btn'; this.disabled = 'true'"></a>
                        </div>
                    </div>
	            </div>
            </div>

            <div id="PwdExpireNoticeBox" class="popup" style="display:none;">
                <div class="popup-box" style="width:365px; height:auto">
			        <span class="tit">Information</span>
				    <div class="popup-content">
                        <textarea readonly="" id="pwdExpireNoticeMsg" style="width:330px;height:30px;background-color:transparent;font-size:12px;border:0;overflow-x:hidden; overflow-y:auto;resize:none;" onfocus="this.blur( );"></textarea>
                        <div>
				            <a href="javascript:iAccount.PwdExpireNoticeBox_result('cancel');"><input type="button" id="btn_expireNoticeCancel" value="Cancel" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="this.className = 'btn';"></a>
                            <a href="javascript:iAccount.PwdExpireNoticeBox_result('ok');"><input type="button" id="btn_expireNoticeOk" value="OK" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="this.className = 'btn'; this.disabled = 'true'"></a>
                        </div>
	                </div>
                </div>
            </div>

            <div id="LoginAlertBox" class="popup" style="display:none;">
                <div class="popup-box" style="width:365px; height:auto;">
			        <span class="tit">Information</span>
			        <div id="LoginAlertMsgWrapper" class="popup-content">
					    <textarea readonly="" id="LoginAlertMsg" class="popup-alert-textarea" onfocus="this.blur( );"> tests st e s</textarea>
                        <div>
				            <a href="javascript:iAccount.MessageBox_result_IHP('ok');"><input type="button" name="btn_ok" id="btn_loginAlertBoxOk" value="OK" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="this.className = 'btn';"></a>
                            <a href="javascript:iAccount.MessageBox_result_IHP('cancel');"><input type="button" id="btn_loginAlertBoxCancel" value="Cancel" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="this.className = 'btn'; this.disabled = 'true'"></a>
                        </div>
                    </div>
	            </div>
            </div>

            <div id="LoginErrorMsgBox" class="popup" style="display:none;">
                <div class="popup-box" style="width:365px; height:auto;">
			        <span class="tit">Information</span>
                    <div class="popup-content">
					   <textarea readonly="" id="loginErrorMsg" style="width:330px;height:30px;background-color:transparent;font-size:12px;border:0;overflow-x:hidden; overflow-y:auto;resize:none;" onfocus="this.blur( );"></textarea>
                        <div>
				            <input type="button" onclick="document.getElementById('LoginErrorMsgBox').style.display = 'none'; document.getElementById('Blind_alt').style.display = 'none';" value="OK" class="btn" onmouseout="this.className='btn'">
                        </div>
                    </div>
	            </div>
            </div>

            <!-- spec check error box -->
            <div id="checkBox" class="popup" style="display:none;">
                <div class="popup-box" style="width:365px;height:auto;">
			        <span class="tit">Information</span>
					<div class="popup-content">This browser is not supported.</div>
	            </div>
            </div>
 
            <!-- loading box -->
            <div id="LoadingBox" class="popup" style="display:none;">
                <div class="popup-box" style="width:365px; height:auto;">
	                <span class="tit">Information</span>
					<div class="popup-content">Please wait...Checking for your ID</div>
	            </div>
            </div>
            <!-- -->

            <!-- catch error box -->
            <div id="catchBox" class="popup" style="display:none;">
                <div style="width:330px; height:217px;" class="popup-box">
	                <center>
		                <table class="popup_box2" style="width:330px; height:217px;" border="0">
			                <tbody><tr class="tit">
			                    <td align="left" valign="bottom">
                                    <input type="text" id="infom" readonly="readonly" style="font-weight:bold; margin-top:5px; margin-left:10px; border:0px; background-color:transparent; color:#fff;">
			                    </td>
			                </tr>
			                <tr style="height:55px;">
				                <td align="center" valign="top" style="padding-top:13px;">
					                <textarea readonly="" id="Msg" rows="6" style="width:290px;height:110px;background-color:transparent;font-size:12px;color:#c8d4df;border:0;overflow-x:hidden; overflow-y:auto;resize:none;" onfocus="this.blur( );"></textarea>
				                </td>
			                </tr>
			                <tr>
				                <td style="height:40px;" align="center" valign="top">
				                    <input type="button" name="btn_ok" id="idOK" value="OK" class="btn" style="border:0px; width:70px; height:27px;" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="MessageBox('ok');">
                                </td>                            			 
			               </tr>
		                </tbody></table>
	                </center>
	                </div>
                </div>
		    </div>
	    </div>

    <form name="EXIInfo" method="post" action="">
	    <input name="MODE" type="hidden" value="">
	    <input name="TYPE" type="hidden" value="">
	    <input name="LID" type="hidden" value="">
	    <input name="SESSIONKEY" type="hidden" value="">
	    <input name="PID" type="hidden" value="">
        <input name="NM" type="hidden" value="">
	    <input name="AN" type="hidden" value="">
        <input name="SKEY" type="hidden" value="">
        <input name="STUID" type="hidden" value="">
   </form> 

<!--   footarea   -->
    <div class="footer-line"></div>
	<div id="FootArea">
        <table class="footer-info">
            <tbody><tr>
                <td>
                    <img class="ce-ec-ref" src="/Assets/Image/login/ic_ce_manufac_ec.png" alt="">
                </td>
                <td>
                    <span class="footer-title footer-bold">Manufacturer<br>Europe.Representative</span>
                </td>
                <td>
                    <span class="footer-bold">: INFINITT Healthcare Co., Ltd.</span>
                    <span> / 12F DAERUNG POST TOWER III, 27 DIGITAL-RO 34-GIL, GURO-GU, SEOUL, 08378, SOUTH KOREA<br>
                    : Obelis s. a. Avenue de Tervuren 34 Bte 44 B-1040 Brussels, Belgium</span>
                </td>
                <td>
                    <img class="ifu" src="/Assets/Image/login/ic_ifu.png">
                </td>
            </tr>
        </tbody></table>
	</div>
</div>
<div id="open_manual"><button type="button" id="btn_manual" title="Manual"></button></div>
<div id="touch_mode" style="right:13px;bottom:80px;position:absolute;display:none;"><button type="button" id="btn_touchmode" title="Touch Mode">Touch Mode</button></div>


<div style="display:none;"><input id="input_use_2fa" type="text" value="N"></div>
<div style="display:none;"><input id="input_auth_server_base_url" type="text" value="http://10.10.40.102/IBP.AuthorizationServer"></div>

<div id="duo_popup">
    <iframe id="duo_main_iframe" title="Two-Factor Authentication" frameborder="0" src="/login/MFAPage"></iframe>
    <div id="duo_cloasbtn" title="" onclick="Close_MFAPopup()"></div>
</div>

<div id="okta_enroll_popup" class="okta_enroll_popup_hide">
    <div class="okta_title"><span>OKTA Verify</span></div>
    <div class="okta_subtitle"><span>Select authentication type</span></div>
    <div class="okta_container">
        <div id="push_btn">
            <input type="button" id="Okta_PushVertify" onclick="Click_PushVerify();" value="Verify push" class="btn" onmouseout="this.className='btn'">
        </div>
    

        <div id="okta_or" class="okta_subtitle"><span>or</span></div>
        <div id="code_container">
            <div id="number_input">
                <input type="number" id="MFACodeInput">
            </div>
            <div id="code_btn">
                <input type="button" id="Okta_CodeVertify" onclick="Click_CodeVerify();" value="Verify Code" class="btn" onmouseout="this.className='btn'">
            </div>
        </div>
    </div>
    
    <div class="okta_close_popup" onclick="Close_Enroll_OKTAPopup();"></div>
</div>

<div id="okta_SecretCode_popup">
    <div class="okta_title"><span>OKTA Verify</span></div>
    <div class="okta_subtitle"><span>Secret Code Activation</span></div>
    <div class="okta_container2">

        <div id="desc_secretcode">
            <span>Enter your Okta Account username and enter the following in the Secret Key Field</span>
        </div>
        <div id="secret_code">
            <span id="sc_number"></span>
        </div>

        <div id="desc_active_secretcode">
            <span>Enter code displayed from the application</span>
        </div>

        <div id="code_active_container">
            <div id="secretcode_input">
                <input type="number" id="SecretCodeInput">
            </div>
            <div id="secretcode_btn">
                <input type="button" id="SecretCodeVertify" onclick="ActiveSecretCode();" value="Active Account" class="btn" onmouseout="this.className='btn'">
            </div>
        </div>
    </div>
    <input type="hidden" id="sc_factorID">
    <input type="hidden" id="sc_stateToken">
    <input type="hidden" id="vc_mobileCode" value="">
    <div class="okta_close_popup" onclick="Close_SecretPopup();"></div>
</div>

<div id="okta_qr_popup">
    <div class="okta_title"><span>OKTA Verify</span></div>
    <div class="okta_subtitle"><span>Barcode scan</span></div>
    <div class="okta_container">
        <div id="qr_text">
            <span>Launch the OKTA Verify application on your mobile device and select Add Account.</span>
        </div>
        <div id="qr_image">
            <img id="qrcode" src="" width="200" ,="" height="200">
            <span onclick="getEnrollSecretCode();">Don't Scan QRCode</span>
        </div>
    </div>
    <div class="okta_btn_container">
        <input type="button" id="VerifyButton" onclick="Close_OKTAPopup(); Open_Enroll_OKTAPopup('OKTA_PUSH');" value="Open Verify" class="btn" onmouseout="this.className='btn'">
    </div>
    <div class="okta_close_popup" onclick="Close_OKTAPopup();"></div>
</div>
        

</body></html>