// Path of the Master database: var DBNameHTML = "/clients/yunio/yunio-internet.nsf"; // Path of the current database: var DBNameHTML_C = ""; var sPathName = document.location.pathname; var iNSFPos = sPathName.toUpperCase().indexOf( ".NSF" ); if( iNSFPos == -1 ){ var iSlashPos = sPathName.indexOf( "/", 1 ); DBNameHTML_C = sPathName.substring( 0, iSlashPos ); } else { DBNameHTML_C = sPathName.substring( 0, iNSFPos + 4 ); } function aODC( ) { /* Check if the document is loaded in a Passage CMS Frameset; if not, the document will be reloaded using the MAIN frame definition and the URLs specified in the Button with the given UNID (&BUNID=...) */ if ( !( window.name == "rechts" || window.name == "Frame_EditContent" ) ) { // Using button "1000000 Het Bedrijf" to open the document in a frame context document.location.href = DBNameHTML + "/aODC?OpenAgent&URL=" + document.location.href + "&BUNID=1C524ACDCB690BE3C1256FDB00442B2F"; } } aODC( ); // Laat het kinderwagentje van links naar rechts rijden var iSTARTPOS = -140; var iENDPOS = 250; var iSTEP = 10; var iINTERVAL = 60; var iBuggyPosition = iSTARTPOS; function whatToDo( ) { // Check the URL of the sub navigation frame to see which image should be loaded // http://paco/clients/yunio/yunio-internet.nsf/v9907WRA1?OpenView&Count=1024&RestrictToCategory=main_navigation var oNavigationFrame = parent.frames[ "links" ]; if( oNavigationFrame ) { if( oNavigationFrame.getTopNavigationClicked ) { switch( oNavigationFrame.getTopNavigationClicked() ) { case "SUB_jeugdgezondheidszorg" : moveBuggy( ); break; case "SUB_Kraamzorg" : moveBuggy( ); break; case "U en uw kind" : moveBuggy( ); break; case "SUB_kinderopvang" : showKopjes( ); break; case "SUB_peuterspeelzalen" : showKopjes( ); break; case "SUB_yunio" : showKopjes( ); break; case "SUB_u_en_kind" : // Moet showVliegtuig worden! // showAirplane( ); showKopjes( ); alert("7"); break; default : } // switch } } } function moveBuggy( ) { var oBuggy = document.getElementById( "Buggy" ); if( oBuggy ) { if( iBuggyPosition < iENDPOS ) { oBuggy.style.left = iBuggyPosition; iBuggyPosition = iBuggyPosition + iSTEP; setTimeout( "moveBuggy()", iINTERVAL ); } else { setTimeout( "changeBuggy(DBNameHTML + '/v9906/Buggy/$File/koppie.gif')",iSTEP ); } } } function changeBuggy( sPictureURL ) { var oBuggyImage = document.images[ "buggy" ]; if( oBuggyImage ) { oBuggyImage.src= sPictureURL; } } function showKopjes( ) { var oBuggy = document.getElementById( "Buggy" ); if( oBuggy ) { changeBuggy(DBNameHTML + '/v9906/Buggy/$File/kinderkopjes.gif') oBuggy.style.left = "160px"; } } //function showAirplane( ) { var oBuggy = document.getElementById( "Buggy" ); if( oBuggy ) { changeBuggy(DBNameHTML + '/v9906/Buggy/$File/vliegtuig.jpg') oBuggy.style.left = "160px"; } } function doCheckPC( sProduct ) { // Haal de waarde uit het postcodeveld PC1 en geef deze als parameter // door aan de Postcodecheck-form var oForm = document.forms[0]; var sPC = oForm.PC1.value; if( isNaN( sPC ) || sPC == "" ) { alert( "De postcode is onjuist" ); } else { document.location.href = DBNameHTML_C + "/PC_Check?ReadForm&PC=" + sPC + "&Product=" + escape( sProduct ); // alert( DBNameHTML_C + "/PC_Check?ReadForm&PC=" + sPC + "&Product=" + escape( sProduct ) ); } }