//Client_Gen_3.0_Recordset.js

function Recordset(Name, DSN)
{
	RSReconnect(this);
	this.Name = Name;
	this.DSN = DSN;
	this.Separator = "!*+";
	return this;
}

function RSReconnect(Object)
{
	Object.SetColumnValue = RSSetColumnValue;
	Object.MoveFirst = RSMoveFirst;
	Object.MoveNext = RSMoveNext;
	Object.MovePrevious = RSMovePrevious;
	Object.MoveLast = RSMoveLast;
	Object.Insert = RSInsert;
	Object.Update = RSUpdate;
	Object.Delete = RSDelete;
	Object.Close = RSClose;
	Object.Filter = RSFilter;
	Object.OrderBy = RSOrderBy;
	Object.ParseBindings = RSParseBindings;
	Object.SetBindings = RSSetBindings;
	Object.AddBinding = RSAddBinding;
	Object.RemoveBinding = RSRemoveBinding;
	Object.GetBindingValue = RSGetBindingValue;
	Object.SetBindingValue = RSSetBindingValue;
	Object.GetBindingType = RSGetBindingType;
	Object.SetBindingType = RSSetBindingType;
	Object.GetBoundColumnName = RSGetBoundColumnName;
	Object.SetElementID		= RSSetElementIDValue;
	Object.GetElementID		= RSGetElementIDValue;

}


function RSSetElementIDValue(name,val)
{
	if (document.all)
			elementID = eval("document.all." + name);
		else
			elementID = eval("document." + name);

	if (elementID == null) {
		elementID = resolveElementInDoc(document, name, "Form Element", "");

		if (elementID == null && navigator.appName.indexOf('Microsoft') >= 0) elementID = eval(name);
		if (elementID == null && type != "Plug-In") alert("Could not resolve elementID for " + name + " (" + "Form Element" + ")");

		}

	if (elementID != null) {
		elementID.value = val
	}
}

function RSGetElementIDValue(name)
{
	if (document.all)
			elementID = eval("document.all." + name);
		else
			elementID = eval("document." + name);

	if (elementID == null) {
		elementID = resolveElementInDoc(document, name, "Form Element", "");

		if (elementID == null && navigator.appName.indexOf('Microsoft') >= 0) elementID = eval(name);
		if (elementID == null && type != "Plug-In") alert("Could not resolve elementID for " + name + " (" + "Form Element" + ")");
		
		}


	if (elementID != null) {
		return elementID.value;
	}
}


function RSSetColumnValue(ColName, Val)
{
	BindingsArray = this.ParseBindings();
	BindingObj = RSFindBinding(BindingsArray, ColName);
	if(BindingObj == null)
	{
		BindingObj = new Object;
		BindingObj["Name"] = ColName;
		BindingsArray[BindingsArray.length] = BindingObj;
	}
	BindingObj["Type"] = "VAL";
	BindingObj["Value"] = Val;
	this.SetBindings(BindingsArray);
}

function RSMoveFirst()
{
	this.SetElementID(this.Name + "_Action","First");
}

function RSMoveNext()
{
	this.SetElementID(this.Name + "_Action","Next");
}

function RSMovePrevious()
{
	this.SetElementID(this.Name + "_Action","Previous");
}

function RSMoveLast()
{
	this.SetElementID(this.Name + "_Action","Last");
}

function RSInsert()
{
	this.SetElementID(this.Name + "_Action","Insert");
}

function RSUpdate()
{
	this.SetElementID(this.Name + "_Action","Update");
}

function RSDelete()
{
	this.SetElementID(this.Name + "_Action","Delete");
}
function RSClose()
{
	this.SetElementID(this.Name + "_Action","Close");
}

function RSFilter(Where)
{
	this.SetElementID(this.Name + "_Action","Filter(" + Where + ")");
}

function RSOrderBy(ColName)
{
	this.SetElementID(this.Name + "_Action","OrderBy(" + ColName + ")");
}

function RSParseBindings()
{
	BindingsArray = new Array();
	Bindings = this.GetElementID(this.Name + "_Bindings");
	if(Bindings != null)
	{
		Bindings = String(Bindings);
		if(Bindings != "")
		{
			nBinding = 0;
			for(;;)
			{
				BindIndex = Bindings.indexOf(this.Separator);
				if(BindIndex >= 0)
				{
					BoundColumn = Bindings.substring(0, BindIndex);
					Bindings = Bindings.substring(BindIndex + this.Separator.length, Bindings.length);
					BindIndex = Bindings.indexOf(this.Separator);
					if(BindIndex >= 0)
					{
						// get the location of the value
						BindingType = Bindings.substring(0, BindIndex);
						Bindings = Bindings.substring(BindIndex + this.Separator.length, Bindings.length);

						// get the value
						BindIndex = Bindings.indexOf(this.Separator);
						if(BindIndex < 0)
						{
							BindIndex = Bindings.length;
						}
						BoundValue = Bindings.substring(0, BindIndex);

						Binding = new Object();
						Binding["Name"] = BoundColumn;
						Binding["Type"] = BindingType;
						Binding["Value"] = BoundValue;
						BindingsArray[nBinding] = Binding;
						nBinding++;

						// next binding
						if(BindIndex == Bindings.length)
						{
							BindIndex = -1;
						}
						else
						{
							Bindings = Bindings.substring(BindIndex + this.Separator.length, Bindings.length);
						}
					}
				}
				if(BindIndex < 0)
				{
					break;
				}
			}
		}
	}
	return BindingsArray;
}

function RSSetBindings(BindingsArray)
{
	Bindings = "";
	if(BindingsArray != null)
	{
		for(i = 0, n = BindingsArray.length; i < n; i++)
		{
			BindingObj = BindingsArray[i];
			if(BindingObj != null)
			{
				ColumnName = BindingObj["Name"];
				BindingType = BindingObj["Type"];
				BoundValue = BindingObj["Value"];
				if(Bindings != "")
				{
					Bindings += this.Separator;
				}
				Bindings += ColumnName + this.Separator + BindingType + this.Separator + BoundValue;
			}
		}
	}
	this.SetElementID(this.Name + "_Bindings",Bindings);
}

function RSFindBinding(BindingsArray, ColumnName)
{
	if(BindingsArray != null)
	{
		for(i = 0, n = BindingsArray.length; i < n; i++)
		{
			BindingObj = BindingsArray[i];
			if(BindingObj["Name"] == ColumnName)
			{
				return BindingObj;
			}
		}
	}
	return null;
}

