<!--X UREACH STANDARD CVS HEADER -->
<!--X $Id: dates.js,v 1.3 2002/12/06 20:09:51 jnagy Exp $ -->
<!--
var nuD = new Date();
var y1y = parseInt(nuD.getFullYear()) - 1; // 1 year less than current year

function insertyears(sel, beg, end)
// sel: (-1=last | ####=value year | #=option) is selected
// beg: start w/ (null=1998 | ####=start year | true=current year | false=previous year)
// end: end w/ (null=last year +5 | true=next year | #=plus years from current year)
{	var max = 5;
	var yNy = y1y + max;
	var opts = null;
	var i, y = y1y, c = 0;

	if (beg == null) {
		y = 1998; // Year that uReach Started
	} else if (beg != null && beg == true) {
		y = y1y + 1;	// start w/ current year
//		max--;
	} else if (beg != null && beg >= 1998 && beg < 3000) {
		y = beg;
	} //else (beg==false) is the basic defualts already
	
	if (end != null && end < 1998) { // extend # years
		yNy = y1y+1 + end;
	} else if (end != null && end == true) { // end next year
		yNy = y1y + 2;
	}
	
	max = yNy - y1y;
	
	if (y < 1998)
		y = y1y+1;
	else if (y > 3000)	
		y = y1y+1;
		
	if (yNy < y1y || yNy > 3000)
		yNy = y1y+2;
	
	for (i = y; i <= yNy; i++, c++) {
	  opts += '<option value='+i;
	  if (sel != null && (i == sel || c == sel || (c == max && sel == -1)))
		opts +=' selected>'+i;
	  else
		opts +='>'+i;
	  opts += '</option>';
	}

	document.write(opts);
}

function insertcopy(align, loc, mktg)
// align: ('left', 'center', 'right') defaults to 'left' if missing [align]
// loc: (false|null:write copy, true:return copy)
{	var name = 'uReach&nbsp;Technologies,&nbsp;Inc.';
	var href = 'http://www.ureachcorp.com/';

  var date = (y1y+1 == 2002? '': '2002-') +(y1y+1); // to current year
	align = (align != null ? align : 'right');
	var copy = '<br><table border=0 cellpadding=1 cellspacing=1 align="'+ align +'">';
	
	copy += '<tr><td valign=bottom><span class=Sm>';
	if (mktg)
	  copy += 'All material herein&nbsp;';
	else
	  copy += '&nbsp;Copyright&nbsp;';
	copy += '&copy; '+ date +' &nbsp;';
	copy += '<a href="'+ href +'" target="_blank">';
	copy += name;
	copy += '</a>';
	copy += ' &nbsp;All&nbsp;Rights&nbsp;Reserved.</span></td></tr></table>';

	if (loc)
			return copy;
	else
		document.write(copy);
}
//-->