<!--
   today=new Date();
   jran=today.getTime();
   var number=5;
   var random_number=0;
   var image="";
function randomizeNumber()
   {
   ia=9301;
   ic=49297;
   im=233280;
   jran = (jran*ia+ic) % im;
   random_number=Math.ceil( (jran/(im*1.0)) *number);

   if (random_number==1)
	  image="../eWebPhotos/home-page-art_1.gif";
   if (random_number==2)
	  image="../eWebPhotos/home-page-art_2.gif";
   if (random_number==3)
	  image="../eWebPhotos/home-page-art_3.gif";
   if (random_number==4)
	  image="../eWebPhotos/home-page-art_4.gif";
   if (random_number==5)
	   image="../eWebPhotos/home-page-art_5.gif";
}
function PrinterFriendly( name ) {
window.location.href = "../eWebObjects/print-version.cgi?dynamic="+location.href; ""
}
function QuickQuestion ( name ) {
msg=window.open("../eWebObjects/pop-up-window.cgi?" + name + "","height=350,width=550,left=100,top=100");
}
var MAX_ENGINES = 10;
var SNARK_STRING = "hunting+the+snark";

function MakeArray(n) {
   for (var i = 1; i <= n; i++) {
	 this[i] = 0;
   }
   this.maxlen = n;
   this.len = 0;
   return this;
}

var engs = new MakeArray(MAX_ENGINES);

function find_substring(needle, haystack) {
   var i, needlen = needle.length, haylen = haystack.length;
   for (i=0; i<=haylen-needlen; i++) {
	  if (needle == haystack.substring(i,i+needlen))
		return i;
   }
   return false;
}

function Engine(name, opts, home, search) {
  var snark = find_substring(SNARK_STRING, search);
  this.name = name;
  this.opts = opts;
  this.home = home;
  this.pre_snark = search.substring(0,snark);
  this.post_snark= search.substring(snark+SNARK_STRING.length, search.length);
}

function Add(name, opts, home, search) {
engs.len++;
if (engs.len <= engs.maxlen) {
engs[engs.len] = new Engine(name, opts, home, search)
}
else {
alert("Better increase MAX_ENGINES: " + engs.len + ">" + engs.maxlen)
  }
}


Add("LPN Web Pages", "",
   "http://www.lpnonline.com/",
	"http://www.lpnonline.com/eWebObjects/classifieds/classifieds.cgi?keywords=hunting+the+snark&boolean=any+terms&case_sensitive=insensitive&results_format=headlines&query=keyword&search_and_display_db_button=Search%21" );

Add("Professional Directory", "",
	"http://www.lpnonline.com/",
	"http://www.lpnonline.com/eWebObjects/classifieds/classifieds.cgi?keywords=hunting+the+snark&boolean=any+terms&case_sensitive=insensitive&results_format=headlines&query=keyword&search_and_display_db_button=Search%21" );

Add("Calendar of Events", "",
   "http://www.lpnonline.com/",
   "http://www.lpnonline.com/eWebObjects/calendar/search_engine.cgi?keywords=hunting+the+snark" );

Add("Job Bank", "",
   "http://www.lpnonline.com/",
   "http://www.lpnonline.com/eWebObjects/classifieds/classifieds.cgi?keywords=hunting+the+snark&boolean=any+terms&case_sensitive=insensitive&results_format=headlines&query=keyword&search_and_display_db_button=Search%21" );

Add("Calendar of Events", "",
   "http://www.lpnonline.com/",
"http://www.lpnonline.com/eWebObjects/classifieds/classifieds.cgi?keywords=hunting+the+snark&boolean=any+terms&case_sensitive=insensitive&results_format=headlines&query=keyword&search_and_display_db_button=Search%21" );


