function login_form(login)
	{
	var msg="";
	if(login.txtuname.value==false)
	msg=msg+"\n-Enter Username.";
	if(login.txtpass.value==false)
	msg=msg+"\n-Enter Password.";
	if(msg!="")
		{
		alert("You have following errors:"+msg);
		return false;
		}
	
	else
	{

	return true;	
	}
	}
	
	//checking email=address
	function RightEmail()
	{
	var strEmail, strError, countAtRate, countDot, i;	
	var checkAtRate, checkDot;
	var ValidChars,CountValidChars;
	ValidChars="abcdefghijklmnopqrstuvwxyz0123456789_.@ABCDEFGHIJKLMNOPQRSTUVWXYZ-";
	//strEmail = checkEmail.arguments[0];
	strEmail=document.mailing.email.value;
	countAtRate=0;
	countDot=0;
	CountValidChars=0;
	if (strEmail.length >= 7)
		{		
		for(i=0;i<strEmail.length;i++)
			{
			if(strEmail.charAt(i)=="@")
				countAtRate++;
			if(strEmail.charAt(i)==".")
				countDot++;
			CountValidChars=0;
			for(j=0;j<ValidChars.length;j++)
				{
				if(strEmail.charAt(i)==ValidChars.charAt(j))
					{
					CountValidChars++;
					}
				}
			if(CountValidChars==0)
				{
				strError=0;
				break;
				}							
			}
		}
	checkAtRate=strEmail.indexOf("@",1);
	checkDot=strEmail.indexOf(".",1);
	for(i=1;i<countDot;i++)
		checkDot=strEmail.indexOf(".",checkDot+1);
	if(countAtRate==1 && countDot > 0 && strEmail.length >=7 && strError != 0)
		strError=1;
	else
		strError=0;
	if(checkDot>=strEmail.length-2)
		strError=0;
	if(strEmail.charAt(0)=="@" || strEmail.charAt(strEmail.length-1)=="@")
		strError=0;
	if(strEmail.charAt(0)=="." || strEmail.charAt(strEmail.length-1)==".")
		strError=0;
	if(checkDot < checkAtRate)
		strError=0;	

	return strError;
	}
	
	function check_user(user)
		{
			
	var msg="";
	if(user.uname.value==false)
	msg=msg+"\n-Enter Username.";
	if(user.upass.value==false)
	msg=msg+"\n-Enter Password.";
	if(msg!="")
		{
		alert("You have following errors:"+msg);
		return false;
		}
	
	else
	return true;	
	}

/*
	var message="Sorry, don't try to copy.\nAll rights reserved by Unicorn Felts."; 
 
// Don't edit below!
 
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
*/