﻿
// JScript File

function createFlashPlayer(DIVID,FILE,WIDTH,HEIGHT)
{
    var myObject = document.createElement('object');
    myObject.id = DIVID + "_swf";
    var dall = (document.all) ? document.all : document.getElementsByTagName('*');
    dall[DIVID].appendChild(myObject);
    myObject.width = WIDTH;
    myObject.height = HEIGHT;
    myObject.allowScriptAccess = "always";
    myObject.classid= "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; 
    myObject.codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab";
    myObject.movie = FILE;
}

function fp_OpenWindow(url, width, height)
{
    if (height == -1)
        height = self.screen.availHeight;
    if (width == -1)    
        width = self.screen.availWidth;
    var w = window.open(url, "_blank", "top=0,left=0,height=" + height + ",width=" + width + ", resizable=1, scrollbars=yes", false);
    if(w==null || w == undefined)
    {
        alert("Please turn off your popup blocker.");
    }
} 
