<!--
function lib_bwcheck()
{
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.win=(navigator.userAgent.indexOf('Windows')>-1)
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=((this.ie6 || this.ie5 || this.ie4 || this.ns6) && !this.mac)
	return this
}

function openWin(url,winName,w,h,t,l,scroll,resize,status) 
{
    if (l == 'c')
		var winl = (screen.width - w) / 2;
	else
		var winl = l
	if (t == 'c')
		var wint = ((screen.height - 60) - h) / 2;
	else
		var wint = t
        
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resize+',status='+status
    win = window.open(url, winName, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function toggle(msg,obj) 
{
	if (obj.value==msg) 
		obj.value=''
	else if (obj.value=='') 
		obj.value=msg
}

valid=false;
function miniValidation(obj)
{
	if (obj.lastName.value==obj.lastName.defaultValue || obj.lastName.value == "")
	{
		alert('The following error occured:\n-> Field - "Last Name" - is required.')
		valid=false;
	}
	else if (obj.lastName.value.toLowerCase()=='smith' || obj.lastName.value.length<=3)
	{
		obj.action='/display/advsearch.asp';
		obj.submit();
		//window.location.href='/display/advsearch.asp';
	}
	else
	{
		valid=true;
	}
}
//-->