// JavaScript Document
function open_window(url) {
audio = window.open(url,"popup",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=625,height=725');
if (window.focus) {audio.focus();}
}
function open_window2(url) {
audio = window.open(url,"popup",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=750,height=500');
if (window.focus) {audio.focus();}
}

function changeCaption(text, className) { 
   if(document.getElementById) { 
      document.getElementById("caption").innerHTML=text; 
     document.getElementById("caption").className=className;
	 document.getElementById("orangebox").className='addOrangeBorder';
   } 
} 


function showDetails(cell) {
	//0 to X left to right,top to bottom
   if(document.getElementById) { 
	 	document.getElementById("collateralType").innerHTML="";
	 		var collTemp=collateral[cell].split(",");
			x=0;
			while(x<collTemp.length){
				document.getElementById("collateralType").innerHTML+=(collTemp[x]+'<br />');
				x++;
		}
  } 
}


/*loader=function(){
  if(document.getElementById)
	document.getElementById("caption").innerHTML=defaultName 
 	document.getElementById("orangebox").className='addOrangeBorder';
;
}*/