// JavaScript Document
function fntxtsize(txtsize)
{
	document.getElementById("maintable").className = txtsize
}
function fnRedirect()
{
	document.location.href = "catalog.html?Srch="+document.getElementById("findit").value
}
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 fnPlayFLV(Video, PUpW, PUpH)
	{
		window.open(Video,'Video', 'toolbar=0, scrollbars=no, status=0, location=0, resizable=0, menubar=0, width='+PUpW+', height='+PUpH+', left =50, top =50')
	}