function openmodelchild( sDocKey, sType, sWidth , sHeight, sBack, sCurrency ) { var thisFile = '/toshiba/product.nsf' var theURL = thisFile + '/WebLookupDocUnique/' + sDocKey + '?OpenDocument'; var winName = 'popup_' + sType ; var features = 'resizable=yes,scrollbars=yes,width=' + sWidth + ',height=' + sHeight; if ( sType == 'RecommendedOptions' ) { theURL += '&type=recommend&key='+ sDocKey; } if ( sCurrency != null ) { theURL += '&country=' + sCurrency; } win = window.open(theURL,winName,features); if( parseInt(navigator.appVersion) >= 4 ) { win.window.focus(); } } function openproductdialog( sDocKey, sType, sWidth , sHeight, sBack, sCurrency ) { var thisFile = '/toshiba/product.nsf' var theURL = thisFile + '/WebLookupDocUnique/' + sDocKey + '?OpenDocument'; var winName = 'popup_' + sType ; var features = 'scrollbars=yes,width=' + sWidth + ',height=' + sHeight; if ( sCurrency != null ) { theURL += "¤cy=" + sCurrency } win = window.open(theURL,winName,features); if( parseInt(navigator.appVersion) >= 4 ) { win.window.focus(); } } function opendialog( sDocKey, sType, sWidth , sHeight ) { var theURL = '../popup/' + sDocKey + '?OpenDocument&action=frame'; var winName = 'popup_' + sType ; var features = 'scrollbars=yes,width=' + sWidth + ',height=' + sHeight; win = window.open(theURL,winName,features); if( parseInt(navigator.appVersion) >= 4 ) { win.window.focus(); } } function FrameExists(TargetFrame) { var j=parent.frames.length; for (var i=0;i
(Exc.VAT @ 17.5%)'; return( sPrice ) } else if ( sEuro == '-' ) { sPrice = ' '; return( sPrice ); } else if ( sEuro != '' ) { sPrice = 'Typical Purchase Price: €' + sEuro + '
(Exc.VAT @ 21%)'; return( sPrice ); } else { sConverted = convertPounds( 'euro', cPrice ); sPrice = 'Typical Purchase Price: ' + sConverted + '
(Exc.VAT @ 21%)'; return( sPrice ) } } function convertCurrency( cPrice , iRate ) { if ( cPrice == '' ) { return (0); } if ( iRate == '' ) { return (0); } var cValue; cValue = ( cPrice * iRate ) * 100; cValue = ( Math.round( cValue ) / 100 ) + 0.001 var cNewValue = new String( cValue ) var iPos = cNewValue.indexOf( '.' ); var fixed = cNewValue.substring( 0, iPos + 3 ); if ( fixed.indexOf( '.' ) == -1 ) { fixed += '.00'; } return ( fixed ); }; function convertPounds( sCurrency, cPrice ) { var iEuroRate = 1.5; var iValue = 0; switch ( sCurrency ) { case ( 'euro' ) : sSymbol = '€'; iValue = convertCurrency( cPrice , iEuroRate ) ; break; } if ( iValue > 0 ) { return( sSymbol + Math.floor( iValue ) ); } else { return( '' ); } }