﻿// <!CDATA[

var WindowObjectReference; // global variable
function opennewWindow()
{
  if(WindowObjectReference == null || WindowObjectReference.closed)
   {
   var width  = 500;
   var height = 500;
   var left   = (screen.width  - width)/2;
   var top    = (screen.height - height)/2;
   var params ='location=1,status=1,scrollbars=1,width='+width+', height='+height;
   params += ', top='+top+', left='+left; 
   
WindowObjectReference = window.open("http://www.futurepointindia.com/discount.htm","Discount",params);  
  //  WindowObjectReference = window.open("../Discount.htm","Discount",params);  
   //WindowObjectReference.moveTo(x,y);
   
    // 
    /* then create it. The new window will be created and
       will be brought on top of any other window. */
  }
  else
  {
    WindowObjectReference.focus();
    /* else the window reference must exist and the window
       is not closed; therefore, we can bring it back on top of any other
       window with the focus() method. There would be no need to re-create
       the window or to reload the referenced resource. */
  };
}




// ]]>


  