<!--
function checkcheckout(formobj){
	// Enter name of mandatory fields
	var fieldRequired = Array("name", "surname", "address", "town", "county", "postcode", "country", "email", "tel");
	// Enter field description to appear in the dialog box
	var fieldDescription = Array("Name", "Surname", "Address", "Town", "County/State", "Postcode", "Country", "Email", "Tel");
	// dialog message
	var alertMsg = "Please complete the following fields:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
			case "password":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}	
	
	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}

function checkregister(formobj){
	// Enter name of mandatory fields
	var fieldRequired = Array("name", "surname", "address", "town", "county", "postcode", "country", "email");
	// Enter field description to appear in the dialog box
	var fieldDescription = Array("Name", "Surname", "Address", "Town", "County/State", "Postcode", "Country", "Email");
	// dialog message
	var alertMsg = "Please complete the following fields:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
			case "password":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}	
	
	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

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;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->

<!--
function Oii()
{
	if(window.document.pulldown.sub_genre.options[1].value == "")
	{
		alert("Please Select a Genre first...");
		window.document.pulldown.sub_genre.options[0].selected = true;
	}	
}

function switchSelect(the_array_name,next_array)
{
	var first_array = eval(the_array_name);	
	setOptionText(next_array, first_array, the_array_name);
}

function setOptionText(target_array,first_array,ident)
{
	for(loop=0; loop < window.document.pulldown[target_array].options.length; loop++)
	{
		if(first_array[loop] == null)
		{
		window.document.pulldown[target_array].options[loop].text = "";
		window.document.pulldown[target_array].options[loop].value = "";
		}
		else
		{
			if(first_array[loop] == "Show All")
			{
			window.document.pulldown[target_array].options[loop].value = "";
			}
			else
			{
			window.document.pulldown[target_array].options[loop].value = first_array[loop];
			}
			window.document.pulldown[target_array].options[loop].text = first_array[loop];
		}
		window.document.pulldown[target_array].options[0].selected = true;
		
	}
}

function gotoSITE2() {
     var Current = document.sitenav2.siteName.selectedIndex;
     if (document.sitenav2.siteName.options[Current].value > " ") {
     location.href = document.sitenav2.siteName.options[Current].value;
     }
     else {
     alert("You must select a site.  Please try again.")
     }
 }
 
 function gotoSITE3() {
     var Current = document.sitenav3.siteName3.selectedIndex;
     if (document.sitenav3.siteName3.options[Current].value > " ") {
     location.href = document.sitenav3.siteName3.options[Current].value;
     }
     else {
     alert("You must select a site.  Please try again.")
     }
 }
 
<!--
function openwindow(url){
	window.open(url,'window','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,width=500,height=500');
}
function openplayer(url){
	window.open(url,'player','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,width=468,height=175');
}
function opengallery(url){
	window.open(url,'gallery','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=800,height=600');
}
function openevents(url){
	window.open(url,'events','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=640,height=480');
}
function images(url){
	window.open(url,'events','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=640,height=480');
}
function request(url){
	window.open(url,'events','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=640,height=480');
}

									
var fieldstocheck = new Array();
	fieldnames = new Array();

function checkform() {
  for (i=0;i<fieldstocheck.length;i++) {
	if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") {
	  alert("Please enter your "+fieldnames[i]);
	  eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()");
	  return false;
	}
  }

  if(! compareEmail())
  {
	alert("Email addresses you entered do not match");
	return false;
  }
  return true;
}


function addFieldToCheck(value,name) {
  fieldstocheck[fieldstocheck.length] = value;
  fieldnames[fieldnames.length] = name;
}

function compareEmail()
{
  return (document.subscribeform.elements["email"].value == document.subscribeform.elements["emailconfirm"].value);
}  
//-->