window.name="main";


function openwindow1(page)
{
   testwindow = window.open(page, 'jva1', config='top=5,left=5,width=675,height=445,scrollbars');
   testwindow.focus();
}
function openwindow1a(page)
{
   testwindow = window.open(page, 'jva2', config='top=1,left=1,width=795,resizable=yes,scrollbars');
   testwindow.focus();
}
function openwindow1b(page)
{
   testwindow = window.open(page, 'jva3', config='top=1,left=1,width=750,resizable=yes,scrollbars,status=yes');
   testwindow.focus();
}

function openwindow2(page)
{
   testwindow = window.open(page, 'script1', config='top=17,left=24,width=775,height=550,directories=no,location=yes,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');
   testwindow.focus(); 
}

function openWindow2a(page)
{
   //This js will open the page in the SAME WINDOW or same page!
   testwindow = window.open(page, '_self', 'samepage');
   testwindow.focus(); 
}

function openwindow2b(page)
{
   testwindow = window.open(page, 'script1', config='top=1,left=1,width=635,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
   testwindow.focus(); 
}
function openwindow2c(page2)
{
   nxtwindow = window.open(page2, 'script1', config='top=17,left=24,width=775,height=550,scrollbars,status=yes');
   nxtwindow.focus(); 
   nxtwindow.status='Did you notice the feeling created?'
}
function openwindow3(page)
{
   testwindow = window.open(page, 'script1', config='top=0,left=0,width=800,height=600,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
   testwindow.focus(); 
}

function openwindow3b(page)
{
   testwindow = window.open(page, 'jva3', config='top=100,left=200,width=1000,height=540,directories=no,location=yes,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
   testwindow.focus();
}

//Read more: http://java-programming.suite101.com/article.cfm/finding_the_mouse_coordinates_with_javascript
function clicked (e) 
{
   var coords;
   if (navigator.appName == "Microsoft Internet Explorer") 
   {
      //coords = "[X = " + window.event.clientX + "] - [Y = " + window.event.clientY + "]";
      coords = "[<span style='color:red;'>X</span> = " + window.event.clientX + "] - [<span style='color:red;'>Y</span> = " + window.event.clientY + "]";
      if( (window.event.clientX > 870) && (window.event.clientX < 1050) && (window.event.clientY > 10) && (window.event.clientY < 110) )
      {
         window.location="http://www.dimensionalized.com/about/portfolio/SumOfPaulGloversDaysSoFar.php";
      }
      else if( (window.event.clientX > 370) && (window.event.clientX < 425) && (window.event.clientY > 25) && (window.event.clientY < 100) )
      {
         window.location="http://www.dimensionalized.com/_biz-dir/anInvoiceReceipt/index1.php";
      }
      
   } else {
      //coords = "X = " + e.pageX + " and Y =" + e.pageY;
      coords = "[<span style='color:red;'>X</span> = " + e.pageX + "] and [<span style='color:red;'>Y</span> =" + e.pageY + "]";
      if( (e.pageX > 400) && (e.pageX < 500) && (e.pageY > 150) && (e.pageY < 200) )
      {
         window.location="http://www.dimensionalized.com/about/portfolio/SumOfPaulGloversDaysSoFar.php";
      }
      else if( (e.pageX > 370) && (e.pageX < 425) && (e.pageY > 25) && (e.pageY < 100) )
      {
         window.location="http://www.dimensionalized.com/_biz-dir/anInvoiceReceipt/index1.php";
      }
      
   }
   document.getElementById("myBox").innerHTML = coords;
}
document.onmousedown = clicked;

// // open another page ... // //
function WinOpen() {
   open("index_rules.htm","Window1");
}
