function check(obj){
	if(obj.options){
		if(obj.selectedIndex==0){alert(obj.name.substring(3,obj.name.length)+" is not choosen");obj.focus();return false}else return true;
	}else{
		obj.value = obj.value.replace(/(^\s*)|(\s*$)/g, "");
		if(obj.value.length==0){alert(obj.name.substring(3,obj.name.length)+" is empty");obj.focus();return false}else return true;
	}
}

function isMoney(value){
	r = new RegExp(/^\d+($|\.?\d{1,2}$)/);
	if(r.test(value)) return true;
	alert(value+" is not correct Number");
}


function isEmail(value){
	var re;
    // Rules for the email regular expression:
    // The start of the email must have at least one character 
    // before the @ sign
    // There may be either a . or a -, but not together before the @ sign
    // There must be an @ sign
    // At least once character must follow the @ sign
    // There may be either a . or a -, but not together in the address
    // The address must end with a and either 2 or 3 characters
    re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
	if(re.test(value)) return true;
	alert(value+" is not correct Email");
}
