function openwindow(theURL,winName,options) {  if (options == 'speaking') features='height=430,width=550,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,top=0,left=0';  if (options == 'watchlist') features='height=500,width=600,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,top=0,left=0';  if (options == 'largead') features='height=440,width=600,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,top=0,left=0';   if (!win || win.closed){      var win = window.open(theURL, '',features);      }   else if (win.document.URL.indexOf(theURL) != -1) {        win.focus();    }   else  win.location=theURL;     win.focus();}function changeclass(id, newClass)//put into global js file	{	var identity=document.getElementById(id);	identity.className=newClass;	}function makeprice(x) {	return r2(x);		// finding a way of rounding correctly in javascript seemed almost impossible	// I tried many documented ways, including toFixed and various other solutions	// but all failed on this basic rouding scenario:	// 17.955 would round to 17.95 not 17.96	// yet, 27.855 would correctly round to 27.86 !!?!?	}function r2(n) {  // from http://gwydir.demon.co.uk/jo/javascript/numbers.htm#round2  ans = n * 1000   ans = Math.round(ans /10) + ""   while (ans.length < 3) {ans = "0" + ans}   len = ans.length   ans = ans.substring(0,len-2) + "." + ans.substring(len-2,len)  return ans } 
