function abrePopUp(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function msgBreve(msg) { //v1.0
  alert(msg);
}


<!--
function validaCadastro(){
	strErro = "";

	if (document.frmCadastro.email.value=="E-mail"){
		strErro = strErro + "Informe seu e-mail.\n";
	}

	if (strErro != ""){
		alert(strErro);
		return;
	}

	document.frmCadastro.action = "cadastro.asp";
	document.frmCadastro.submit();
}
function nothing(){return;}
//-->




<!--
function validaContato(){
	strErro = "";

	if (document.frmContato.nome.value==""){
		strErro = strErro + "Informe seu nome.\n";
	}
	if (document.frmContato.email.value==""){
		strErro = strErro + "Informe seu e-mail.\n";
	}
	if (document.frmContato.assunto.value==""){
		strErro = strErro + "Selecione o assunto.\n";
	}

	if (strErro != ""){
		alert(strErro);
		return;
	}

	document.frmContato.action = "faleEnviar.asp";
	document.frmContato.submit();
}
function nothing(){return;}
//-->



function apenasNumero(e)
{
	var key = window.event ? e.keyCode : e.which;
	var keychar = String.fromCharCode(key);
	if ((key == 0) || (key == 8)) {
		return true
	}
	else {
		reg = /\d/;
		return reg.test(keychar);
	}  
}


function formataFone(obj, e){

    var tecla = e.keyCode;
    if (tecla == 8) {
	    return true;
    }
    else {
	    var retorno = apenasNumero(e);
	    if (retorno) {
		    if (obj.value.length==1) {
			    obj.value = "(" + obj.value;
		    }
		    if (obj.value.length==3) {
			    obj.value = obj.value + ") ";
		    }
		    if (obj.value.length==9) {
			    obj.value = obj.value + "-";
		    }
	    }
	return retorno;
    }
}

function formataCep(obj, e)
{
	var tecla = e.keyCode;
	if (tecla == 8)
	{ 
		return true;
	}
	else
	{ 
		var retorno = apenasNumero(e);
		if (retorno)
		{
			if (obj.value.length==5)
			{
				obj.value = obj.value + "-";
			}
		}
		return retorno;
	}
}


function formataDataNasc(obj, e)
{
	var tecla = e.keyCode;
	if (tecla == 8)
	{ 
		return true;
	}
	else
	{ 
		var retorno = apenasNumero(e);
		if (retorno)
		{
			if (obj.value.length==2)
			{
				obj.value = obj.value + "/";
			}
		}
		return retorno;
	}
}


//Função para pegar flash no Internet Explorer
//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

