function runDemo() { // checking for screen resolution and defining // variables for future use that will hold our width and height w = screen.width; h = screen.height; // setting up our constants - the DEMO size ww = 763; wh = 555; // setting up two more variables wich will hold top/left location // of the top/left window's corner edTop = ((h-wh)/2); edLeft = ((w-ww)/2); // checking if user have resolution greater then the DEMO's window size if (w<800) { // if so, we are going to ask him to change it alert("You need 800x600 screen resolution \r in order to launch the demo"); } else { // otherwise we'll open a window he asked //alert("ops"); // for debug purposes only // defining all neccessary parameters of the popup window var edWinFeatures = 'width='+ww+',height='+wh+',scrollbars=no,resizable=no,toolbar=no,location=no,menubar=no,status=no,screenX=0,screenY=0,top='+edTop+',left='+edLeft+''; // making an execution var demoWin = window.open('guided_tour/intro.html', 'iDEXdEMO', edWinFeatures); // setting a focus to the recently opened window demoWin.focus(); } // that's all folk's (c) Merry Melodies } function doRegister() { opener.document.location = "../register.asp"; window.close(); } function doContact() { //alert("function call"); opener.document.location = "../contact.asp"; window.close(); }