//**********************************************************************************
// Main functions (main.js)
// Purpose: Contains main functions used at a frameset level
// Copyright (C) 1999 CIT Small Business Lending Corp.
// modified by PVS 4/12/1999
//**********************************************************************************</font></pre>

var me="_self"
var parent="_parent"
var top= "_top"
var numforms=5
var currdoc
function Browser() {
	var nm = navigator.appName
	this.je=navigator.javaEnabled()
	var v = parseInt(navigator.appVersion)
	this.ns = (nm=="Netscape" && v>=4)
	this.ie = (nm=="Microsoft Internet Explorer" && v>=4)
	this.minreq = (this.ns||this.ie && this.je)
}

browser = new Browser()
function saveCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000))
		var expires = "; expires="+date.toGMTString()
	}
	else expires = ""
	document.cookie = name+"="+value+expires+"; path=/"
}

function readCookie(name) {
	var c = document.cookie
	if (c.indexOf(name)==-1) return null
	else {
		var start = c.indexOf(name)+name.length+1
		for (var end=start;end<c.length;end++) if (c.charAt(end)==";") break
		return c.substring(start,end)
	}
}

function deleteCookie(name) {
	saveCookie(name,"",-1)
}

function hintwin(n) {
 var wfeatures
 wfeatures='resizable=no,scrollbars=yes,status=no,width=350,height=300'
 hintwin=open('hint.asp?id='+n,'Hint',wfeatures);
 hintwin.moveTo(40,40)
}
