// Path of the Master database: var DBNameHTML = "/clients/Isolectra/isolectrawebsite.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 openCallme( telnr ) { if ( telnr ) { var oContentFrame = parent.document; oContentFrame.location = '/clients/isolectra/isointeract.nsf/f0001BBA1?OpenForm&ParentUNID=ACD365046CE7AF08C12570930043D15B&telnr='+telnr; } } function openSearch( sQuery ) { if ( sQuery ) { var oContentFrame = parent.document; oContentFrame.location = DBNameHTML_C + '/v01013/SearchResults?opendocument&ctxSearchResults1=(query='+sQuery+')'; } } function openSearchEcat( sQuery ) { if ( sQuery ) { var oContentFrame = parent.document; oContentFrame.location = '/clients/Isolectra/products.nsf/ProductByIdSearch?searchview&Query='+sQuery+'*&SearchOrder=4'; } } function checkEnterCallme(e) { var keynum; var keychar; if(window.event) // IE { keynum = event.keyCode; } else // Netscape/Firefox/Opera { keynum = e.keyCode; } if( keynum == 13 ) openCallme( document.getElementById('telnr').value ); } function checkEnter(e) { var keynum; var keychar; if(window.event) // IE { keynum = event.keyCode; } else // Netscape/Firefox/Opera { keynum = e.keyCode; } if( keynum == 13 ) openSearch( document.getElementById('Searchfield').value ); } function checkEnterEcat(e) { var keynum; var keychar; if(window.event) // IE { keynum = event.keyCode; } else // Netscape/Firefox/Opera { keynum = e.keyCode; } if( keynum == 13 ) openSearchEcat( document.getElementById('ecatalogusfield').value ); } function EmptyFieldCallme( oInput ) { if( oInput.value == "uw telefoonnummer" ) oInput.value = ""; } function checkContentCallme( oInput ) { if( oInput.value == "" ) oInput.value = "uw telefoonnummer"; } function sizeBoxes() { try{ var Div1 = document.getElementById('box1_1'); var Div2 = document.getElementById('box1_2'); var Div1Height = Div1.offsetHeight; var Div2Height = Div2.offsetHeight; if (Div1Height > Div2Height) { Div2.style.height = Div1Height; } else { Div1.style.height = Div2Height; } Div1 = document.getElementById('box2_1'); Div2 = document.getElementById('box2_2'); Div1Height = Div1.offsetHeight; Div2Height = Div2.offsetHeight; if (Div1Height > Div2Height) { Div2.style.height = Div1Height; } else { Div1.style.height = Div2Height; } Div1 = document.getElementById('box3_1'); Div2 = document.getElementById('box3_2'); Div1Height = Div1.offsetHeight; Div2Height = Div2.offsetHeight; if (Div1Height > Div2Height) { Div2.style.height = Div1Height; } else { Div1.style.height = Div2Height; } } catch(e){} } function getWindow(type) { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } if (type == 'width') return myWidth; else return myHeight; };