
function UpdatePage()
{	
	var srow, drow, i, j;
	var stab = parent.frames[1].document.getElementsByTagName('table')[0];
	var lding = document.getElementById('loading');
	var dtab = document.getElementById('QuoteRutGon');
	
	for (i = 0; i < stab.rows.length; i++)
	{
		srow = stab.rows[i];
		if (i >= dtab.rows.length) 
		{
			drow = dtab.insertRow(i);
			drow.height = 18;
			tasjhas=0;			
			for (j = 0; j < srow.cells.length; j++) 
			{
				var celltmp = parent.frames[1].document.getElementsByTagName('table')[0].rows[i].cells[j].innerHTML;
				if ((j!=3) && (j!=1))
				{
				cell = drow.insertCell(tasjhas);
				tasjhas=tasjhas+1;
				cell.style.width = 40;
				if (j==0) 
				{
					cell.className = 'S';
					cell.style.width = "36px";
				} 
				else if (j==4)
				{
					if (parseFloat(celltmp) == 0)
					{
						cell.className = 'Y';
						cell.style.width = "31px";
					}
					else if (parseFloat(celltmp) > 0)
					{
						cell.className = 'G';
						cell.style.width = "31px";
					}
					else if (parseFloat(celltmp) < 0)
					{
						cell.className = 'R';
						cell.style.width = "31px";
					}
					else
					{
						cell.className = 'Y';
						cell.style.width = "31px";
					}
				}
				else if(j==1)
				{
					cell.className = 'V';
					cell.style.width = "40px";
				}
				else if(j==2)
				{
					cell.className = 'V';
					cell.style.width = "40px";
				}
				else if(j==3)
				{
					cell.className = 'V';
					cell.style.width = "40px";
				}

				if(j==4)
				{
					cell.innerHTML = '' + celltmp.replace("+", "") + '';
					if (cell.innerHTML == '') {
						cell.className = 'Y';
						cell.innerHTML = '0';
					}
				}
				else
				{
					cell.innerHTML = '' + celltmp + '';
				}
				}
			}
		}
	}		
	lding.style.display="none";
}


RefreshMe();
var v = (new Date());
if(v.getHours() >= 7 && v.getHours() <= 11)
{
	setInterval('RefreshMe()', 30000);
}


