function changeBorder(object, classe) {
    obj = document.getElementById(object);
    obj.className = classe;
}

function contador(campo,object) {
    if((campo.value.length) >= caracteres) {
        campo.value = campo.value.substr(0,caracteres);
    }
    obj = document.getElementById(object)
    obj.innerHTML = caracteres-campo.value.length
}

function PopUp(PopUpURL){
    window.open(PopUpURL, '_blank');
}

function sH(elemento) {
	obj = document.getElementById(elemento);
	if (obj.style.display == "none"){
		obj.style.display = "block";
	} else {
		obj.style.display = "none";
	}
}
function GerarSWF($arquivo,$largura,$altura){
    document.writeln('    <object type="application/x-shockwave-flash" data="'+ $arquivo +'" width="'+ $largura +'" height="'+ $altura +'">');
    document.writeln('        <param name="movie" value="' + $arquivo + '" />');
    document.writeln('        <param name="menu" value="false" />');
    document.writeln('        <param name="quality" value="high" />');
	document.writeln('        <param name="wmode" value="transparent" />');
    document.writeln('    </object>');
}