function RSAddBinding(ColumnName, BoundValue, BindingType)
{
	BindingsArray = this.ParseBindings();
	BindingObj = RSFindBinding(BindingsArray, ColumnName);
	if(BindingObj == null)
	{
		BindingObj = new Object();
		BindingObj["Name"] = ColumnName;
		BindingsArray[BindingsArray.length] = BindingObj;
	}
	BindingObj["Type"] = BindingType;
	BindingObj["Value"] = BoundValue;
	this.SetBindings(BindingsArray);
}

function RSRemoveBinding(ColumnName)
{
	BindingsArray = this.ParseBindings();
	if(BindingsArray.length)
	{
		NewBindingsArray = new Array();
		for(i = 0, n = BindingsArray.length; i < n; i++)
		{
			BindingObj = BindingsArray[i];
			if(BindingObj["Name"] != ColumnName)
			{
				NewBindingsArray[NewBindingsArray.length] = BindingObj;
			}
		}
		this.SetBindings(NewBindingsArray);
	}
}

function RSGetBindingValue(ColumnName)
{
	BindingsArray = this.ParseBindings();
	BindingObj = RSFindBinding(BindingsArray, ColumnName);
	if(BindingObj == null)
	{
		return "";
	}
	return BindingObj["Value"];
}

function RSSetBindingValue(ColumnName, BoundValue)
{
	BindingsArray = this.ParseBindings();
	BindingObj = RSFindBinding(BindingsArray, ColumnName);
	if(BindingObj != null)
	{
		BindingObj["Value"] = BoundValue;
		this.SetBindings(BindingsArray);
	}
}

function RSGetBindingType(ColumnName)
{
	BindingsArray = this.ParseBindings();
	BindingObj = RSFindBinding(BindingsArray, ColumnName);
	if(BindingObj == null)
	{
		return "";
	}
	return BindingObj["Type"];
}

function RSSetBindingType(ColumnName, BindingType)
{
	BindingsArray = this.ParseBindings();
	BindingObj = RSFindBinding(BindingsArray, ColumnName);
	if(BindingObj != null)
	{
		BindingObj["Type"] = BindingType;
		this.SetBindings(BindingsArray);
	}
}

function RSGetBoundColumnName(BoundValue, BindingType)
{
	BindingsArray = this.ParseBindings();
	if(BindingsArray.length)
	{
		for(i = 0, n = BindingsArray.length; i < n; i++)
		{
			BindingObj = BindingsArray[i];
			if(BindingObj["Value"] == BoundValue && BindingObj["Type"] == BindingType)
			{
				return BindingObj["Name"];
			}
		}
	}
	return "";
}


//DBImgBtn.js
BTNArray = new Array();

function makeButton(theImages,href,name,prodName,group,onClick,onMOver,onMOut,onMUp,onMDown) {
	this.setImageList = BtnSIL;
	this.getImageCount = BtnGIC;
	this.nextImage = BtnNI;
	this.previousImage = BtnPI;

	this.getImageList = getImageList;
	this.getGroupCount = getGroupCount;
	this.clearGroup = clearGroup;
	this.mouseOver = mouseOver;
	this.mouseOut = mouseOut;
	this.setState = setState;
	this.getState = getState;
	this.setIndex = setState;
	this.getIndex = getState;
	this.setClicked = setClicked;
	this.setUnclicked = setUnclicked;

	this.onChange = null;
	this.onClick = onClick;
	this.onMouseOver = onMOver;
	this.onMouseOut = onMOut;
	this.onMouseUp = onMUp;
	this.onMouseDown = onMDown;

	this.name = name;
	this.type = "Image";
	this.state = 0;
	this.group = group;

	this.imagelist = new Array();      // image names
	this.btnImageArray = new Array();  // image objects
	this.setImageList(theImages);

	this.getElementID = getElementID;
	this.elementResolved = elementResolved;
	this.elementID = null;
}

function BtnGIC() {
	if (!this.elementResolved()) return -1;
	return this.btnImageArray.length;
}

function BtnNI() {
	with(this) {
		if (!this.elementResolved()) return;
		state = parseInt(state);
		if (state == getImageCount()-1)
			state = 0;
		else
			state += 1;

		elementID.src = imagelist[state];
	}
}

function BtnPI() {
	with(this) {
		if (!this.elementResolved()) return;
		state = parseInt(state);
		if (state == 0)
			state = getImageCount()-1;
		else
			state -= 1;

		elementID.src = imagelist[state];
	}
}

function BtnSIL(theImages) {
	with(this) {
		imagelist = theImages.split(",");
		for (var i = 0; i < imagelist.length; i++) {
			this.btnImageArray[i] = new Image();
			this.btnImageArray[i].src = imagelist[i];
		}
	}
}

function getImageList() {
	if (!this.elementResolved()) return "";
	return this.imagelist.join();
}

function getGroupCount() {
	if (!this.elementResolved()) return -1;
	var k = 0;
	for (i = 0; i < BTNArray.length; i++) {
		if (this.group == BTNArray[i].group) k++;
	}
	return k;
}

function setState(newState) {
	if (!this.elementResolved()) return;
	if (newState < 0) return;
	with(this) {
		if (imagelist[newState] != null) {
			elementID.src = btnImageArray[newState].src;
			state = newState;
		}
	}
}

function getState() {
	if (!this.elementResolved()) return -1;
	return this.state;
}

function _B__onMouseOver(ID) {
	if (BTNArray != null && BTNArray.length > ID && BTNArray[ID].state == 0) {
		BTNArray[ID].setState(1);
	}
}

function _B__onMouseOut(ID) {
	if (BTNArray != null && BTNArray.length > ID && BTNArray[ID].state == 1) {
		BTNArray[ID].setState(0);
	}
}

function mouseOver() {
	if (!this.elementResolved()) return;
	if (this.state == 0)
		this.setState(1);
}

function mouseOut() {
	if (!this.elementResolved()) return;
	if (this.state == 1)
		this.setState(0);
}

function setClicked() {
	with(this) {
		if (!this.elementResolved()) return;
		if ((state == 0 || state == 1) && (btnImageArray.length > 2)) {
			clearGroup();
			setState(2);
		} else if (state == 2 && getGroupCount() == 1) {
			setState(1);
		}
	}
}

