$(document).ready(function(){
	// FORM VALIDATION
	// SUCCESS AJAX CALL, replace "success: false," by:     success : function() { callSuccessFunction() }, 
	$(".validateMe").validationEngine({
		success :  false,
		failure : function() {}
	})
	//$.validationEngine.buildPrompt("#date","This is an example","error")	 		 // Exterior prompt build example
	//$.validationEngine.closePrompt(".date") 										 // Exterior prompt close example


 //   
//    //called when key is pressed in textbox
//	$("input.numOnly").keypress(function (e)  
//	{ 
//	  //if the letter is not digit then display error and don't type anything
//	  if( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57))
//	  {
//		//display error message
//		$(this).parent().find("span.error").html("Digits Only").show().fadeOut("slow"); 
//	    return false;
//      }	
//	});
	
	

  });

// JQuery ROLLOVER 

// USE:  <img src="first.gif" hover="second.gif"  class="rollover"/>

$(function() {
    $('.rollover').hover(function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
    }, function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
    });
});