var DOM = (document.getElementById)?true:false;
var NN = (document.layers)?true:false;
var IE = (document.all)?true:false;
var NN6 = DOM;

function getElement(objname)
{

  if (IE) return document.all[objname];
  if (NN) return getNNElement(null, objname);
  if (DOM) return document.getElementById(objname);
}
function big_pic(x_size,y_size,address,pic_id) 
{
status_str='toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+x_size+',height='+y_size+',top=80,left=80';
win='win'+pic_id;
window.open('/php/big_pic.php?url='+address, win, status_str);
}


function tableruler()
{
	if (document.getElementById && document.createTextNode)
	{
		var tables=document.getElementsByTagName('table');
		for (var i=0;i<tables.length;i++)
		{
			if(tables[i].className=='ss_datatable')
			{
				var trs=tables[i].getElementsByTagName('tr');
				for(var j=0;j<trs.length;j++)
				{
				if(trs[j].cells[0].tagName=='TH')
					{
					var ths=trs[j].getElementsByTagName('th');
					for(var h=0;h<ths.length;h++)
				      {
						ths[h].onmouseover=function(){this.className='ss_sort';return false}
						ths[h].onmouseout=function(){this.className='ss_th';return false}
						
					  }
					 }
					else
					{
					trs[j].onmouseover=function(){if(this.className!='ss_mark') this.className='ss_line';return false}
					trs[j].onmouseout=function(){if(this.className!='ss_mark') this.className='ss_td';return false}
					}
									
				}
			}
		}
	}
}


