function checkform ( form )
{
  // see http://www.thesitewizard.com/archive/validation.shtml
  // for an explanation of this script and how to use it on your
  // own website


  
  // ** START **
  if (form.namn.value == "") {
    alert( "Glöm inte att skriva ditt namn" );
    form.namn.focus();
    return false ;
  }
  // ** END **
   
 // ** START **
  if (form.mail.value == "") {
    alert( "Glöm inte att skriva din e-mailadress" );
    form.mail.focus();
    return false ;
  }
  // ** END **
 
  
  return true ;
}

		$(document).ready(function() {
			$('input[type="text"]').addClass("idleField");
       		$('input[type="text"]').focus(function() {
       			$(this).removeClass("idleField").addClass("focusField");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('input[type="text"]').blur(function() {
    			$(this).removeClass("focusField").addClass("idleField");
    		    if ($.trim(this.value) == ''){
			    	this.value = (this.defaultValue ? this.defaultValue : '');
				}
    		});
		});			
		$(document).ready(function() {
			$('textarea[name="message"]').addClass("idleField");
       		$('textarea[name="message"]').focus(function() {
       			$(this).removeClass("idleField").addClass("focusField");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('textarea[name="message"]').blur(function() {
    			$(this).removeClass("focusField").addClass("idleField");
    		    if ($.trim(this.value) == ''){
			    	this.value = (this.defaultValue ? this.defaultValue : '');
				}
    		});
		});		
		
		