function _B__setClicked(ID) {
	if (BTNArray != null && BTNArray.length > ID) {
		BTNArray[ID].setClicked();
	}
}

function setUnclicked() {
	if (!this.elementResolved()) return;
	if (this.state == 2) this.setState(0);
}

function clearGroup() {
	if (!this.elementResolved()) return;
	for (var i = 0; i < BTNArray.length; i++) 	{
		if (this.group == BTNArray[i].group) 		{
			BTNArray[i].setUnclicked();
		}
	}
}

//DBChkBox.js

function checkBoxDef(name,onClick) {
	this.name = name;
	this.type = "Form Element";
	this.onClick = onClick;
	this.setState = CBSS;
	this.getState = CBGS;
	this.getValue = CBGV;
	this.setValue = CBSV;
	this.toggle = CBT;
	this.getElementID = getElementID;
	this.elementResolved = elementResolved;
	this.elementID = null;
}
 
function CBSS(state) { if (this.elementResolved()) this.elementID.checked = state; }
function CBGS() { return (this.elementResolved() ? this.elementID.checked : false); }
function CBGV() { return (this.elementResolved() ? this.elementID.value : ""); }
function CBSV(text) { if (this.elementResolved()) this.elementID.value = text; }
function CBT() { if (this.elementResolved()) this.elementID.click(); }

//DBEdtBox.js

function editDef(name,col,row,onChange,onBlur,onFocus,onSelect) {
	this.name = name;
	this.type = "Form Element";
	this.col = col;
	this.row = row;
	this.onChange = onChange;
	this.onBlur = onBlur;
	this.onFocus = onFocus;
	this.onSelect = onSelect;
	this.blur = EBBlur;
	this.focus = EBFocus;
	this.select = EBSelect;
	this.clear = EBClear;
	this.getText = EBGetText;
	this.setText = EBSetText;
	this.setTextWithNewLines = DBSTWN;
	this.appendText = EBAT;
	this.getElementID = getElementID;
	this.elementResolved = elementResolved;
	this.elementID = null;
}

function DBSTWN(Text) {
	if (this.row == 1) {
		this.setText(Text);
		return;
	}
	var tmp = Text.split(' ');
	var c = 0;
	for (var i = 0; i < tmp.length; i++) {
		if (tmp[i] != '' && tmp[i].indexOf('\n') != -1) {
			c += (tmp[i].length + 1);
			if (c > this.col + 2) {
				if (tmp[i].charAt[0] != '\n') tmp[i] = '\n' + tmp[i];
			}			
			c = tmp[i].length - tmp[i].indexOf('\n') + 1;
		} else {
			c += (tmp[i].length + 1);
			if (c > (this.col + 2)) {
				if (tmp[i].charAt[0] != '\n') tmp[i] = '\n' + tmp[i];
				c = tmp[i].length + 1;
			}
		}
	}
	this.setText(tmp.join(' '));
}

function EBSelect() {
	if (this.elementResolved()) {
 		this.elementID.select();
		this.elementID.focus();
	}
}

function EBBlur() { if (this.elementResolved()) this.elementID.blur(); }
function EBFocus() { if (this.elementResolved()) this.elementID.focus(); }
function EBClear() { if (this.elementResolved()) this.elementID.value = ''; }
function EBGetText() { return (this.elementResolved() ? this.elementID.value : ""); }
function EBSetText(Text) { if (this.elementResolved()) this.elementID.value = Text; }
function EBAT(Text) { if (this.elementResolved()) this.elementID.value += Text; }

//DBLstBox.js

function listDef(name,select,dataFld,onChange,onBlur,onFocus) {
	this.name = name;
	this.type = "Form Element";
	this.select = select;
	this.dataFld = dataFld;
	this.onChange = onChange;
	this.onBlur = onBlur;
	this.onFocus = onFocus;
	this.clear = listCl;
	this.blur = listBl;
	this.focus = listFo;
	this.getCount = listGCo;
	this.addOption = addOpt;
	this.getSelectedPosition = listGetSP;
	this.getSelectedText = listGetST;
	this.getSelectedValue = listGetSV;
	this.setSelectedByPosition = listSetSBP;
	this.setSelectedByText = listSetSBT;
	this.setSelectedByValue = listSetSBV;
	this.SelAll = listSelAll;
	this.setSelectedAll = listSetSA;
	this.setSelectedNone = listSetSN;
	this.stuffListFromQuery = listSFQ;
	this.deleteOptionByPosition = listDOBP;
	this.deleteOptionByText = listDOBT;
	this.getElementID = getElementID;
	this.elementResolved = elementResolved;
	this.elementID = null;
}

function listCl() {
	with(this) {
		if (!elementResolved()) return;
		while (elementID.options.length != 0) {
			var a = elementID.options.length - 1;
			elementID.options[a] = null;
		}
	}
}

function listGetSP() {
	with(this) {
		if (!elementResolved()) return -1;
		if (select == "select-one"){
			var i = elementID.selectedIndex;
			return i;
		} else {
			var r = "";
			var b = false;
			for (var i = 0; i < elementID.length; i++) {
				if (elementID.options[i].selected == true) {
					if (b) r += ",";
					else   b = true;
					r += i;
				}
			}
			return r;
		}
	}
}

function listGetST() {
	with(this) {
		if (!elementResolved()) return "";
		if (select == "select-one"){
			var i = elementID.selectedIndex;
			var t = elementID.options[i].text;
			return t;
		} else {
			var r = "";
			var b = false;
			for (var i = 0; i < elementID.length; i++) {
				if (elementID.options[i].selected == true) {
					if (b) r += ",";
					else   b = true;
					r += elementID.options[i].text;
				}
			}
			return r;
		}
	}
}

function listGetSV() {
	with(this) {
		if (!elementResolved()) return "";
		if (select == "select-one"){
			var i = elementID.selectedIndex;
			var t = elementID.options[i].value;
			return t;
		} else {
			var r = "";
			var b = false;
			for (var i = 0; i < elementID.length; i++) {
				if (elementID.options[i].selected == true) {
					if (b) r += ",";
					else   b = true;
					r += elementID.options[i].value;
				}
			}
			return r;
		}
	}
}

function listSetSBP(position) {
	with(this) {
		if (!elementResolved()) return;
		if (position < 0 || position >= elementID.length) return;
		elementID.options[position].selected = true;
	} 
}

