// file extension validator
function validate() {
   var filename = document.getElementById("Upload_RTS").value;
   var ext = getExt(filename);
   if((ext == "pdf") || (ext == "doc") || (ext == "docx") || (ext == "RTF") || (ext == "txt")) 
      return true;
   alert("Upload_RTS PDF, DOC, DOCX, RTF or TXT file formats accepted.");
   return false;
}

function getExt(filename) {
   var dot_pos = filename.lastIndexOf(".");
   if(dot_pos == -1)
      return "";
   return filename.substr(dot_pos+1).toLowerCase();
}

function the_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// expand and then shrink back
$(document).ready(function(){
	//hide the all of the element with class expand_file_body
	$(".expand_file_body").hide();
	//toggle the componenet with class expand_file_body
	$(".expand_file_head").click(function(){
		$(this).next(".expand_file_body").slideToggle(100);
	});
});


	 $(document).ready(function() {

         $(".someClass").hover(

      function() {

         $(this).css({ "background-color": "#99CCFF" });

      },

      function() {

          $(this).css({ "background-color": "#fff" });

      });

     });