	// **************************************	*********************************************
// script written by marc boncz (marc.boncz@top.com.br)
// ***********************************************************************************

document.onmousedown = checkClick;
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN)
}

// ***********************************************************************************
// functions used in all pages of the site
// ***********************************************************************************
function popUp(URL, winWidth, winHeight, winX, winY) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "','toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=" + winWidth + ", height=" + winHeight +", left=" + winX +", top= " + winY + "');");
}
		
function switch_image(ImageUrl) {
	document.images.big_image.src = ImageUrl;
}

function checkClick(ev) {
	var SomeDate = new Date();
   var ThisYear = SomeDate.getFullYear();
	var ActualAlert = 'Copyright 2004 - ' + ThisYear +  ': Frimach / MB';

  	if (navigator.appName == "Netscape") {
     	if (ev.which != 1) {
  	      alert(ActualAlert);
     	   return false;
		}
	} else {
		if (event.button != 1) {
			alert(ActualAlert);
			return false;
		}
	}
}

function changeCapacity(frm, element_copy, element_original) {
	frm.elements[element_copy].value = frm.elements[element_original].value; 
}



