﻿function gfClick(dest)
{
	window.location = dest;
}
function gfClickWhy()
{
	window.open('whychange.asp',null,'width=645,height=515,location=no,toolbar=no,scrollbars=no,resizable=no,top=10,left=10');
}
function gfClickNew(dest,w,h)
{
	window.open(dest,null,"width=" + w + ",height=" + h + ",location=no,toolbar,scrollbars,resizable,top=0,left=0");
}
function gfClickHelp(dest)
{
	window.open(dest,null,"width=780,height=570,location=no,toolbar=no,scrollbars,resizable=no");
}
function gfGO(cmd,opt,opt2,opt3)
{
	if (opt) 
	{
		document.frm.h_opt.value = opt;
	}
	else
	{
		document.frm.h_opt.value = "";
	}
	if (opt2) 
	{
		document.frm.h_opt2.value = opt2;
	}
	else
	{
		document.frm.h_opt2.value = "";
	}
	if (document.frm.h_opt3) 
	{
		if (opt3) 
		{
			document.frm.h_opt3.value = opt3;
		}
		else
		{
			document.frm.h_opt3.value = "";
		}
	}
	document.frm.h_btn.value = cmd;
	document.frm.submit();
}
function gfGOF(cmd,fme)
{
	document.frm.h_btn.value = cmd;
	document.frm.submit();
}
function gfIconOvr(btn)
{
	window.event.srcElement.src = "images/" + btn + "on.gif";
}
function gfIconOut(btn)
{
	window.event.srcElement.src = "images/" + btn + ".gif";
}
function gfBtnOvr()
{
	window.event.srcElement.style.backgroundColor = "#000000";
	window.event.srcElement.style.color = "#FFCC33";
	window.event.srcElement.style.cursor = "hand";
}
function gfBtnOut()
{
	window.event.srcElement.style.backgroundColor = "";
	window.event.srcElement.style.color = "";
	window.event.srcElement.style.cursor = "default";
}
function gfTBtnOvr()
{
	window.event.srcElement.style.backgroundColor = "#FFCC33";
	window.event.srcElement.style.color = "#000000";
	window.event.srcElement.style.cursor = "hand";
}
function gfTBtnOut()
{
	window.event.srcElement.style.backgroundColor = "";
	window.event.srcElement.style.color = "";
	window.event.srcElement.style.cursor = "default";
}
function gfNavImg(fld,img)
{
	if (document.images)
	{
		document[fld].src = img;
	}
}
function gfOnLoad(fld)
{

	gOnLoad
	var i,j;
	for (i = 0; i < document.forms.length; i++)
	{
		for (j = 0; j < document.forms[i].length; j++)
		{
			if (document.forms[i][j].name == fld)
			{	
				document.forms[i][j].focus();
				//document.forms[i][j].select();
			}
		}
	}	
	
}
function gfImageError(obj)
{
	obj.src = 'images/imgerror.gif';
}

