function loadPage()
{
    document.forms[0].loginname.focus();
	document.forms[0].loginname.select();
}

function processForm()
{
	//Remove spaces.  Trailing spaces won't disrupt SQL Server's search but sets incorrect username.
	document.forms[0].loginname.value = trimField(document.forms[0].loginname.value);
	document.forms[0].password.value = trimField(document.forms[0].password.value);
	return true;
}

<!--
// IE Layer Effect
function ejs_img_fx(img){
  if(img && img.filters && img.filters[0]){
    img.filters[0].apply();
    img.filters[0].play();
  }
}
//-->
<!--
//
// Rollover
//
function Flipper(name,over)
{
	if(window.document.images) 
	{
		if (over)
			window.document.images[name].src = "./images/" + name + "-over.jpg";
		else
			window.document.images[name].src =  "./images/" + name + ".jpg";
	}
}

function FlipperGIF(name,over)
{
	if(window.document.images) 
	{
		if (over)
			window.document.images[name].src = "./images/" + name + "-over.gif";
		else
			window.document.images[name].src = "./images/" + name + ".gif";
	}
}

function FlipperGIFRev(name,over)
{
	if(window.document.images) 
	{
		if (over)
			window.document.images[name].src = "./images/" + name + ".gif";
		else
			window.document.images[name].src = "./images/" + name + "-over.gif";
	}
}

// Reveal with Delay
function FindObjects(n, d) { 
  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=FindObjects(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function RevealLayer() { 
  var i,p,v,obj,args=RevealLayer.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=FindObjects(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}
