
function loadIFrame(urlToLoad) {
      document.write("<tr><td align=center><B>Market Indices</B><br><iframe src="+urlToLoad+" width='350' height='120' scrolling='no' frameborder='1'></iframe></td></tr>");
};


function loadIndices(requestParam) {
       var requestString = "http://hosting.standardandpoors.com/cgi-bin/WebObjects/SNP?action=gotoExtMarketIndices&"+requestParam;
       loadIFrame(requestString);
};

function removeCommas(fieldValue){
// this function is called during the call to the individualhelphints function to strip out any commas in the page numbers.  It works 
// with certain pages that have multiple pages together like the NMS home page.
	var myString=fieldValue;
  	 while (myString.indexOf(",")!=-1)
   	 {
   	var pattern = ",";
  	 var myString = myString.replace(pattern,"");
   	 }
  	//alert(myString);
	return myString;
}

function openWin(strURL,name,winprops) {
	var winname=(name=="")?"newwin":name;
	if(winprops==null) winprops='';
  winchild = window.open(strURL,winname,winprops);
  if(winprops!=""){
    winheight=winprops.match(/height=[0-9]+/i).toString().replace(/height=/i,"");
    winwidth=winprops.match(/width=[0-9]+/i).toString().replace(/width=/i,"");
    winchild.resizeTo(winwidth,winheight);
  }
  winchild.focus();
}
