var naicArray = new Array(50);
var naicIndex = 0;
var sicArray = new Array(50);
var sicIndex = 0;
var tickerArray = new Array(50);
var tickerIndex = 0;
var subjectArray = new Array(50);
var subjectIndex = 0;
var paperKeywordArray = new Array(50);
var paperKeywordIndex = 0;
var advisorArray = new Array(50);
var advisorIndex = 0;
var meshArray = new Array(50);
var meshIndicatorArray = new Array(50);
var meshIndex = 0;
var generateMoreLikeThis = false;
var absoluteDatabaseName = null;
var requestString = null;
var naicsExist = false;
var sicExist = false;
var tickerExist = false;
var tickerName = ' ';
var naicsName = ' ';
var sicName = ' ';
var subjectName = ' ';
var meshName = ' ';
function setTickerName(name) {
tickerName = name;
}
function setNaicsName(name) {
naicsName = name;
}
function setSicName(name) {
sicName = name;
}
function setSubjectName(name) {
subjectName = name;
}
function setMeshName(name) {
meshName = name;
}
function addSubject(sub) {
//alert('adding subject '+sub+' Index '+subjectIndex);
// Check to see if there is any repetition
//alert("Entered subject: " + sub);
for ( i =0 ; i < subjectIndex; i++ ) {
//alert('ARRAY VALUE ['+subjectArray[i]+'] sub value ['+sub+']');
if ( subjectArray[i] == sub )
return;
}
subjectArray[subjectIndex++] = sub;
}
function addMesh(sub, ind) {
for ( i =0 ; i < meshIndex; i++ ) {
if ( meshArray[i] == sub )
return;
}
meshArray[meshIndex++] = sub;
meshIndicatorArray[meshIndex] = ind;
}
function addPaperKeyword(sub) {
for ( i =0 ; i < paperKeywordIndex; i++ ) {
if ( paperKeywordArray[i] == sub )
return;
}
paperKeywordArray[paperKeywordIndex++] = sub;
}
function addAdvisor(sub) {
for ( i =0 ; i < advisorIndex; i++ ) {
if ( advisorArray[i] == sub )
return;
}
advisorArray[advisorIndex++] = sub;
}
function addNaic(sub) {
//alert('adding naic '+sub+' Index '+naicIndex);
// Check to see if there is any repetition
for ( i =0 ; i < naicIndex; i++ ) {
//alert('ARRAY VALUE ['+naicArray[i]+'] sub value ['+sub+']');
if ( naicArray[i] == sub )
return;
}
naicArray[naicIndex++] = sub;
}
function addSic(sub) {
//alert('adding sic '+sub+' Index '+sicIndex);
for ( i =0 ; i < sicIndex; i++ ) {
if ( sicArray[i] == sub )
return;
}
sicArray[sicIndex++] = sub;
}
function addTicker(sub) {
//alert('adding ticker '+sub+' Index '+tickerIndex);
for (i =0 ; i < tickerIndex; i++ ) {
if ( tickerArray[i] == sub )
return;
}
tickerArray[tickerIndex++] = sub;
}
function generateSubjectMLT() {
var str = ' ';
var temp = '';
if ( subjectIndex > 0 ) {
str = str + '
';
str = str + '' + subjectName + ' ';
str = str + '';
for (i = 0 ; i < subjectIndex ; i++ ) {
temp = subjectArray[i];
//alert('Before ='+temp);
temp =stringReplace(temp,'<hHl>','');
temp =stringReplace(temp,'</hHl>',' ');
temp =stringReplace(temp,'','');
temp =stringReplace(temp,' ','');
//alert('After ='+temp);
str = str + ' ';
str = str + temp + '';
if (i != subjectIndex) {
str = str + ' ';
}
}
str = str + ' ' ;
} // end Subject
//alert(str);
document.write(str);
}
function generateMeshMLT() {
var str = ' ';
var temp = '';
if ( meshIndex > 0 ) {
str = str + '';
str = str + '' + meshName + ' ';
str = str + '';
for (i = 0 ; i < meshIndex ; i++ ) {
temp = meshArray[i];
temp =stringReplace(temp,'<hHl>','');
temp =stringReplace(temp,'</hHl>',' ');
temp =stringReplace(temp,'','');
temp =stringReplace(temp,' ','');
//alert('After ='+temp);
str = str + ' ';
str = str + temp + '';
if (i != meshIndex) {
str = str + ' ';
}
}
str = str + ' ' ;
} // end Mesh
document.write(str);
}
function generateSubjectTerms() {
var str = ' ';
if ( subjectIndex > 0 ) {
for (i = 0 ; i < subjectIndex ; i++ ) {
temp = subjectArray[i];
//alert('Before ='+temp);
while(temp.indexOf('') >= 0 || temp.indexOf(' ') >= 0 || temp.indexOf('<hHl>') >= 0 || temp.indexOf('</hHl>') >= 0 )
{
temp =stringReplace(temp,'<hHl>','');
temp =stringReplace(temp,'</hHl>',' ');
temp =stringReplace(temp,'','');
temp =stringReplace(temp,' ','');
}
//alert('After ='+temp);
str = str + '' + temp +' ';
if (i != (subjectIndex -1)) {
str = str + ', ';
}
}
} // end Subject
while(str.indexOf('') >= 0 || str.indexOf(' ') >= 0)
{
str = stringReplace(str, '','');
str = stringReplace(str, ' ','');
}
//alert(str);
document.write(str);
}
function generateMeshTerms() {
var str = ' ';
if ( meshIndex > 0 ) {
for (i = 0 ; i < meshIndex ; i++ ) {
temp = meshArray[i];
while(temp.indexOf('') >= 0 || temp.indexOf(' ') >= 0 || temp.indexOf('<hHl>') >= 0 || temp.indexOf('</hHl>') >= 0 )
{
temp =stringReplace(temp,'<hHl>','');
temp =stringReplace(temp,'</hHl>',' ');
temp =stringReplace(temp,'','');
temp =stringReplace(temp,' ','');
}
//alert('After ='+temp);
str = str + '' + temp +' ';
if(meshIndicatorArray[i+1] == true) {
str = str + " " + majorIndicatorString;
}
if (i != (meshIndex -1)) {
str = str + ', ';
}
}
} // end Mesh
while(str.indexOf('') >= 0 || str.indexOf(' ') >= 0)
{
str = stringReplace(str, '','');
str = stringReplace(str, ' ','');
}
document.write(str);
}
function generatePaperKeywords() {
var str = ' ';
if ( paperKeywordIndex > 0 ) {
for (i = 0 ; i < paperKeywordIndex ; i++ ) {
temp = paperKeywordArray[i];
//alert('Before ='+temp);
while(temp.indexOf('') >= 0 || temp.indexOf(' ') >= 0 || temp.indexOf('<hHl>') >= 0 || temp.indexOf('</hHl>') >= 0 )
{
temp =stringReplace(temp,'<hHl>','');
temp =stringReplace(temp,'</hHl>',' ');
temp =stringReplace(temp,'','');
temp =stringReplace(temp,' ','');
}
//alert('After ='+temp);
str = str + '' + temp +' ';
if (i != (paperKeywordIndex -1)) {
str = str + ', ';
}
}
} // end Subject
while(str.indexOf('') >= 0 || str.indexOf(' ') >= 0)
{
str = stringReplace(str, '','');
str = stringReplace(str, ' ','');
}
//alert(str);
document.write(str);
}
function generateAdvisors() {
var str = ' ';
if ( advisorIndex > 0 ) {
for (i = 0 ; i < advisorIndex ; i++ ) {
temp = advisorArray[i];
//alert('Before ='+temp);
while(temp.indexOf('') >= 0 || temp.indexOf(' ') >= 0 || temp.indexOf('<hHl>') >= 0 || temp.indexOf('</hHl>') >= 0 )
{
temp =stringReplace(temp,'<hHl>','');
temp =stringReplace(temp,'</hHl>',' ');
temp =stringReplace(temp,'','');
temp =stringReplace(temp,' ','');
}
//alert('After ='+temp);
str = str + '' + temp +' ';
if (i != (advisorIndex -1)) {
str = str + ', ';
}
}
} // end Subject
while(str.indexOf('') >= 0 || str.indexOf(' ') >= 0)
{
str = stringReplace(str, '','');
str = stringReplace(str, ' ','');
}
//alert(str);
document.write(str);
}
function generateSubjectTermsPrint() {
//alert('here');
var str = ' ';
if ( subjectIndex > 0 ) {
//alert('here');
for (i = 0 ; i < subjectIndex ; i++ ) {
//alert('here1');
temp = subjectArray[i];
//alert('Before ='+temp);
temp =stringReplace(temp,'<hHl>','');
temp =stringReplace(temp,'</hHl>',' ');
temp =stringReplace(temp,'','');
temp =stringReplace(temp,' ','');
//alert('After ='+temp);
str = str +temp;
// alert('here2');
if (i != (subjectIndex - 1)) {
str = str + ', ';
}
}
} // end Subject
//alert(str);
document.write(str);
}
function generatePaperKeywordsPrint() {
//alert('here');
var str = ' ';
if ( paperKeywordIndex > 0 ) {
//alert('here');
for (i = 0 ; i < paperKeywordIndex ; i++ ) {
//alert('here1');
temp = paperKeywordArray[i];
//alert('Before ='+temp);
temp =stringReplace(temp,'<hHl>','');
temp =stringReplace(temp,'</hHl>',' ');
temp =stringReplace(temp,'','');
temp =stringReplace(temp,' ','');
//alert('After ='+temp);
str = str +temp;
// alert('here2');
if (i != (paperKeywordIndex - 1)) {
str = str + ', ';
}
}
} // end Subject
//alert(str);
document.write(str);
}
function generateNSTMLT() {
var str = ' ';
if ( tickerIndex > 0 ) {
str = str + '';
str = str + '' + tickerName + ' ';
str = str + '';
for (i = 0 ; i < tickerIndex ; i++ ) {
str = str + ' ';
str = str + tickerArray[i] + '';
if (i != tickerIndex) {
str = str + ' ';
}
}
str = str + ' ' ;
} // end ticker
if ( naicIndex > 0 ) {
str = str + '';
str = str + '' + naicsName + ' ';
str = str + '';
for (i = 0 ; i < naicIndex ; i++ ) {
str = str + ' ';
str = str + naicArray[i] + '';
if (i != tickerIndex) {
str = str + ' ';
}
}
str = str + ' ' ;
} // end NAICS
if ( sicIndex > 0 ) {
str = str + '';
str = str + '' + sicName + ' ';
str = str + '';
for (i = 0 ; i < sicIndex ; i++ ) {
str = str + ' ';
str = str + sicArray[i] + '';
if (i != tickerIndex) {
str = str + ' ';
}
}
str = str + ' ' ;
} // end SIC
//alert(str);
document.write(str);
}
var ns6=document.getElementById&&!document.all?1:0
var head="display:''"
var folder=''
function expandit(curobj){
folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}
function ltrim ( s )
{
return s.replace( /^\s*/, "" );
}
function rtrim ( s )
{
return s.replace( /\s*$/, "" );
}
function trim ( s )
{
return rtrim(ltrim(s));
}
function setRequestString(str) {
requestString = str;
}
function searchMoreLikeThis() {
var isFirst = true;
var qString = ' ';
if ( document.article.moreLikeThis.length ) {
for ( i =0 ; i ') >= 0 || str.indexOf('') >= 0)
{
str = stringReplace(str, '','');
str = stringReplace(str, ' ','');
}
str = stringReplace(str, '<', ' ');
str = stringReplace(str, '>', ' ');
str = stringReplace(str, 'hHl', ' ');
str = stringReplace(str, '/hHl', '');
str = stringReplace(str, ',,', ',');
str = stringReplace(str, ', ,', ',');
str = stringReplace(str, ' ', ' ');
// Do it twice just so that if we have " ,"
str = stringReplace(str, ' ,',',');
str = stringReplace(str, ' ,',',');
//alert("returning from stripstrings: " + str);
return str;
}
function searchSideWays(sf, str) {
//alert("ssw entered: " + str);
str = stripStrings(str, true);
//alert("after stripStrings: " + str);
document.article.SQ.value = sf + '(' + str + ')';
//alert("SearchSideWays sq.value: " + document.article.SQ.value);
document.article.submit();
return false;
}
function stringReplace(str1, str2, str3) {
//alert("Entered stringReplace: " + str1 + "|"+ str2 + "|" + str3);
if(str2 == "(" || str2 == ")" || str2 == "[" || str2 == "]")
{
str1 = str1.split(str2).join(str3); //<-- SLOW
// This doesn't work in netscape
while(str1.indexOf(str2) != -1) {
//alert("replacing: " + str2);
str1 = str1.replace(str2, str3);
}
}
else
{
str1 = str1.replace(str2, str3);
}
//str1 = str1.split(str2).join(str3); //<-- SLOW
// This doesn't work in netscape
//while(str1.indexOf(str2) != -1) {
// str1 = str1.replace(str2, str3);
//}
//alert("Returning from stringReplace: " + str1);
return str1;
}
function doTranslation(baseLocation)
{
// var baseLocation = "/pqdweb?rqt=500&pageName=artranswait.vtpl";
var translationLang = document.article.translang.options[document.article.translang.selectedIndex].value;
if(translationLang == "#")
{
return;
}
var transLocation = baseLocation + "&tw=1";
transLocation = transLocation + "&arttran=" + translationLang;
document.location = transLocation;
}