﻿// JScript File


function popUp(URL) 
{
   var x = (screen.height - 500)/2 ;
   var y = (screen.width - 500)/2 ;
   
   if (x < 0) x = 0;
   if (y < 0) y = 0;

   var win = window.open(URL,"myWindow","top=" + x + ",left=" + y + ",width=500,height=500,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1");

}

function PopUpReport(URL)
   {
       var popup = null ;
       popup =  window.open(URL,"_blank",
      "height=500,width=700,location=1,menubar=1,scrollbars=1,status=0,toolbar=1,directories=0,resizable=1") ;
       if (window.focus) {popup.focus()}
   }

function ShowLogIn(URL) 
{
   var x = (screen.height - 500)/2 ;
   var y = (screen.width - 725)/2 ;
   
   if (x < 0) x = 0;
   if (y < 0) y = 0;

   var win = window.open(URL,"_blank","top=" + x + ",left=" + y + ",width=725,height=500,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1");
   if (window.focus) {win.focus()}
}
function IMG2_onclick()
{
    window.location = "http://www.optima.com";
}

var tempX = 200;
var tempY = 200;
var isIE = document.all;
 
function ShowClientSite(show)
{
    var div = document.getElementById('divClientSite');   
  
    if (isIE)
        getMouseXY();
    
    if (div != null)
    {
        div.style.display = show;
        div.style.left = tempX + "px";  //event.clientX + 10 ;
        div.style.top = tempY + "px";  //event.clientY + 10 ; 
        //div.focus();
    }
}
function getMouseXY(e)
{   
    
    if (!e) e = window.event;
    
    if (e)
    {
        tempX = isIE ? (e.clientX + document.body.scrollLeft) : e.pageX;
        tempY = isIE ? (e.clientY + document.body.scrollTop) : e.pageY;
        
        tempX = tempX + 120;
    }    
}

 if (!isIE)
    document.onmousemove = getMouseXY;

