// JavaScript Document

function pageload()
{
	document.frmPesquisar.txtBusca.value = "Digite uma palavra";
	document.frmLogin.txtLogin.value = "login";
	document.frmLogin.txtSenha.value = "senha";
}

function limpa_campo(nome_id)
{
	getElemento(nome_id).value = "";

}

function getElemento(id) 
{
	return document.getElementById ? document.getElementById(id) :
	document.all ? document.all(id) : null;
}

function valordefault()
{
	if (document.frmPesquisar.txtBusca.value == "")	document.frmPesquisar.txtBusca.value = "Digite uma palavra";
	if (document.frmLogin.txtLogin.value == "") document.frmLogin.txtLogin.value = "login";
	if (document.frmLogin.txtSenha.value == "") document.frmLogin.txtSenha.value = "senha";
}

function EditaCli()
{
	var win = window.open("editaCli.php", "", "width=770, height=465, scrollbars=yes");
	tex = "Se a janela não estava abrindo\n tavez seja porque você tenha um  programa bloqueador de pop-up!"
	if(win == null){alert(text); return;}
	win.moveTo(100, 150);
}

function EditaUsuario()
{
	var win = window.open("editaUsuario.php", "", "width=770, height=470, scrollbars=yes");
	tex = "Se a janela não estava abrindo\n tavez seja porque você tenha um  programa bloqueador de pop-up!"
	if(win == null){alert(text); return;}
	win.moveTo(100, 150);
}

function OpenUsuarios()
{
	var win = window.open("listaUsuarios.php", "", "width=770, height=465, scrollbars=yes");
	tex = "Se a janela não estava abrindo\n tavez seja porque você tenha um  programa bloqueador de pop-up!"
	if(win == null){alert(text); return;}
	win.moveTo(100, 150);
}

function OpenClientes()
{
	var win = window.open("listaClientes.php", "", "width=770, height=465, scrollbars=yes");
	tex = "Se a janela não estava abrindo\n tavez seja porque você tenha um  programa bloqueador de pop-up!"
	if(win == null){alert(text); return;}
	win.moveTo(100, 150);
}

function Open(pagina)
{
	var win = window.open(pagina, "", "width=770, height=465, scrollbars=yes");
	tex = "Se a janela não estava abrindo\n tavez seja porque você tenha um  programa bloqueador de pop-up!"
	if(win == null){alert(text); return;}
	win.moveTo(100, 150);
								  
}

function Fotos(pagina)
{
	var win = window.open(pagina, "", "width=770, height=565, scrollbars=yes");
	tex = "Se a janela não estava abrindo\n tavez seja porque você tenha um  programa bloqueador de pop-up!"
	if(win == null){alert(text); return;}
	win.moveTo(100, 150);
								  
}

function CloseMe()
{
	window.close();
}
