﻿// JScript File

function pageloaded() { 
//   Adds a class focus to input type field when focused
     $(":input,").addClass("idleField");   

     $(":input,").focus(function() {   
        $(this).removeClass("idleField").addClass("focusField");   

        if(this.value != this.defaultValue){   
            this.select();     
        }      
     });   
	
     $(":input,").blur(function() {   
          $(this).removeClass("focusField").addClass("idleField");   
     });   
}

   Sys.Application.add_load (pageloaded);
