

<!-- // Em caso de erro em script não ocorre nada
function stopError() {
    //alert ('Ops...\nTalvez estamos com problemas em nossos códigos JavaScripts.\nTente novamente, mas caso o problema persistir contate o Webmaster.\nAgradecemos sua compreenção.');
    return true;
    }
//window.onerror = stopError;
 // -->

name = navigator.appName;
ver = parseInt(navigator.appVersion);
if (name == "Netscape" && ver >= 3) { Navigator = 1; }
  else if (name == "Microsoft Internet Explorer" && ver >= 4) { Navigator = 2; }
	else { Navigator = 0 }


function abre(url, janela, width, height, Scroll, stat){
	var left   = (screen.width/2) - width/2;
	var top    = ((screen.height/2) - height/2)-20;
	janela = window.open(url,'MuzaAGVisionSystems'+janela, 'top='+top+',left='+left+',width='+width+',height='+height+',toolbar=no,location=no,resizable=no,fullscreen=0,status='+stat+',menubar=no,scrollbars='+Scroll+'');
}

function abreFrame(url, janela){
	parent['MuzaAGVisionSystems'+janela].location.href= url;
}


function AbreDetalhe(ID,Idioma){
	var URL = 'detalhes.asp?ID='+ID+'&Idi='+Idioma ;
	if (ID == 24 || ID == 89 || ID == 99 || ID == 143 || ID == 167 || ID == 405 || ID == 409 || ID == 410 || ID == 401){
		W = 790;
 		H = 390;
	} else 
	if (ID == 252){
		W = 790;
 		H = 420;
	} else {
		W = 790;
 		H = 543;
	}
	abre(URL,'Detalhes', W, H, 1, 1);
}

function clipagem(img){
	abre('zoom.asp?img=imagens/clipagem/'+img, 'clipagem', 700, 500, 1, '1,resizable=1');
}


function zoom(img){
	abre('zoom.asp?foto='+img, 'Zoom', 410, 430, 1, 0);
}


function ShowColor(ID,Idioma,ID_Prod,ID_Colecao){
	var URL = 'detalhes_cor.asp?ID='+ID+'&Idi='+Idioma+'&Produto='+ID_Prod+'&Colecao='+ID_Colecao;
	abre(URL,'Cores', 200, 300, 0, 1);
}

function ShowOpcionais(ID,Idioma,ID_Prod){
	var URL = 'detalhes_opcionais.asp?ID='+ID+'&Idi='+Idioma+'&Produto='+ID_Prod;
	abre(URL,'Opcionais', 300, 300, 0, 0);
}

function ShowFotos(ID_Foto){
	var URL = 'Detalhes_Fotos.asp?ID_Foto='+ID_Foto;
	abre(URL,'Fotos', 576, 394, 0, 1);
}

function Wallpaper(ID,Resolucao){
	URL = 'imagens/Wallpapers/'+ID
	if(Resolucao == 1){
		abre(URL+'_800.jpg','WallPaper'+ID+Resolucao, 750, 500, 0, 1);
	}else{
		abre(URL+'_1024.jpg','WallPaper'+ID+Resolucao, 1000, 650, 0, 1);
	}
}



<!--
var win = null;

function abrefull(idioma){
	var win = window.open('abertura.asp?idioma='+idioma,'CarmemVenzons','fullscreen=1');
}
function abrejanela(idioma){
	var win = window.open('abertura.asp?idioma='+idioma,'CarmemVenzons','fullscreen=1');
}
function maximizeWin() {
	if (window.screen) {
		var	width 	= screen.availWidth
		var height	= screen.availHeight
		window.moveTo(0, 0);
		window.resizeTo(width, height);
	}
}


<!-- //
function abreintro(idioma){

	var type;
	name = navigator.appName;
	ver = parseInt(navigator.appVersion);
	if      (name == "Netscape" && ver >= 3) { type = 1; }
	  else if (name == "Microsoft Internet Explorer" && ver >= 4) { type = 2; }
		else { type = 0 }
	
	//Para Netscape//
	
	if ( type == 1 ) {
		var tools=java.awt.Toolkit.getDefaultToolkit();
		var size=tools.getScreenSize();
		w=size.width;
		h=size.height;
		if ( w >= 641 && w <= 800 ) {
			abrejanela(idioma);
		 }else{
			abrefull(idioma);

		}
		}
	
	
	//Para MS IE 4//
	
	else if ( type == 2 ) {
		   if (screen.height > 600) {
				abrejanela(idioma);
			}else{
				abrefull(idioma);
			}
	}
	
	//Outros browsers//
	else if ( type == 0 ) {
		abrefull(idioma);
	 }
 }



function logoff(){
	var URL = 'logoff.asp'
	janela = window.open(URL,'CarmemVenzonsAGVisionSystemsSaida', 'top=1024,left=0,width=10,height=10,status=no,resizable=no');
}

function editar_user(id){
	abreFrame('AdmUserEdit.asp?ID='+id,'AdmUserEdit');
}

function desativar_user(pergunta,id,explicacao){
	var resposta = window.confirm( pergunta + id + explicacao);
	if (resposta){
		abreFrame('AdmUser.asp','AdmUser');
		location.href = ("AdmUser.asp?Act=excl&ID="+id);
	}
};

function apenas_numeros(){
	if (event.keyCode < 47 || event.keyCode > 57) event.returnValue = false;
	if (event.keyCode == 47) event.returnValue = false;
}

function Mascara (formato, keypress, objeto){ 
	campo = eval (objeto); 
	// Data 
	if (formato=='Data'){ 
		separador = '/'; 
		conjunto1 = 2; 
		conjunto2 = 5; 
		if (campo.value.length == conjunto1){ 
			campo.value = campo.value + separador; 
		} 
		if (campo.value.length == conjunto2){ 
			campo.value = campo.value + separador; 
		} 
	} 
}

function StatusBar(txt){
	window.defaultStatus = txt;
}
window.focus(); 

window.defaultStatus = "  M u z a e M u z a . c o m . b r"
var sorry = 'M u z a e M u z a . c o m . b r \n\n by ICERT Informática\n\n All rights reserved.';

function sel()
{
	return(false);
}

var isNS = (document.layers) ? true : false;
var isNS6 = (document.getElementById && !document.all) ? true : false;
var isIE = (document.all) ? true : false;
var isIE5 = (isIE) ? ((navigator.userAgent.indexOf('MSIE 5') > 0) ? true : false) : false;

function tecla(e){
	if(isIE && (event.keyCode == 93 || event.keyCode == 17 || event.keyCode == 18  || event.keyCode == 22)){
		alert(sorry);
		return(false);
	}else if((isNS || isNS6) && !e.which)
		return(false);
}
function click(e){
	if(isIE && (event.button == 2 || event.button == 3)){
		alert(sorry);
	return(false);
	}else	if((isNS || isNS6) && (e.which == 2 || e.which == 3)){
		alert(sorry);
	return(false);
	}
}

//if(isNS || isNS6)
//	document.captureEvents(Event.MOUSEMOVE | Event.MOUSEUP | Event.MOUSEDOWN | //Event.KEYDOWN | Event.RESIZE);

function teclaflash(tecla){
	if(tecla == 93 || tecla == 17 || tecla == 18 || tecla == 22 || tecla == 9){
		alert(sorry);
	}
}

//document.onkeydown=tecla;
//document.onmousedown=click;
//document.oncontextmenu=click;
//document.onselectstart=sel;
//document.ondragstart=sel;

