function ValidateForm(form)
			{
  			  			
  			if (form.first_name.value == "") {
    			alert( "Please enter your first name." );
    			form.first_name.focus();
    			return false ;
  			}
  			
  			if (form.first_name.value.length < 2) {
    			alert( "Please check your first name." );
    			form.first_name.focus();
    			return false ;
  			}
  			
  			if (form.last_name.value == "") {
    			alert( "Please enter your last name." );
    			form.last_name.focus();
    			return false ;
  			}
  			
  			if (form.last_name.value.length < 2) {
    			alert( "Please check your last name." );
    			form.last_name.focus();
    			return false ;
  			}
  
 			checkEmail = form.email.value

			if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
			{alert("Please check the format of your email address, it does not appear to be valid.");
			form.email.select();
			return false;
			}

			if (form.phone.value == "") {
    			alert( "Please enter your phone number." );
    			form.phone.focus();
    			return false ;
  			}
  			
  			if (form.phone.value.length < 10 && (form.country.value == "United States" || form.country.value == "Canada")) {
    			alert( "Please check that your phone number has 10 digits." );
    			form.phone.focus();
    			return false ;
  			}
  			
  			if (form.company.value == "") {
    			alert( "Please enter your company's name." );
    			form.company.focus();
    			return false ;
  			}
  			
  			if (form.company.value.length < 2) {
    			alert( "Please check your company's name." );
    			form.company.focus();
    			return false ;
  			}
  			
  			if (form.industry.value == "") {
    			alert( "Please select your industry." );
    			form.industry.focus();
    			return false ;
  			}
  			
  			if (form['00N30000000nM1P'].value == "") {
    			alert( "Please select your application." );
    			form['00N30000000nM1P'].focus();
    			return false ;
  			}
  			
  			if (form.country.value == "") {
    			alert( "Please select a valid country from the list." );
    			form.country.focus();
    			return false ;
  			}
  			
  			if (form.country.value == "United States" && form.state.value == "") {
    			alert( "Please select a valid state from the list." );
    			form.state.focus();
    			return false ;
  			}
  			
  			if (form.country.value == "Canada" && form.state.value == "") {
    			alert( "Please select a valid province from the list." );
    			form.state.focus();
    			return false ;
  			}  			
  			
  			if (form.description.value == "") {
    			alert( "Please enter a description of your application." );
    			form.description.focus();
    			return false ;
  			}
  			
  			if (form.description.value.length < 2) {
    			alert( "Please enter a description of your application." );
    			form.description.focus();
    			return false ;
  			}
  			
  			return true ;
			}

function showState()
{
statediv.style.display="inline";
statediv.align="right";
SF_Form.state.style.display="inline";
}
		
function hideState()
{
statediv.style.display="none";
SF_Form.state.style.display="none";
}

function loadTime()
{
CSScriptInit();
hideState();
}
