<!--

function vacio(texto){
	if ( texto.replace(/^[\s]+/g,"").length == 0 ) {
		return true;
	}else{
		return false;
	}
}

function isEmail(str) {
  var supported = 0;
  if (window.RegExp) {
    var tempStr = "a";
    var tempReg = new RegExp(tempStr);
    if (tempReg.test(tempStr)) supported = 1;
  }
  if (!supported) { return (str.indexOf(".") > 2) && (str.indexOf("@") > 0); }
	var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
  var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
  return (!r1.test(str) && r2.test(str));
}

function validarRadio( obj ) {
	var boo = false;
	if ( obj.length != null ) {
		for (var i=0; i < obj.length; i++)  { 
			if ( obj[i].checked )  {
				boo = true;
			}
		}
	} else {
		boo = obj.checked;
	}
	return boo;
}

function swapOn(obj) {
	obj.src = obj.src.substr(0, (obj.src.length-4) ) +"_on.gif";
}

function swapOff(obj) {
	obj.src = obj.src.substr(0, (obj.src.length-7) ) +".gif";
}

//-->
