﻿//


var hwin;

function ssec(jsearch, jsection) {
 var x;
 var y;
 
 x = jsearch.indexOf(jsection, 0);
 if (x > -1) {
  y = jsearch.indexOf("&", x);
  if (y == -1) y = jsearch.length;
  jsearch = jsearch.substring(x+jsection.length, y);
 } else {
  jsearch = "";
 }
 status= jsearch;
 
 return jsearch;
}

function wopen(jwin, jurl) {
 jwin.status= "EPSON Software Licence Agreement Carefully";
 nwin = window.open(jurl, "", "width=760,height=480,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes");
// nwin.moveTo((screen.availWidth - 760) / 2, (screen.availHeight - 480) / 2);
 jwin.status= "...";
}

function hclose() {
 hwin.close();
}

function whref(jwin, jurl) {
 jwin.status= "EPSON Projector Support";
 jwin.location.href = jurl;
 
 hwin = jwin;
 
 if(navigator.appName == "Microsoft Internet Explorer") { setTimeout("hclose()", 3210); }
}

function wclose(jwin) {
 jwin.close();
}

function lagree(jaccept, jdecline) {
 var jhref = ssec(window.location.search, "shref=");
 
 if (jhref == "") { jhref = "licence.html"; }
 document.write("<FORM ACTION=\"" + jhref + "\" METHOD=\"GET\">");
 document.write("<CENTER>");
 document.write("<INPUT TYPE=\"BUTTON\" OnClick=\"whref(window, '" + jhref + "');\" VALUE=\"" + jaccept + "\">");
 document.write(" ");
 document.write("<INPUT TYPE=\"BUTTON\" OnClick=\"wclose(window);\" VALUE=\"" + jdecline + "\">");
 document.write("</CENTER>");
 document.write("</FORM>");
}