function listSetSBT(text) {
	with(this) {
		if (!elementResolved()) return;
		for (var i = 0; i < elementID.length; i++) {
			if (text == elementID.options[i].text) {
				elementID.options[i].selected = true;
				return;
			}
		} 
	} 
}

function listSetSBV(value) {
	with(this) {
		if (!elementResolved()) return;
		for (var i = 0; i < elementID.length; i++) {
			if (value == elementID.options[i].value) {
				elementID.options[i].selected = true;
				return;
			}
		} 
	} 
}

function listSelAll(state) {
	with(this) {
		if (!elementResolved()) return;
		if (select != "select-multiple") return;
		for (var i = 0; i < elementID.length; i++) {
			elementID.options[i].selected = state;
		} 
	} 
}

function listDOBP(position) {
	with(this) {
		if (elementResolved() && elementID.options &&
			position >= 0 && position < elementID.length &&
			elementID.options[position])
				elementID.options[position] = null;
	} 
}

function listDOBT(text) {
	with(this) {
		if (elementResolved() && elementID.options){
			for (var i = 0; i < elementID.length; i++) {
				if (elementID.options[i] && elementID.options[i].text &&
					text == elementID.options[i].text)
						elementID.options[i] = null;
			} 
		}
	}
}

function addOpt(text, position, value) {
	with(this) {
		if (!elementResolved()) return;
		var a = new Option(text);
		if (value == "") value = text;
		a.value = value;
		var newUpperBound = elementID.length;
		if (position >= 0 && position < newUpperBound) {
			for (var i = newUpperBound; i > position; i-- ) {
				elementID.options[i] = elementID.options[i-1];
			}
			elementID.options[position] = a;
		} else {
			elementID.options[newUpperBound] = a;
		}
	}
}

function listSFQ(queryName) {
	with(this) {
		clear();
		for (var i=0; i < queryName.getRowCount(); i++ ) {
			s = queryName.getString(0);
			addOption(s);
			queryName.next();
		}
		setSelectedByPosition(0);
	}
}

function listGCo() { return (this.elementResolved() ? this.elementID.length : -1); }
function listBl() { if (this.elementResolved()) this.elementID.blur(); }
function listFo() { if (this.elementResolved()) this.elementID.focus(); }
function listSetSA() { this.SelAll(true); }
function listSetSN() { this.SelAll(false); }

//DBHiddenObj.js

function HiddenDef(name) {
	this.name = name;
	this.type = "Form Element";
	this.clear = HDClear;
	this.getText = HDGetText;
	this.setText = HDSetText;
	this.getElementID = getElementID;
	this.elementResolved = elementResolved;
	this.elementID = null;
}

function HDClear() { if (this.elementResolved()) this.elementID.value = ''; }
function HDGetText() { return (this.elementResolved() ? this.elementID.value : ""); }
function HDSetText(Text) {if (this.elementResolved()) this.elementID.value = Text;}

//DBForm.js

function formDef(name,onSubmit,onReset) {
	this.name = name;
	this.type = "Form";
	this.onSubmit = onSubmit;
	this.onReset = onReset;
	this.submit = fmS;
	this.reset = fmR;
	this.getAction = fmGA;
	this.setAction = fmSA;
	this.getEnctype = fmGE;
	this.setEnctype = fmSE;
	this.getLanguage = fmGL;
	this.setLanguage = fmSL;
	this.getMethod = fmGM;
	this.setMethod = fmSM;
	this.getStyle = fmGS;
	this.setStyle = fmSS;
	this.getTarget = fmGTa;
	this.setTarget = fmSTa;
	this.getTitle = fmGTi;
	this.setTitle = fmSTi;
	this.getElementID = getElementID;
	this.elementResolved = elementResolved;
	this.elementID = null;
}

function fmR() { return (this.elementResolved() ? this.elementID.reset() : false); }
function fmS() { return (this.elementResolved() ? this.elementID.submit() : false); }
function fmGA() { return (this.elementResolved() ? this.elementID.action : ""); }
function fmGE() { return (this.elementResolved() ? this.elementID.enctype : ""); }
function fmGL() { return (this.elementResolved() ? this.elementID.language : ""); }
function fmGM() { return (this.elementResolved() ? this.elementID.method : ""); }
function fmGS() { return (this.elementResolved() ? this.elementID.style : ""); }
function fmGTa() { return (this.elementResolved() ? this.elementID.target : ""); }
function fmGTi() { return (this.elementResolved() ? this.elementID.title : ""); }
function fmSA(v) { if (this.elementResolved()) this.elementID.action = v; }
function fmSE(v) { if (this.elementResolved()) this.elementID.enctype = v; }
function fmSL(v) { if (this.elementResolved()) this.elementID.language = v; }
function fmSM(v) { if (this.elementResolved()) this.elementID.method = v; }
function fmSS(v) { if (this.elementResolved()) this.elementID.style = v; }
function fmSTa(v) { if (this.elementResolved()) this.elementID.target = v; }
function fmSTi(v) { if (this.elementResolved()) this.elementID.title = v; }

//DBRadBtn.js
function radioButtonDef(name,value,onClick) {
	this.name = name;
	this.type = "Radio";
	this.value = value;
	this.onClick = onClick;
	this.select = radS;
	this.getState = radGS;
	this.getValue = radGV;
	this.setValue = radSV;
	this.getElementID = getElementID;
	this.elementResolved = elementResolved;
	this.elementID = null;
}
 
function radS() { if (this.elementResolved()) this.elementID.checked = true; }
function radGS() { return (this.elementResolved() ? this.elementID.checked : false); }
function radGV() { return (this.elementResolved() ? this.elementID.value : ""); }

function radSV(value) {
	this.value = value;
	if (this.elementResolved()) this.elementID.value = value;
}



//DBFrmBtn.js

function fButtonDef(name,onClick) {
	this.name = name;
	this.type = "Form Element";
	this.onClick = onClick;
	this.click = fBC;
	this.getValue = fBGV;
	this.setValue = fBSV;
	this.getElementID = getElementID;
	this.elementResolved = elementResolved;
	this.elementID = null;
}

function fBC() { return (this.elementResolved() ? this.elementID.click() : false); }
function fBGV() { return (this.elementResolved() ? this.elementID.value : ""); }
function fBSV(text) { if (this.elementResolved()) this.elementID.value = text; }

//DBTimer.js

Timers = new Array();

