/* @@@BUILDINFO@@@ st05LocalURL.jsx 466 16-March-2007 */ /************************************************************************* * * ADOBE CONFIDENTIAL * ___________________ * * Copyright 2005 Adobe Systems Incorporated * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Adobe Systems Incorporated and its suppliers, * if any. The intellectual and technical concepts contained * herein are proprietary to Adobe Systems Incorporated and its * suppliers and may be covered by U.S. and Foreign Patents, * patents in process, and are protected by trade secret or copyright law. * Dissemination of this information or reproduction of this material * is strictly forbidden unless prior written permission is obtained * from Adobe Systems Incorporated. **************************************************************************/ if( ( stockphoto.timeKeeperOn != undefined )&&( stockphoto.timeKeeperOn ) ) { stockphoto.timeKeeper.st05LocalURL = {}; stockphoto.timeKeeper.st05LocalURL.StTime = new Date(); } stockphoto.LocalURL={}; stockphoto.LocalURL.CheckEachField=function( szK, iszV, n ) { var bNumeric=true, chFirst=' ', nNum=0, p=0.1, v=0, k=0, s=1, u, ch, j, szW, szV; bNumeric=true; chFirst=' '; nNum=0; p=0.1; v=0; k=0; s=1; if( ( szK=="" )||( iszV=="" ) ) { return( "" ); } ch = iszV.charAt(0); // digitally signed items must be treated as strings (not numbers) - rwe if( szK == "Price" || szK == "MediaID" || szK == "PurchaseID") { bNumeric = false; szV = iszV; } else if( ( ch == '"' )||( ch == "'" ) ) { szV = iszV.substring( 1, ((iszV.length)-1) ); bNumeric = false; } else { szV = iszV; for( j=0; j= '0' )&&( ch <= '9' ) ) { u = szV.charCodeAt(j) - 0x30; if( k != 0 ) { v = v + ( p * u ); p = 0.1 * p; } else v = ( 10 * v ) + u; if( chFirst == ' ' ) { chFirst = ch; } } else { if( ch == '-' ) { s = -1; } else { if( ch != '.' ) { bNumeric = false; break; } k++; } } } } if( ( bNumeric )&&( chFirst != '0' )&&( chFirst != ' ' ) ) { szW = v * s; } else { szW = '"'+szV+'"'; } if( n <= 0 ) { return( "\n"+szK+": "+szW ); } return( ",\n"+szK+": "+szW ); } stockphoto.LocalURL.AnalyzeURLstring=function( isrcStr, srcStr, doc_id ) { var reqStr, srcStr, nsrcStr, i, iSt, ch, szK, szV, n, x, args={}; reqStr = "args={"; nsrcStr = srcStr.length; iSt = -1; szK = ""; szV = ""; n = 0; x = ""; for( i=1; i= '0' )&&( ch <= '9' ) ) { v = ( 10 * v ) + ( szLoadNo.charCodeAt(i) - 0x30 ); } else { if( ( v > 0 )&&( v < stockphoto.DL.DemandLoadJSXTable.length ) ) { stockphoto.DL.demandJsxLoading( v ); } v = 0; } } } var cmdLine; cmdLine = "stockphoto."+args.call+"( args );\n"; eval( cmdLine ); } if( ( stockphoto.timeKeeperOn != undefined )&&( stockphoto.timeKeeperOn ) ) { stockphoto.core.util.edTime( stockphoto.DL.jsx_LocalURL ); }