﻿
var isIE;

if (navigator.appName.indexOf ("Micro") != -1)
{
	isIE = true;
}
else
{
	isIE = false;
}


function cambiaEstilo (obj, clase)
{
	//alert ("El navegador es: " + obj + " - " + clase);
	if (isIE) {
		
		// Si Internet Explorer...
		obj.className = clase;
		
	} else {
		// Si FireFox/Mozilla/Netscape...
		obj.setAttribute ("class", clase, 0);
	}
}