function timerDef(period, mult, name, href, frame, autostart, repeat, index, onTimer) {
	this.name = name;
	this.period = period;
	this.mult = mult;
	this.href = href;
	this.frame = frame;
	this.onTimer = onTimer;
	this.active = false;
	this.index = index;
	this.repeat = repeat;
	this.id = 0;
	this.count = 0;
	this.restart = "";
	this.stop = tmrStop;
	this.start = tmrStart;
	this.getHref = tmrGH;
	this.setHref = tmrSH;
	this.getCount = tmrGC;
	this.isActive = tmrIA;
	this.getPeriod = tmrGP;
	this.setPeriod = tmrSP;
	this.setRepeat = tmrSR;
	this.getRepeat = tmrGR;
	this.IsTimeUnitMillisecond = tmrITUMS;
	this.SetTimeUnitMillisecond = tmrSTUMS;
	this.IsTimeUnitSecond = tmrITUS;
	this.SetTimeUnitSecond = tmrSTUS;
	this.IsTimeUnitMinute = tmrITUM;
	this.SetTimeUnitMinute = tmrSTUM;
	this.IsTimeUnitHour = tmrITUH;
	this.SetTimeUnitHour = tmrSTUH;
	this.IsTimeUnitDay = tmrITUD;
	this.SetTimeUnitDay = tmrSTUD;
	if (autostart) this.start();
}

function _xx_onTimer(ID,Count) {
	with(Timers[ID]) {
		//alert('repeat = ' + repeat + ', count = ' + count + ', Count = ' + Count + ', href = "' + href + '"');
		if (count == Count) {
			if (href != '' || onTimer != nullFunc) {
				if (repeat > 1) {
					repeat--;
					id = setTimeout(restart, period * mult);
				} else {
					stop();

					onTimer();			// onTimer before HRef

					if (href != '') {
						if(frame == '') {
							//alert('1');
							window.location.href = href;
						} else if (window.parent == window) {
							//alert('2');
							window.open(href,frame);
						} else {
							//alert('3');
							window.parent.frames.open(href,frame);
						}
					}
				}
			}
		}
	}
}

function tmrStart() {
	with(this) {
		if (!active) {
			this.active = true;
			restart = "_xx_onTimer(" + index + "," + count + ")";
			id = setTimeout(restart, period * mult);
		}
	}
}

function tmrStop() {
	this.count++;
	this.active = false;
}

function tmrGC() { return this.count; }
function tmrGP() { return this.period; }
function tmrGR() { return this.repeat; }
function tmrGH() { return this.href; }
function tmrIA() { return this.active; }
function tmrSP(sec) { if (sec > 0) this.period = sec; }
function tmrSR(state) { this.repeat = state; }
function tmrSH(theRef) { this.href = theRef; }
function tmrITUMS() { return (this.mult == 1); }
function tmrITUS() { return (this.mult == 1000); }
function tmrITUM() { return (this.mult == 60000); }
function tmrITUH() { return (this.mult == 3600000); }
function tmrITUD() { return (this.mult == 86400000); }
function tmrSTUMS() { this.mult = 1; }
function tmrSTUS() { this.mult = 1000; }
function tmrSTUM() { this.mult = 60000; }
function tmrSTUH() { this.mult = 3600000; }
function tmrSTUD() { this.mult = 86400000; }

//DBCommon.js

function getProp(p) { if (this.elementResolved()) return this.elementID[p]; }
function setProp(p,v) { if (this.elementResolved()) this.elementID[p] = v; }

function getElementID() {
	with (this) {
		var val = "";
		if (type == "")
			return;
		else if (type == "Radio")
			val = value;
		else if (document.all)
			elementID = eval("document.all." + name);
		else
			elementID = eval("document." + name);

		if (elementID == null) {
			elementID = resolveElementInDoc(document, name, type, val);

			if (elementID == null && navigator.appName.indexOf('Microsoft') >= 0) elementID = eval(name);
//			if (elementID == null && type != "Plug-In") alert("Could not resolve elementID for " + name + " (" + type + ")");
		}
	}
}

function elementResolved() {
	if (this.elementID == null) this.getElementID();
	return (this.elementID != null);
}

function resolveElementInDoc(doc, name, type, value) {
	elementID = null;
	if (type == "Image" && doc.images) {
		for (var i=0; i < doc.images.length; i++) {
			if (doc.images[i] && doc.images[i].name == name) {
				elementID = doc.images[i];
				return elementID;
			}
		}
	}
	else if (type == "Form")
		elementID = eval("doc." + name);
	else if (type == "Applet")
		elementID = eval("doc.applets." + name);
	else if (type == "Plug-In")
		elementID = eval("doc.embeds." + name);

	if (elementID == null &&
		doc.forms && doc.forms[0] && doc.forms[0].elements) {
		for (var i = 0; i < doc.forms[0].elements.length; i++) {
			if (doc.forms[0].elements[i] && (doc.forms[0].elements[i].name == name) && (type != "Radio" || doc.forms[0].elements[i].value == value)) {
				elementID = doc.forms[0].elements[i];
				return elementID;
			}
		}
	}

	if (elementID == null && doc.layers) {
		for (var i=0; elementID == null && i < doc.layers.length; i++) {
			if (doc.layers[i])
				elementID = resolveElementInDoc(doc.layers[i].document, name, type, value);
		}
	}

	return elementID;
}

function replaceAwithBinC(a,b,c) {
	i = c.indexOf(a);
	aLen = a.length;
	bLen = b.length;
	while (i != -1)	{
		c = c.substring(0,i) + b + c.substring(i+aLen, c.length);
		i = c.indexOf(a, i+bLen);
	}
	return c;
}

function trace(theString) {
	var System = java.lang.System;
	System.out.println(theString);
}

function dumpProperties(Obj, ObjName) {
	var result = "";
	for (var i in Obj)
		result += ObjName + "." + i + " = " + Obj[i] + "\n";
	return result;
}

function nullFunc() {}

//DBCookieObj.js
function CookieDef(name,expires,path,domain,secure) 
{
	this.name = name;
	this.secure = secure;
	this.path = path;
	this.domain = domain;
	this.getValue = getCookie;
	this.setValue = setCookie;
	this.expire = deleteCookie;

	if (expires == 0) {
		this.expires = "";
	} else {
		//make cookie expire number of days after browsing page
		var today_date = new Date();
		var expire_seconds = today_date.getTime() + (expires * 24 * 60 * 60  * 1000);
		today_date.setTime(expire_seconds);
		this.expires = today_date.toGMTString();
	}
}

