<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_setTextOfTextfield(objName,x,newText) { //v3.0
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}

function popup_window(url){
	myWin=open(url,'TUFFSHED','toolbar=no,scrollbars=yes,location=no,resizable=yes,directories=no,status=no,menubar=yes,width=640,height=400,top=10,left=10');
	myWin.focus();
}
function popup_swatches(url){
	myWin=open(url,'TUFFSHED','toolbar=no,scrollbars=yes,location=no,resizable=yes,directories=no,status=no,menubar=yes,width=510,height=550,top=10,left=10');
	myWin.focus();
}

function tableruler()
{
	if (document.getElementById && document.createTextNode)
	{
		var tables=document.getElementsByTagName('table');
		for (var i=0;i<tables.length;i++)
		{
			if(tables[i].className=='ruler')
			{
				var trs=tables[i].getElementsByTagName('tr');
				for(var j=0;j<trs.length;j++)
				{
					if(trs[j].parentNode.nodeName=='TBODY')
					{
						trs[j].onmouseover=function(){this.className='ruled';return false}
						if (j%2){
							trs[j].onmouseout=function(){this.className='';return false}
						}
						else{
							trs[j].onmouseout=function(){this.className='RowAlt';return false}
						}
						
					}
				}
			}
		}
	}
}
//-->