function a(t){status=t;return true;} function b(){status='';return true;}
function navto(t){document.location=t.children(0).href;}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  if (selObj.selectedIndex>0){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'")};
  if (restore) selObj.selectedIndex=0;
}

function alternateRowColors() {
	var className = 'default';
	var rowcolor = '#F7F5EE';
	var rows, arow;
	var tables = document.getElementsByTagName("table");
	var rowCount = 0;
	for(var i=0;i<tables.length;i++) {
		if(tables.item(i).className == className) {
			atable = tables.item(i);
			rows = atable.getElementsByTagName("tr");
			for(var j=0;j<rows.length;j++) {
				arow = rows.item(j);
				if(arow.nodeName == "TR") {
					if(rowCount % 2) {
						arow.style.backgroundColor = rowcolor;
					} else {
						// default case
					}
					rowCount++;
				}
			}
			rowCount = 0;
		}
	}
}

function printThis(elementPrint)  {
	var printDiv = elementPrint;
	//alert (elementPrint.name);

	if (document.getElementsByTagName) {
		linkEl = document.getElementsByTagName('link');
		styleEl= document.getElementsByTagName('style');
		}
	printWindow = window.open("","printWindow","left=50,top=50,width=500,height=500,scrollbars=yes,"+"status=yes,resizable=yes");
    printWindow.opener = self;
    d = printWindow.document;
	//Write the printed contents
    d.open();
	d.writeln("<html><head><title>" + document.title + "</title>");
	if (linkEl) {
	  	d.writeln ("<link rel='stylesheet' type='text/css' href='" +linkEl[0].getAttribute('href') + "'/>");
	}
	
	if (styleEl && styleEl.length > 0 ) {
		d.writeln ("<style type='text/css'>" + styleEl[0].innerHTML + "</style>");
	}
	d.writeln("</head><body>");
	d.writeln(printDiv.innerHTML);
	d.writeln("</body></html>");
	
	d.close();
	printWindow.print();
	printWindow.close();
}
