function flashgoster(dosya,en,boy,deger){
document.writeln("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='"+en+"' HEIGHT='"+boy+"' id='contents' ALIGN=''>");
document.writeln("<PARAM NAME=movie value='"+dosya+"' />");
document.writeln("<PARAM NAME=quality VALUE=high>");
document.writeln("<PARAM NAME=wmode VALUE=transparent>");
document.writeln("<PARAM NAME=flashvars id=objflashvars VALUE=deger="+deger+">");	
document.writeln("<EMBED src='"+dosya+"' quality='high' bgcolor='#ffffff' width='"+en+"' height='"+boy+"' name='contents' align='middle' allowScriptAccess='sameDomain'wmode='transparent' type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' flashvars='deger="+deger+"' />");
document.writeln("</OBJECT>");
}



function GB_show(url) { 
var windowprops = "width=200,height=100"; 
popup = window.open(url,'remote',windowprops); 
} 


var newwindow;
function poppencere(url,width,height){
	newwindow=window.open(url,'name','height='+height+',width='+width);
	if (window.focus) {newwindow.focus()}}




function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}





function toggle2(showHideDiv, switchTextDiv) {
	var ele = document.getElementById(showHideDiv);
	var text = document.getElementById(switchTextDiv);
	if(ele.style.display == "block") {
    		ele.style.display = "none";
		text.innerHTML = "restore";
  	}
	else {
		ele.style.display = "block";
		text.innerHTML = "collapse";
	}
}



function onay()
{
var agree=confirm("Devam etmek istediğinize emin misiniz?");
if (agree)
	return true ;
else
	return false ;
}






// hover effect
$(document).ready(function() {
  $('div.demo-show h3').add('div.demo-show2 h3').hover(function() {
    $(this).addClass('hover');
  }, function() {
    $(this).removeClass('hover');
  });
});

// independently show and hide
$(document).ready(function() {
  $('div.demo-show:eq(0) > div').hide();  
  $('div.demo-show:eq(0) > h3').click(function() {
    $(this).next().slideToggle('fast');
  });
});

// one showing at a time

$(document).ready(function() {
  $('div.demo-show:eq(1) > div:gt(0)').hide();  
  $('div.demo-show:eq(1) > h3').click(function() {
    $(this).next('div:hidden').slideDown('fast')
    .siblings('div:visible').slideUp('fast');
  });
});


//simultaneous showing and hiding

$(document).ready(function() {
  $('div.demo-show2:eq(0) > div').hide();
  $('div.demo-show2:eq(0) > h3').click(function() {
    $(this).next('div').slideToggle('fast')
    .siblings('div:visible').slideUp('fast');
  });
});

//queued showing and hiding
$(document).ready(function() {
  $('div.demo-show2:eq(1) > div').hide();  
  $('div.demo-show2:eq(1) > h3').click(function() {
    var $nextDiv = $(this).next();
    var $visibleSiblings = $nextDiv.siblings('div:visible');

    if ($visibleSiblings.length ) {
      $visibleSiblings.slideUp('fast', function() {
        $nextDiv.slideToggle('fast');
      });
    } else {
       $nextDiv.slideToggle('fast');
    }
  });
});






	function kontrol(){
		var knt=false;
		var msg='Lütfen aşağıdaki alanları uygun şekilde doldurunuz \n \n';
		
		for(i=0; i<document.frm1.elements.length; i++)
			{
				if(document.frm1.elements[i].name =='gun' || document.frm1.elements[i].name =='ay' || document.frm1.elements[i].name =='yil')
				{
					if(document.frm1.elements[i].value =='Seçiniz'){
						if (knt==false){knt=true;}
						document.frm1.elements[i].style.background='red';
						msg+=document.frm1.elements[i].title+'\n';
					}
				}else{
					if(document.frm1.elements[i].value ==''){
						if (knt==false){knt=true;}
						document.frm1.elements[i].style.background='red'; 
						msg+=document.frm1.elements[i].title+'\n';
					}
				
				}
			}
			
			if(knt==true){
				alert(msg);
				return false;
			}
			
			
	}
	
	function degis(id){
		if(document.getElementById(id).style.background!='#ffffff'){document.getElementById(id).style.background='#ffffff';}
	}
	
	function degis2(id){
		if(document.getElementById(id).value==''){document.getElementById(id).style.background='red';}
	}













   //tek input olan sayfada formun eneter ile submit edilmesini onler
   var submitFlag=false;
   var sep = ".";

   function commafy(inpValue) {
       var re = /(\d+)(\d{3})/ ;
       while ( re.test(inpValue) ) {
           inpValue = eval("inpValue.replace(re,'$1" + sep + "$2')");
       }
       return inpValue;
   }
   function deCommafy(inpValue) {
       var re = eval("/\\" + sep + "/g") ;

       return inpValue.replace(re,"");      
   }
   function formatCurrency(inpObj) {
       inpValue = inpObj.value;
       var fromIndex = 0;
       var toIndex = 0;
       ytlVal = inpValue;
       var unformattedString = deCommafy(ytlVal) ;
       if ( unformattedString.length > 9 ) {
           unformattedString = unformattedString.substring(0,9); // en fazla 9 hane olsun
       }
       if ( !isNaN( parseInt(unformattedString,10) ) ) { 
           unformattedString = parseInt(unformattedString,10).toString() ;
       } else {
           inpObj.value = "";
           inpObj.focus();
           return;
       }
       inpObj.value = commafy( unformattedString );
   }
