// Pop Up Window Open
function popUpWindow(URLStr, WinName, width, height)
{
    var x;
    LeftPosition = (screen.width-width)/2 ;
    TopPosition = (screen.height-height)/2;
	var popUpWinProp;
	popUpWinProp = 'toolbar=no,';
	popUpWinProp += 'location=no,';
	popUpWinProp += 'directories=no,';
	popUpWinProp += 'status=no,';
	popUpWinProp += 'menubar=no,';
	popUpWinProp += 'scrollbars=no,';
	popUpWinProp += 'resizable=no,';
	popUpWinProp += 'copyhistory=no,';
	popUpWinProp += 'width='+ width +',';
	popUpWinProp += 'height='+ height +',';
	popUpWinProp += 'left='+ LeftPosition +',';
	popUpWinProp += 'top='+ TopPosition +',';
	popUpWinProp += 'screenX='+ LeftPosition +',';
	popUpWinProp += 'screenY='+ TopPosition + ' ';
	x=window.open(URLStr, WinName, popUpWinProp);
	x.focus();
}

//Confirm Window Open
function confirmWindow(messageStr)
{
	confirm(messageStr);
}

//Alert Window Open
function alertWindow(messageStr)
{
	alert(messageStr);
}

//Print Page
function printPage()
{
	print(document); 
}

//Page Redirect
function redirect(URLStr) 
{
	location = URLStr;
}

//When A Form Object Activate Then Change Backgorund Color
function objActiv(ObjName, bgColor)
{
	ObjName.style.backgroundColor = bgColor
}

//When A Form Object Deactivate Then Change Backgorund Color
function objDeActiv(ObjName, bgColor)
{
	ObjName.style.backgroundColor = bgColor
}

//Bookmark 
function bookmarksite(title, url){
  if (document.all)
    window.external.AddFavorite(url, title);
  else if (window.sidebar)
    window.sidebar.addPanel(title, url, '')
}

//Set as home page
function setAsHomePage(url){
  document.body.style.behavior='url(#default#homepage)';
  document.body.setHomePage(url); 
}

var eski=1;

function degistir(a)
{
  document.getElementById('ctl00_ContentPlaceHolder1_Image'+eski).style.display='none';
  document.getElementById('ctl00_ContentPlaceHolder1_Image'+a).style.display='';

  document.getElementById('ctl00_ContentPlaceHolder1_lbl'+eski).style.display='none';
  document.getElementById('ctl00_ContentPlaceHolder1_lbl'+a).style.display='';

  eski=a;	
}

var asd = 1;

function addAlan(){
 
 if(asd==1){
   document.getElementById('Div1').style.display='';
   document.getElementById('Div2').style.display='';
 }
 
 if(asd==2){
   document.getElementById('Div3').style.display='';
   document.getElementById('Div4').style.display='';
 }

 if(asd==3){
   document.getElementById('Div5').style.display='';
   document.getElementById('Div6').style.display='';
 }

 if(asd==4){
   document.getElementById('Div7').style.display='';
   document.getElementById('Div8').style.display='';
   document.getElementById('ctl00_ContentPlaceHolder1_lblekle').style.display='none';
 }
 asd = asd + 1;
}