<!--	
function Validator()
{ 
	var nVal1 = 0;
	var bChkhttp = false;
	var bPwd = true;
	var bForgotPw = false;
	for(i=0; i < document.forms["AccLogIn"].elements.length; i++)
	{
		if(document.forms["AccLogIn"].elements[i].type == "checkbox")
		{
			sName = document.forms["AccLogIn"].elements[i].name;
			if("chkhttp" == sName)
				bChkhttp = true;
							
			if (document.forms["AccLogIn"].elements[i].checked)
			{
				if("chkhttp" == sName)
				{
					if(0 == nVal1)
						nVal1 = 1;
				}
				if("forgotpassword" == sName)
				{
					bPwd = false;
					bForgotPw = true;
					document.forms["AccLogIn"].EmailFlag.value = "true";
				}
			}
		}
	}
		
		// add product selection for where to go
		var hasSelected = false;
		var hasProduct = false;
		if(!bForgotPw)
		{
			var elements = document.AccLogIn.elements;
			if(null != elements.length || 0 != elements.length)
			{
				for (var ii = 0; ii < elements.length; ii++ ) 
				{
					var element = elements[ii];
					if("select-one" == element.type && "product" == element.name)
					{
						hasProduct = true;
						for(var jj = 0; jj < element.options.length; jj++)
						{
							if(element.options[jj].selected && "#" != element.value)
							{
								hasSelected = true;
							}
						}
					}
				}
			}		
		}
					
		if(!hasSelected && hasProduct)
		{
			alert("Please select Products.");
			document.AccLogIn.product.focus();
			return false;
		}
			
		if(document.AccLogIn.userid.value == '')
		{
			alert("Please enter User ID.");
			document.AccLogIn.userid.focus();
			return false;
		}
					
		if(bPwd)
		{
			if(document.AccLogIn.password.value == '')
			{
				alert("Please Enter Password.");
				document.AccLogIn.password.focus();
				return false;
			}
		}
		
		if(document.AccLogIn.code.value.length == 0)
		{
		  alert("Please enter the security code.");
			document.AccLogIn.code.focus();
			return false;
		}
	
		if(bChkhttp)
		{
			if(0 == nVal1)
			{
				document.AccLogIn.action = document.AccLogIn.HttpsURL.value;
			}
			else
			{
			  document.AccLogIn.action = document.AccLogIn.HttpURL.value;
			}
		}
		
		return true;
	}

	function reset()
	{
	  document.AccLogIn.reset();
	  document.AccLogIn.userid.focus();
	}
//-->
