function isblank(s)
{
        for(var i=0; i < s.length; i++)
        {
                var c = s.charAt(i);

                if((c!=' ')&&(c!="\n")&&(c!="\t"))
                        return false;
        }
        return true;
}
function validateLgnFrm(me)
{
	me.action = 'https://www.digicert.com/custsupport/validate.php';
	me.method = 'post';
	var errMsg="";
	username = me.username;
	password = me.password;
		
	if (isblank(username.value))
	{
		errMsg += "*You must enter your username.\n";
	}
	if (isblank(password.value))
	{
		errMsg += "*You must enter your password";
	}
	if (errMsg != "")
	{
		alert ("You have the following errors:\n\n" + errMsg);
		return false;
	}
	return true;
}
function forgotPwd()
	{
		var username = prompt("Enter your User Name:-", "");
		if (username != null)
		{
			username = username.trim();
			if (username.length > 0)
			{
				location.href="custsupport/forgotpwd.php?username="+username+"&RND=<?php echo urlencode(microtime())?>";
			}
		}
	}
/*function validateLgnFrm()
{
		var errMsg="";
		var focusObj=null;
		var frm = document.custform;
		if (frm.tUsername.value.trim().length <= 0)
		{
			errMsg += "\n- Username cannot be empty";
			focusObj = frm.tUsername;
		}
		if (frm.tOrderPwd.value.trim().length <= 0)
		{
			errMsg += "\n- Password cannot be empty";
			if (focusObj == null)
				focusObj = frm.tOrderPwd;
		}
		if (errMsg.length > 0)
		{
			alert ("The following are the errors:\n" + errMsg);
			focusObj.focus();
			return false;
		}
		return true;
}*/