<!--

function chkLogin(formName) 
{

	if (trim(formName.UserName.value)=="")
	{
		alert(loginName);
		formName.UserName.focus();
		return false;
	}
	if (isPropermail(formName.UserName.value) == true) {
		alert(regEmailcheck);
		formName.UserName.select();
		formName.UserName.focus();
		return false;
	}
	if (isProperdot(formName.UserName.value) == true)  {
		alert(regEmailcheck);
		formName.UserName.select();
		formName.UserName.focus();
		return false;
	}	
	if (trim(formName.Password.value)=="")
	{
		alert(loginPass);
		formName.Password.focus();
		return false;
	}
	
	formName.isSave.value = 1;
}


function chkName(formName)
{
	formName.isSave.value = 2;		
	location.href= location.href + "?forgot=2&uname=" + formName.UserName.value;		
	
}
function isPropermail(string)
{

   if (!string) return false;
   var iChars = "@";

   for (var i = 0; i < string.length; i++) {
      if (iChars.indexOf(string.charAt(i)) != -1)
         return false;
   }
   return true;
}

function isProperdot(string)
 {

	if (!string) return false;
	var iChars = ".";

	for (var i = 0; i < string.length; i++) {
	   if (iChars.indexOf(string.charAt(i)) != -1)
	      return false;
   }
   return true;
 }

function isProperm(string)
{

	if (!string) return false;
	var iChars = "*|+,\":<>[]{}`\';()&$#%";

	for (var i = 0; i < string.length; i++) {
	   if (iChars.indexOf(string.charAt(i)) != -1)
	      return false;
   }
   return true;
}
-->