function HandleForm(form) {
  form.submit();  // This fixes a mysterious Netscape bug.  Without this line,
				  // you can't use <enter> to start the search the first time.
  var i, oldq=form.query.value, newq="";
  for (i=0; i<oldq.length; i++) {  // compress [ ]+ into \+
	var thischar = oldq.charAt(i);
	if (thischar != ' ')
	  newq += thischar;
	else if (lastchar != ' ')
	  newq += '+';
	lastchar = thischar;
  }
  var eng = engs[1+form.service.selectedIndex];
  location.href = newq ? eng.pre_snark + newq + eng.post_snark : eng.home;
}
function MM_findObj(n, d) { //v3.0
  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); return x;
}
/* Functions that swaps images. */
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.name.value == "")
  {
	alert("Please enter a value for the \"Your Name:\" field.");
	theForm.name.focus();
	return (false);
  }

  if (theForm.name.value.length < 5)
  {
	alert("Please enter at least 5 characters in the \"Your Name:\" field.");
	theForm.name.focus();
	return (false);
  }

  if (theForm.name.value.length > 20)
  {
	alert("Please enter at most 20 characters in the \"Your Name:\" field.");
	theForm.name.focus();
	return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ.,- \t\r\n\f";
  var checkStr = theForm.name.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
	ch = checkStr.charAt(i);
	for (j = 0;  j < checkOK.length;  j++)
	  if (ch == checkOK.charAt(j))
		break;
	if (j == checkOK.length)
	{
	  allValid = false;
	  break;
	}
  }
  if (!allValid)
  {
	alert("Please enter only letter, whitespace and \".,-\" characters in the \"Your Name:\" field.");
	theForm.name.focus();
	return (false);
  }

  if (theForm.email.value == "")
  {
	alert("Please enter a value for the \"Your Reply e-Mail:\" field.");
	theForm.email.focus();
	return (false);
  }

  if (theForm.email.value.length < 9)
  {
	alert("Please enter at least 9 characters in the \"Your Reply e-Mail:\" field.");
	theForm.email.focus();
	return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@.-_";
  var checkStr = theForm.email.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
	ch = checkStr.charAt(i);
	for (j = 0;  j < checkOK.length;  j++)
	  if (ch == checkOK.charAt(j))
		break;
	if (j == checkOK.length)
	{
	  allValid = false;
	  break;
	}
  }
  if (!allValid)
  {
	alert("Please enter only letter, digit and \"@.-_\" characters in the \"Your Reply e-Mail:\" field.");
	theForm.email.focus();
	return (false);
  }

  if (theForm.subject.value == "")
  {
	alert("Please enter a value for the \"Enter Reply Subject:\" field.");
	theForm.subject.focus();
	return (false);
  }

  if (theForm.subject.value.length < 20)
  {
	alert("Please enter at least 20 characters in the \"Enter Reply Subject:\" field.");
	theForm.subject.focus();
	return (false);
  }

  if (theForm.subject.value.length > 40)
  {
	alert("Please enter at most 40 characters in the \"Enter Reply Subject:\" field.");
	theForm.subject.focus();
	return (false);
  }

  if (theForm.body.value == "")
  {
	alert("Please enter a value for the \"Enter Reply Message:\" field.");
	theForm.body.focus();
	return (false);
  }

  if (theForm.body.value.length < 10)
  {
	alert("Please enter at least 10 characters in the \"Enter Reply Message:\" field.");
	theForm.body.focus();
	return (false);
  }

  if (theForm.body.value.length > 2500)
  {
	alert("Please enter at most 2500 characters in the \"Enter Reply Message:\" field.");
	theForm.body.focus();
	return (false);
  }
  return (true);
}
function OpenChat() {
msg=window.open("http://www.LPNOnline.com/eWebObjects/chat/chat.cgi","","height=530,width=749,left=0,top=0");
}
function CurrentMonth(){
var Today = new Date();
var month = Today.getMonth() + 1;
var day = Today.getDate();
var year = Today.getFullYear();
window.location.href = "http://www.lpnonline.com/eWebObjects/calendar/calendar.cgi?calendar=main&public_access_op=on&category=&action=view_month&month=" + month + "&year=" + year;
}
function OpenWindow( theURL, winName, features )
{
winHandle = window.open( theURL, winName, features ) ;
}
// stop hiding -->