var popUp;

function SetControlValue(controlID, newDate, isPostBack)
{
    popUp.close();
    document.forms[0].elements[controlID].value=newDate;
    __doPostBack(controlID,'');
}


function OpenPopupPage(pageUrl, controlID, isPostBack)
{
  popUp=window.open(pageUrl+'?controlID='+controlID+'&isPostBack='+ isPostBack,'popupcal','width=200,height=250,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no'); 
} 
function OpenCal(pageUrl, controlID, isPostBack)
{
  popUp=window.open(pageUrl+'?controlID='+controlID+'&isPostBack='+ isPostBack,'popupcal','width=200,height=250,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no'); 
} 
























// function display(myimage) {
// html = "<HTML><HEAD><TITLE>Photo</TITLE>" +
//  "</HEAD><BODY LEFTMARGIN=0 " +
//  "MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER>" +
//  "<IMG SRC='" + myimage + "' BORDER=0 NAME=image " +
//  "onload='window.resizeTo(document.image.width,document.image.height)'></CENTER>" +
//  "</BODY></HTML>";
// popup=window.open('','image','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
// popup.document.open();
// popup.document.write(html);
// popup.document.focus();
// popup.document.close();
// }

       

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
/*function zoom(picName){
 popUp=window.open('ResimGoster.aspx?Src='+ PicName,'','width=270,height=300,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no'); 
 
//var largePic = window.open('','toto','width=640,height=480,toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, directories=no, status=no');
//if(picName.indexOf(".swf") == -1)
//{
//	var markup = ('<html>\n<head>\n<title>largePic<\/title>\n<script type="text\/javascript">\n<!--\n\nx = 0;\ndoc = document;\n\nfunction getCnt(){\nif(doc.images[0].complete){\nclearInterval(setInv);\ndoc.title = "Zoom";\n}else{\ndoc.title = "Loading: [" + x + "]";\nx++;\n}\n}\nvar setInv = setInterval(getCnt,10);\n\n\/\/-->\n<\/script>\n<\/head>\n<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="javascript:self.focus()">\n<img src="'+picName+'" border="0"  alt="'+picName+'" onclick="javascript:self.close();" style="cursor:pointer;cursor:hand;" />\n<\/body>\n<\/html>');
//}
//else
//{
//	var markup = ('<html>\n<head>\n<title>largePic<\/title><\/head>\n<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="javascript:self.focus()">\n<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="640" height="480"> <param name="movie" value="'+picName+'"> <param name="quality" value="high"> <param name="backgroundColor" value="#FFFFFF"> <param name="BGCOLOR" value="#FFFFFF"> <param name="menu" value="false"> <param name="wmode" value="transparent"> <param name="SCALE" value="noscale"> <embed src="'+picName+'" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"  menu="false" wmode="transparent" scale="noscale" backgroundcolor="#FFFFFF" bgcolor="#FFFFFF" width="640" height="480"><\/embed><\/object>\n<\/body>\n<\/html>');
//}
//largePic.document.open();
//largePic.document.write(markup);
//largePic.document.close();

}*/


/*
function openImage(FileID)
{
var winl = (screen.width - 610) / 2;
var wint = (screen.height - 610) / 2;
winprops = 'height=' + 610 + ',width=' + 610 +
',top='+wint+',left='+winl+',scrollbars=no'
win = window.open("","Preview", winprops)
win.document.bgColor="#666666";
docBody = win.document.body;
docBody.style.margin = "5px 5px 5px 5px";
docBody.innerHTML = "<img src='getResizedImageById.aspx?id=" + FileID + "&w=600' />";
win.focus();
}
*/

 
                
    
/*
function findDOM(objectId) {
if (document.getElementById) {
return (document.getElementById(objectId));}
if (document.all) {
return (document.all[objectId]);}
}
function zoom(type,imgx,sz) {
imgd = findDOM(imgx);
if (type=="+" && imgd.width < 175) {
imgd.width += 2;imgd.height += (2*sz);}
if (type=="-" && imgd.width > 20) {
imgd.width -= 2;imgd.height -= (2*sz);}
} 

<div align="center"><img id="myimg" alt=""
src="graphics/steve.jpg" width="66" height="92"><br />
<a href="#"
onclick="zoom('-','myimg',92/66)">Smaller</a> |
<a href="#"
onclick="zoom('+','myimg',92/66)">Bigger</a>
</div> */


