var ie		= (typeof window.ActiveXObject != 'undefined');
var moz		= (typeof document.implementation != 'undefined') &&(typeof document.implementation.createDocument != 'undefined');
var	wHeight	= ( document.all )?screen.availHeight:window.outerHeight;
var wWidth	= ( document.all )?screen.availWidth:window.outerWidth;

function eReturnCode()
{
	this.Ok					=  0;
	this.naoInformado		= -1;
	this.conteudoInvalido	= -2;
	this.valorMinInvalido	= -3;
	this.valorMaxInvalido	= -4;
}
eReturnCode = new eReturnCode();

function eFieldType()
{
	this.data			= "DATA";
	this.dataHora		= "DATAHORA";
	this.dataHoraMinSeg	= "DATAHORAMINSEG";
	this.mesAno			= "MESANO";
	this.horaMinSeg		= "HORAMINSEG";
	this.horaMin		= "HORAMIN";

	this.string			= "CHAR";
	this.numerico		= "DECIMAL";
	this.inteiro		= "INTEIRO";
	
	this.cartao			= "CARTAO";
	this.cep			= "CEP";
	this.cnpj			= "CNPJ";
	this.cpf			= "CPF";
	this.eMail			= "EMAIL";
	this.fone			= "FONE";
	this.fone2			= "FONE2";
	
	this.RE				= "RE";

	this.regExpr		= "REGEXPR";
}
eFieldType = new eFieldType();

function eCalendarFormat()
{
	this.diaSemanaDiaMesAno		= "dddd, dd de MMMM de yyyy";
	this.anoMesDiaHoraMinSeg	= "dd/MM/yyyy hh:mm:ss";
	this.anoMesDiaHoraMin		= "dd/MM/yyyy hh:mm";
	this.anoMesDia				= "dd/MM/yyyy";
	this.horaMinSeg				= "hh:mm:ss";
	this.horaMin				= "hh:mm";

	this.CalendarioAnual		= "YYYY";
	this.CalendarioMensal		= "MMMM";
}
eCalendarFormat = new eCalendarFormat();


function eParamType()
{
	this.nameValue	= 0;
	this.xml		= 1;
}
eParamType = new eParamType();
