﻿var windowname=window.name;
var fullscreenmode;
var imgtag;
var pencere;

if(windowname=='fullscreenwindow'){
	<!--  fullscreenmode="Tam Ekrandan Çık";  -->
        fullscreenmode="Tam Ekrandan Çık";
	imgtag=" <img src='/stellent/fragments/gp_assets/images/misc/btn_makeFullScreenEXIT.gif' alt='Tam Ekrandan Çık' width='12' height='13' hspace='4' vspace='1' border='0' align='top' id='resim' /> ";
}
else{
	
	fullscreenmode="Tam Ekran Yap";
	imgtag=" <img src='/stellent/fragments/gp_assets/images/misc/btn_makeFullScreen.gif' alt='Tam Ekran Yap' width='12' height='13' hspace='4' vspace='1' border='0' align='top' id='resim' /> ";
}

function modeSelect()
{
	if(windowname=='fullscreenwindow')       		
        this.window.close();

	else
        window.open(window.location.href, 'fullscreenwindow','fullscreen=1,scrollbars=1');
}

function viewDateSearch(radiobutton){
	<!-- modified Peter R. Benmark GmbH-->
	<!--viewDataSearch should be called with the object this-->
	var dateRange = document.getElementById("dateSearchRange");
	dateRange.value = radiobutton.value;				
	<!-- end modification -->
	
	var dateSearchObj=document.getElementById('advancedSDiv');
	var radioObj=document.getElementById('dateSearchRadio');
	if(radioObj.checked==true){
		dateSearchObj.style.visibility="visible";
	}
	else{
		dateSearchObj.style.visibility="hidden";
	}
}

/* Reloading image from server although it exists in the browser cache */
function reloadImage(theimg) {
	var now = new Date();
	
	if (theimg) {
		theimg.src = theimg.src+ '?' + now.getTime();
	}
}


