/*
'******************************************************************************
'*	implementation.js
'*
'*	Client-side JavaScript library for stockListB implementations
'*
'*	History
'*	20030923		GTW			23/Sep/2003		Copied from \stockListA\js
'*
'*	(c) EurotaxGlass's 2003
'*******************************************************************************
*/

// Main stockItem image display, activated by links on thumbnail images
function showImage(src) 
{
    document.imgStockItem.src = src;
}

// FJ. 20080925
function Resize() 
{
    //alert("t");
    try 
    {
        //Detect the browser...
        browser = navigator.appName;
        if (browser == "Microsoft Internet Explorer") {
            //alert("ie");
            //IE
            //Resize the container of this page.
            parent.SetSize(document.body.scrollHeight + 35);
        }
        else {
            //alert("ff");
            //alert(document.body.offsetHeight.toString());
            //alert(document.body.scrollHeight.toString());
            //FF...
            //Resize the container of this page.
            parent.SetSize(document.body.offsetHeight + 35);
        }
    }
    catch (e) 
    {
        //Hide error...
        //alert(e.message);
    }
}

function Resize2(height) 
{
    //alert("t");
    try 
    {
        //Detect the browser...
        browser = navigator.appName;
        if (browser == "Microsoft Internet Explorer") {
            //alert("ie");
            //IE
            //Resize the container of this page.
            parent.SetSize(document.body.scrollHeight + 35 + height);
        }
        else {
            //alert("ff");
            //alert(document.body.offsetHeight.toString());
            //alert(document.body.scrollHeight.toString());
            //FF...
            //Resize the container of this page.
            parent.SetSize(document.body.offsetHeight + 35 + height);
        }
    }
    catch (e) 
    {
        //Hide error...
        //alert(e.message);
    }
}
