function changecontrol(ctrl)
			{
				
				
					if (ctrl.value!='US')
					{
						document.all("d_states").style.display="none";
						document.all("t_state").style.display="";
						
					} 
					else
					{
						document.all("t_state").style.display="none";
						document.all("d_states").style.display="";
					}
				
			}
			
			function ValidateControls()
			{
				
				var drop_Coun=document.all("Drop_Country");
				//Check First Name
				if (CheckForNull("frmPage","First Name","Txt_FName")==false)
				{	
					document.frmPage.Txt_FName.focus();
					return false;
				}
				
				if (AbortNonRequiredCharacters('frmPage','Txt_FName','`~!@#$%^&*()-_+=\|?/[]{};:\'"<>','Invalid Characters (`~!@#$%^&*()-_+=\|?/[]{};:\'"<>) Not Allowed In First Name')==false)
				{	
					document.frmPage.Txt_FName.focus();
					return false;
				}
				
				if(CheckIsText("frmPage","First Name","Txt_FName")==false)
				{
					document.frmPage.Txt_FName.focus();
					return false;
				}
				//Check Last Name
				if (CheckForNull("frmPage","Last Name","Txt_LName")==false)
				{
					document.frmPage.Txt_LName.focus();
					return false;
				}
				if (AbortNonRequiredCharacters('frmPage','Txt_LName','`~!@#$%^&*()-_+=\|?/[]{};:\'"<>','Invalid Characters (`~!@#$%^&*()-_+=\|?/[]{};:\'"<>) Not Allowed In Last Name')==false)
				{	
					document.frmPage.Txt_LName.focus();
					return false;
				}
				if(CheckIsText("frmPage","Last Name","Txt_LName")==false)
				{
					document.frmPage.Txt_LName.focus();
					return false;
				}
				
				//check Address
				if (CheckForNull("frmPage","Address","Txt_Address")==false)
				{
					document.frmPage.Txt_Address.focus();
					return false;
				}
				if(CheckIsText("frmPage","Address","Txt_Address")==false)
				{
					document.frmPage.Txt_Address.focus();
					return false;
				}
				if (AbortNonRequiredCharacters('frmPage','Txt_Address','\'','Invalid Characters (\') Not Allowed In Address')==false)
				{	
					document.frmPage.Txt_Address.focus();
					return false;
				}
				
				//Check Organisation
				if (document.frmPage.Txt_Org.value!="")
				{
					if (CheckForNull("frmPage","Organisation","Txt_Org")==false)
					{
						document.frmPage.Txt_Org.focus();
						return false;
					}
				
					if (AbortNonRequiredCharacters('frmPage','Txt_Org','`~!@#$%^&*()-_+=\|?/[]{};:\'"<>','Invalid Characters (`~!@#$%^&*()-_+=\|?/[]{};:\'"<>) Not Allowed In Organisation Name')==false)
					{	
						document.frmPage.Txt_Org.focus();
						return false;
					}
				
					if(CheckIsText("frmPage","Organisation","Txt_Org")==false)
					{
						document.frmPage.Txt_Org.focus();
						return false;
					}
				
				}
				
				
				//Check City
				if (CheckForNull("frmPage","City","Txt_City")==false)
				{
					document.frmPage.Txt_City.focus();
					return false;
				}
				
				if (AbortNonRequiredCharacters('frmPage','Txt_City','`~!@#$%^&*()-_+=\|?/[]{};:\'"<>','Invalid Characters (`~!@#$%^&*()-_+=\|?/[]{};:\'"<>) Not Allowed In City Name')==false)
				{	
					document.frmPage.Txt_LName.focus();
					return false;
				}
				if (CheckIsText("frmPage","City","Txt_City")==false)
				{
					document.frmPage.Txt_City.focus();
					return false;
				}
				
				//Check State if Country Is Not US
				if(document.frmPage.Drop_Country.options[0].selected==false)
				{
					
					if(CheckForNull("frmPage","State","Txt_State")==false)
					{
						document.frmPage.Txt_State.focus();
						return false;
					}
					else if (CheckIsText("frmPage","State","Txt_State")==false)
					{
						document.frmPage.Txt_State.focus();
						return false;
					}
				}
				
				//Check Zip Code
				if (CheckForNull("frmPage","Zip Code","Txt_ZipCode")==false)
				{
					document.frmPage.Txt_ZipCode.focus();
					return false;
				}
				if (AbortNonRequiredCharacters('frmPage','Txt_ZipCode','`~!@#$%^&*()-_+=\|?/[]{};:\'"<>','Invalid Characters (`~!@#$%^&*()-_+=\|?/[]{};:\'"<>) Not Allowed In Zip Code')==false)
				{	
					document.frmPage.Txt_CellPhone.focus();
					return false;
				}
				
				
				//Check Cell Phone
				if (CheckForNull("frmPage","Phone Number","Txt_CellPhone")==false)
				{
					document.frmPage.Txt_CellPhone.focus();
					return false;
				}
				if (AbortNonRequiredCharacters('frmPage','Txt_CellPhone','`~!@#$%^&*()_+=\|?/[]{};:\'"<>','Invalid Characters (`~!@#$%^&*()_+=\|?/[]{};:\'"<>) Not Allowed In Phone Number')==false)
				{	
					document.frmPage.Txt_CellPhone.focus();
					return false;
				}
				
				
				
				//Check Work Phone
				if (document.getElementById("Txt_WorkPhone").value!="")
				{
						if (AbortNonRequiredCharacters('frmPage','Txt_WorkPhone','`~!@#$%^&*()_+=\|?/[]{};:\'"<>','Invalid Characters (`~!@#$%^&*()_+=\|?/[]{};:\'"<>) Not Allowed In Work Phone')==false)
						{	
							document.frmPage.Txt_Workphone.focus();
							return false;
						}
				}
				
				//Check Email Id
				if (CheckEmail("frmPage","Txt_EmailId")==false)
				{
					document.frmPage.Txt_EmailId.focus();
					return false;
				}
				
				//Check Fax No
				if (document.getElementById("Txt_Fax").value!="")
				{
						if (AbortNonRequiredCharacters('frmPage','Txt_Fax','`~!@#$%^&*()_+=\|?/[]{};:\'"<>','Invalid Characters (`~!@#$%^&*()_+=\|?/[]{};:\'"<>) Not Allowed In Fax Number')==false)
						{	
							document.frmPage.Txt_Fax.focus();
							return false;
						}
				}
				
				//Check Request Detail mentioned Or Not
				if (CheckForNull("frmPage","Comment","Txt_RequestDetail")==false)
				{
					document.frmPage.Txt_RequestDetail.focus();
					return false;
				}
				if (CheckIsText("frmPage","Comments","Txt_RequestDetail")==false)
				{
					document.frmPage.Txt_RequestDetail.focus();
					return false;
				}
				if (AbortNonRequiredCharacters('frmPage','Txt_RequestDetail','\'','Invalid Character (\') Not Allowed In Comments')==false)
				{	
					document.frmPage.Txt_RequestDetail.focus();
					return false;
				}
				
				
			}
			
			
			function clearfields()
			{
				document.frmPage.Txt_FName.value=""
				document.frmPage.Txt_LName.value=""
				document.frmPage.Txt_Org.value=""
				document.frmPage.Txt_Address.value=""
				
				document.frmPage.Txt_City.value=""
				document.frmPage.Txt_CellPhone.value=""
				document.frmPage.Txt_WorkPhone.value=""
				document.frmPage.Txt_ZipCode.value=""
				document.frmPage.Txt_Fax.value=""
				document.frmPage.Txt_RequestDetail.value=""
				document.frmPage.Txt_EmailId.value=""
				if(document.all("Drop_Country").selectedIndex>0)
					document.frmPage.Txt_State.value=""	
				document.all("Drop_Country").selectedIndex=0
				document.all("Drop_products").selectedIndex=0
			}
			
			
			function MoveToState(objectFieldName,objectMaxLength,nextFieldName1,nextFieldName2)
			{
			
			var eventCode=window.event.keyCode;
					if (eventCode=='13')		
					{
								
						if (document.all(nextFieldName1).style.display=="")
														
							MovetoNextField('Txt_State')
						else
							
							MovetoNextField('Drop_States')
					}
					
					var lint_FieldLenght=document.getElementById(objectFieldName).value;
					lint_FieldLenght = lint_FieldLenght.length;
					if (lint_FieldLenght>=objectMaxLength)		
					{
						
						if (document.all(nextFieldName1).style.display=="")
							MovetoNextField('Txt_State')
						else
							MovetoNextField('Drp_States')
					}
				return false;
			}
				
				