function showHistory(root)  {
	window.location=root + '/showCustomPage.do?showByIdentificator=queryHist';
}

function selectAll(name, value) {
	
	forminputs = document.getElementsByTagName('input');
	
	for (i = 0; i < forminputs.length; i++) {
		var regex = new RegExp(name, "i");		
		if (regex.test(forminputs[i].getAttribute('name'))) {
			if (value == '1') {
				forminputs[i].checked = true;
			} else {
				forminputs[i].checked = false;
			}
		}
	}
}

function showFullOrUnimarc(biId, num)
{
	var rooter = document.getElementById('root').value;
	window.location=rooter + '/showFullOrUnimarc.do?biId=' + biId +
	 '&num=' + num;
}

function defaultSettings(root)
{
	window.location=root + '/defaultSettings.do?';
}

function ShowRecs()
{
	//alert('<bean:message key="searchRezRelated.jsp.NoSelected" />');
    $("#dialog").dialog("open");
    $("#dialogContent").html(message1);
}

