function doNothing(){
	//No hago nada....
}

function trim(str) {
	//Match spaces at beginning and end of text and replace
	//with null strings
	return str.replace(/^\s+/,'').replace(/\s+$/,'');
}
function checkSelection(sel,msg){
	if (sel.selectedIndex<1){
		alert(msg);
		return false;
	}
	return true;
}

function isEmail(email){
	var reg = /(^[\-_\.a-zA-Z0-9]+)@((([0-9]{1,3}\.){3}([0-9]{1,3})((:[0-9])*))|(([a-zA-Z0-9\-]+)(\.[a-zA-Z]{2,})+(\.[a-zA-Z]{2})?((:[0-9])*)))/;
	return reg.test(email);
}

function isNumber(number){
	return !isNaN(number);
}

function isCedula(ced){
	var reg = /^[VE]\d{7,8}$/;
	return reg.test(ced);
}

function isRIF(rif){
	var reg = /^[JV]\d{7,9}$/;
	return reg.test(rif);
}

function isDomainName(url){
	reg =/^(([\w\d](-?[\w\d])*\.){1,3})([\w\d](-?[\w\d])*)$/;
	return reg.test(url);
}

function isTelefono(tlf){
	reg =/^\d{7}$/;
	return reg.test(tlf);
}

function isCodigo(cod){
	reg = /^\d{3}$/;
	return reg.test(cod);
}

function isLogin(login){
	reg = /^\w{6,15}$/;
	return reg.test(login);
}