function yrBrowser ()
{  
	//deleted code that's no longer required; only supporting NS 4.79/4.8, 6.x, IE 5.5 and 6.0 (10/23/02 NS)

    this.ie55  = (navigator.userAgent.indexOf("MSIE 5.5") != -1)
	this.ie6  = (navigator.userAgent.indexOf("MSIE 6") != -1)
	this.ie7  = (navigator.userAgent.indexOf("MSIE 7") != -1)
	this.ie = this.ie55 || this.ie6 || this.ie7;

	
	//we are only supporting NS 4.77+
	var userAgent = navigator.userAgent
	var index = userAgent.indexOf("Mozilla/4.")
	if (index != -1) {
		this.ns4 = userAgent.substr(index + 10, 1) >= 7 ? true : false
	} else {
		this.ns4 = false
	}
	this.ns6  = (navigator.userAgent.indexOf("Mozilla/5.0") != -1)
	
	var agt=navigator.userAgent.toLowerCase()
    this.win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) )
    this.win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1))
    this.win16 = ((agt.indexOf("win16")!=-1)
               || (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1)
               || (agt.indexOf("windows 16-bit")!=-1) )  

    this.win31 = (agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
                 (agt.indexOf("windows 16-bit")!=-1)
    
    this.win98 = ((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1))
    this.winnt = ((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1))
    this.win32 = this.win95 || this.winnt || this.win98 || 
                 ((this.major >= 4) && (navigator.platform == "Win32")) ||
                 (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1)

    this.os2   = (agt.indexOf("os/2")!=-1) 
                 || (navigator.appVersion.indexOf("OS/2")!=-1)  
                 || (agt.indexOf("ibm-webexplorer")!=-1)

    this.mac    = (agt.indexOf("mac")!=-1)
    this.mac68k = this.mac && ((agt.indexOf("68k")!=-1) || 
                               (agt.indexOf("68000")!=-1))
    this.macppc = this.mac && ((agt.indexOf("ppc")!=-1) || 
                               (agt.indexOf("powerpc")!=-1))

    this.linux = (agt.indexOf("inux")!=-1)
    this.unix  = (agt.indexOf("x11")!=-1) || this.sun || this.irix || this.hpux || 
                 this.sco ||this.unixware || this.mpras || this.reliant || 
                 this.dec || this.sinix || this.aix || this.linux || this.freebsd
	
	//IE 5.x and 6.x are not supported on Mac
	this.isCompatible = ((this.ie && !this.mac) || ((this.ns4 || this.ns6) && !this.mac) )?true:false

		  
    //If compatible, then set js property to 1.2; otherwise, 0.0
    this.js = (this.isCompatible)?1.2:0.0


}

function writeHeader(header,bgHeadColor)
{
	document.write('<table   cellspacing="0">')
	document.write('  <tr>')
	document.write('    <td align="left" bgcolor="'+bgHeadColor+'"')
	document.write('    valign="top"> <font face="Tahoma"  size="2"><strong> ' + header + '</strong></font>')
	document.write('</td>')
	document.write('  </tr>')
	document.write('</table>')
}

function getCookieValue (pos)
	{
	var temp = document.cookie.indexOf (";", pos)
	if (temp == -1)
		temp = document.cookie.length
	return unescape(document.cookie.substring(pos, temp))
	}

function getCookie (name)
	{
	var cName = name + "="
	var len = cName.length
	var cookieLen = document.cookie.length
	var i = 0, j
	while (i < cookieLen)
		{
		j = i + len
		if (document.cookie.substring(i, j) == cName)
			return getCookieValue (j)
		i = document.cookie.indexOf(" ", i) + 1
		if (i == 0)
			break
		}
	return null
}
function makeCookie(name, value)
	{
	var x1 = makeCookie.arguments
	var x2 = makeCookie.arguments.length
	var expDate = (x2 > 2) ? x1[2] : null
	var path = (x2 > 3) ? x1[3] : null
	var domain = (x2 > 4) ? x1[4] : null
	var secure = (x2 > 5) ? x1[5] : false
	var buf = name + "=" + escape (value)
	buf += ((expDate == null) ? "" : ("; expires=" + expDate.toGMTString()))
    buf += ((path == null) ? "" : ("; path=" + path))
	buf += ((domain == null) ? "" : ("; domain=" + domain))
	buf += ((secure == true) ? "; secure" : "")
	document.cookie = buf
    }
function deleteCookie (cookieName)
	{
	var now = new Date()
	now.setTime (now.getTime() - 1)
	var cookieValue = getCookie (cookieName)
	document.cookie = cookieName + "=" + cookieValue + "; expires=" + now.toGMTString()
	}

function setCookie(name, value, expireDays,path) {
	var pair = name + "=" + value
	if (expireDays) {
		var expires = new Date()
		var expTime = expires.getTime() + (expireDays * 86400000)
		expires.setTime(expTime)
		pair += "; expires=" + expires.toGMTString()
	}
	if (path) {
		pair += "; path=" + path
	} else {
		var docpath= document.location.pathname
		var position = docpath.indexOf("/",1)
		if (position >0) {
			docpath=docpath.substring(0,position)
			pair += "; path=" + docpath
		}	
	}
	document.cookie = pair
}

function expectedJVMVersion() {
		var jvmApplet = document.jvmCheckApplet;
		if(jvmApplet) {
			var jvmMajor =parseInt(jvmApplet.getJVMMajorVersion(),10);
			var jvmMinor =parseInt(jvmApplet.getJVMMinorVersion(),10);
			var jvmBuild =parseInt(jvmApplet.getJVMBuildIncrement(),10);
			if (jvmMajor < 4) return false;
			if (jvmMajor==4 && jvmMinor < 79) return false;
			if (jvmMajor==4 && jvmMinor==79 && jvmBuild < 2435) return false;
		}	
		return true;
}


function getCookie(name, item) {
	var arg = name.toUpperCase() + "="
	var alen = arg.length
	var clen = document.cookie.length
	var i = 0
	while (i < clen) {
		var j = i + alen
		if (document.cookie.substring(i, j).toUpperCase() == arg) {
			var cEnd = document.cookie.indexOf(";",j)
			if (cEnd == -1) {
				cEnd = document.cookie.length
			}
			var cookie = document.cookie.substring(j, cEnd)
			if (item != null) { // Find item
				arg = item.toUpperCase() + "="
				alen = arg.length
				clen = cookie.length
				i = 0
				while (i < clen) {
					j = i + alen
					if (cookie.substring(i, j).toUpperCase() == arg) {
						cEnd = cookie.indexOf("&",j)
						if (cEnd == -1) {
							cEnd = cookie.length
						}
						cookie = cookie.substring(j, cEnd)
						return unescape(cookie)
					} else {
						i = cookie.indexOf("&", i) + 1
						if (i == 0) return ""
					}
				}	
			}
			return unescape(cookie)
		} else {
			i = document.cookie.indexOf(" ", i) + 1
			if (i == 0) break;
		}
	}
	return null
}

