//kumpulan func
//========================================================================================================
//Initial Jquery
//Supaya Jquery tdk di load lebih dari 1x => http://weblogs.asp.net/joelvarty/archive/2009/05/07/load-jquery-dynamically.aspx
//Initial jquery paling "OK" - 2013-03-16
var jQueryScriptOutputted = false;
function initJQuery() {		
	//if the jQuery object isn't available
	if (typeof(jQuery) == 'undefined') {		
		if (! jQueryScriptOutputted) {
			//only output the script once..
			jQueryScriptOutputted = true;			
			//output the script (load it from google api)
			//document.write("<scr" + "ipt type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js\"></scr" + "ipt>");
			//document.write("<scr"+"ipt type='text/javascript' src='./easyui/jquery-1.8.0.min.js'></scr+"+"ipt>");
			document.write("<scr"+"ipt type='text/javascript' src='./easyui/jquery.min.js'></scr+"+"ipt>");			

//new			document.write("<link rel='stylesheet' type='text/css' href='./jqueryui/jquery-ui.css'>");
//new			document.write("<scr"+"ipt type='text/javascript' src='./jqueryui/external/jquery/jquery.js'></scr+"+"ipt>");			
//new			document.write("<scr"+"ipt type='text/javascript' src='./jqueryui/jquery-ui.js'></scr+"+"ipt>");			
//new			document.write("<scr"+"ipt type='text/javascript' src='./jqueryui/jquery.ui.touch-punch.min.js'></scr+"+"ipt>");			


			//<!-- utk aktifkan JQUERY-EASYUI (cara panggil harus setelah Jquery-UI -->
			document.write("<scr"+"ipt type='text/javascript' src='./easyui/jquery.easyui.min.js'></scr"+"ipt>");				
//			document.write("<link rel='stylesheet' id='themeeasyui' type='text/css' href='./easyui/themes/default/easyui.css'>");
//			document.write("<link rel='stylesheet' id='themeicon' type='text/css' href='./easyui/themes/icon.css'>");
//			document.write("<link rel='stylesheet' id='themedemo' type='text/css' href='./easyui/demo/demo.css'>");
		}
		setTimeout("initJQuery()", 50);
	} else {							
		$(function() {  
			//do anything that needs to be done on document.ready
			//alert("OK");
		});
	}				
}
function initSuperfish(){
	//untuk initial - header atau menu
	document.write("<link rel='stylesheet' media='screen' href='superfish/dist/css/superfish.css'>");
	document.write("<scr"+"ipt type='text/javascript' src='superfish/dist/js/jquery.js'></scr"+"ipt>");
	document.write("<scr"+"ipt type='text/javascript' src='superfish/dist/js/hoverIntent.js'></scr"+"ipt>");
	document.write("<scr"+"ipt type='text/javascript' src='superfish/dist/js/superfish.js'></scr"+"ipt>");
}
function initEasyUi(){
	document.write("<scr"+"ipt type='text/javascript' src='./easyui/jquery.easyui.min.js'></scr"+"ipt>");				
	//document.write("<scr"+"ipt type='text/javascript' src='./easyui/plugins/jquery.datagrid.js'></scr"+"ipt>");				
	document.write("<link rel='stylesheet' id='easyuitheme' type='text/css' href='./easyui/themes/default/easyui.css'>");
	document.write("<link rel='stylesheet' id='easyuiicon' type='text/css' href='./easyui/themes/icon.css'>");
	document.write("<link rel='stylesheet' id='easyuidemo' type='text/css' href='./easyui/demo/demo.css'>");
	document.write("<scr"+"ipt type='text/javascript' src='./easyui/plugins/filter/datagrid-filter.js'></scr"+"ipt>");				
}
function initJqNumber(){			
	document.write("<scr" + "ipt type=\"text/javascript\" src=\"./jqnumber/jshashtable.js\"></scr" + "ipt>");
	document.write("<scr" + "ipt type=\"text/javascript\" src=\"./jqnumber/jquery.numberformatter-1.2.3.js\"></scr" + "ipt>");
}
function initJqValidate(){
	document.write("<scr"+"ipt type='text/javascript' src='./JqValidate/jquery.validate.js'></scr"+"ipt>");				
	document.write("<scr"+"ipt type='text/javascript' src='./JqValidate/additional-methods.js'></scr"+"ipt>");				
	//document.write("<link rel='stylesheet' type='text/css' href='./JqValidate/css/screen.css'>");
}
function initJqAutocomplete(){
	document.write("<scr"+"ipt type='text/javascript' src='./jqAutocomplete/jquery.autocomplete.js'></scr"+"ipt>");				
	document.write("<scr"+"ipt type='text/javascript' src='./jqAutocomplete/lib/jquery.bgiframe.min.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqAutocomplete/lib/jquery.ajaxQueue.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqAutocomplete/lib/thickbox-compressed.js'></scr"+"ipt>");		
	document.write("<link rel='stylesheet' type='text/css' href='./jqAutocomplete/jquery.autocomplete.css'>");
	document.write("<link rel='stylesheet' type='text/css' href='./jqAutocomplete/lib/thickbox.css'>");
}
function initJqPlot(){
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/jquery.jqplot.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/plugins/jqplot.barRenderer.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/plugins/jqplot.categoryAxisRenderer.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/plugins/jqplot.pieRenderer.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/plugins/jqplot.donutRenderer.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/plugins/jqplot.highlighter.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/plugins/jqplot.cursor.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/plugins/jqplot.funnelRenderer.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/plugins/jqplot.canvasTextRenderer.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/plugins/jqplot.canvasAxisTickRenderer.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/plugins/jqplot.dateAxisRenderer.min.js'></scr"+"ipt>");	
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/plugins/jqplot.pointLabels.min.js'></scr"+"ipt>");	
	//membuat legend bisa di pilih grafik mana yg akan di hide
	document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/plugins/jqplot.enhancedLegendRenderer.js'></scr"+"ipt>");	
	//edisi examples
	//document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/examples/syntaxhighlighter/scripts/shCore.min.js'></scr"+"ipt>");		
	//document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/examples/syntaxhighlighter/shBrushJScript.min.js'></scr"+"ipt>");		
	//document.write("<scr"+"ipt type='text/javascript' src='./jqPlot/examples/syntaxhighlighter/shBrushXml.min.js'></scr"+"ipt>");		
	//document.write("<link rel='stylesheet' type='text/css' href='./jqPlot/examples/examples.css'>");
	document.write("<link rel='stylesheet' type='text/css' href='./jqPlot/jquery.jqplot.css'>");
	//document.write("<link rel='stylesheet' type='text/css' href='./jqPlot/examples/syntaxhighlighter/styles/shCoreDefault.min.css'>");
	//document.write("<link rel='stylesheet' type='text/css' href='./jqPlot/examples/syntaxhighlighter/styles/shThemejqPlot.min.css'>");
}
function initJqMap(){
	document.write("<scr"+"ipt type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=true'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqMap/jquery.ui.map.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqMap/jquery.ui.map.extensions.js'></scr"+"ipt>");		
	document.write("<scr"+"ipt type='text/javascript' src='./jqMap/jquery.ui.map.services.js'></scr"+"ipt>");		
	//document.write("<link rel='stylesheet' type='text/css' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-lightness/jquery-ui.css'>");
}
function initBootstrap(){
	document.write("<link rel='stylesheet' type='text/css' href='./bootstrap/css/bootstrap.min.css'>");
	//document.write("<scr"+"ipt type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></scr"+"ipt>");
	document.write("<scr"+"ipt type='text/javascript' src='./bootstrap/js/bootstrap.min.js'></scr"+"ipt>");		
}
function initImageareaselect(){
	document.write("<link rel='stylesheet' type='text/css' href='./imgareaselect/css/imgareaselect-default.css'>");
	document.write("<scr"+"ipt type='text/javascript' src='./imgareaselect/scripts/jquery.imgareaselect.pack.js'></scr"+"ipt>");		
}

