

if (document.images) {
                    var moviesoff = new Image(); // for the inactive image
                    moviesoff.src = "/images/nnav_movies_white.gif";
                    var movieson = new Image(); // for the active image
                    movieson.src = "/images/nnav_movies_gold.gif";
					var tvoff = new Image(); // for the inactive image
                    tvoff.src = "/images/nnav_tv_white.gif";
                    var tvon = new Image(); // for the active image
                    tvon.src = "/images/nnav_tv_gold.gif";
					var dvdoff = new Image(); // for the inactive image
                    dvdoff.src = "/images/nnav_dvd_white.gif";
                    var dvdon = new Image(); // for the active image
                    dvdon.src = "/images/nnav_dvd_gold.gif";
					var comicsoff = new Image(); // for the inactive image
                    comicsoff.src = "/images/nnav_comics_white.gif";
                    var comicson = new Image(); // for the active image
                    comicson.src = "/images/nnav_comics_gold.gif";
					var forumoff = new Image(); // for the inactive image
                    forumoff.src = "/images/nnav_forum_white.gif";
                    var forumon = new Image(); // for the active image
                    forumon.src = "/images/nnav_forum_gold.gif";
					var homeoff = new Image(); // for the inactive image
                    homeoff.src = "/images/nnav_home_white.gif";
                    var homeon = new Image(); // for the active image
                    homeon.src = "/images/nnav_home_gold.gif";
					var fifthoff = new Image(); // for the inactive image
                    fifthoff.src = "/images/nnav_fifth_white.gif";
                    var fifthon = new Image(); // for the active image
                    fifthon.src = "/images/nnav_fifth_gold.gif";
					
}
                  function ImageOver(thing) {
                    if (document.images) {
                      document[thing].src = eval(thing + "on.src");
					  }
                  }

                  function ImageOff(thing) {
                    if (document.images) {
                      document[thing].src = eval(thing + "off.src");
					  }
                  }


function validation()
{


	var username = document.register.username.value;
	var userpassword = document.register.userpassword.value;
	var useremailconfirm = document.register.useremailconfirm.value;
	var useremail = document.register.useremail.value;

	
	if (username == '')
		{
		alert("you must fill in the 'User Name' box");
		return false;
		}                           
          						   
if (document.register.useremail.value.indexOf(".")==-1) { 
 alert("Please enter an email address in the correct format (eg:jon@shinyshelf.com).");
 return false
 }
 if (document.register.useremail.value.indexOf("@")==-1) {
 alert("Please enter an email address in the correct format (eg:jon@shinyshelf.com).");
 return false;
 }
 if (document.register.useremailconfirm.value.indexOf(".")==-1) { 
 alert("Please enter an email address in the correct format (eg:jon@shinyshelf.com).");
 return false
 }
 if (document.register.useremailconfirm.value.indexOf("@")==-1) {
 alert("Please enter an email address in the correct format (eg:jon@shinyshelf.com).");
 return false;
 }
        // check for minimum length
		var minLength=5
		var invalid=" "
if (document.register.userpassword.value.length < minLength) {
alert('Your password must be at least ' + minLength + ' characters long. Try again.');
return false;
}
// check for spaces
if (document.register.userpassword.value.indexOf(invalid) > -1) {
alert("Sorry, spaces are not allowed in your password.");
return false;
}
else {
if (useremail != useremailconfirm) {
alert ("You did not enter the same email address twice. Please re-enter your email address again.");
return false;
}
else {
return true;
      }
   }  
				   return true
                   }
				
		
function terms_popup(url) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=450,height=400');");
}