function preloading() {    //function preloading 
	  $('#preloader').html("Loading...").fadeIn();
	  setTimeout( "jQuery('#preloader').fadeOut();", 1000 );
 }
  function checking() {    //function checking 
	  $('#preloader').html("Checking...").css('width','100px').fadeIn();
 }
 function uploading() {    //function uploading 
	  $('#preloader').html("Uploading...").css('width','100px').fadeIn();
 }
  function deleting() {    //function deleting 
	  $('#overlay').show();	
	  $('#preloader').html("Deleting...").css('width','100px').fadeIn();
 }
function preloader() {    //function preloader 
	  $('#preloader').html("Loading...").fadeIn();
 }
 function unpreloader() {    //function unpreloader 
	  setTimeout( "jQuery('#preloader').fadeOut();", 1000 );
 }
function loading() {    //function loading 
	  $('#overlay').show();	
	  $('#preloader').html("Loading...").fadeIn();	
 }
  function unloading() {    //function unloading 
	  setTimeout( "jQuery('#preloader').fadeOut();", 1000 );
	  setTimeout( "jQuery('#overlay').hide();", 1000 );
 }
   function cancelloading() {    //function cancelloading 
	  $('#preloader').html("Cancel...");	
	  setTimeout( "jQuery('#preloader').fadeOut();", 1000 );
	  setTimeout( "jQuery('#overlay').hide();", 1000 );
 }
 
  function alert_clear() {    //function alert_warning
  $('.alert_warning').fadeOut();	
  $('.alert_info').fadeOut();	
  $('.alert_success').fadeOut();	
  $('.alert_error').fadeOut();	
 }
 function alert_warning() {    //function alert_warning
$(".alert_warning").html("<p><img src=\"images/icon/icon_warning.png\" alt=\"Warning\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>คำเตือน</strong> กรุณาตรวจสอบข้อมูลที่ระบบต้องการให้ครบ </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_warning').fadeOut();", 3000 );
 }
 
 function alert_success() {    //function alert_success
$(".alert_success").html("<p><img src=\"images/icon/icon_accept.png\" alt=\"Success\" class=\"mid_align\" style=\"margin-bottom:4px\"/> <strong>สำเร็จ</strong> การทำรายการเรียบร้อย </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_success').fadeOut();", 3000 );
 }
 
  function alert_info_success() {    //function alert_success
$(".alert_info").html("<p><img src=\"images/icon/icon_info.png\" alt=\"info\" class=\"mid_align\" style=\"margin-bottom:4px\"/> <strong>สำเร็จ</strong> การทำรายการเรียบร้อย </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_info').fadeOut();", 3000 );
 }
 
 function alert_error() {    //function alert_error
$(".alert_error").html("<p><img src=\"images/icon/icon_error.png\" alt=\"Error\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>ผิดพลาด</strong> ไม่สามารถทำรายการได้ </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_success').fadeOut();", 3000 );
 }
 
function alert_success_username() {    //function alert_success
$(".alert_success").html("<p><img src=\"images/icon/icon_accept.png\" alt=\"Success\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>สำเร็จ</strong> ชื่อผู้ใช้งานนี้สามารถใช้ได้  </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_success').fadeOut();", 3000 );
 }
function alert_email() {    //function alert_email
$(".alert_warning").html("<p><img src=\"images/icon/icon_warning.png\" alt=\"Warning\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>คำเตือน</strong> รูปแบบอีเมลล์ไม่ถูกต้อง กรุณาตรวจสอบใหม่   </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_warning').fadeOut();", 3000 );
 }
