			function openPopupDialog(par,w,h,imgName,startSec)
			{
				if (navigator.appName.indexOf("Netscape") != -1) {
					winW = window.innerWidth;
					winH = window.innerHeight;
					par=document;
				}
				if (navigator.appName.indexOf("Microsoft")!= -1) {
					winW = document.body.offsetWidth;
					winH = document.body.offsetHeight;
					par=par.document;
				}
				h = h + 34;
				w = w + 13;
				this.oDiv = par.createElement('DIV');
				var center_x = (winW - w) / 2;
				var center_y = (winH - h) /2;
				
				this.oDiv.style.width = winW+"px";
				this.oDiv.style.height = winH+"px";
				this.oDiv.style.top = "0px";
				this.oDiv.style.left = "0px";
				this.oDiv.style.position = "absolute";
				this.oDiv.style.bgColor = "#000000";
				this.oDiv.Id = "popWindow1";
				this.oDiv.innerHTML = "<iframe allowtransparency='true' frameborder=0 style='width:100%; height:100%; filter:alpha(opacity=50);-moz-opacity:.50;opacity:.50;'></iframe>"
				par.body.appendChild(this.oDiv);
		        
				var iDiv = par.createElement('DIV');
				iDiv.style.width = w+"px";
				iDiv.style.height = h+"px";
				iDiv.style.top = "50px";
				iDiv.style.left = center_x+"px";
				iDiv.style.position = "absolute";
				iDiv.Id = "popWindow2";
				iDiv.style.filter = "progid:DXImageTransform.Microsoft.Shadow (Color=#000000, Direction=135, strength=3);";
		        var iHTML = '';
				iHTML += '	<div style="position:relative; height: ' + h +'px; width: ' + w + 'px; border: 1px solid #333333; background-color: #FFFFFF;" id="wndClient">';
				iHTML += '     <div  onclick="closeWindow();" id="dvClose" style="position:absolute; height:25px; text-align:right; width:100%; cursor:hand; background-color: #FFFFFF; font-family: verdana; font-size: 11px; color: #000000;  font-weight: bold"></div>';  
				iHTML += '     <img src="'+imgName+'" onclick="closeWindow();" style="cursor:hand;" width="'+ w + '" height="'+ h +'"  />';
				iHTML += '	</div>';
		                
				iDiv.innerHTML = iHTML;
				this.oDiv.appendChild(iDiv);
				
				this.sayac = startSec;
				this.startDownTime = false;
				
				this.CloseTimer = function(){
					if (this.startDownTime==true)
					{
						if (this.sayac==1) {
							this.sayac = startSec;
							document.getElementById("dvClose").innerHTML = "";
							clearTimeout(this.loaderTimer);
							this.closeWindow();
						} else {
							this.loaderTimer = setTimeout(CloseTimer,1000);
							this.sayac = this.sayac - 1;
							document.getElementById("dvClose").innerHTML = "[X] KAPAT (<font color='#C00000'>" + this.sayac +"sn</font>)&nbsp;&nbsp;";
						}
					}	
				}
				
				this.autoCloser = CloseTimer();
				
				this.closeWindow = function (){
				    document.getElementById("dvClose").innerHTML = "";
				    clearTimeout(this.loaderTimer);
					document.body.removeChild(this.oDiv);		
				}
				return this;
			}
			

