﻿// Fichier JScript

//http://www.java.scripts-fr.com/scripts.php?js=13#
function PopUpImage(chemin)
{
    var html = '';
    html += '<html>';
    html += '  <head> <title>Boutique INSEP</title> </head>';
	html += '  <body onBlur="top.close()">';
	html += '   <IMG src="' + chemin + '" BORDER=0 NAME=ImageMax ';
	html += '     onLoad="window.resizeTo(document.ImageMax.width+20, document.ImageMax.height+70)">';
    html += '  </body>';
    html += '</html>';
    
    popUpWindow = window.open('','_blank','toolbar=0, location=0, directories=0, menuBar=0, scrollbars=0, resizable=1');
    popUpWindow.document.open();
    popUpWindow.document.write(html);
    popUpWindow.document.close()
}; 


function PopUpHtml(chemin)
{
    popUpWindow = window.open(chemin,'size', 'height=800, width=600, toolbar=0, location=0, directories=0, menuBar=0, scrollbars=1, resizable=1');
    if(popUpWindow.window.focus)
        {popUpWindow.window.focus();}
}; 



// in Template.master
//    <script type="text/javascript">
//    // TC: inutile avec la nouvelle disposition HTML/CSS
////        /* <![CDATA[ */
////        function AdjustColumnsHeight() {
////            // get a reference to the three DIVS that make up the columns
////            var centerCol = window.document.getElementById('centercol');
////            var leftCol = window.document.getElementById('leftcol');
////            var rightCol = window.document.getElementById('rightcol');
////            // calculate the max height
////            var hCenterCol = centerCol.offsetHeight;
////            var hLeftCol = leftCol.offsetHeight;
////            var hRightCol = rightCol.offsetHeight;
////            var maxHeight = Math.max(hCenterCol, Math.max(hLeftCol, hRightCol));
////            // set the height of all 3 DIVS to the max height
////            centerCol.style.height = maxHeight + 'px';
////            leftCol.style.height = maxHeight + 'px';
////            rightCol.style.height = maxHeight + 'px';
////            // Show the footer
////            window.document.getElementById('footer').style.visibility = 'inherit';
////        }
////        window.onload = function() { AdjustColumnsHeight(); }
//        /* ]]> */       
//    </script>

