
<!--
	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_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_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];}
	}	
//-->





<!--
	function Back() { //v2.0
	  window.history.back();
	}

	// Written by Sze Wa - - - - - - - - - - - - - - - - - - - - - - - - - - 
	function hide(id)
	{
		if(browser=="IE")
			eval("document.all." + id + ".style.display='none'");
		else
			eval("document.all." + id + ".style.visibility='collapse'");
	}
	function show(id)
	{
		if(browser=="IE")
		 	eval("document.all." + id + ".style.display='inline'");
		else
			eval("document.all." + id + ".style.visibility='visible'");
	}
	function hideInternationalisation()
	{
		hide('mydiv3');
		hide('mydiv4');
		hide('mydiv5');
		hide('mydiv6');
		hide('mydiv7');
	}
	function showInternationalisation()
	{
		show('mydiv3');
		show('mydiv4');
		show('mydiv5');
		show('mydiv6');
		show('mydiv7');
	}
	// Written by Sze Wa - - - - - - - - - - - - - - - - - - - - - - - - - - 

	function validateEmail(src) {
		var badEmail = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/;
		var goodEmail = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
		 // Basic syntax requires: one or more chars before the @ sign,
		 // followed by an optional '[', then any number of letters,
		 // numbers,
		 // dashes or periods (valid domain/IP chars) ending in a period
		 // and then 2 to 4 letters (for domain suffixes) or 1 to 3 nums
		 // (for IP addresses).An ending bracket is allowed as it is
		 // valid syntax to have an email address like:
		 // user@[255.255.255.0]
	
		return !badEmail.test(src) & goodEmail.test(src);
	}

	function submitForm()
	{	
		/*
		function toggleLayer(whichLayer, iState) {
		  if (document.getElementById) {
			// this is the way the standards work
			var style2 = document.getElementById(whichLayer).style
			//style2.display = iState ? "block" : ""
			style2.display = iState ? "table-row" : ""
		  }
		}
		*/

		if(document.mainform.salutation.value=="none")
		{
			alert("Please select your Salutation");
			document.mainform.salutation.focus();
			return false;
		}
		if(document.mainform.firstname.value.length<1)
		{
			alert("Please enter your Full Name");
			document.mainform.firstname.focus();
			return false;
		}
		if(document.mainform.lastname.value.length<1)
		{
			alert("Please enter your Last Name");
			document.mainform.lastname.focus();
			return false;
		}
		if(document.mainform.email.value.length<1)
		{
			alert("Please enter your Email");
			document.mainform.email.focus();
			return false;
		}
		else
		{
			var emailValue = document.mainform.email.value.toString(10);
		
			if( !validateEmail(emailValue))
			{
				alert("Please enter a valid email address in your submission");
				//document.mainform.email.value = "";
				document.mainform.email.focus();
				return false;
			}
		}
		if(document.mainform.country.value=="none")
		{
			alert("Please select your Country of Establishment");
			document.mainform.country.focus();
			return false;
		}
		if ((document.mainform.member[0].checked!=true) && (document.mainform.member[1].checked!=true))
		{	
			alert("Please indicate if you are an ieConnect member.");
			return false;
		}
		if(document.mainform.rate.value=="none")
		{
			alert("Please select the rating for IE website");
			document.mainform.rate.focus();
			return false;
		}
		if(document.mainform.enquiryType.value=="")
		{
			if(valButton(document.mainform.radio_enquiry)=="Internationalisation Related Matters") //Export Assistance
			{
				if(document.mainform.StaffStrength.value=="none")
				{
					alert("Please select your company staff strength.");
					document.mainform.StaffStrength.focus();
					return false;
				}
				
				if(document.mainform.productdesc.value.length<1)
				{
					alert("Please enter the Product/Service Description.");
					document.mainform.productdesc.focus();
					return false;
				}
		
				if ((document.mainform.manufactured[0].checked!=true) && (document.mainform.manufactured[1].checked!=true))
				{	
					alert("Please indicate is your finished product manufactured in Singapore.");
					return false;
				}
		
				if(document.mainform.ExportDest.value.length<1)
				{
					alert("Please enter the Export Destination.");
					document.mainform.ExportDest.focus();
					return false;
				}
			}
		}
		if(document.mainform.comment.value.length<1)
		{
			alert("Please enter your enquiry");
			document.mainform.comment.focus();
			return false;
		}
		if(document.mainform.strCAPTCHA.value.length<1)
		{
			alert("Please enter the code shown");
			document.mainform.strCAPTCHA.focus();
			return false;
		}
		document.mainform.submit();
	}

	function textCounter(field, countfield, maxlimit) {
		if (field.value.length > maxlimit) // if too long...trim it!
			field.value = field.value.substring(0, maxlimit);
			// otherwise, update 'characters left' counter
		else 
			countfield.value = maxlimit - field.value.length;
	}

// End JavaScript -->



// Radio Button Validation
// copyright Stephen Chapman, 15th Nov 2004,14th Sep 2005
// you may copy this function but please keep the copyright notice with it
<!--
	function valButton(btn) {
		var cnt = -1;
		for (var i=btn.length-1; i > -1; i--) {
			if (btn[i].checked) {cnt = i; i = -1;}
		}
		if (cnt > -1) return btn[cnt].value;
		else return null;
	}
// End JavaScript -->