<!--
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 checkForm() {
	formErrors = false;
	if (document.buy.name.value.length < 2) {
		formErrors = "Purchase Details Missing";
	}
	if (document.buy.address.value.length < 1) {
		formErrors = "Purchase Details Missing";
	}
	if (document.buy.county_state.value.length < 2) {
		formErrors = "Purchase Details Missing";
	}
	if (document.buy.postcode.value.length < 2) {
		formErrors = "Purchase Details Missing";
	}
	if (document.buy.country.value.length < 2) {
		formErrors = "Purchase Details Missing";
	}
	if (document.buy.email.value.length < 1) {
		formErrors = "Purchase Details Missing";
	}
	if (document.buy.tel.value.length < 2) {
		formErrors = "Purchase Details Missing";
	}	
	
	if (formErrors) {
		alert(formErrors);
		return false;
	} else {
		bbstyle(-1);
		//formObj.preview.disabled = true;
		//formObj.submit.disabled = true;
		return 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 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=245');
}
function opengallery(url){
	window.open(url,'gallery','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=640,height=480');
}
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 imageviewer(url){
	window.open(url,'events','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,width=100,height=100');
}
//-->