//======================================================// FUN‚ĶES GERAIS//======================================================// Fun¨›es para ativar default status messagefunction stsDefault() {	window.defaultStatus = "Planmeca do Brasil";	return false;	}	// Fun¨›es para ativar o status bar messagesfunction stsOn(menuitem) {	window.status = eval(menuitem+"msg");	return true;	}	function stsOff() {	window.status = "Planmeca do Brasil";	return true;	}		// Fun¨‹o help para download de arquivos PDFfunction helpPDF() {	// popup informando como fazer o donwload		var pdfmsg = "Para fazer o download do arquivo em PDF:\rWindows = clique com o bot\xE3o direito do mouse e escolha a op\xE7\xE3o 'Salvar destino como'.\rMacOS = <CTRL>+clique sobre o link e selecione a op\xE7\xE3o 'Download link to disk'.";		alert (pdfmsg);		}			// Fun¨‹o abre janela detalhe produto horizontalfunction winHOpen(nomeprod) {	var winpath = nomeprod;	var winleft = (screen.width/2) - 260;	var wintop = (screen.height/2) - 260;	var windata = "width=520,height=460" + ",left=" + winleft + ",top=" + wintop;	newWin = window.open(winpath,"",windata);	newWin.focus();	return false;	}	// Fun¨‹o abre janela detalhe produto vertical	function winVOpen(nomeprod) {	var winpath = nomeprod;	var winleft = (screen.width/2) - 240;	var wintop = (screen.height/2) - 340;	var windata = "width=480,height=580" + ",left=" + winleft + ",top=" + wintop;	newWin = window.open(winpath,"",windata);	newWin.focus();	return false;	}	// Fun¨‹o abre janela promo¨‹o vertical	function winPromoOpen(nomeprod) {	var winpath = nomeprod;		// largura e altura fixa da janela	var win_width = 820;	var win_height = 500;		// para centralizar no monitor - utilize estas op¨›es	var win_left = (screen.width/2) - 410;	var win_top = (screen.height/2) - (win_height/2);		// para centralizar na largura e posicionar a altura - utilize estas op¨›es	// var win_left = (screen.width/2) - (win_width/2);	// var win_top = 50;		// uncomment to check window data	//var mens = "Dados=" + win_width + ";" + win_height + ";" + win_left + ";" + win_top;	//alert(mens);		var windata = "width=820,height=500,left=" + win_left + ",top=40,scrollbars=yes";	//var win_data = "width=" + win_width + ",height=" + win_height + ",left=" + win_left + ",top=" + win_top;	newWin = window.open(winpath,"",windata);	newWin.focus();	return false;	}	// Fun¨‹o abre janela promo¨‹o dupla vertical	function winPromoDuplaOpen(nomeprod) {	var winpath = nomeprod;	var windata = "width=1000,height=600,left=5,top=5,scrollbars=yes";	newWin = window.open(winpath,"",windata);	newWin.focus();	return false;	}	// Fun¨‹o fecha janela detalhe produtofunction winClose() {	window.close();	return false;	}			// Fun¨‹o maximizar janela - aberturafunction winMax() {	var scrwdt = screen.width;	var scrhgt = screen.height;	window.moveTo(0,0);	window.resizeTo(scrwdt,scrhgt);	return false;	}	