initJQuery();   //standard
initSuperfish();//menu
//initBootstrap(); //harus pake jqueryui versi terakhir :(
initEasyUi();   //grid
//initJqNumber(); //format number
//initJqValidate();
//initJqAutocomplete();
//tutup dulu sementara => initJqPlot(); //grafik 
//initJqMap();  //map
//initImageareaselect(); //cropping


//========================================================================================================
// MEMBUAT FORMATTER
//- http://stackoverflow.com/questions/15308261/easyui-number-formatting-drop-down-auto-fill-not-working
//- http://jeasyui.com/tutorial/datagrid/datagrid7.php
//FORMAT GAMBAR
function FormatGb(num,row) {
	if (typeof(num) == 'undefined' || num==null){
		numx="<img src='' alt='gambar' width='50px' height='50px'>";}else{
		numx="<img src='gambar/tamu/"+num+"' alt='gambar' width='50px' height='50px'>";
		//cek jika data menggunakan mode image to string base64
		//numx="<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAAoCAYAAAC7HLUcAAADtUlEQVR4Xu2aLZYqMRCFMxuAFaARg8WwAnaABQEWgwUBFoMFARaDRqAxWBBoVgAbmPcu7/Q7PX3SP0k16TTcnDNqOpXKrXykKsmXUurn7x+bvQJf9l3Z03cFEFwCIosSAZHp53VvAiIPDwGRa+itBQIiDw0BkWvorQUCIg8NAZFr6K0FAiIPDQGRa+itBQIiDw0BkWvorQUCIg8NAZFr6K0FAiIPDQGRa+itBTEg7XZb1Wo11Wg0VKVS+T/Rx+Ohzuezut1uar/feyVAp9NR8Dvaer2ejZ8ExEa1kvSxBgQLbDQaPeFIa4BkPp97AQr8XiwWWpfr9XraVHT/JyA2qpWkjxUg+AWeTqfGU5xMJmq73Rr3y6vD9/e32mw2v3a6sG0CkpfS72PHGBAsst1uZ60A0pjj8Wjd37Yj0j/AAf/jGgGxVfd9+xkDgp0DO0i0oeZYLpfqcrk8F+FgMND+UqMeGQ6HzhVdr9eq1WoljktAnIfF+wGNATmdTtqFH02fsBixKHUgNZtNp8LEQR11goA4DUspBjMCJC69wu6hW/TX6zXPYthKUF29BH/DJ26BYQJiJfFbdzICJFAinKoAGiy4aPGN063D4VDoDqIDGr7iRE13yEBA3nqtW03OCpAsI+EoVXfX4KoGAaA4TIjezXS7XVWtVrXpHwHJEtnP+uYlgCTl/C5OseJOrII6Ka4+IiCftfizzDZXQLAwcXmoO+WCM652D93uhbRqtVo9NSEgWZYGv4ECuQGClAYLM+6eAce/SG9QA7yy9fv9J6ThhvoIu0e4htKdsHEHeWVkymk7F0BQa8xms9gbalwM4u7j1XDoTqx0YHIHKediLcJrMSC6X+zwRJDWIL1x0XR3NBj/fr//Gh67nS4NDPzUncol+M+3WC6CW9AYIkCSinEssvF47PSBYty9i6m22PEMXvYSEFOBS/S9NSBJcLhKqaI6E5ASrbySuGoFSFJaFS2IXepAQFyq/RljGQOS9po3y0td5PoonvNuBCRvRWnPGJAsr2LTZH3VZWHaa93AL0AePQrG/4K6A0W9AcCsQdICXuL/GwES977KdP6vAiSrHzzmzaoUvzMCJO1IN6ucBCSrUvyuaAWMAIl7gGg6CQJiqhi/L0oBI0CKctLzcVmDeB4giXsERKLev74ERK6htxYIiDw0BESuobcWCIg8NARErqG3FgiIPDQERK6htxYIiDw0BESuobcWCIg8NARErqG3FgiIPDQERK6htxYIiDw0BESuobcW/gDZOWY4lzJl1QAAAABJRU5ErkJggg==' alt='test' width='50px' height='50px'>";
		//menjadi (dng catatan database berisi text = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAAoCAYAAAC7HLUcAAADtUlEQVR4Xu2aLZYqMRCFMxuAFaARg8WwAnaABQEWgwUBFoMFARaDRqAxWBBoVgAbmPcu7/Q7PX3SP0k16TTcnDNqOpXKrXykKsmXUurn7x+bvQJf9l3Z03cFEFwCIosSAZHp53VvAiIPDwGRa+itBQIiDw0BkWvorQUCIg8NAZFr6K0FAiIPDQGRa+itBQIiDw0BkWvorQUCIg8NAZFr6K0FAiIPDQGRa+itBTEg7XZb1Wo11Wg0VKVS+T/Rx+Ohzuezut1uar/feyVAp9NR8Dvaer2ejZ8ExEa1kvSxBgQLbDQaPeFIa4BkPp97AQr8XiwWWpfr9XraVHT/JyA2qpWkjxUg+AWeTqfGU5xMJmq73Rr3y6vD9/e32mw2v3a6sG0CkpfS72PHGBAsst1uZ60A0pjj8Wjd37Yj0j/AAf/jGgGxVfd9+xkDgp0DO0i0oeZYLpfqcrk8F+FgMND+UqMeGQ6HzhVdr9eq1WoljktAnIfF+wGNATmdTtqFH02fsBixKHUgNZtNp8LEQR11goA4DUspBjMCJC69wu6hW/TX6zXPYthKUF29BH/DJ26BYQJiJfFbdzICJFAinKoAGiy4aPGN063D4VDoDqIDGr7iRE13yEBA3nqtW03OCpAsI+EoVXfX4KoGAaA4TIjezXS7XVWtVrXpHwHJEtnP+uYlgCTl/C5OseJOrII6Ka4+IiCftfizzDZXQLAwcXmoO+WCM652D93uhbRqtVo9NSEgWZYGv4ECuQGClAYLM+6eAce/SG9QA7yy9fv9J6ThhvoIu0e4htKdsHEHeWVkymk7F0BQa8xms9gbalwM4u7j1XDoTqx0YHIHKediLcJrMSC6X+zwRJDWIL1x0XR3NBj/fr//Gh67nS4NDPzUncol+M+3WC6CW9AYIkCSinEssvF47PSBYty9i6m22PEMXvYSEFOBS/S9NSBJcLhKqaI6E5ASrbySuGoFSFJaFS2IXepAQFyq/RljGQOS9po3y0td5PoonvNuBCRvRWnPGJAsr2LTZH3VZWHaa93AL0AePQrG/4K6A0W9AcCsQdICXuL/GwES977KdP6vAiSrHzzmzaoUvzMCJO1IN6ucBCSrUvyuaAWMAIl7gGg6CQJiqhi/L0oBI0CKctLzcVmDeB4giXsERKLev74ERK6htxYIiDw0BESuobcWCIg8NARErqG3FgiIPDQERK6htxYIiDw0BESuobcWCIg8NARErqG3FgiIPDQERK6htxYIiDw0BESuobcW/gDZOWY4lzJl1QAAAABJRU5ErkJggg==' )
		//numx="<img src=num alt='test' width='50px' height='50px'>";

	}
return numx
}
//FORMATTER GRID-TGL
function FormatTgl(num,row) {
	if (typeof(num) == 'undefined' || num==null){
		numx="";}else{
			tgl=num.split("-");
			numx=tgl[2]+'-'+tgl[1]+'-'+tgl[0];
	}
return numx
}
//FORMATTER GRID-ANGKA
function FormatNumber0(num,row) {
	if (typeof(num) == 'undefined' || num==null){
		numx="";}else{
		dig=0;
		dec='.';
		sep=',';
		x=new Array();
		s=(num<0?"-":"");
		num=Math.abs(num).toFixed(dig).split(".");
		r=num[0].split("").reverse();
		for(var i=1;i<=r.length;i++){x.unshift(r[i-1]);if(i%3==0&&i!=r.length)x.unshift(sep);}
		numx=s+x.join("")+(num[1]?dec+num[1]:"");}
return numx;
}
function FormatNumber2(num,row) {
	if (typeof(num) == 'undefined' || num==null){
		numx="";}else{
		dig=2;
		dec='.';
		sep=',';
		x=new Array();
		s=(num<0?"-":"");
		num=Math.abs(num).toFixed(dig).split(".");
		r=num[0].split("").reverse();
		for(var i=1;i<=r.length;i++){x.unshift(r[i-1]);if(i%3==0&&i!=r.length)x.unshift(sep);}
		numx=s+x.join("")+(num[1]?dec+num[1]:"");}
return numx;
}
function FormatNumber4(num,row) {
	if (typeof(num) == 'undefined' || num==null){
		numx="";}else{
		dig=4;
		dec='.';
		sep=',';
		x=new Array();
		s=(num<0?"-":"");
		num=Math.abs(num).toFixed(dig).split(".");
		r=num[0].split("").reverse();
		for(var i=1;i<=r.length;i++){x.unshift(r[i-1]);if(i%3==0&&i!=r.length)x.unshift(sep);}
		numx=s+x.join("")+(num[1]?dec+num[1]:"");}
return numx;
}
function FormatNumber4wLink(num,row) {
  if (typeof(num) == 'undefined'){
	numx="";}else{
  dig=4;
  dec='.';
  sep=',';
  x=new Array();
  s=(num<0?"-":"");
  num=Math.abs(num).toFixed(dig).split(".");
  r=num[0].split("").reverse();
  for(var i=1;i<=r.length;i++){x.unshift(r[i-1]);if(i%3==0&&i!=r.length)x.unshift(sep);}
  numx="<a href="+  "icm.php"    +">"+    s+x.join("")+(num[1]?dec+num[1]:"")     +"</a>";}
return numx
}
function FormatSuplier(num,row) {
	if (typeof(num) == 'undefined' || num==null){
		numx="";}else{
	numx="<a href="+  "supl.php?kdsup="+num+">"+  num  +"</a>";
	}
return numx
}
function FormatItem(num,row) {
	if (typeof(num) == 'undefined' || num==null){
		numx="";}else{
	numx="<a href="+  "item.php?kditem="+num+">"+  num  +"</a>";
	}
return numx
}
function FormatNopo(num,row) {
	 //Compare multiple values in javascript/php:
	 //- http://stackoverflow.com/questions/13737091/concise-way-to-compare-against-multiple-values
	if (typeof(num) == 'undefined'){
		numx="";}else {
		var a = row.JENIS;
		beli_ret = ['11', '22'];
		jual_ret = ['21', '12'];
		if(beli_ret.indexOf(a) != -1){
			numx="<a href="+  "pod.php?no_po="+num+">"+  num  +"</a>";} else
			if(jual_ret.indexOf(a) != -1){
					numx="<a href="+  "ord.php?no_or="+num+">"+  num  +"</a>";} else {numx="";}	
		}				
return numx
}
function FormatNopoIcd(num,row) {
	if (typeof(num) == 'undefined' || num==null){
		numx="";}else{
	numx="<a href="+  "icd.php?no_po="+num+">"+  num  +"</a>";
	}
return numx
}
function FormatNopoPod(num,row) {
	if (typeof(num) == 'undefined'){
		numx="";}else{
	numx="<a href="+  "pod.php?no_po="+num+">"+  num  +"</a>";}
return numx
}
//FORMATTER COMBOBOX
function FormatKdsup(row){
	//sumber :	http://www.simonbattersby.com/blog/jquery-ui-autocomplete-with-a-remote-database-and-php/
	//			http://www.jeasyui.com/demo/main/index.php?plugin=ComboBox&theme=default&dir=ltr&pitem=
	//			http://www.jeasyui.com/demo/main/index.php?plugin=ComboGrid&theme=default&dir=ltr&pitem=
	var s = '<span style="font-weight:bold">' + row.text + '</span><br/>' +
	'<span style="color:#888">' + row.id + '</span>';
return s;
}