function getCV(offset) {
	var endstr = document.cookie.indexOf(";", offset);
	if (endstr == -1) endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function getCookie(name) {
	var arg = name + "=";
	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) == arg)
			return getCV(j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
	}
	return "";
}

function setCookie(name,value) 
{
	if (this.getValue(name)) this.expire();
	document.cookie = name + "=" + escape(value) +
		((this.expires == "") ? "" : ("; expires=" + this.expires)) +
		((this.path == "") ? "" : ("; path=" + this.path)) +
		((this.domain == "") ? "" : ("; domain=" + this.domain)) +
		((this.secure == true) ? "; secure" : "");
}

function deleteCookie(name) {
	document.cookie = name + "=" + "" + "; expires=Thu,01-Jan-70 00:00:01 GMT";
}

//rLogin1.js
// Support Script (776)
function AddToValidateArray(strElementName)
{
    var strName = strElementName

    if (!document.ValidateArray) 
    {
        document.ValidateArray = new Array
    }

    document.ValidateArray[document.ValidateArray.length] = strName
}

// Support Script (800)
function StripChars(theFilter,theString)
{
	var strOut,i,curChar

	strOut = ""
	for (i=0;i < theString.length; i++)
	{		
		curChar = theString.charAt(i)
		if (theFilter.indexOf(curChar) < 0)	// if it's not in the filter, send it thru
			strOut += curChar		
	}	
	return strOut
}

function AllInRange(x,y,theString)
{
	var i, curChar
	
	for (i=0; i < theString.length; i++)
	{
		curChar = theString.charAt(i)
		if (curChar < x || curChar > y) //the char is not in range
			return false
	}
	return true
}


function reformat (s)
{
    var arg;
    var sPos = 0;
    var resultString = "";

    for (var i = 1; i < reformat.arguments.length; i++) {
       arg = reformat.arguments[i];
       if (i % 2 == 1) 
           resultString += arg;
       else 
       {
           resultString += s.substring(sPos, sPos + arg);
           sPos += arg;
       }
    }
    return resultString;
}

function Trim(theString)
{
 var i,firstNonWhite

 if (StripChars(" \n\r\t",theString).length == 0 ) return ""

	i = -1
	while (1)
	{
		i++
		if (theString.charAt(i) != " ")
			break	
	}
	firstNonWhite = i
	//Count the spaces at the end
	i = theString.length
	while (1)
	{
		i--
		if (theString.charAt(i) != " ")
			break	
	}	

	return theString.substring(firstNonWhite,i + 1)

}
// Support Script (649)
function ValidateNumChars()
{	
	var theString = this.getText()
	var MinLength = this.MinLength
	var MaxLength = this.MaxLength
	var msgInvalid = ""

	if (StripChars(" \n\t\r",this.ErrorMsg).length == 0)
	{
				
		if (MinLength == 1 && MaxLength == 1)		
			msgInvalid = "Please enter a value one character long."		
		else if (MinLength > 1 && MaxLength == MinLength)		
			msgInvalid = "Please enter a value " + MinLength + " characters long."				
		else if (MinLength > 0 && MaxLength > 0)		
			msgInvalid = "Please enter a value between\n" + MinLength + " and " + MaxLength + " characters long."		
		else if (MinLength == 1)		
			msgInvalid = "Please enter a value at least one character long."
		else if (MinLength > 1)
			msgInvalid = "Please enter a value at least " + MinLength + " characters long."
		else if (MaxLength == 1)		
			msgInvalid = "Please enter a value no more than one character long."
		else if (MaxLength > 1)
			msgInvalid = "Please enter a value no more than " + MaxLength + " characters long."		
 	else
	 	msgInvalid = this.ErrorMsg	

	}
	else
		msgInvalid = this.ErrorMsg	


	if (StripChars(" \n\r",theString).length == 0)	
		if (!this.Required) return ""		
		else return "Required field.  " + msgInvalid

	theString = Trim(theString)

	if (this.StripSpaces)
		theString = StripChars(" \n\r",theString)

	if (MinLength > 0 && theString.length < MinLength)
		return msgInvalid

	if (MaxLength > 0 && theString.length > MaxLength)
		return msgInvalid

	// we passed the tests
	this.setText(theString)

	return ""
}
// Support Script (810)
function subAwithBinC(a,b,c)
{

	var i = c.indexOf(a);
	var l = b.length;

	while (i != -1)	{
		c = c.substring(0,i) + b + c.substring(i + a.length,c.length);
  i += l
		i = c.indexOf(a,i);
	}
	return c;

}
// Support Script (770)
function Validate(stopOnFailure)
{
	var ErrorMsg = "";
	var i
	var msg
	var tofocus = true;
	var ErrorMsg = "";
	
	// Go through the Validate Array that may or may not exist
	// and call the Validate function for all elements that have one.
	if (document.ValidateArray)
	{
		for (i = 0; i < document.ValidateArray.length; i ++)
		{
			msg = eval( document.ValidateArray[i] + ".Validate()")
			if (msg != "")
			{
				ErrorMsg += "\n\n" + document.ValidateArray[i] + ":  " + msg;
				if (tofocus) 
				{
					eval(document.ValidateArray[i] + ".focus()")
					tofocus = false;
				}
				
				if (stopOnFailure == "1") return ErrorMsg;
			}
  	}
  }
	return ErrorMsg;
}

// Support Script (772)
// These date functions work for Nav 3 and above.

function getDayName(d)
{   
   var theDay = d.getDay()

   if (theDay == 0) 
            return "Sunday"
   if (theDay == 1) 
            return "Monday"
   if (theDay == 2) 
            return "Tuesday"
   if (theDay == 3) 
            return "Wednesday"
   if (theDay == 4) 
            return "Thursday"
   if (theDay == 5) 
            return "Friday"
   if (theDay == 6) 
            return "Saturday"
}

function getFullYear(d)
{
   var y = d.getYear();

   if (y < 2000) 
   {
        y += 1900
   }

   return y
}

function getMonthName(d)
{
   var theMonth = d.getMonth()
   
   if (theMonth == 0) 
            return "January"
   if (theMonth == 1) 
            return "February"
   if (theMonth == 2) 
            return "March"
   if (theMonth == 3) 
            return "April"
   if (theMonth == 4) 
            return "May"
   if (theMonth == 5) 
            return "June"
   if (theMonth == 6) 
            return "July"
   if (theMonth == 7) 
            return "August"
   if (theMonth == 8) 
            return "September"
   if (theMonth == 9) 
            return "October"
   if (theMonth == 10) 
            return "November"
   if (theMonth == 11) 
            return "December"
}

