// Netscape 3.0 compatibility test (for javascript image swapping)
compat = false;
if( parseInt( navigator.appVersion ) >= 3 ) { compat = true; }
if( compat )
{
a01on = new Image;(207,34)
a01on.src = "../a01_on.gif";
a01off = new Image;(207,34)
a01off.src = "../a01_off.gif";
a02on = new Image;(205,30)
a02on.src = "../a02_on.gif";
a02off = new Image;(205,30)
a02off.src = "../a02_off.gif";
a03on = new Image;(205,27)
a03on.src = "../a03_on.gif";
a03off = new Image;(205,27)
a03off.src = "../a03_off.gif";
a04on = new Image;(205,28)
a04on.src = "../a04_on.gif";
a04off = new Image;(205,28)
a04off.src = "../a04_off.gif";
a05on = new Image;(205,27)
a05on.src = "../a05_on.gif";
a05off = new Image;(205,27)
a05off.src = "../a05_off.gif";
a06on = new Image;(205,25)
a06on.src = "../a06_on.gif";
a06off = new Image;(205,25)
a06off.src = "../a06_off.gif";
a07on = new Image;(205,27)
a07on.src = "../a07_on.gif";
a07off = new Image;(205,27)
a07off.src = "../a07_off.gif";
a08on = new Image;(205,28)
a08on.src = "../a08_on.gif";
a08off = new Image;(205,28)
a08off.src = "../a08_off.gif";
a09on = new Image;(200,26)
a09on.src = "../a09_on.gif";
a09off = new Image;(200,26)
a09off.src = "../a09_off.gif";
a10on = new Image;(120,37)
a10on.src = "../a10_on.gif";
a10off = new Image;(120,37)
a10off.src = "../a10_off.gif";
a11on = new Image;(200,120)
a11on.src = "../credit_on.gif";
a11off = new Image;(200,120)
a11off.src = "../credit.gif";

}

// swap images using the cached images

function glow(x, y)
{
   if( compat ) { document.images[x].src=eval(y+'.src'); }
}
function popupPage(page1) {
windowprops = "height=300,width=520,location=no,"
+ "scrollbars=yes,menubars=no,directories=no,status=no,toolbars=no,resizable=yes,left=220 top=100,dependent=yes,titlebar=no,screenX=220,screenY=100";
//openwindow = "../details.asp?songid=" + page1
openwindow = page1
var w = window.open(openwindow, "info", windowprops);
w.focus();
}
function doSelect(obj)
 {
     for (i = 1; i < obj.length; i++)
        if (obj[i].selected == true)
           eval(obj[i].value);
}
function checkYear(yearindex) {
	
		
	if (yearindex == 1) {
		if (document.filmyear.fyear.value.length != 4) {
			alert("Year 1 must be a 4 digit number");
			document.filmyear.fyear.focus();
			return;
		}
		yearval = parseInt(document.filmyear.fyear.value);
		if (isNan(yearval)) {
			alert("Year 1 must be a number");
			return;
		}
	}
	if (yearindex == 2) {
		if (document.filmyear.syear.value.length != 4) {
			alert("Year 2 must be a 4 digit number");
			return;
		}
		yearval = parseInt(document.filmyear.syear.value);
		if (isNan(yearval)) {
			alert("Year 2 must be a number");
			return;
		}
		if (document.filmyear.syear.value < document.filmyear.fyear.value) {
			alert("Year 2 must be greater than Year 1");
			return;
		}
	}		
}			
	
today = new Date();
cmonth = today.getMonth() + 1;
cdate = today.getDate();
cyear = today.getYear();
if (cyear < 1900) {
cyear = cyear + 1900;
}
month_src = "../month_" + cmonth +".gif"
date_src = cdate.toString();
if (date_src.length == 1) {
	date_src = "0" + date_src;
}
date_1_src = "../number_" + date_src.substring(0,1) + ".gif";
date_2_src = "../number_" + date_src.substring(1,2) + ".gif";
year_src = cyear.toString();
year_1_src = "../number_" + year_src.substring(0,1) + ".gif";
year_2_src = "../number_" + year_src.substring(1,2) + ".gif";
year_3_src = "../number_" + year_src.substring(2,3) + ".gif";
year_4_src = "../number_" + year_src.substring(3,4) + ".gif";
