' ); doc.close( ); doc.Submitter.submit( ); } function TranslationContent(stype,category) { HiddenQuerySorted( "Available "+stype+"s for translation", "Available "+stype+"s for translation", "PlainReclist.htm", "TranslationBrochures", "Document Type", stype, "Enable Translation", "yes", "Topic", category, "a.Title", 100 ); /* var doc = OpenNavWindow(0, (category!="")? stype+"s for translation: "+category : stype+"s for translation" ); WriteFormBegin(doc,"SubmitApproval",GetPl("doquery"),WorkGinBase); WriteProgress( doc, "Loading document list" ) WriteHidden( doc, "M1", "Document Type" ); WriteHidden( doc, "V1", stype ); WriteHidden( doc, "M2", "Enable Translation" ); WriteHidden( doc, "V2", "yes" ); if(category != "" ) { WriteHidden( doc, "M3", "Topic" ); WriteHidden( doc, "V3", category ); }; WriteHidden( doc, "ReclistForm", "/GINSolutions/MaintReclist.htm" ); WriteHidden( doc, "UseView", "TranslationBrochures" ); WriteHidden( doc, "MaxResultRecords", "2000" ); WriteHidden( doc, "GIN_RecPerPage", "20" ); doc.SubmitApproval.submit(); */ } function DocApprovalAppl() { var doc = OpenNavWindow(0, "Applications in pending status" ); WriteFormBegin(doc,"SubmitApproval",GetPl("doquery"),"GINAPPL"); WriteProgress( doc, "Loading document list" ) WriteHidden( doc, "M1", "Status" ); WriteHidden( doc, "V1", "'Check In'" ); WriteHidden( doc, "ReclistForm", "/GINSolutions/MaintReclist.htm" ); WriteHidden( doc, "UseView", "DataMaintenance" ); WriteHidden( doc, "MaxResultRecords", "2000" ); WriteHidden( doc, "GIN_RecPerPage", "1000" ); WriteHidden( doc, "__queryhistory", "no" ); WriteHidden( doc, "GIN_EmptyResultMessage", "