// A helper function for the other functions in this
// support script

function DateSupportReplaceAwithBinC(aa,bb,cc)
{
 var a = aa + ""
 var b = bb + ""
 var c = cc + ""
	var i = c.indexOf(a);
	var l = b.length;
	while (i != -1)	
 {
		c = c.substring(0,i) + b + c.substring(i + a.length,c.length);
  i += l
		i = c.indexOf(a,i);
	}
	return c;
}


function ReplaceTokensWithTimeDate(strIn, leadingZeroes, zoneDiff)
{
    var strOut = strIn
    var now = new Date()
    var d = new Date(now.getTime() + zoneDiff)

    var theTime = ""
    var theHours
    var theMinutes
    var theSeconds
    var ampm = "am"

    theHours = d.getHours()
    if (theHours >= 12)
    {
        ampm = "pm"
    }
    if (theHours > 12)
    {
         theHours -= 12   
    }

    theMinutes = d.getMinutes()
    if (leadingZeroes, theMinutes < 10)
    {
        theMinutes = "0" + theMinutes
    }
    
    theTime = theHours + ":" + theMinutes + ampm

    theSeconds = d.getSeconds()
    if (leadingZeroes && theSeconds < 10)
    {
        theSeconds = "0" + theSeconds
    }

    strOut = DateSupportReplaceAwithBinC("[monthname]", getMonthName(d), strOut)
    strOut = DateSupportReplaceAwithBinC("[monthnumber]", d.getMonth(d) + 1, strOut)
    strOut = DateSupportReplaceAwithBinC("[dayname]", getDayName(d), strOut)
    strOut = DateSupportReplaceAwithBinC("[daynumber]", d.getDate(), strOut)
    strOut = DateSupportReplaceAwithBinC("[year]", getFullYear(d), strOut)
    strOut = DateSupportReplaceAwithBinC("[time]", theTime, strOut)
    strOut = DateSupportReplaceAwithBinC("[hours]", theHours, strOut)
    strOut = DateSupportReplaceAwithBinC("[minutes]", theMinutes, strOut)
    strOut = DateSupportReplaceAwithBinC("[seconds]", theSeconds, strOut)
    strOut = DateSupportReplaceAwithBinC("[ampm]", ampm, strOut)

    return strOut
}


// This function takes the name of an edit box and a 
// flag that says whether or not to pad single digit 
// minutes and seconds with a zero.  It provides a 
// real time clock in an edit box.
//
function SetTimeText(strElementName, blnLeadingZeroes, zoneDiff)
{
  var theObj = eval(strElementName)

  theObj.setText(ReplaceTokensWithTimeDate(theObj.ContentString,blnLeadingZeroes, zoneDiff))
  setTimeout("SetTimeText('" + strElementName + "'," + blnLeadingZeroes + "," + zoneDiff + ")",1000)
}

// Returns a JavaScript Date object
// Expected format of date is 8/17/1998
// Expected format of time is 12:02am or 1:09pm
// Gives an error message if format is wrong.
//
function MakeDate(strDate, strTime)
{

 var tempDate = new Date(strDate)
 var strFormatted = getMonthName(tempDate) + " " + tempDate.getDate() + ", " + getFullYear(tempDate)

	var colonPos = strTime.indexOf(":")
	var ampmPos = strTime.indexOf("am")
	if (ampmPos == -1)
		ampmPos = strTime.indexOf("AM")
    if (ampmPos == -1)
		ampmPos = strTime.indexOf("pm")
	if (ampmPos == -1)
		ampmPos = strTime.indexOf("PM")

	// assume format of time is okay
	var theHours = strTime.substring(0,colonPos)
	var theMinutes = strTime.substring(colonPos + 1, ampmPos)
	var ampm = strTime.substring(ampmPos, strTime.length)
	ampm = ampm.toUpperCase()

	if (ampm == "PM")
	{
		if (theHours != "12")
		{
			theHours += 12
		}
	}
	else
	{
		if (theHours == "12")
		{
			theHours = "0"
		}
	}

	var outDate = new Date(strFormatted + " " + theHours + ":" + theMinutes)
	return outDate
}

// Support Script (650)
function ValidateEMail()
{
   var msg = "";
   var val = this.getText();
   var msgInvalid = "Please enter a valid e-mail address\n(a valid e-mail address contains the @ character)";

  	var theLen = StripChars(" ",val).length
	  if (theLen == 0)	
		  if (!this.Required) return ""		
		  else return "Required field.  " + msgInvalid

   if (val.indexOf("@",0) < 0) 
   {
      msg = msgInvalid 
   }
   return msg;
}

function document_onLoad() {
UserName.focus();
if (String(Login.getValue("login"))!= "undefined" && String(Login.getValue("login"))!= "")
  SavePassword.setState(parseInt("1"))
UserName.setText(HiddenUsername.getText())
Password.setText(Hiddenpassword.getText())
var style = "MMM/DD/YYYY";
var d = new Date();

if (style == "MM/DD/YY") {
  var date_string = (d.getMonth()+1) + "/" + d.getDate() + "/" + d.getYear();
  }
  else if (style == "MM/DD/YYYY") {
  var date_string = (d.getMonth()+1) + "/" + d.getDate() + "/" + d.getFullYear();
  }
  else if (style == "MM-DD-YY") {
  var date_string = (d.getMonth()+1) + "-" + d.getDate() + "-" + d.getYear();
  }
  else if (style == "MM-DD-YYYY") {
  var date_string = (d.getMonth()+1) + "-" + d.getDate() + "-" + d.getFullYear();
  }
  else if (style == "DD/MM/YY") {
  var date_string = d.getDate() + "/" + (d.getMonth()+1) + "/" + d.getYear();
  }
  else if (style == "DD/MM/YYYY") {
  var date_string = d.getDate() + "/" + (d.getMonth()+1) + "/" + d.getFullYear();
  }
  else if (style == "Month Day, Year") {
  var date_string = getMonthName(d) + " " + d.getDate() + ", " + d.getFullYear();
  }
  else if (style == "Day of week, Month Day, Year") {
  var date_string = getDayName(d) + " " + getMonthName(d) + " " + d.getDate() + ", " + d.getFullYear();
  }
  else if (style == "MMM-DD-YYYY") {
  var date_string = getShortMonthName(d) + "-" + d.getDate() + "-" + d.getFullYear();
  }
  else if (style == "Locale") {
  var date_string = d.toLocaleString();
  }
  else {
  var date_string = d.toGMTString();
  }

today.setText(date_string);
email_password.Validate = ValidateEMail;
email_password.Required = Number("0");
AddToValidateArray("email_password")
if (String(Login.getValue("user"))!="null")
  HiddenUsername.setText(Login.getValue("user"));
 }