//=== Mencegah mengisi selain number
function validate(evt) {
  var theEvent = evt || window.event;
  var key = theEvent.keyCode || theEvent.which;
  key = String.fromCharCode( key );
  var regex = /[0-9]|\./;
  if( !regex.test(key) ) {
	theEvent.returnValue = false;
	if(theEvent.preventDefault) theEvent.preventDefault();
	alert("Err.. Field ini hanya bisa di isi angka!!!");
  }
}
function readonlyx(evt) {
  var theEvent = evt || window.event;
  var key = theEvent.keyCode || theEvent.which;
  key = String.fromCharCode( key );
  var regex = /[0-9]|\./;
//  if( !regex.test(key) ) {
	theEvent.returnValue = false;
//	if(theEvent.preventDefault) theEvent.preventDefault();
//	alert("Err.. Field ini hanya bisa di isi angka!!!");
//  }
}


//cek login
//cara panggil harus di dalam <script> doCeklogin(); </script>
//kemudian di bagian <nama>Func.php harus di tambahkan, cari $kuncix=="ceklogin"
//function doCeklogin(){		
//	urlx="tonerFunc.php";
//	kunciku="ceklogin";
//	$.ajax({
//		type:"POST", //$('#frm_salestarget').attr("method"),
//		url:urlx, //$('#frm_salestarget').attr("action"),
//		async: false,
//		//contoh penambahan variable manual => "KUNCI="+$('#kunci').val()+"&"+$("form").serialize(),
//		//data:"kunci="+kunciku+"&"+$("#frm_toner").serialize(),
//		data:"kunci="+kunciku,
//		dataType:"json",
//		success: function(data) {
//			if (data.keluar||data.tutupakses){
//				$.messager.alert('Warning',data.isimsg,'info',
//					function () {
//						if (data.keluar){
//							window.location.assign("keluar.php");
//						}else{
//							if (!data.akses){
//								window.location.assign("index.php");
//							}
//						}
//					}
//				);
//				//stop - berhenti javascript 
//				preventDefault();
//			}
//		}
//	});
//}