function alert_warning_username() {    //function alert_warning_username
$(".alert_warning").html("<p><img src=\"images/icon/icon_warning.png\" alt=\"Warning\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>คำเตือน</strong> ชื่อผู้ใช้งานนี้มีคนใช้แล้ว กรุณาตรวจตรวจสอบใหม่</p>	").slideDown('fast');
setTimeout( "jQuery('.alert_warning').fadeOut();", 3000 );
 }
 
 function alert_warning_pass() {    //function alert_warning_pass
$(".alert_warning").html("<p><img src=\"images/icon/icon_warning.png\" alt=\"Warning\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>คำเตือน</strong> รหัสผ่านควรมีความยาวมากว่า 6 ตัวอัษรขื้นไป </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_warning').fadeOut();", 3000 );
 }
 
  function alert_warning_passcon() {    //function alert_warning_passcon
$(".alert_warning").html("<p><img src=\"images/icon/icon_warning.png\" alt=\"Warning\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>คำเตือน</strong> รหัสผ่าน และยืนยันรหัสผ่านไม่ตรงกัน</p>	").slideDown('fast');
setTimeout( "jQuery('.alert_warning').fadeOut();", 3000 );
 }
 
  function alert_warning_number() {    //function alert_warning_passcon
$(".alert_warning").html("<p><img src=\"images/icon/icon_warning.png\" alt=\"Warning\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>คำเตือน</strong>  กรอกเฉพาะตัวเลขเท่านั้น</p>	").slideDown('fast');
setTimeout( "jQuery('.alert_warning').fadeOut();", 3000 );
 }
 
 function alert_warning_images() {    //function alert_warning_passcon
$(".alert_warning").html("<p><img src=\"images/icon/icon_warning.png\" alt=\"Warning\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>Warning</strong> กรุณาเลือกไฟล์ JPG, PNG or GIF เท่านั้น </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_warning').fadeOut();", 3000 );
 }
 
  function alert_warning_file() {    //function alert_warning_passcon
 $(".alert_warning").html("<p><img src=\"images/icon/icon_warning.png\" alt=\"Warning\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>Warning</strong> กรุณาเลือกไฟล์ที่รองรับ ได้แก่ ประเภท word , powerpoint, excel, pdf , zip หรือ rar เท่านั้น </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_warning').fadeOut();", 10000 );
  }
 
 function alert_success_upload() {    //function alert_success
$(".alert_success").html("<p><img src=\"images/icon/icon_accept.png\" alt=\"Success\" class=\"mid_align\" style=\"margin-bottom:4px\"/> <strong>Success</strong> การทำรายการอัพโหลดเรียบร้อย </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_success').fadeOut();", 3000 );
 }	
 
  function alert_warning_upload() {    //function alert_warning_passcon
$(".alert_warning").html("<p><img src=\"images/icon/icon_warning.png\" alt=\"Warning\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>Warning</strong> เกิดข้อผิดดพลาดระหว่างการอัพโหลด</p>	").slideDown('fast');
setTimeout( "jQuery('.alert_warning').fadeOut();", 3000 );
 }
 
function alert_error_upload() {    //function alert_error
$(".alert_error").html("<p><img src=\"images/icon/icon_error.png\" alt=\"Error\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>ผิดพลาด</strong>  ไม่สามารถอัพโหลดได้  </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_error').fadeOut();", 3000 );
 }
 
 function alert_warning_overSize() {    //function alert_warning_passcon
 $(".alert_warning").html("<p><img src=\"images/icon/icon_warning.png\" alt=\"Warning\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>Warning</strong> ขนาดไฟล์มีขนาดใหญ่กว่าที่ระบบกำหนด </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_warning').fadeOut();", 3000 );
 }
 
 function alert_info_crop() {    //function alert_success 
$(".alert_info").html("<p><img src=\"images/icon/icon_info.png\" alt=\"info\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>คำแนะนำ</strong> ลากเมาส์ในรูปภาพใหญ่ในตำแหน่งที่ต้องการ <br /> เพื่อทำการกำหนดขนาดของ รูปแทน  ( Thumbnail ) </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_info').fadeOut();", 20000 );
}

  function alert_warning_crop() {    //function alert_warning_crop
 $(".alert_warning").html("<p><img src=\"images/icon/icon_warning.png\" alt=\"Warning\" class=\"mid_align\" style=\"margin-bottom:4px\"/><strong>Warning</strong> กรุณาเลือกตำแหน่งของภาพ ก่อนทำการ Crop Image </p>	").slideDown('fast');
setTimeout( "jQuery('.alert_warning').fadeOut();", 3000 );
 }
