﻿function ShowPDFPortFolio(skulist, PageTitle)
{

	var intWidth = screen.width;
	var width = 970;
	var height = 656;
	/*if (intWidth > 1500)
	{
		width = 1415;
		height = 944;
	}
	
	if (intWidth < 1024)
	{
		width = 748;
		height = 512;
	}  */
	var property = "top=100, left=100, width=" + width + ", height=" + height;
	//alert(ShowPage);
	var wincatalog = window.open("ChooseOptions.aspx?skulist=" + skulist + "&PageTitle=" + PageTitle, 'PDFPortfolio', property);
	wincatalog.focus();
}


function ShowCatalog(CatalogOID, Password, ShowPage)
{
	var intWidth = screen.width;
	var width = 970;
	var height = 656;
	if (intWidth > 1500)
	{
		width = 1415;
		height = 944;
	}
	
	if (intWidth < 1024)
	{
		width = 748;
		height = 512;
	}
	var property = "top=0, left=0, resizable=1, width=" + width + ", height=" + height;
	//alert(ShowPage);
	//var wincatalog = window.open("http://209.155.0.87/activemerchandiser/CatalogView.aspx?CatalogOID=" + CatalogOID + "&SupplierID=400735&ShowPage=" + ShowPage + "&Password=" + Password, 'CatalogViews', property);
	var wincatalog = window.open("http://www.activemerchandiser.com/CatalogView.aspx?CatalogOID=" + CatalogOID + "&SupplierID=5&ShowPage=" + ShowPage + "&Password=" + Password, 'CatalogViews', property);
	//var wincatalog = window.open("http://localhost/activemerchandiser/CatalogView.aspx?CatalogOID=" + CatalogOID + "&ShowPage=" + ShowPage + "&Password=" + Password, 'CatalogViews', property);
	wincatalog.focus();
}

function ShowCatalogSimplified(CatalogOID, ticket) {
    ShowCatalog(CatalogOID, ticket, "ViewCatalog.aspx?Left=1:amp:Right=-1:amp:CatalogOID=" + CatalogOID);

}