//GAGAL.. krn tdk smua doSearch(), tuj membuat huruf menjadi huruf besar
//function hurufbesar(e,obj){
//  //tombol enter ditekan		
//  //alert(e.keyCode); //utk checking
//  //alert(e.which);	//utk checking
//  if(e.keyCode == 13){
//	  doSearch();
//	  (obj).focus();
//  } else {
//	  //hanya tombol huruf, sumber => http://stackoverflow.com/questions/3781142/jquery-or-javascript-how-determine-if-shift-key-being-pressed-while-clicking-an
//	  if ((e.keyCode>=65 && e.keyCode<=90) || (e.keyCode>=97 && e.keyCode<=122) ){
//		(obj).value = (obj).value.toUpperCase();
//	  }
//  }
//}


////GAGAL!!... krn icm ga bisa, tuj nya mengecek apakah masih login dah mengirimkan info message (kanan bawah)
//function cek_msg(data){
//	if (data.keluar){								
//		$.messager.alert('Warning',data.isimsg,'info',
//			function () {
//				//var i = 1;
//				//alert(i);
//				window.location.assign("keluar.php");
//				}
//		);   
//		event.preventdefault();
//	}else{
//		$.messager.show({
//			title:'Message',
//			msg:data.isimsg,
//			timeout:3000,
//			showType:'slide'
//		});
//	}
//}

////========================================================================================================