function uservalidation(ovo)

{
		
		var country=ovo.country;
		country.optional=true;

		
		var length=ovo.elements.length;
		var greska=0;
				
		for (var i=0; i<length; i++)
			{	
				if (ovo.elements[i].value=='' && !ovo.elements[i].optional || ovo.elements[i].value==null && !ovo.elements[i].optional)
				{	
					alert ('Requiered Data is Missing !!!');
					ovo.elements[i].focus();
					ovo.elements[i].select();
					return false	
				}
			}


		if (isNaN(ovo.price.value))
		{
			alert('You should only enter the amount in the price field !!!');
			ovo.price.focus();
			ovo.price.select();
			return false;
		}


		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(ovo.email.value))
		{
			return (true);
		}
		else
		{
		alert("Invalid E-mail Address! Please re-enter.");
		ovo.email.focus();
		ovo.email.select();
		return (false);
		}

		return true;
		
}

function checkpasswords(ovo)
{
	if (ovo.password1.value != ovo.password2.value)
	{
		alert ('You have misstyped your password!!!');
		ovo.password1.focus();
		ovo.password1.select();
	}
}
