$(function(){

// //Detecting Browser
// var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
//     // Opera 8.0+ (UA detection to detect Blink/v8-powered Opera)
// var isFirefox = typeof InstallTrigger !== 'undefined';   // Firefox 1.0+
// var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
//     // At least Safari 3+: "[object HTMLElementConstructor]"
// var isChrome = !!window.chrome && !isOpera;              // Chrome 1+
// var isIE = /*@cc_on!@*/false || !!document.documentMode; // At least IE6

$(".date").datepicker({
	showOtherMonths: true,
	selectOtherMonths: true,
	dateFormat: "dd/mm/yy"
});	

$( ".datefrom" ).datepicker({
	dateFormat: "dd/mm/yy",
	onClose: function( selectedDate ) {
        $( ".dateto" ).datepicker( "option", "minDate", selectedDate );
	}
});

$( ".dateto" ).datepicker({
	dateFormat: "dd/mm/yy",
	onClose: function( selectedDate ) {
		$( ".datefrom" ).datepicker( "option", "maxDate", selectedDate );
	}
});

});
@@ -1006,12 +1006,476 @@
 %0A%09%7D%0A%7D);%0A%0A%7D);
+%0A%0Afunction autoCheck(params)%0A%7B%0A%09$.ajax(%7B%0A%09%09url : params.link,%0A%09%09type : params.type,%0A%09%09data : %22term=%22 + params.data,%0A%09%09success: function(msg)%7B%0A%09%09%09var flag = 0,%0A%09%09%09%09status = 1;%0A%09%09%09msg = msg.split('@@');%0A%09%09%09%0A%09%09%09if(msg%5Bflag%5D == 1)%0A%09%09%09%09params.info.html(msg%5Bstatus%5D);%0A%0A%09%09%09// if(msg%5Bformflag%5D == 1)%0A%09%09%09// %09$(%22button%5Bname='add_user_btn'%5D%22).attr('disabled', true);%0A%09%09%09// else if(msg%5Bformflag%5D == 0)%0A%09%09%09// %09$(%22button%5Bname='add_user_btn'%5D%22).removeAttr('disabled');%0A%09%09%7D%0A%09%7D);%0A%7D

add js function