1/* 2 * Copyright (c) 1995-2005 Macromedia, Inc. All rights reserved. 3*/ 4// $Revision: 1.49 $ 5// Vars 6Vars = function(qStr) { 7 this.numVars = 0; 8 if(qStr != null) { 9 var nameValue, name; 10 var pairs = qStr.split('&'); 11 var pairLen = pairs.length; 12 for(var i = 0; i < pairLen; i++) { 13 var pair = pairs[i]; 14 if( (pair.indexOf('=')!= -1) && (pair.length > 3) ) { 15 var nameValue = pair.split('='); 16 var name = nameValue[0]; 17 var value = nameValue[1]; 18 if(this[name] == null && name.length > 0 && value.length > 0) { 19 this[name] = value; 20 this.numVars++; 21 } 22 } 23 } 24 } 25} 26Vars.prototype.toString = function(pre) { 27 28 var result = ''; 29 if(pre == null) { pre = ''; } 30 for(var i in this) { 31 if(this[i] != null && typeof(this[i]) != 'object' && typeof(this[i]) != 'function' && i != 'numVars') { 32 result += pre + i + '=' + this[i] + '&'; 33 } 34 } 35 if(result.length > 0) result = result.substr(0, result.length-1); 36 return result; 37} 38getSearch = function(wRef) { 39 40 var searchStr = ''; 41 if(wRef.location.search.length > 1) { 42 searchStr = new String(wRef.location.search); 43 searchStr = searchStr.substring(1, searchStr.length); 44 } 45 return searchStr; 46} 47var lc_id = Math.floor(Math.random() * 100000).toString(16); 48if (this != top) 49{ 50 // Bug Number 66391. Added try catch block while setting the properties Windows.lc_id, Windows.getSearch and Windows.Vars to catch the permission denied exception. 51 try 52 { 53 top.Vars = Vars; 54 top.getSearch = getSearch; 55 top.lc_id = lc_id; 56 } 57 catch(e){} 58}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.