
///janes.com top bar dropdown select
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  if (selObj.options[selObj.selectedIndex].value != "0") {
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
  }
}

function pick(q,n) {
	var selected = new Array(n);
	var found = 0;

	if (n > q.length) {
		n = q.length;
	}

	for (counter = 0; counter < n; counter++) {
		var index = Math.floor(Math.random() * (q.length));
		found = 0;
		for (sel_count = 0; sel_count < selected.length; sel_count++) {
			if (index == selected[sel_count]) {
				found = 1;
			}
		}
		if (!found) {
			document.writeln( unescape(q[index]) );
			selected[counter] = index;
		} else {
			counter--;
		}
	}
}
function todayDate()
{
    var now = new Date();
    var days = new Array(
      'Sunday','Monday','Tuesday',
      'Wednesday','Thursday','Friday','Saturday');
    var months = new Array(
      'January','February','March','April','May',
      'June','July','August','September','October',
      'November','December');
    var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
    function fourdigits(number)	{
      return (number < 1000) ? number + 1900 : number;}
 
    today =  date + " " + months[now.getMonth()] + " " + (fourdigits(now.getYear()));
    document.write(today);
}