function Form1_onSubmit() 
{
	if ( email_password.getText() == '') 
	{
		return false;
	}
}

function _Form1_onSubmit() { if (Form1) return Form1.onSubmit(); }

function Form2_onSubmit() 
{
	//if ( ( UserName.getText() == '' || Password.getText() == '' ) ) 
	//{
	//	return false;
	//}
	return true;
}

function _Form2_onSubmit() { if (Form2) return Form2.onSubmit(); }

function ImageButton3_onClick() {
var addChar = "?" 
var j
var okToSubmit = false;

if ("".length > 1)
{
    Form1.setAction(subAwithBinC(" ", "%20", ""));
}

// execute the onSubmit() event handler and try to 
// determine if it already validated the form
Result = Form1.onSubmit();

//   If there is no onSubmithander the return value is null
//   If there is a validation handler it returns true to submit
//   or false to not submit
if (Result==null)  // there is no validation already defined
{
    if ("0" == "1")
    {
        Result = Validate("0"); // don't stop on first error
        if (Result == "") okToSubmit = true;
        else alert("The form could not be submitted:" + Result);
    }
    else okToSubmit = true;
}
else // there is a validation already defined
{
    if (Result==true)
        okToSubmit = true;
}

if (okToSubmit) 
{
    // We have to
    // put the source in the query string so the generic database contracts
    // still work.

    // NOTE: this only works if the method of the form is POST


    act = Form1.getAction();
    if (act.indexOf("?") != -1)
    {    
        addChar = "&"
    }

    act += addChar + "ImageButton3=1"
    Form1.setAction(act);


    Form1.submit();
}
if (SavePassword.getState())
{
    Login.setValue("user",UserName.getText());
}
else
{
    Login.expire("user");
}
 }
function _ImageButton3_onClick() { if (ImageButton3) return ImageButton3.onClick(); }
function ImageButton1_onClick() {
var addChar = "?" 
var j
var okToSubmit = false;

if ("".length > 1)
{
    Form1.setAction(subAwithBinC(" ", "%20", ""));
}

// execute the onSubmit() event handler and try to 
// determine if it already validated the form
Result = Form1.onSubmit();

//   If there is no onSubmithander the return value is null
//   If there is a validation handler it returns true to submit
//   or false to not submit
if (Result==null)  // there is no validation already defined
{
    if ("1" == "1")
    {
        Result = Validate("0"); // don't stop on first error
        if (Result == "") okToSubmit = true;
        else alert("The form could not be submitted:" + Result);
    }
    else okToSubmit = true;
}
else // there is a validation already defined
{
    if (Result==true)
        okToSubmit = true;
}

if (okToSubmit) 
{
    // We have to
    // put the source in the query string so the generic database contracts
    // still work.

    // NOTE: this only works if the method of the form is POST


    act = Form1.getAction();
    if (act.indexOf("?") != -1)
    {    
        addChar = "&"
    }

    act += addChar + "ImageButton1=1"
    Form1.setAction(act);


    Form1.submit();
}
 }
function _ImageButton1_onClick() { if (ImageButton1) return ImageButton1.onClick(); }

//RBanner1Inline.js
/* client-side recordset */
//var rsBannerMenu = new Recordset("rsBannerMenu", "ImageWebPRO");
/* client-side recordset */
//var rsOptions = new Recordset("rsOptions", "ImageWebPRO");

//suckertree menu
//SuckerTree Vertical Menu 1.1 (Nov 8th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/

var menuids=["suckertree1"] //Enter id(s) of SuckerTree UL menus, separated by commas

function buildsubmenus(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
    ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle"
		if (ultags[t].parentNode.parentNode.id==menuids[i]) //if this is a first level submenu
			ultags[t].style.left=ultags[t].parentNode.offsetWidth+"px" //dynamically position first level submenus to be width of main menu item
		else //else if this is a sub level submenu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.display="block"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.display="none"
    }
    }
		for (var t=ultags.length-1; t>-1; t--){ //loop through all sub menus again, and use "display:none" to hide menus (to prevent possible page scrollbars
		ultags[t].style.visibility="visible"
		ultags[t].style.display="none"
		}
  }
}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus)

//tophtml.asp
	function findPos(obj) {
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			curleft = obj.offsetLeft
			curtop = obj.offsetTop
			while (obj = obj.offsetParent) {
				curleft += obj.offsetLeft
				curtop += obj.offsetTop
			}
		}
		return [curleft,curtop];
	}
//tophtml.asp
function doreload() {
  document.location.reload()
}

var childwindow = new Object ;
function CS_Popup(URL){
childwindow = window.open(URL,"NewWindow",options);
if (childwindow .opener == null)
    childwindow .opener = self;
}

count=0;var picOff=new Array();var picOn=new Array();
function TurnOn1(num){eval("picV"+num+"=new Image()");eval("picV"+num+".src='"+picOn[num]+"'");eval("document.pic"+num+"a.src=picV"+num+".src");};
function TurnOff1(num1){eval("picZ"+num1+"=new Image()");eval("picZ"+num1+".src='"+picOff[num1]+"'");eval("document.pic"+num1+"a.src=picZ"+num1+".src");};
function rollover(picoff1,picon1,url,extra){picOff[count]=picoff1;picOn[count]=picon1;document.write("<a href='"+url+"' onmouseover='TurnOn1("+count+")' onmouseout='TurnOff1("+count+")' "+extra+"><img src='"+picoff1+"' border=0 name='pic"+count+"a'></a>");TurnOn1(count);TurnOff1(count);count++;};

function Timer14_onTimer() {
if ("".length > 0)
    document.location.href="";
else
    document.location.href="RTimedOut1.asp";
 }
function _Timer14_onTimer() { if (Timer14) return Timer14.onTimer(); }

var Form1 = null;
var confid = null;

this.window.name = 'Main';


