﻿   function windowOpener(windowHeight, windowWidth, windowName, windowUri)
   {
     var centerWidth = (window.screen.width - windowWidth) / 2;
     var centerHeight = (window.screen.height - windowHeight) / 2;
      newWindow = window.open(windowUri,windowName,'fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width=' + windowWidth + ',height=' + windowHeight);
      newWindow.moveTo(centerWidth, centerHeight);
      newWindow.blur();
     newWindow.focus();
     return newWindow.name;
    }
   function windowFullScreenOpener(windowHeight, windowWidth, windowName, windowUri)
   {
     var centerWidth = (window.screen.width - windowWidth) / 2;
     var centerHeight = (window.screen.height - windowHeight) / 2;
      newWindow = window.open(windowUri,windowName,'fullscreen=0,toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=1,width=' + windowWidth + ',height=' + windowHeight);
      newWindow.moveTo(centerWidth, centerHeight);
      newWindow.blur();
     newWindow.focus();
     return newWindow.name;
    }
     function returnUrl(Url)
    {
	    window.top.opener.SetUrl( Url ) ;
	    window.top.close() ;
	    window.top.opener.focus() ;
	}
	function ChangeImage(id,url)
    {
       var i=document.getElementById(id);
       i.style.backgroundImage="url("+url+")";
    }
    function ChangeImageUrl(id,url)
    {
       alert('a');
       var i=document.getElementById(id);
       i.src=url;
    }
    function ChangeVisibility(id)
    {
           var i=document.getElementById(id);
           if(i.style.visibility=='hidden')
           {
                i.style.visibility='visible';
           }
           else
           {
                i.style.visibility='hidden'
           }
    }
    function ChangeVisibilityValue(id,value)
    {
           var i=document.getElementById(id);
           i.style.visibility=value;
    }
    function preloadImages() 
    {
     var d=document,a=arguments; 
     if(!d.FP_imgs) d.FP_imgs=new Array();
        for(var i=0; i<a.length; i++)
         { 
         d.FP_imgs[i]=new Image; 
         d.FP_imgs[i].src=a[i]; 
         }
    }
    
