var Opened=false;
	function OpenWindow1(PageSrc,Top,Left,Width,Height)
{
Features="top="+Top+",left="+Left+",width="+Width+",height="+Height+",toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,resizable=no";
if ((!Opened) || (NewWin.closed))
{
	Opened=true;
	NewWin=window.open(PageSrc,"NewWindow",Features);
	NewWin.focus();
}
else
{
	if ((Opened) || (!NewWin.closed))
	{
		NewWin.location=PageSrc;
		NewWin.focus();
	}
}

}


var Opened=false;
	function OpenWindow(PageSrc,Top,Left,Width,Height)
{
Features="top="+Top+",left="+Left+",width="+Width+",height="+Height+",toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,resizable=no";
if ((!Opened) || (NewWin.closed))
{
	Opened=true;
	NewWin=window.open(PageSrc,"NewWindow",Features);
	NewWin.focus();
}
else
{
	if ((Opened) || (!NewWin.closed))
	{
		NewWin.location=PageSrc;
		NewWin.focus();
	}
}

}


<!--
function MM_openBrWindow(theURL,winName,w,h,s) { //v2.0
        var width=w;
        var height=h;
        var top=(screen.height) ? (screen.height-height)/4 : 0;
        var left=(screen.width) ? (screen.width-width)/2: 0;
        var features = '';
        if (s==1) {features = 'scrollbars=1,width='+width+',height='+height+',top='+top+',left='+left;};
	  if (s==2) {features = 'scrollbars=1,toolbar=1,status=1,resizable=1,width='+width+',height='+height+',top='+top+',left='+left;};
	  if (s==0) {features = 'scrollbars=0,toolbar=0,status=0,width='+width+',height='+height+',top='+top+',left='+left;};


        window.open(theURL,winName,features);
}
//-->

<!-- Begin 
 function Photo(img){ 
   foto1= new Image(); 
   foto1.src=(img); 
   check(img); 
 } 
 function check(img){ 
   if((foto1.width!=0)&&(foto1.height!=0)){ 
     view(img); 
   } 
   else{ 
     func="check('"+img+"')"; 
     inter=setTimeout(func,20); 
   } 
 } 
 function view(img){ 
   wid=foto1.width+20; 
   heig=foto1.height+30; 
   line="width="+wid+",height="+heig; 
   make=window.open(img,"",line); 
 } 
 //  End -->