function ShowContentN(d, d1, d2, d3, valueN) {
if (d.length < 1) {
return;
}
show = document.getElementById(d);
noShow1 = document.getElementById(d1);
noShow2 = document.getElementById(d2);
noShow3 = document.getElementById(d3);
value = valueN;
document.searchboxBook.inputData.value = document.searchbox1.inputData.value = value = document.searchbox2.inputData.value = document.searchbox3.inputData.value = value;
show.style.display = "";
noShow1.style.display = "none";
noShow2.style.display = "none";
noShow3.style.display = "none";
}
function Submit_music() {
value = document.searchbox2.inputData.value;
if (document.searchbox2.searchType[1].checked) {
location.href = "advancedSearch.do?type=Music&artist=" + urlEn(value);
} else {
if (document.searchbox2.searchType[2].checked) {
location.href = "advancedSearch.do?type=Music&label=" + urlEn(value);
} else {
location.href = "compare.do?searchType=music&inputData=" + urlEn(value);
}
}
}
function Submit_dvd() {
value = document.searchbox1.inputData.value;
if (document.searchbox1.searchType[1].checked) {
location.href = "advancedSearch.do?type=DVD&director=" + urlEn(value);
} else {
if (document.searchbox1.searchType[2].checked) {
location.href = "advancedSearch.do?type=DVD&actor=" + urlEn(value);
} else {
location.href = "compare.do?searchType=dvd&inputData=" + urlEn(value);
}
}
}
function urlEn(str) {
str = str.replace("&", "%26");
return str;
}
function sbFocus() {
var focusControl = document.forms["searchboxBook"].elements["inputData"];
if (focusControl.type != "hidden") {
focusControl.focus();
}
}
function sdFocus() {
var focusControl = document.forms["searchbox1"].elements["inputData"];
if (focusControl.type != "hidden") {
focusControl.focus();
}
}
function smFocus() {
var focusControl = document.forms["searchbox2"].elements["inputData"];
if (focusControl.type != "hidden") {
focusControl.focus();
}
}
function sgFocus() {
var focusControl = document.forms["searchbox3"].elements["inputData"];
if (focusControl.type != "hidden") {
focusControl.focus();
}
}
function deleteIsbn(comp) {
if (comp.value == "Enter One Or More ISBNs") {
comp.value = "";
}
}
function displayIsbnMessage() {
value = document.searchboxBook.inputData.value;
if (value == null || value == "") {
document.searchboxBook.inputData.value = "Enter One Or More ISBNs";
}
}
function MM_preloadImages() { //v3.0
var d = document;
if (d.images) {
if (!d.MM_p) {
d.MM_p = new Array();
}
var i, j = d.MM_p.length, a = MM_preloadImages.arguments;
for (i = 0; i < a.length; i++) {
if (a[i].indexOf("#") != 0) {
d.MM_p[j] = new Image;
d.MM_p[j++].src = a[i];
}
}
}
}
function MM_swapImgRestore() { //v3.0
var i, x, a = document.MM_sr;
for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) {
x.src = x.oSrc;
}
}
function MM_findObj(n, d) { //v4.01
var p, i, x;
if (!d) {
d = document;
}
if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
d = parent.frames[n.substring(p + 1)].document;
n = n.substring(0, p);
}
if (!(x = d[n]) && d.all) {
x = d.all[n];
}
for (i = 0; !x && i < d.forms.length; i++) {
x = d.forms[i][n];
}
for (i = 0; !x && d.layers && i < d.layers.length; i++) {
x = MM_findObj(n, d.layers[i].document);
}
if (!x && d.getElementById) {
x = d.getElementById(n);
}
return x;
}