﻿function setTipo(sel) {
	var catr = window.document.getElementsByName("ctl00$cpsx$Co_CatR").item(0);
	var catc = window.document.getElementsByName("ctl00$cpsx$Co_CatC").item(0);
	if (sel.options[sel.selectedIndex].value == "R") { catr.style.display = ""; } else { catr.style.display = "none"; }
	if (sel.options[sel.selectedIndex].value == "C") { catc.style.display = ""; } else { catc.style.display = "none"; }
}
function setCon(sel) {
	var prev = window.document.getElementsByName("ctl00$cpsx$Co_PreV").item(0);
	var prea = window.document.getElementsByName("ctl00$cpsx$Co_PreA").item(0);
	if (sel.options[sel.selectedIndex].value == "V") { prev.style.display = "inline"; } else { prev.style.display = "none"; }
	if (sel.options[sel.selectedIndex].value == "A") { prea.style.display = "inline"; } else { prea.style.display = "none"; }
}
function setTipoCx(sel) {
	var catr = window.document.getElementsByName("ctl00$cpcx$Co_CatR").item(0);
	var catc = window.document.getElementsByName("ctl00$cpcx$Co_CatC").item(0);
	if (sel.options[sel.selectedIndex].value == "R") { catr.style.display = "inline"; } else { catr.style.display = "none"; }
	if (sel.options[sel.selectedIndex].value == "C") { catc.style.display = "inline"; } else { catc.style.display = "none"; }
}
function setConCx(sel) {
	var prev = window.document.getElementsByName("ctl00$cpcx$Co_PreV").item(0);
	var prea = window.document.getElementsByName("ctl00$cpcx$Co_PreA").item(0);
	if (sel.options[sel.selectedIndex].value == "V") { prev.style.display = "inline"; } else { prev.style.display = "none"; }
	if (sel.options[sel.selectedIndex].value == "A") { prea.style.display = "inline"; } else { prea.style.display = "none"; }
}
function bookmarksite(title, url) {
    window.external.AddFavorite(url, title);
}

