()
function k_delete_template( tpl, nonce ){
var qs = 'ajax.php?act=delete-tpl&tpl='+tpl+'&nonce='+encodeURIComponent( nonce );
$.ajax({
dataType: "text",
url: qs
}).done(function( data ) {
if( data === "OK" ){
document.location.href = "";
}
else{
alert( data );
}
});
}