﻿/* * Coder: Abdullah Tekin * ============================================ * * Copyright (c) by Abdullah Tekin (tekinonline@hotmail.com) * http://www.phpsistem.com * http://www.abdullahtekin.com * http://www.sanalkurs.net * * Her Hakkı Saklıdır, İzinsiz Kullanılamaz! *//* HATA FONKSİYONU *****************************************************************************************************/function hata(msj,zamanasimi,title) {		/*	if($.blockUI){		 $.blockUI({		  message: msj,		  css: { 		   border:'none', padding:'15px', size:'12.0pt',		   backgroundColor:'#900', color:'#fff',		   opacity:'.8','-webkit-border-radius': '10px','-moz-border-radius': '10px'		  }		 });		 window.setTimeout($.unblockUI, zamanasimi);	} else {		alert(msj);		return false;	}	*/		if(title) {		jAlert(msj, title);	} else {		jAlert(msj, 'Hata');	}}function tamekran(url) {	window.open(url, '', 'fullscreen=yes, scrollbars=auto');}/* NUMBER FORMAT *****************************************************************************************************/function number_format( number, decimals, dec_point, thousands_sep ) {     var n = number, c = isNaN(decimals = Math.abs(decimals)) ? 2 : decimals;    var d = dec_point == undefined ? "," : dec_point;    var t = thousands_sep == undefined ? "." : thousands_sep, s = n < 0 ? "-" : "";    var i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", j = (j = i.length) > 3 ? j % 3 : 0;        return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");}function kaybet(seciciler,sure) {	setTimeout(function(){ 		$(seciciler).fadeOut();	}, 5000);}/* JQUERY *****************************************************************************************************/$(function(){	var ie     = $.browser.msie;	if(ie==false) {		$('textarea').autogrow();	}	// Dialog				$('#dialog').dialog({		bgiframe: true,		modal: true,		autoOpen: false,		width: 500	});		// Pencere	$(".win").click(function(){		var url    = $(this).attr('href');		var title  = $(this).attr('title');		var width  = $(this).attr('width');		var height = $(this).attr('height');		$("#dialog").load(url).dialog('option','width',width).dialog('option','height',height).dialog('option','title',title).dialog('open');		return false;			});	$('li.kart #kartno, li.kart #cvv').numeric();	$('li.kart #sahip').alpha({ichars:'.,\''});	$('#tc').mask("99999999999");});