﻿// JScript File

/*----------------------------------------------------------------------------------------------------------------
	Function:	zoomimage(ProdName,ImgHeight,ImgWidth,ImageName)
	Purpose:	function opens the image file passed as a parameter in a popup
	Inputs:		ImgHeight 	number 	Height of the popup window
	            ImgWidth 	number 	Width of the popup window
	            ImageName 	number 	Name of the image file to be displayed 	
	            ProdName    name of the product
---------------------------------------------------------------------------------------------------------------*/


function zoomimage(ProdName,ImgWidth,ImgHeight,ImageName) 
{	
	newwindow = window.open("media.aspx?imgname=" + ImageName + "&prodname=" + ProdName,"_blank","width=" + ImgWidth + ", height=" + ImgHeight + ",top=20,left=75,status=0,resizable=yes,scrollbars=yes");    
    if (window.focus)
	{
		newwindow.focus()
	}	
}


/*****************************************************************************************************************
	Function:	opennewwindow(ProdID,ProdName,ImgWidth,ImgHeight)
	Purpose:	function opens the image file passed as a parameter in a popup
	Inputs:		ImgHeight 	number 	Height of the popup window
	            ImgWidth 	number 	Width of the popup window
	            ImageName 	number 	Name of the image file to be displayed 
	            Filename    Image File path to be displayed in the popup window (URL OF THE PAGE TO OPEN)
******************************************************************************************************************/
function opennewwindow(FileName,ImgWidth,ImgHeight) 
{	
	newwindow = window.open(FileName,"ChildWindow","width=" + ImgWidth + ", height=" + ImgHeight + ",top=50,left=50, scrollbars=1,resizable=yes");
	if (window.focus)
	{
		newwindow.focus()
	}	
}


