function Trim(TRIM_VALUE)
			{
				if(TRIM_VALUE.length < 1)
					{
						return "";
					}
			TRIM_VALUE = RTrim(TRIM_VALUE);
			TRIM_VALUE = LTrim(TRIM_VALUE);
			
			if(TRIM_VALUE=="")
				{
					return "";
				}
			else
				{
					return TRIM_VALUE;
				}
			} //End Function
		
		function RTrim(VALUE)
			{
				var w_space = String.fromCharCode(32);
				var v_length = VALUE.length;
				var strTemp = "";
				if(v_length < 0)
					{
						return "";
					}
				var iTemp = v_length -1;
		
				while(iTemp > -1)
					{
						if(VALUE.charAt(iTemp) == w_space)
							{
							}
						else
							{
								strTemp = VALUE.substring(0,iTemp +1);
								break;
							}
						iTemp = iTemp-1;
		
					} //End While
				return strTemp;
			} //End Function
		
		function LTrim(VALUE)
			{
				var w_space = String.fromCharCode(32);
				if(v_length < 1)
					{
						return "";
					}
				var v_length = VALUE.length;
				var strTemp = "";
		
				var iTemp = 0;
		
				while(iTemp < v_length)
					{
						if(VALUE.charAt(iTemp) == w_space)
							{
							}
						else
							{
								strTemp = VALUE.substring(iTemp,v_length);
								break;
							}
						iTemp = iTemp + 1;
					} //End While
				return strTemp;
		} //End Function
		function ValidateForm()
			{
				if(Trim(document.forms['myForm'].contactName.value) == "" ) 
				{ 
					alert('You have not entered contact name');
					document.forms['myForm'].contactName.focus();			
					return false;
				}
				if(Trim(document.forms['myForm'].position.value) == "" ) 
				{ 
					alert('You have not entered your position'); 
					document.forms['myForm'].position.focus(); 
					return false; 
				}
				if(Trim(document.forms['myForm'].contactNumber.value) == "" ) 
				{ 
					alert('You have not entered your contact number'); 
					document.forms['myForm'].contactNumber.focus(); 
					return false; 
				}
				if(Trim(document.forms['myForm'].emailWeb.value) == "") 
				{ 
					alert('You have not entered your email'); 
					document.forms['myForm'].emailWeb.focus(); 
					return false; 
				}
				return true;
			}
		function SubmitForm()
			{
				if(ValidateForm() == true)
					{
						// document.myForm.action = "form2mail1.asp";
						// document.myForm.method = "post"; 
						document.forms['myForm'].submit();
					}
			}		