function fntxtsize(txtsize)
{
	document.getElementById("maintable").className = txtsize
}
function fngoto(page)
{
	document.location.href = page
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
function isEmailAddress(WsCheck)
{
	var i, c;
	var at = dot = 0;
	var str = WsCheck;
	var sl  = str.length;
	var dx_at = dx_dot = -1;

	for (i = 0; i < sl; i++)
	{
		c = str.charAt(i);
		if (c == "@") {++at;  dx_at=i; }
		else if (c == ".") {++dot; dx_dot=i;}
		else if (c == " ")
		return false;
	}
	if ((sl < 8) || (dx_dot < 1) || (at != 1)
	|| (dx_at < 1) || (dx_dot-1 <= dx_at)
	|| (sl-3 < dx_dot))
	return false;
	else
	return true;
}
function getQueryVariable(variable)
{
	var query = window.location.search.substring(1);
	var vars = query.split("&");
	for (var i=0;i<vars.length;i++)
	{
		var pair = vars[i].split("=");
		if (pair[0] == variable)
		{
			return pair[1];
		}
	}
}
function Fn_Call(URL)
{  
	document.forml.action="DumpDB.asp?URl="+ URL
	document.forml.method="post"
	document.forml.submit()
	
}
function fnpop(win)
{
	newwin = window.open(win, 'window1', 'toolbar=0, scrollbars=no, status=0, location=0, resizable=0, menubar=0, width=531, height=439, left =50, top =50')
}
function fngoto(page)
{
	document.location.href = page
}
function fndisplay(catalog)
{
	document.getElementById(catalog).style.display = "inline"
}
function fnhide(catalog)
{
	document.getElementById(catalog).style.display = "none"
}
function fnShow(catalog)
{
	document.getElementById(catalog).style.display = "inline"
}
function fnShowto(catalog,subcatalog)
{
	document.getElementById(catalog).style.display = "inline"
	document.getElementById(subcatalog).style.display = "inline"
}
function fnhideto(catalog,subcatalog)
{
	document.getElementById(catalog).style.display = "none"
	document.getElementById(subcatalog).style.display = "none"
}
function fnShowPic(Pic)
{
	document.getElementById("PicDv").style.display = "inline";
	document.getElementById("Close").style.display = "inline";
	document.getElementById("Img").src = Pic;
}
function fnHidePic()
{
	document.getElementById("PicDv").style.display = "none";
	document.getElementById("Close").style.display = "none";
	document.getElementById("Img").src = "";
}