//	Abrir pagina com tamanho definido pelo link
function openpage(url,l,a){
	janela = window.open(url,"win",'toolbar=no,location=no,directories=0,status=0,menubar=0,scrollbars=1,width=' + l + ',height=' + a + ',resizable=0');
	text = "Se a janela não esta abrindo\ntalvez seja porque você tenha um\nprograma para bloqueador de pop-up!";
	janela.focus(); 
	if(janela ==  null) {
		alert(text);
		return;
	}
}
function openform(url,l,a){
	janela = window.open(url,"win",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,width=' + l + ',height=' + a + ',top=200,left=200,resizable=0');
	text = "Se a janela não esta abrindo\ntalvez seja porque você tenha um\nprograma para bloqueador de pop-up!";
	janela.focus(); 
	if(janela ==  null) {
		alert(text);
		return;
	}
}
function openproduto(url,l,a){
	janela = window.open(url,"win",'toolbar=no,location=no,directories=0,status=0,menubar=0,scrollbars=1,width=' + l + ',height=' + a + ',resizable=0');
	text = "Se a janela não esta abrindo\ntalvez seja porque você tenha um\nprograma para bloqueador de pop-up!";
	janela.focus(); 
	if(janela ==  null) {
		alert(text);
		return;
	}
}

//      CHAMA OUTRA PAGINA
function delayer_index2(){
document.location = "index2.php"
}

//	Barra de status
window.status="C A S I L I N E A - Mobiliário Personalizado...";

//	Linha da Tabela muda de Cor
//    Comando <tr onmouseover="mtOvr(this,'#E8E3D9');" onmouseout="mtOut(this,'#F2F2F2');">
function mtOvr(src,clrOver) { 
if (!src.contains(event.fromElement)) { 
   src.bgColor = clrOver; 
   } 
} 
function mtOut(src,clrIn) { 
if (!src.contains(event.toElement)) { 
   src.bgColor = clrIn; 
   } 
} 
function mtClk(src) { 
if(event.srcElement.tagName=='TR') 
  src.children.tags('A')[0].click(); 
}

//	Pagina nova com imagem
function imagem(img,l,a){
document.write('<html>');
document.write('<head>');
document.write('<title>C A S I L I N E A - Mobiliário Personalizado...</title>');
document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
document.write('<link rel="stylesheet" type="text/css" href="/css/links.css">');
document.write('<script language="javascript" src="/scripts/funcoes.js"></script>');
document.write('</head>');
document.write('<body>');
document.write('<p align="center"><img src="' + img + '" width="' + l + '" height="' + a + ' + "border="2"></p>');
document.write('<table width="535" border="0" align="center" cellpadding="0" cellspacing="0">');
document.write('  <tr>');
document.write('    <td align="right" valign="middle"><table width="155" height="65" border="1" align="right" cellpadding="0" cellspacing="0" bordercolor="#999999" bgcolor="#eaeaea">');
document.write('      <tr>');
document.write('        <td align="center" valign="middle"><table width="140" border="0" cellspacing="0" cellpadding="0">');
document.write('            <tr>');
document.write('              <td height="18" class="black11">Menu... </td>');
document.write('            </tr>');
document.write('            <tr>');
document.write('              <td height="15"><img src="/images/seta_red.gif" width="4" height="8"> <a href="javascript:window.print()" class="lkblue11">Imprimir esta p&aacute;gina</a></td>');
document.write('            </tr>');
document.write('            <tr>');
document.write('              <td height="15"><img src="/images/seta_red.gif" width="4" height="8"> <a href="javascript:window.history.back(1)" class="lkblue11">&lt;&lt; Voltar</a></td>');
document.write('            </tr>');
document.write('        </table></td>');
document.write('      </tr>');
document.write('    </table></td>');
document.write('  </tr>');
document.write('</table>');
document.write('</body>');
document.write('</html>');
}

//	Pagina nova com imagem teste
function novo(img,l,a){
document.write('<html>');
document.write('<head>');
document.write('<title>WWW.MOVEISCURITIBA.COM.BR</title>');
document.write('<body link="#000000" vlink="#000000" alink="#000000">');
document.write('<meta name="GENERATOR" content="Microsoft FrontPage 3.0">');
document.write('</head>');
document.write('<p align="center"><img src="' + img + '" width="' + l + '" height="' + a + ' + "border="2"></p>');
document.write('<p align="center"><a href="javascript:window.history.back(1)"><strong><small><small><small><font face="Tahoma">Voltar</a> </font></small></small></small></strong></p>');
document.write('</body>');
document.write('</html>');
}
