function check_form(){
	switch(true){
		case document.form.name.value == "":
		alert("Your full name is required. It's worth it!");
		break;
		
		case document.form.name.value.indexOf(" ") == -1:
		alert("Please enter your entire name.");
		break;
		
		case document.getElementById('l458225-458225').value == "":
		alert("Your email address is required. Don't worry, we take your privacy seriously.");
		break;
		
		case document.getElementById('l458225-458225').value.length < 7:
		alert("Your email address is too short.");
		break;
		
		case document.getElementById('l458225-458225').value.indexOf("@") == -1:
		alert("Your email address needs to contain and @ symbol.");
		break;
		
		case document.getElementById('l458225-458225').value.indexOf(".") == -1:
		alert("Your email address needs to contain a period.");
		break;
		
		case ((document.getElementById('email').value != "") || (document.getElementById('_id').value != "")):
		window.location = "http://www.usa.gov/";
		break;
		
		default:
		document.form.submit();
	}
}

//RESORT LISTINGS
$(document).ready(function(){
  $("#column_left").sortable();
	
  jQuery.each($(".resort"), function(i, val) {
  	$(val).find(".temp_current").html($(val).find(".temp_current span").html());
  	$(val).find(".temp_high").hide();
    //$(val).find(".temp_high").html($(val).find(".temp_high span").html());
    $(val).find(".temp_low").html("Hi: " + $(val).find(".temp_high span").html() + " | Lo: " + $(val).find(".temp_low span").html());
    $(val).find(".last_updated").html($(val).find(".last_updated span").html());
    $(val).find(".tomorrow_title").html("Tomorrow");
    $(val).find(".tomorrow_conditions").html($(val).find(".tomorrow_conditions span").html());
  });
  
  //ADDS IE6 HACK
  if($.browser.msie == "6.0") {
  	
  
  }

});