function PrintElementID(id, pg) {
        var oPrint, oJan;
        oPrint  = window.document.getElementById(id).innerHTML;
        oJan    = window.open(pg);
        oJan.document.write('<div style="font: 10pt Arial">' + oPrint + '</div>');
        oJan.history.go();
        oJan.window.print();
}

function getPageSize(){
			var de = document.documentElement;
			var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
			var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight
			arrayPageSize = new Array(w,h) 
			// return arrayPageSize; -- Comment
			// Custom
			if(w <= 994) document.getElementById("background").style['width'] = "994px";
			else document.getElementById("background").style['width'] = "100%";
			setTimeout("getPageSize()",1);
}

function validaContato(){
	if(document.forms[0].pessoacontato.value == ""){
		alert('Preencha o campo Pessoa de Contato.');
		return false;
	}
	if(document.forms[0].email.value.indexOf('@') == -1){
		alert('Preencha o campo E-mail corretamente.');
		return false;
	}
	if(document.forms[0].mensagem.value == ""){
		alert('Digite sua mensagem.');
		return false;
	}
}

function validaAcao(){
	if(document.forms[0].pessoacontato.value == ""){
		alert('Preencha o campo Pessoa de Contato.');
		return false;
	}
	if(document.forms[0].email.value.indexOf('@') == -1){
		alert('Preencha o campo E-mail corretamente.');
		return false;
	}
	if(document.forms[0].necessidade.value == ""){
		alert('Informe sua Necessidade.');
		return false;
	}
}

function validaOrcamento(){
	if(document.forms[0].pessoacontato.value == ""){
		alert('Preencha o campo Pessoa de Contato.');
		return false;
	}
	if(document.forms[0].email.value.indexOf('@') == -1){
		alert('Preencha o campo E-mail corretamente.');
		return false;
	}
	if(document.forms[0].necessidade.value == ""){
		alert('Informe sua Necessidade.');
		return false;
	}
}

function validaTreinamento(){
	if(document.forms[0].pessoacontato.value == ""){
		alert('Preencha o campo Pessoa de Contato.');
		return false;
	}
	if(document.forms[0].email.value.indexOf('@') == -1){
		alert('Preencha o campo E-mail corretamente.');
		return false;
	}
	if(document.forms[0].necessidade.value == ""){
		alert('Informe sua Necessidade.');
		return false;
	}
}
