function genTabs(linkArray, nameArray, tabSelected) {	// this function generates a number of tabs	// classes that must be defined in the stylesheet: tbs, tabLeft, tabBody, tabRight, tablink	// updated by Eva V 2008-02-05	var tabAll = '';	var selText = '';	var selected = 'Selected';	// start the containing DIV	document.writeln('<div id="tabs">');			// calculate tab contents, highlight the selected tab	for (var i = 0; i < linkArray.length; i++){			selText = '';			if (isNaN(tabSelected)) {  if (tabSelected == nameArray[i]) { selText = selected }  		} else {	if (tabSelected == i + 1) { selText = selected}  	}				tabAll = tabAll + '<div class="tabLeft' + selText + '"></div>';		tabAll = tabAll + '<div class="tabBody' + selText + '">';		tabAll = tabAll + '<a href=' + linkArray[i]  + '>' + nameArray[i]+ '</a></div>';		tabAll = tabAll + '<div class="tabRight' + selText + '"></div>';	}	document.writeln(tabAll );	// close outer DIV	document.writeln('</div>');}function mainTitle(title) {	// this function generates the title as required by seb.se	// Note that the same function exists twice in this database - 	//  - as a part of JavaScript library common.js - should be used on normal pages/forms	//  - as a Subform - should be used on JavaScript forms	// author Eva Valenta 2003-12-10	if (title != '') {	document.writeln('<table width=460 border="0" cellpadding="0" cellspacing="0" style="margin-bottom:0px">');  	document.writeln('<tbody>');  	document.writeln('<tr style="height:10px;">');  	document.writeln('<td nowrap style="font-family:Arial;font-size:11px;color:#00367F;font-weight:Bold;">' + title + '&nbsp;</td>');  	document.writeln('<td width="90%" nowrap valign="middle">');  	document.writeln('<table width="100%" height="10" cellspacing="0" cellpadding="0" border="0">');  	document.writeln('<tbody>');  	document.writeln('<tr>');  	document.writeln('<td bgcolor="#00367F" align="right">');  	document.writeln('<img src="/corpcommon/weblibrary.nsf/Objects/Image~gradient/$file/blue_gradient.gif" alt="-" height="10" width="34"></td>');  	document.writeln('</tr>');  	document.writeln('</tbody>');  	document.writeln('</table>');  	document.writeln('</td>');  	document.writeln('</tr>');  	document.writeln('</tbody>');  	document.writeln('</table>');  	} }/*  JavaScript functions needed to show a view with alternate row colors Created by Eva Valenta 2003-05-13 (copied and sligthly modified from SearchDomino.com)*///  the following are the variables that control the table width and colors//  change this as u need...can also convert to global vars by declaring in jsheader and  initiliazing onLoadtdClassEven = "even";tdClassOdd = "odd";tableWidth =  '460' ; /**This function provides the alternate row coloring for the table generated by the view.*/function transformView(tableIndex,IsEmbedded) {	if (IsEmbedded == false) 		{var tableElements = document.getElementsByTagName('table')} 	else//	To handle Embedded view in a form, The embedded view must be //   enclosed by div tags.  See below example //	<div id="StripedRows"> Marked as "Pass thru HTML"//   Your embedded view//	</div>			Marked as "Pass thru HTML"	{var tableElements = document.getElementById('StripedRows').getElementsByTagName('table')}//	  	var table = tableElements[tableIndex] ;   	table.width = tableWidth; // spreads out the table if you want it to   	table.cellSpacing = '0' ; // removes space between cells  	table.cellPadding = '0' ; // removes space between cells 	table.className="tabTable"; 	rows = table.getElementsByTagName("tr") ;			//get the rows of the table we are transforming 	for( i = 0; i < rows.length; i++)  	{  		cells = rows[i].getElementsByTagName("td");		//get the cells of the row				  		for (j = 0; j < cells.length; j++)	{										// just set the class      		cells[j].className = (i % 2 ? tdClassEven : tdClassOdd) ;		imgs = cells[j].getElementsByTagName("img");		if (imgs.length >0 ) {			    if ( imgs[0].src.indexOf('ecblank') >= 0  ) { imgs[0].width = 0 ;  }		    if ( imgs[0].src.indexOf('vwicnsr') >= 0  ) {  imgs[0].width = 0 ;  imgs[0].height = 0 ; }		} else {      		    if (cells[j].innerText =='')     {cells[j].innerText  = '  ';}		 }      		if (cells[j].innerText.length > 12 ) {cells[j].noWrap = false;   	}       	}  	}	 }
