﻿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.showModalDialog(page,window,'h:'+h+' px;dialogWidth:'+w+' px;status:no;help:off;center:yes;unadorned:yes;');
//	var donus = window.showModalDialog(page,window,'dialogHeight:'+h+' px;dialogWidth:'+w+' px;status:no;help:off;unadorned:yes;');
	var donus = window.open(page,'pencere','width='+w+',height='+h+',scrollbars=yes');
	//var donus = window.showModelessDialog(page,window,'h:'+h+' px;dialogWidth:'+w+' px;status:no;help:off;center:yes;unadorned:yes;');
	return donus;
}



function swfFile (file,w,h){
	document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + w + '" height="' + h + '">');
	document.write ('<param name="movie" value="' + file + '" />');
	document.write ('<param name="quality" value="high" />');
	document.write ('<param name="wmode" value="transparent" />');
	document.write ('<embed src="' + file + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + w + '" height="' + h + '"></embed>');
	document.write ('</object>	');
}


function onOver(obj){
	obj.className = "onOver";
}
function onOut(obj){
	obj.className = "onOut";
}
function onOverTable(obj){
	obj.className = "FormSatir2";
}
function onOutTable(obj){
	obj.className = "FormSatir1";
}
function onOverBtn(obj){
	obj.className = "btnSubmitOver";
}
function onOutBtn(obj){
	obj.className = "btnSubmit";
}








function myPageValid() {
  //asp.net formlarında hata durumunu verir.
  var valid = false;
  if (typeof (Page_ClientValidate) == 'function') {
	  valid = Page_ClientValidate();
  } else {
	  valid = true;
  }
  return valid;
}

function openDialog(mesaj) {
  $.blockUI({
	  message: '<h1>' + mesaj + '</h1>',
	  fadeIn: 0,
	  overlayCSS: { backgroundColor: '#FFF' }
  });
}

function openMessageTime(_mesaj, _sure) {
  $.blockUI({
	  message: '<h3>' + _mesaj + '</h3>',
	  timeout: _sure
  });
}
