﻿function KayitSilinsin(KayitText){
	if (confirm ("Silmek istediğinize eminmisiniz?\n\n" + KayitText)){
		return true;
	}else{
		return false;
	}

}


function Soru(TextMetin){
	if (confirm (TextMetin)){
		return true;
	}else{
		return false;
	}
}


function popupOpen(page,w,h){
	if (w == "")
		w = 700;
	if (h == "")
		h = 500;
	var donus = window.open(page,'pencere','width='+w+',height='+h+',scrollbars=yes');
	return donus;
}


function onOver(obj){
	obj.className = "onOver";
}
function onOut(obj){
	obj.className = "onOut";
}

function onOverBtn(obj){
	obj.className = "btnSubmitOver";
}
function onOutBtn(obj){
	obj.className = "btnSubmit";
}








function myPageValid(grup) {
    
  //asp.net formlarında hata durumunu verir.
  var valid = false;
  if (typeof (Page_ClientValidate) == 'function') {
	  if (grup != "")
	  	valid = Page_ClientValidate(grup);
	  else
	  	valid = Page_ClientValidate();
  } else {
	  valid = true;
  }

    return valid;
}



//jquery block scripti
function DialogMesajGoster(Mesaj, Sure) {
    if (Mesaj == "" || Mesaj == null)
        Mesaj = "Lütfen Bekleyiniz";

    Mesaj = '<div class="growlUI_h1">' + Mesaj + '</div>';
    $.blockUI({
        message: Mesaj,
        theme: true,
        title: '<div class="growlUI_h2">İŞLEMİNİZ YAPILIYOR</div>'
    });

    //timeout süresi verilmişse
    if (Sure > 0) {
        setTimeout($.unblockUI, Sure * 1000);
    }
}


function MesajGoster(title, message, timeout) {
    if (timeout == undefined || timeout == "") timeout = 9999999999;
    if (title == undefined || title == "") title = "Lütfen Bekleyiniz";
    if (message == undefined || message == "") message = "İŞLEMİNİZ YAPILIYOR";
    //ajax gibi işlemlerde sağ üst ekranda facebook benzeri mesaj çıkartır.
    $.growlUI(title, message, timeout);
}

//---> jquery block scripti


/*
function openDialog(mesaj) {
  $.blockUI({
	  message: '<h1>' + mesaj + '</h1>',
	  fadeIn: 0,
	  overlayCSS: { backgroundColor: '#FFF' }
  });
}

function openMessageTime(_mesaj, _sure) {
  $.blockUI({
	  message: '<h3>' + _mesaj + '</h3>',
	  timeout: _sure
  });
}
*/

