function printFunction(oLink, id, tmpParams) {
	if (oLink.target != '_blank') {
		oLink.href = '/index.php?id=' + id + tmpParams + '&print=1';
		oLink.target = '_blank';
	}
}

function pageWidth() {
	var pageWidthLimit = 990;
	var pageClientWidth = document.documentElement.clientWidth
	var oPage = document.getElementById('page');
	
	if (pageClientWidth <= pageWidthLimit) {
		if (oPage.className != 'width_auto') {
			oPage.className = 'width_auto';
		}
	} else {
		if (oPage.className != '') {
			oPage.className = '';
		}
	}
}

function probesSelection(action) {
	for(i=0;i<document.forms['probes_manufacturer_result'].elements.length;i++)
	 with(document.forms['probes_manufacturer_result'].elements[i]) {
	 	if(type=='checkbox') checked=(action=='reverse'?!checked:(action=='enable'?true:false));
	 }
}

function probesChangeManufacturer() {
	document.getElementById('probes_manufacturer_search_device')[0].selected = 'selected'; 
	probes_manufacturer_search.submit();
}