There are currently no applications in pending status" ); doc.SubmitApproval.submit(); } function DocApprovalRT() { var doc = OpenNavWindow(0, "DOCUMENTS FOR REVIEW OF TRANSLATION" ); WriteFormBegin(doc,"SubmitApproval",GetPl("doquery"),WorkGinBase); WriteProgress( doc, "Loading document list" ) WriteHidden( doc, "M1", "Status" ); WriteHidden( doc, "V1", "'Review Translation'" ); WriteHidden( doc, "ReclistForm", "/GINSolutions/MaintReclist.htm" ); WriteHidden( doc, "UseView", "DataMaintenance" ); WriteHidden( doc, "MaxResultRecords", "2000" ); WriteHidden( doc, "GIN_RecPerPage", "1000" ); WriteHidden( doc, "__queryhistory", "no" ); doc.SubmitApproval.submit(); } function ListByStatus(statVal) { var doc = OpenNavWindow(0, "Documents in " + statVal + " status" ); WriteFormBegin(doc,"SubmitApproval",GetPl("doquery"),WorkGinBase); WriteProgress( doc, "Loading document list" ) WriteHidden( doc, "M1", "Status" ); WriteHidden( doc, "V1", "'" + statVal+"'" ); WriteHidden( doc, "ReclistForm", "/GINSolutions/MaintReclist.htm" ); WriteHidden( doc, "UseView", "DataMaintenance" ); WriteHidden( doc, "MaxResultRecords", "2000" ); WriteHidden( doc, "GIN_RecPerPage", "1000" ); WriteHidden( doc, "__queryhistory", "no" ); doc.SubmitApproval.submit(); } // ------------------------------------------------------------- from topframe // dummies für ginxplo.js function IS_KSource() { return(0); } function SetClickMode( nr ) { } function SetRestoreY( FrameNr ) {} function Reload() { } function CloseSelectInquiry() { PositionObject("SelectInquiry", -100, -100, -1, -1 ); HideObject("SelectInquiry"); } function STCX() { CloseSelectInquiry(); HideObject("fCListing"); HideObject("fListing"); HideObject("fListingHead"); HideObject("ATHJumper"); CloseThesFinder(); } function SetHelper(h) { wmou(h); TestPopup(h.name);} function BoxBegin( doc, col ) { var boxclass = (col=="white")? "whitebox":(col=="blue")? "bluebox":"graybox"; doc.writeln( '' ); doc.writeln( '' ); doc.writeln( '' ); } function BoxEnd( doc, col ) { doc.writeln( '
' ); } var isNetscape= (navigator.appName =="Netscape")? true : false; var Mainmx; var Mainmy; var CalendarCreate=0; var refFunction=""; var refFieldNr=0; var refArray; var ThesATHList = new Array( ); function mkref(val) { return( '' ); } function SetMxy(e) { if (isNetscape) { Mainmx=e.x; Mainmy=e.y; } else { Mainmx= window.event.x; Mainmy= window.event.y + document.body.scrollTop; }; // alert(Mainmy); } function Calendar( MapToField ) { CloseThesFinder(); if( IsVisibleObject("fListing") ) { HideObject("fListing"); HideObject("fListingHead"); HideObject("ATHJumper"); } if( IsVisibleObject("fCListing") && CalTargetField && CalTargetField == MapToField ) { HideObject("fCListing"); } else { PositionObject("fCListing",Mainmx,Mainmy,180,180); ShowObject("fCListing"); if( CalendarCreate ) CalTargetField = MapToField; else self.PrintCalendar( MapToField, "fCListing", 0, 0, 0 ); document.MainForm.elements[MapToField].focus(); CalendarCreate=1; } } function SelectExportViewWithLocal( localName ) { var doc; var workdefBase = (WorkSpaceBase!="")? WorkSpaceBase : WorkGinBase; doc = OpenNavWindow(0,"EXPORT SEARCH RESULT",exportButtons); doc.clear(); doc.writeln( '' ); WriteFormBegin(doc,"Submitter",GetPl("myGetViews"),WorkGinBase); WriteHidden( doc, "GIN_SKey" , skey ); WriteHidden( doc, "GIN_CmdKey", cmdkey ); WriteHidden( doc, "GIN_Base", workdefBase ); WriteHidden( doc, "WithLocal", localName ); WriteHidden( doc, "Select", "export" ); WriteHidden( doc, "UseCss", MainCss ); WriteProgress( doc, "Loading export views" ) doc.writeln( '' ); doc.close( ); doc.Submitter.submit( ); } function CreateNewsletter(script) { var cd=""; var st="News Item"; var tm=st; var NewW = window.open( "/cgi-bin/"+script+"?GIN_Base="+ginbase+"&GIN_SKey="+skey+"&GIN_CmdKey="+cmdkey, "CreateNewsletter", "width=1010,height=800,scrollbars=1,resizable=1,menubar=1" ); NewW.moveTo(0,0); NewW.focus(); } function SendPDFReport( selCriteria, ReportName, ReportData, targetFormat ) { var NewW; NewW = window.open( "", "Report", "width=1010,height=720,scrollbars=1,resizable=1,menubar=1" ); NewW.document.write( '
' ); NewW.document.writeln('' ); NewW.document.writeln('' ); NewW.document.writeln('' ); WriteHidden( NewW.document, "selCriteria", selCriteria ); WriteHidden( NewW.document, "CartContent", CartContent ); WriteHidden( NewW.document, "ReportName" , ReportName ); WriteHidden( NewW.document, "ReportData" , ReportData ); WriteHidden( NewW.document, "targetFormat" , targetFormat ); WriteHidden( NewW.document, "MainCss" , MainCss ); WriteProgress( NewW.document, "Creating Report " ); NewW.document.write( '
' ); NewW.document.close( ); NewW.focus( ) ; NewW.document.SubmitReport.submit( ); NewW.moveTo(10,10); NewW.focus(); NewW.opener=self; } function StartPDFReport( stype, allowedSelected, allowedAll, ReportName, ReportData, SelectPl, targetFormat ) { var doc; var CartName="Order List"; var CartPieces="Orders"; var CartHTML="ProNetOrder.htm"; var MainCartView='Order Listing'; if( !LoggedIn() ) return; if( SelectPl && SelectPl.length > 0 ) { doc = OpenNavWindow(0,"CREATE REPORT DETAILS: " + ReportName, cartButtons); doc.clear(); doc.writeln( '' ); WriteFormBegin(doc,"Submitter",SelectPl,WorkGinBase); WriteHidden( doc, "CartContent", CartContent ); WriteHidden( doc, "ReportName" , ReportName ); WriteHidden( doc, "ReportData" , ReportData ); WriteHidden( doc, "UseCss", MainCss ); // WriteProgress( doc, "Loading order list" ) doc.writeln( '' ); doc.close( ); doc.Submitter.submit( ); } else if ( CartContent.length==0 ) alert( "You did not select any entries. Search the items you need, select them by clicking 'Select' in the result lists, then call the report again." ); else SendPDFReport(1, ReportName, ReportData, (targetFormat)? targetFormat : "" ); } function DoOpenTh( val, c ) { var what = new Array(); var i; var cnt; var found; if( IsVisibleObject("fListing") && c.length==0 ) { HideObject("fListing"); HideObject("fListingHead"); HideObject("ATHJumper"); if( frames["fListing"].GetThesaurusName && frames["fListing"].GetThesaurusName() == val && frames["fListing"].GetTargetField == "Search_Content_"+refFieldNr ) return; }; for(i=0, found=-1, cnt= ThesATHList.length; i<=cnt && found<0; i+=2 ) if( val == ThesATHList[i] ) found=i; refFunction = "ins"; what[0] = "SelectThesaurus"; what[1] = val; what[2] = "GINElement"; what[3] = "Search_Content_"+refFieldNr; what[4] = "GIN_SKey"; what[5] = skey; what[6] = "GIN_CmdKey"; what[7] = cmdkey; what[8] = "GIN_Base"; what[9] = (WorkSpaceBase.length==0)? WorkGinBase : WorkSpaceBase; what[10] = "OnLoadFunction"; what[11] = "parent.ThArrived()"; what[12] = "UseOtherCss"; what[13] = MainCss; what[14] = "ATHLink"; what[15] = (found>=0)? ThesATHList[found+1] : ""; what[16] = "ATHStart"; what[17] = c; lstOpenListing( "MainForm", "fListing", "Search_Content_"+refFieldNr, 1, "gw:myThesListing", what ); } function ATHJump(c) { var i; var cnt; var found; var doc = frames["fListing"].document; var thnam = frames["fListing"].GetThesaurusName(); for(i=0, found=-1, cnt= ThesATHList.length; i<=cnt && found<0; i+=2 ) if( thnam == ThesATHList[i] ) found=i; doc.clear(); WriteFormBegin(doc,"SubmitLoad", GetPl("myThesListing"), (WorkSpaceBase.length==0)? WorkGinBase : WorkSpaceBase); WriteHidden( doc, "SelectThesaurus", thnam ); WriteHidden( doc, "GINElement", "Search_Content_" + refFieldNr ); WriteHidden( doc, "OnLoadFunction", "parent.ThArrived()" ); WriteHidden( doc, "UseOtherCss", MainCss ); WriteHidden( doc, "ATHLink", (found>=0)? ThesATHList[found+1] : "" ); WriteHidden( doc, "ATHStart", c ); doc.writeln("") doc.close(); doc.SubmitLoad.submit(); } var ThesFoundObject = ""; var ThesSearchValue = ""; var ThesBackedSearch= ""; var ilistFrame = ""; function ThesFinderTest(ref,val) { var i = ref.indexOf(">"); var j = ref.indexOf(""); if(i>0 && j>0 && j>i) ref = ref.substr(i+1,j-i-1); if( ThesMatchCase != 1 ) ref=ref.toLowerCase(); // alert(ref+"=="+val); if( ThesMatchWBegin == 1 ) { if( ref.indexOf(val) == 0 || ref.indexOf("("+val) > 0) return(1); } else { if( ref.indexOf(val) >= 0 ) return(1); }; return(0); } function ThesOpenLevel(node) { var childs; var i; if( !node ) return; // alert("open:"+node.firstChild.name); node.style.display="block"; if(node.firstChild.name != ThesFoundObject) { childs = node.childNodes; for(i=0; i0)? 1 : 0; ThesLastObject = ThesFoundObject; nextmode = ThesNextMode; ThesSearchValue = val; if( ThesMatchCase != 1 ) val = val.toLowerCase(); node = doc.getElementById("GINTMTh"); if( node && ThesFinderParse(doc,node,val,nextmode) == 1 ) { if( ThesFoundObject.length>0 ) { frames["fListing"].SetMark(ThesFoundObject); setTimeout( "markRefocus()", 10); } } else if( ThesBackedSearch=="" && (frames["fListing"].GetATHLast()!= "" || frames["fListing"].GetATHStart()!= "") && frames["fListing"].GetATHStart() != val.substr(0,1) ) { ThesBackedSearch = ThesSearchValue; ATHJump(val.substr(0,1)); } else if( nextmode == 1 && ThesFoundObject.length>0 ) { frames["fListing"].SetMark(ThesFoundObject); setTimeout( "markRefocus()", 10); alert("Not found any more: " + ThesSearchValue); } else alert("Not found: " + ThesSearchValue); return; } function ThesFinder() { PositionObject("dThesFinder", GetObjectLeft("fListing") - GetObjectWidth("dThesFinder"),GetObjectTop("fListing") - 32, -1, -1 ); ShowObject("dThesFinder"); document.MainForm.elements["dThesFindValue"].focus(); } function ThArrived() { var txt; var i; if( 1 || frames["fListing"].GetThesaurusCount() > 20 ) { PositionObject("fListing",780,140,220,480); if( frames["fListing"].GetATHLast() != "" || frames["fListing"].GetATHStart() != "" ) { PositionObject("fListingHead",GetObjectLeft("fListing"),GetObjectTop("fListing")-60,GetObjectWidth("fListing"),60); ShowObject("ATHJumper"); } else { PositionObject("fListingHead",GetObjectLeft("fListing"),GetObjectTop("fListing")-50,GetObjectWidth("fListing"),50); HideObject("ATHJumper"); }; SetObjectText("fListingHeadTitle", frames["fListing"].GetThesaurusName() ); ShowObject("fListingHead"); }; if( ThesBackedSearch.length>0 ) { var doc = frames["fListing"].document; var val = ThesBackedSearch.toLowerCase(); var obj; var node = doc.getElementById("GINTMTh"); ThesBackedSearch = ""; if( node && ThesFinderParse(doc,node,val) == 1 ) { if( ThesFoundObject.length>0 ) frames["fListing"].SetMark(ThesFoundObject); } else alert("Not found: " + ThesSearchValue); } } function openth( t ) { STCX() ; DoOpenTh(t.innerHTML,""); } function cleanTerm(v) { var i; var j; i = v.indexOf(""); if(i>=0 && j>i && v.indexOf("theTerm")0) v = v.substr(0,i); i = v.indexOf("0) v = v.substr(0,i); i = v.toLowerCase().indexOf("1 ) { refFunction = "openth"; lstOpenListing( "MainForm", "fListing", "Search_Content_"+refFieldNr, 1, "", thArray ); } else { DoOpenTh( thArray[0],"" ); } } /* function ListValues( sfieldnr, thArray ) { refFieldNr = sfieldnr; refArray = thArray; ilistFrame = ""; if( !LoggedIn() ) return; if( IsVisibleObject("fCListing") || IsVisibleObject("fListing")) { HideObject("fCListing"); HideObject("fListing"); HideObject("fListingHead"); CloseThesFinder(); SetThesSelHeader(0,0,0,0); }; if( thArray.length>1 ) { refFunction = "openth"; lstSelectList( thArray ); // lstOpenListing( "MainForm", "fListing", "Search_Content_"+refFieldNr, 1, "", thArray ); } else { DoOpenTh( thArray[0],"", "" ); } } */ function tListValues( sfieldnr, thArray ) { ListValues( sfieldnr, thArray ); ilistFrame = "dNavigatorList"; } function ChgPassword(isLDAP) { var doc; STCX(); if(isLDAP==-1) isLDAP = (skey.substr(skey.length-6,6) == "999757")? 1 : 0; if( isLDAP ) LoadToFrameCompound(0,"Change Corporate Directory Password", "", "/Solutions/Gate/myProNet/myProNetPassword", "" ); else LoadToFrameCompound(0,"Change myProNet Password", "", "/Solutions/Gate/myProNet/myProNetPassword", "" ); } function DoHome() { STCX(); ReturnHome(); } function DoOrder() { STCX(); ShowCart(); } function DoPrintOrder() { var doc; var CartName="Order List"; var CartPieces="Orders"; var CartHTML="ProNetOrder.htm"; var MainCartView='Order Listing'; STCX(); if( !LoggedIn() ) return; if ( CartContent.length==0 ) { alert( "Your order list is empty. Search for the items you need and select by clicking 'Order' in the result list. Then click the 'Order' function again." ); return; }; doc = OpenNavWindow(0,"ORDER DETAILS",cartButtons); doc.clear(); doc.writeln( '' ); WriteFormBegin(doc,"Submitter",GetPl("myGINGetCart2"),WorkGinBase); WriteHidden( doc, "CartName", CartName ); WriteHidden( doc, "CartPieces", CartPieces ); WriteHidden( doc, "CartContent", CartContent ); WriteHidden( doc, "CartView", MainCartView ); WriteHidden( doc, "CartHTML", CartHTML ); WriteHidden( doc, "RepMainTemplate", "myProNetOrderListing.htm" ); WriteHidden( doc, "GinUserData_1", WorkGinBase+"::"+MainCartView+"::"+CartHTML+"::"+CartContent ); WriteHidden( doc, "UseCss", MainCss ); WriteHidden( doc, "printsOnly", "1" ); WriteProgress( doc, "Loading order list" ) doc.writeln( '' ); doc.close( ); doc.Submitter.submit( ); } function NewRecord() { STCX(); StartNewRecord(); } function Postings() { STCX(); GetPostings(1); } function Inbox() { STCX(); GetInbox(); } function DoRequest() { STCX(); OpenNewRequest(); } function SetSearchValue(x) { document.MainForm.Search_Content_0.value = x; /// !!!!! } function DoAutoSearch(x) { STCX(); document.Input.SearchValues.value += x; /// !!!!! DoSearch(); } function DoHelp() { STCX(); StartHelpFilm(""); } function GetCart() { alert("Pack&Go not available"); /// !!!!! } function LoginStarted(mode) { /* var doc=document.Input; var nam = "BoxAccount"; var obj= document.getElementById? document.getElementById(nam) : doc.all.nam; if(mode && mode==-1) obj.innerHTML = "Login failed."; else obj.innerHTML = "Login started..."; */ } function SetFocus() { if( IsVisibleObject("FirstQueryBox") ) self.document.MainForm.Search_Content_0.focus(); else if( IsVisibleObject("TopQueryBox") ) self.document.MainForm.top_Search_Content_0.focus(); } function markRefocus() { /* if( IsVisibleObject("dAnimation") || initFocusLock ) return; */ if( IsVisibleObject("dThesFinder") ) document.MainForm.elements["dThesFindValue"].focus(); else SetFocus(); } function LoginDone(mode) { if(mode==1) { // nam = "BoxUnlogged"; // obj= document.getElementById? document.getElementById(nam) : doc.all.nam; // obj.style.visibility="visible"; SetFocus(); } } function undisplayObject( nam ) { var obj = GetObjectRef( nam ); if( obj ) obj.style.display = "none"; } function SetMenuText(txt) { var doc= document.Input; var nam = "NavigationMain"; var obj= document.getElementById? document.getElementById(nam) : doc.all.nam; obj.innerHTML= txt; } function OpenSearchHistory( ) { var doc = OpenNavWindow(0,"PERSONAL SEARCH HISTORY"); doc.clear(); doc.writeln( '' ); WriteFormBegin(doc,"Submitter",GetPl("myGetHistory"),WorkGinBase); WriteHidden( doc, "UseCss", MainCss ); WriteProgress( doc, "Loading history" ) doc.writeln( '' ); doc.close( ); doc.Submitter.submit( ); } function TestSubmit(evt) { var key; if( evt ) key = evt.keyCode ; else key = window.event.keyCode ; if( key == 13 ) { if( skey=="NULL" || skey=="" ) // before login { if( IsVisibleObject("AdditionalLogin") ) { if ( document.MainForm.GINPassword2.value ) submitLogin2(); else document.MainForm.GINPassword2.focus(); } else if ( document.MainForm.GINPassword.value ) submitLogin(); else document.MainForm.GINPassword.focus(); } else if( IsVisibleObject("dThesFinder") ) doThesFinder(); else if(myPortalRunMode.indexOf("-load:")>=0) CustomizedStartSearch(); else if(myPortalRunMode.indexOf("-newforum:")>=0) frames['dNavigatorList'].kwSearchNewForum(); else StartSearch(); return false; }; return true; } document.onkeydown = TestSubmit; function Nothing() { return false; } // ------------------------------------------------------- end of topframe function ClearOrderDeal() { CDOrders=""; PrintOrders=""; } function SetOrderDeal() { var cnt = parseInt( frames["dNavigatorList"].document.RecList.elements["OrderCnt"].value ); var i; CDOrders=""; PrintOrders=""; for(i=1;i<=cnt;i++) { if( frames["dNavigatorList"].document.RecList.elements["Hardcopy"+i] && frames["dNavigatorList"].document.RecList.elements["Hardcopy"+i].value.length>0 ) PrintOrders+=":"+frames["dNavigatorList"].document.RecList.elements["ID"+i].value+"#"+frames["dNavigatorList"].document.RecList.elements["Hardcopy"+i].value; if( frames["dNavigatorList"].document.RecList.elements["CD"+i] && frames["dNavigatorList"].document.RecList.elements["CD"+i].checked ) CDOrders+=":"+ frames["dNavigatorList"].document.RecList.elements["ID"+i].value; } PrintOrders+=":"; CDOrders+=":"; } function GetAllEditOthers() { var cnt = EditTemplateList.length; var i; var h = ""; for(i=0; i=0) return( EditTemplateList[found+2] ); return ( "/GINSolutions/myEdit.htm" ); return ( "/GINSolutions/myEdit.htm" ); return ""; } function GetEditEmbedded(base,stype) { var cnt = EditTemplateList.length; var i; var found=-1; for(i=0; i=0) return( EditTemplateList[found+4] ); return(""); } function GetEditOtherDataTemplate(base,stype) { var cnt = EditTemplateList.length; var i; var found=-1; for(i=0; i=0) return( EditTemplateList[found+3] ); return(""); } function SetEditTemplate(base,stype,editTemplate,dataTemplate,embedded) { var cnt = EditTemplateList.length; var i; var found=-1; for(i=0; i' ); doc.writeln( '' ); doc.writeln( '<'+'/'+'he'+'ad'+'>' ); if( pl.length > 0 ) WriteFormBegin(doc,"SubmitFrame",pl,WorkGinBase); else { WriteFormBegin(doc,"SubmitFrame",GetPl("gethtml"),WorkGinBase); WriteHidden( doc, "fileref", ref ); }; if( getthisSolution ) WriteHidden( doc, "thisSolution", getthisSolution() ); if(arg1 && val1) WriteHidden( doc, arg1, val1); WriteProgress( doc, "Loading form" ) doc.writeln( '' ); doc.close( ); self.MenuT.opener=self; doc.SubmitFrame.submit( ); } function openProdData(msg,arg1,val1) { STCX(); internLoadToFrameArgs( msg, "", (IsIntranet())? "/Solutions/Gate/myProNet/getProNetData" : GetPl("getProNetData"), 0, arg1, val1 ); } function SelectInquiry() { var Mouse_x; var Mouse_y; /* if(myuserFullName!="Andreas Hundt") { DoInquiry(); return; }; */ PositionObject("SelectInquiry", ddWatchx-100, ddWatchy+15, -1, -1 ); ShowObject("SelectInquiry"); } function LoadToFrameCx(title,ref) { var doc; if( IsIntranet() ) { OpenDocument(ref); return; }; self.MenuT = window.open( "", Strippi(title), "width=1000,height=780,scrollbars=1,resizable=1,menubar=1,toolbar=1,statusbar=1" ); doc= self.MenuT.document; doc.writeln( '' ); doc.writeln( '' ); doc.writeln( '<'+'/'+'he'+'ad'+'>' ); WriteFormBegin(doc,"SubmitFrame",GetPl("myHttpGate"),WorkGinBase); WriteHidden( doc, "ref", ref ); if( getthisSolution ) WriteHidden( doc, "thisSolution", getthisSolution() ); WriteProgress( doc, "Loading form" ) doc.writeln( '' ); doc.close( ); self.MenuT.opener=self; doc.SubmitFrame.submit( ); } function focusMoved() { } function init(FromSearch) { var i; var n; if(GetObjectHeight("dHelpText")<0) HideObject("dHelpText"); SetTextBoxes(); initByCss(FromSearch); WorkSpaceID = document.MainForm.elements["CurrentWorkSpace"].value; WorkSpaceBase = document.MainForm.elements["WorkSpaceBase"].value; WorkSpaceFilter = document.MainForm.elements["WorkSpaceFilter"].value; WorkSpaceText = document.MainForm.elements["WorkSpaceText"].value; if(myPortalRunMode.indexOf("-load:")>=0) CustomizedSearchboxInit(); if( self.document.MainForm.CurrentStatusVariable.value == 'ExpertMode' ) { SetObjectText('helpTextBox',''); SetObjectText('CustoRef',''); xHello = 700; yHello = 130; } } function CheckLoginStatus() { if( skey=="NULL" || skey=="" ) { document.MainForm.GINID.focus(); document.MainForm.GINID.select(); } if( LoginStatus=="login failed" ) { SetObjectText("LoginMessage", "LOGIN FAILED
The user ID or password was unknown. Please retry:" ); LoginStarted(-1); ShowObject("AdditionalLogin"); document.MainForm.GINID2.focus(); LoginStatus = ""; } } function firstInit() { var menu=""; var pdata=0; var obj; if( navigator.userAgent.indexOf("Firefox") >= 0 ) // Firefox Lost Cursor Bug 167801 { obj = GetObjectRef("FirstQueryBox"); if( obj ) obj.style.position = "fixed"; }; GIN_Menu_Init ("GINTMnav",1); // 2006-01-26 UFa setReclistSizes(-1); setNavigatorSizes(1); tabCreateTabs(Edges,'DatabaseBoxes',false,"tabStyleNav"); tabCreateTabs(Edges,'GinHeaderTabs',true,"tabStyleNavHeader"); document.MainForm.GIN_Base.value = WorkGinBase; SearchFieldCount = parseInt(document.MainForm.Search_Field_Cnt.value); SearchFieldBoxLines = parseInt(document.MainForm.Search_Field_Boxlines.value); SearchFieldList = document.MainForm.elements["myQueryMapping"].value.split(":::::"); if( skey=="NULL" || skey=="" ) { SetObjectText( "TopCommentsBox", "The content of this site will only be accessible to registered users"); } else if( portalUserShow == "1" ) { utxt = "Hello " + myuserFullName; if( portalUserMsg.length > 0 ) utxt+="
" + portalUserMsg; SetObjectText( "TopCommentsBox", utxt ); /* if( WorkGinBase == "GINPRONET" ) PositionObject( "TopCommentsBox", 560,40,-1,-1 ); else PositionObject( "TopCommentsBox", 710,60,120,-1 ); */ // setTimeout( 'doBlinki()', 2000 ); }; if( NavigatorWidth1024 == 0 ) { NavigatorWidth1024 = GetObjectWidth("dNavigatorList"); NavigatorHeight1024 = GetObjectHeight("dNavigatorList"); ReclistWidth1024 = GetObjectWidth("dRecListFrame"); ReclistHeight1024 = GetObjectHeight("dRecListFrame"); FooterOrgTop = GetObjectTop("dFooter"); }; init(0); VWRUser = (skey.substr(skey.length-6,6) == "999757")? "no":"yes"; CheckLoginStatus(); if( GetObjectRef("dMainDropdown") ) { PositionObject( "dMainDropdown", 586, 114, 210, 30 ); ShowObject( "dMainDropdown" ); }; if( getCartContent ) { setCartContent(document.MainForm.curCartContent.value); setpCartContent(document.MainForm.curpCartContent.value); document.MainForm.curCartContent.value = ""; document.MainForm.curpCartContent.value = ""; }; // CheckFrameSizes(); if( skey!="NULL" && skey!="" && myPortalRunMode.indexOf("openrecs")>=0 ) setTimeout( 'StartSearch(10000,"ISM Repository")', 500 ); } function PrintContent() { var frm = (IsVisibleObject("dRecListFrame"))? "dRecListFrame" : (IsVisibleObject("dNavigatorList"))? "dNavigatorList" : ""; if(frm.length > 0) { document.frames[frm].focus(); document.frames[frm].print(); } else window.print() } function DoLogout() { if(window.location.href.indexOf("https://")==0) window.location.href = "/Solutions/fw/myProNet/"; else if(window.location.href.indexOf("http://mypronet.merckgroup.com")==0) window.location.href = "http://mypronet.merckgroup.com?m=login"; else window.location.href = "/Solutions/fw/myProNet/"; } var prevLoadNr = 0; var prevTime = 0; var prevType = ""; function doTestHistory(nr,from) { var now = new Date(); var tme = now.getTime(); //if(from.indexOf("rl")>=0) //alert(nr+","+from+", prev="+prevLoadNr+","+prevType); //alert(from); if( 1 ) { if( from == "l-progress" ) // könnte von history kommen { if(prevLoadNr+1==nr) // might be forward: use carefully because this could also be fast execution of a query { // alert("forward"); } else if(prevLoadNr==nr+1 || prevLoadNr==nr) // back { if( prevType == "u-reclist" || prevType == "u-order" || prevType == "u-forecast" || prevType == "u-pack") CloseResult(0); } else ; // alert(prevLoadNr+","+nr); } }; prevLoadNr = nr; prevTime = tme; prevType = from; } function checkavail(pnr) { var doc = frames["dcheckavail"].document; if( pnr == "ostat" ) { PositionObject( "dcheckavailtit", 208, 110, 792, 28 ); SetObjectText( "dcheckavailtittxt", "Check order status" ); PositionObject( "dcheckavail", 208, 136, 790, 420 ); ShowObject( "dcheckclose2" ); HideObject( "dcheckclose1" ); } else { PositionObject( "dcheckavailtit", 450, 174, 352, 28 ); SetObjectText( "dcheckavailtittxt", "Check product availability" ); PositionObject( "dcheckavail", 450, 200, 350, 300 ); ShowObject( "dcheckclose1" ); HideObject( "dcheckclose2" ); }; doc.clear(); WriteFormBegin(doc,"SubmitLoad", (pnr=="ostat")? GetPl("myProNetOrderStatus") : GetPl("myProNetAvailability"), (WorkSpaceBase.length==0)? WorkGinBase : WorkSpaceBase); WriteHidden( doc, "pnr", pnr ); doc.writeln("") doc.close(); doc.SubmitLoad.submit(); ShowObject("dcheckavail"); ShowObject("dcheckavailtit"); } function TestHistory(nr,from) { doTestHistory(nr,from); }
 

Last update 2012-05-10 (c) 2012 Merck KGaA, Darmstadt, Germany