<!-- DROPDOWN TEXT - REVEAL/HIDE -->

function toggle(obj) {
// Moz. or IE
var sibling=(obj.nextSibling.nodeType==3)? obj.nextSibling.nextSibling : obj.nextSibling;
// hide or show
if(sibling.style.display=='' || sibling.style.display=='block') {
sibling.style.display='none';
    obj.firstChild.firstChild.data='+';
    }
else {
sibling.style.display='block';
    obj.firstChild.firstChild.data='-';
    }
}
//
function initCollapse() {
var oDT=document.getElementById('content').getElementsByTagName('dt');
for (var i=0; i < oDT.length; i++) {
oDT[i].onclick=function() {toggle(this)};
    var oSpan=document.createElement('span');
    var sign=document.createTextNode('+');
    oSpan.appendChild(sign);
    oDT[i].insertBefore(oSpan, oDT[i].firstChild);
    oSpan.style.fontFamily='monospace';
    oSpan.style.paddingRight='0.5em';
    oDT[i].style.cursor='pointer';
    toggle(oDT[i]);
}
oDT=null;
}


<!-- CHECK ALL -->

var checkflag = "false";
function check(field) {
if (checkflag == "false") {
for (i = 0; i < field.length; i++) {
field[i].checked = true;}
checkflag = "true";
return "Uncheck All"; }
else {
for (i = 0; i < field.length; i++) {
field[i].checked = false; }
checkflag = "false";
return "Check All"; }
}
<!-- INVOKE: <input type=button value="Check All" onClick="this.value=check(this.form.list)">  -->


<!-- PRINT THIS PAGE -->

function varitext(text){
text=document
print(text)
}
<!-- INVOKE: ONCLICK="varitext()"  -->



<!-- EMAIL+LINK  This script opens the default e-mail client, writes a predetermined message into the subject line, and writes the page title and link into the body of the e-mail. -->

/*
function EmailLink(){
window.location = "mailto:"+"?subject=I thought this link might interest you." + "&body="+document.title+"  "+window.location;
}
document.write('<INPUT class="select" TYPE="button" VALUE="E-mail this link to a friend" onClick="EmailLink()"></FORM>')
// struck/commented at per request of D. Stockton (C.J. Raymond 3 Sep 2009)
*/ 


<!-- RANDOM # -->

function getRandom(){
return Math.round(Math.random()*4);
}


<!-- OPEN A POPUP -->

function openWindow(type, url, aname) {

		if (type=="research") {
		// CPK - random number as window name to ensure uniquewindows for research
		window.open(url,getRandom(),'width=650,height=470,left=30,top=30,scrollbars,resizable=yes');
		return false;
		}
		else if (type=="news") {
		// RT - Add scroll bar
		window.open(url,'','width=565,height=470,left=30,top=30,scrollbars,resizable=yes')}
		
		else if (type=="help") {
		fullURL = url + '?' + escape(aname) 
		window.open(fullURL,'','width=650,height=470,left=30,top=30,scrollbars,resizable=yes')}

  		else if (type=="suspend"){
		window.open(url,'suspend','width=350,height=360,left=400,top=100')}
		
		else if (type=="delivery_info"){
		window.open(url,'','width=420,height=350,left=30,top=30')}
		
		else if (type=="events"){
		window.open(url,'','width=565,height=370,scrollbars,left=30,top=30')}
		
		else if (type=="model_portfolio"){
		window.open(url,'','width=650,height=475,left=30,top=30')}
		
		else if (type=="save_form"){
		window.open(url,'','width=370,height=300,left=30,top=30,scrollbars')}
		
		else if (type=="firstcall_defs"){
		window.open(url,'','width=320,height=150,left=30,top=30')}
		
		else if (type=="print"){
		window.open(url,'print','width=360,height=200,left=400,top=100')}
		
		else if (type == "external_links") {
		window.open(url,'','width=775,height=520,left=30,top=30,resizable=yes,scrollbars,status=yes,toolbar=yes,location=yes,directories=yes,menubar=yes')}
		
		else if (type == "sec_filings") {
		window.open(url,'','width=600,height=500,left=30,top=30,resizable=yes,scrollbars,status=yes')}
		
		else if (type == "ratings_definitions") {
		fullURL = url + '?' + escape(aname) 
		//alert(fullURL)
		window.open(fullURL,'','width=420,height=200,left=30,top=30,resizable=no,scrollbars')}
		
		else if (type == "legal_disclaimer") {
		fullURL = url + '?' + escape(aname) 
		window.open(fullURL,'legal','width=420,height=255,left=30,top=30,resizable=no,scrollbars')}
		
		else if (type == "economic_calendar") {
		window.open(url,'','width=565,height=470,left=30,top=30,resizable=yes,status=yes,toolbar=yes,location=yes,directories=yes,menubar=yes')}
		
		//}mod by Myles L. 2009.07.09
		else { 
			return true;
		}
	
	}
	
	function lookupTicker(page) {

	if (is_ie)
		{ 
  		document.quicksearch.lookupcode.value = page 
  		} 
	else if (is_nav) { 
  		document.quickSearchTable.document.quicksearch.lookupcode.value = page 
   		}
	
	window.open("Search?action=popTickerLookup","LookupTicker","height=360,width=350,left=200,top=100,scrollbars=yes,menubar=no,toolbar=no,status=yes")
 }
 function insertDate()
{
	var d=new Date()
	var weekday = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
	var monthname = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
	document.write(weekday[d.getDay()] + ", ")
	document.write(d.getDate() + " ")
	document.write(monthname[d.getMonth()] + " ")
	document.write(d.getFullYear())

}

