home *** CD-ROM | disk | FTP | other *** search
- //<BODY>
- //<script language=javascript>
- // JScript ΩεΣ Σδ ΣεΩ≤∞σφ≥α "index.htm"
- // ─α≥α ±≥Γε≡σφφ : 20.10.98
- // ╬±≥αφφ ≡σΣαΩ÷│ :
- // ╧≡Φτφα≈σφφ : ≤∩≡αΓδ│φφ ⌠≡σΘ∞ε∞ contents
- // ├δεßαδⁿφ│ Ωεφ±≥αφ≥Φ (Σε±≥≤∩ Σε Γ±│⌡ τ∞│φφΦ⌡ ≥α Ωεφ±≥αφ≥ τ Σε≈│≡φ│⌡ ⌠≡σΘ∞│Γ ≈σ≡στ parent):
- // c_strParentFile - φατΓα ⌠αΘδα Σαφεπε ΣεΩ≤∞σφ≥α - ∞α║ ταπ≡≤µα≥Φ±ⁿ ∩σ≡°Φ∞
- // c_intDefaultTimeOut - │φ≥σ≡Γαδ ε≈│Ω≤Γαφφ Σδ ±Φφ⌡≡εφ│τα÷│┐
- // c_blnAskUser - ≈Φ τα∩Φ≥≤Γα≥Φ Ωε≡Φ±≥≤Γα≈α ∩≡Φ ΓΦ≈σ≡∩αφφ│ timeout
- // c_strMapPageLocation - Γ│Σφε±φΦΘ ∙δ ⌡ Σε ±≥ε≡│φΩΦ τ εß'║Ω≥ε∞ mapxmap
- // c_intDefaultTimeOut = 500; // ±≥αφΣα≡≥φΦΘ ≥αΘ∞-α≤≥ Σδ ±Φφ⌡≡εφ│τα÷│┐ ⌠≡σΘ∞│Γ
- // ├δεßαδⁿφ│ τ∞│φφ│ :
- // m_strMapPageLocation - ∩εΓφΦΘ °δ ⌡ Σε ±≥ε≡│φΩΦ τ εß'║Ω≥ε∞ mapxmap
- // m_PgDsc - ε∩Φ± ∩ε≥ε≈φε┐ ±≥ε≡│φΩΦ ⌠≡σΘ∞≤ contents
- // m_frmContents - ΓΩατ│ΓφΦΩ φα ⌠≡σΘ∞ contents
- // ╦Φ≥ΓΦφσφΩε ╬. (10.10.98-20.10.98)
-
- var c_strParentFile = "index.htm";
- var c_intDefaultTimeOut = 500;
- var c_blnAskUser = true;
- var c_maxMaps = 1000; // Σ│α∩ατεφ Σδ ID Γ ≥αßδΦ÷│ ε∩Φ±≤ Ωα≡≥
-
- var m_strParentFileLocation = self.location.href;
- m_strParentFileLocation = m_strParentFileLocation.substring(m_strParentFileLocation.length-c_strParentFile.length,0)
- var m_strMapPageLocation = m_strParentFileLocation+c_strMapPageLocation;
- var m_PgDsc = null;
- var m_frmContents;
- var g_strPhotoFile = "";
-
- // * * * * * * * * * * * * * * * Atlas_ReloadContents * * * * * * * * * * * * * * * * * * *
- // ╧≡Φτφα≈σφφ : ╧σ≡σταπ≡≤µα║ ⌠≡σΘ∞ contents. ╟απ≡≤µα║ ∩ε≥≡│ßφ≤ ±≥ε≡│φΩ≤ ≥α
- // ΓΦßΦ≡α║ │φ⌠ε≡∞α÷│■ (Ωα≡≥≤, ≥αßδΦ÷■,...) Σδ Γ│Σεß≡αµσφφ
- // └≡π≤∞σφ≥Φ: a_ID - │Σσφ≥Φ⌠│Ωα≥ε≡ Ωα≡≥Φ, ≥αßδΦ÷│, ≥ε∙ε
- // ╨στ≤δⁿ≥α≥: ⌠≤φΩ÷│ φσ ΓΦτφα≈α║ ≡στ≤δⁿ≥α≥. ╘≤φΩ÷│┐ Atlas_ReloadContentsFrame
- // ≥α Atlas_RedrawContentsFrame ΓΦΩεφ≤■≥ⁿ± α±Φφ⌡≡εφφε, ≥ε∞≤ ≡στ≤δⁿ≥α≥ ΓΦτφα≈α║≥ⁿ±
- // ∩│±δ ταΓσ≡°σφφ Σαφε┐ ⌠≤φΩ÷│┐
- //
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- function Atlas_ReloadContents(a_ID, a_blnFirstTime) {
- if (a_blnFirstTime) {
- if (!a_ID)
- return false;
- m_PgDsc = null; // ∩ε≥ε≈φα ±≥ε≡│φΩα ±≥α║ φσαΩ≥≤αδⁿφε■
- if (! Exec("script_RefreshPageDsc", a_ID)) // ∩│Σπε≥εΓΩα ε∩Φ±≤ ±≥ε≡│φΩΦ
- return false;
- }
-
- if (!IsRegistered("script_IsLoaded")) // script ∩εΓΦφσφ ß≤≥Φ ταπ≡≤µσφΦ∞
- if (a_blnFirstTime) {
- setTimeout("Atlas_ReloadContents(0,false)", c_intDefaultTimeOut);
- return;
- }
- else
- if (c_blnAskUser && confirm ("═σ ΓΣα║≥ⁿ± τα≡σ║±≥≡≤Γα≥Φ Ωα≡≥≤. ╤∩≡εß≤Γα≥Φ ∙σ ≡ατ?")){
- setTimeout("Atlas_ReloadContents(0,false)", c_intDefaultTimeOut);
- return;
- }
- else return false;
-
- if (!Atlas_ReloadContentsFrame())
- return false;
- else return;
- }
-
-
- // * * * * * * * * * * * * * * * Atlas_ReloadContentsFrame * * * * * * * * * * * * * * * * * * * *
- // ╧≡Φτφα≈σφφ : ╧σ≡σταπ≡≤µα║ ±≥ε≡│φΩ≤ ⌠≡σΘ∞≤ contents. ─δ ≥σΩ±≥≤ ταπ≡≤µα║ │φ⌠ε≡∞α÷│■,
- // ─δ Ωα≡≥Φ ταπ≡≤µα║ δΦ°σ mapxmap, ±α∞≤ Ωα≡≥≤ ταπ≡≤µα║ Atlas_RedrawContentsFrame
- // └≡π≤∞σφ≥Φ: a_blnFirstTime - │Σσφ≥Φ⌠│Ωα≥ε≡ ∩σ≡°επε ΓΦΩδΦΩ≤ (Σδ ±Φφ⌡≡εφ│τα÷│┐)
- // ╨στ≤δⁿ≥α≥: true - ∩≡Φ ≤±∩│°φε∞≤ ΓΦΩεφαφφ│, false - φσ ΓΦτφα≈σφΦΘ ≈Φ φσ ≤±∩│°φΦΘ ≡στ-≥.
- //
- //
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- function Atlas_ReloadContentsFrame() {
- m_PgDsc = Exec("script_GetPageDsc"); // ε≥≡Φ∞≤≥Φ ε∩Φ± ∩ε≥ε≈φε┐ ±≥ε≡│φΩΦ (∩εΓΦφσφ ≤µσ ß≤≥Φ)
- if (m_PgDsc.type!="map"){
- m_frmContents.window.location.href = m_PgDsc.src;
- return true;
- }
- if (m_PgDsc.type== "map") {
- if ( !IsRegistered("Contents_IsLoaded"))
- m_frmContents.window.location.href = m_strMapPageLocation;
- Atlas_RedrawContentsFrame(true);// φσ ∩σ≡σΓ│≡ ║∞ ΩεΣΦ ∩εΓσ≡φσφφ - ÷ ⌠≤φΩ÷│ ±α∞α ΓΦτφα≈α║ ≡στ≤δⁿ≥α≥
- return ;
- }
- return;
- }
-
-
- // * * * * * * * * * * * * * * * Atlas_RedrawContentsFrame * * * * * * * * * * * * * * * * * * * *
- // ╧≡Φτφα≈σφφ : ╟απ≡≤µα║ ≥α Γ│Σ∞αδⁿεΓ≤║ Ωα≡≥≤ ≤ ⌠≡σΘ∞│ contents. ─δ │φ°Φ⌡ ΓΦΣ│Γ │φ⌠ε≡∞α÷│┐ Σ│Θ
- // φσ ΓΦΩεφ≤║
- // └≡π≤∞σφ≥Φ: a_blnFirstTime - │Σσφ≥Φ⌠│Ωα≥ε≡ ∩σ≡°επε ΓΦΩδΦΩ≤ (Σδ ±Φφ⌡≡εφ│τα÷│┐)
- // ╨στ≤δⁿ≥α≥: true - ∩≡Φ ≤±∩│°φε∞≤ ΓΦΩεφαφφ│, false - φσ ΓΦτφα≈σφΦΘ ≈Φ φσ ≤±∩│°φΦΘ ≡στ-≥.
- //
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- function Atlas_RedrawContentsFrame( a_blnFirstTime){
- if (m_PgDsc==null)
- return false;
- if (!IsRegistered("Contents_IsLoaded")) // contents ∩εΓΦφσφ ß≤≥Φ ταπ≡≤µσφΦ∞, ≈σΩα║∞
- if ( a_blnFirstTime) {
- setTimeout("Atlas_RedrawContentsFrame(false)", c_intDefaultTimeOut);
- return false;
- }
- else
- if (c_blnAskUser && confirm ("═σ ΓΣα║≥ⁿ± ταπ≡≤τΦ≥Φ Ωα≡≥≤. ╤∩≡εß≤Γα≥Φ ∙σ ≡ατ?")){
- setTimeout("Atlas_RedrawContentsFrame(false)", 2*c_intDefaultTimeOut);
- return false;
- }
- else return false;
-
- if (m_PgDsc.type== "map") {
- mpxMap=Exec("Contents_GetMapX");
- mpxMap.object.AutoRedraw = false;
- Atlas_SetMapXParam(mpxMap, m_PgDsc);
- mpxMap.object.Refresh();
- mpxMap.object.AutoRedraw = true;
- return true;
- }
- return false;
- }
-
- // * * * * * * * * * * * * * * * Atlas_SetMapXParam * * * * * * * * * * * * * * * * * * * *
- // ╧≡Φτφα≈σφφ : ┬±≥αφεΓδ■║ ∩α≡α∞σ≥≡Φ εß'║Ω≥α ≤ ⌠≡σΘ∞│ contents.
- // └≡π≤∞σφ≥Φ: a_mpxMap - ∩ε±Φδαφφ φα εß'║Ω≥ MapX,
- // a_PgDsc - τφα≈σφφ ∩α≡α∞σ≥≡│Γ Σδ Γ±≥αφεΓδσφφ
- // ╨στ≤δⁿ≥α≥: true - ∩≡Φ ≤±∩│°φε∞≤ ΓΦΩεφαφφ│, false - φσ ΓΦτφα≈σφΦΘ ≈Φ φσ ≤±∩│°φΦΘ ≡στ-≥.
- //
- // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- function Atlas_SetMapXParam(a_mpxMap, a_PgDsc){
-
- a_mpxMap.object.GeoSet = a_PgDsc.src;
-
- if (a_PgDsc.MapDataSet!=null && a_PgDsc.MapDataSet!="")
- var l_lrCurrentLayer = mpxMap.Layers(a_PgDsc.MapDataSet);
- else return false;
-
-
- a_mpxMap.Datasets.Add(6,l_lrCurrentLayer,a_PgDsc.MapDataSet);
- a_mpxMap.CurrentTool = 1007;
-
- return true;
- }
-
- function Load() {
- if (!IsRegistered("script_IsLoaded")) {
- if (confirm ("Load:script_IsLoaded is not registered. Wait...")){
- setTimeout("Load()", c_intDefaultTimeOut);
- return;
- }
- else
- return;
- }
- Register (null, "Atlas_ReloadContentsFrame");
- Register (null, "Atlas_ReloadContents");
- m_frmContents = self.frames["contents"];
- return;
- }
-
-
- function UnLoad() {
- if (IsRegistered("script_IsLoaded")||IsRegistered("Contents_IsLoaded")) {
- setTimeout("UnLoad()", c_intDefaultTimeOut);
- return;
- }
- UnRegisterFrame(null);
- }
-
- function errortrap(msg,url,line){
- alert("╧ε∞ΦδΩα JScript: \n\t "+msg);
- return true;
- }
-
- window.onerror=errortrap;
- window.onload=Load;
- window.onunload=UnLoad;
- // end script
- //</script>
- //</BODY></HTML>
-