// Login - Acesso Restrito
// Versao 1.0 (13.10.06)
function submit_login()
	{
		form = document.form_login;
		str  = "";
		
		if(document.getElementById('usuario').value == "")
			{
				str += "Preencha seu USUARIO.\n"
			}
		if(document.getElementById('senha').value == "")
			{
				str += "Preencha sua SENHA.\n"
			}
			
		if(str == "")
			{
				form.action = '/php/redirect.php';
				form.method = 'POST';
        		form.submit();
			}
		else
			{
				alert(str);
			}
	}

// UnicredNET
// Versao 1.0 (13.10.06)
function unicrednet()
	{
		janela = window.open(document.getElementById('unicrednet_singular').value, "");
		janela.focus();
	}
	
// Janela PopUP
// Versao 1.0 (15.10.06)
function popup(url) 
	{
 		janela = window.open(url, "", "width=300, height=300, left=200, top=100");
		janela.focus();
	}

// Propaganda Sheraton
// Versao 1.0 (15.12.06)
function prop(url) 
	{
 		janela = window.open(url, "", "width=433, height=287, left=200, top=100");
		janela.focus();
	}


	function popup2(url, largura, altura) {
	//	Posicionamento da janela popup
		var mlargura  = (screen.availWidth / 2) - (largura / 2);
		var maltura = (screen.availHeight / 2) - (altura / 2);
		
 		janela = window.open(url, "", "width=" + largura + ", height=" + altura + ", left=" + mlargura + ", top=" + maltura + "");
		janela.focus();
	}

	
	
	
/**
 * Opcao: Novo UnicredNET ou anterior
 * Para usar basta incluir a funcao mobilebank() no link unicrednet pelo CMS
 *
 */

//	Parametros: largura e altura
	var largura = 310;
	var altura = 300;

//	Posicionamento da janela popup
	var mywidth  = (screen.availWidth / 2) - (largura / 2);
	var myheight = (screen.availHeight / 2) - (altura / 2);


	function mobilebanking(url) {
 		janela = window.open(url, "", "width=" + largura + ", height=" + altura + ", left=" + mywidth + ", top=" + myheight + "");
		janela.focus();
	}