function checkForm(){
	if(document.enquiry.name.value==""){
			alert("Please enter your name");
			document.enquiry.name.focus();
			document.enquiry.name.select();
			return false;
	 }
	if(document.enquiry.email.value==""){
			alert("Please enter your email address");
			document.enquiry.email.focus();
			document.enquiry.email.select();
			return false;
	 }
	if(document.enquiry.telephone.value==""){
			alert("Please enter your telephone number");
			document.enquiry.telephone.focus();
			document.enquiry.telephone.select();
			return false;
  } 
}

var sel_types = new Array();

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
	window.onload = func;
  } else {
	window.onload = function() {
	  oldonload();
	  func();
	}
  }
}
function selectionEvent(){
  if (!document.getElementsByTagName) return false;
  if (!document.getElementById) return false;
  
  var product_parameter = document.getElementById("product_parameter");
  if(!product_parameter) return false;
  
	product_parameter.onchange = function(){
		var parameter_name = this.options[this.selectedIndex].value;
		//document.write(parameter_name);
		
		var product_type = document.getElementById("product_type");
	  var opts = product_type.childNodes;
	  if(opts){
	  	for (var y=0; y<opts.length; y++) {
	  		product_type.removeChild(opts[y]);
	  		y--;
	  	}
	  }
	  var stypes = sel_types[parameter_name];
	  
		for(var i=0; i<stypes.length; i++){
			var opt = document.createElement("option");
			opt.value = stypes[i];
			var optValue = document.createTextNode(stypes[i]+"\u00a0\u00a0\u00a0\u00a0");
			opt.appendChild(optValue);
			product_type.appendChild(opt);
		}
	}
}
function flashDetect(){
	//document.write(flashinstalled);
	if(flashinstalled == 0 || flashinstalled == 0){
		var static_logo = document.getElementById("static_logo");
		if(static_logo){
			static_logo.style.display = "block";
		}
		var animated_logo = document.getElementById("animated_logo");
		if(animated_logo){
			animated_logo.style.display = "none";
		}
	}else{
		var static_logo = document.getElementById("static_logo");
		if(static_logo){
			static_logo.style.display = "none";
		}
		var animated_logo = document.getElementById("animated_logo");
		if(animated_logo){
			animated_logo.style.display = "block";
		}
	}
}

addLoadEvent(selectionEvent);
addLoadEvent(flashDetect);

// Flash Detect
var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";
if (navigator.plugins && navigator.plugins.length)
{
	x = navigator.plugins["Shockwave Flash"];
	if (x)
	{
		flashinstalled = 2;
		if (x.description)
		{
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
		}
	}
	else
		flashinstalled = 1;
	if (navigator.plugins["Shockwave Flash 2.0"])
	{
		flashinstalled = 2;
		flashversion = 2;
	}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
		flashinstalled = 2;
	else
		flashinstalled = 1;
}
else
	MSDetect = "true";