//'********************************************************************
//'	Copyright (c) 1998-2004 Web Alchemy
//'********************************************************************
//'	/share_common/javascript/popups/popup.js (USUALLY OVERRIDDEN)
//'		see "/share_common/javascript/dynamicIncludes.js.asp"->JavascriptIncludePopup
//'********************************************************************

function	OpenPopup
			(
				url, width, height,
				toolbar, location, directories,
				status, menubar, scrollbars, resizable
			)
{
	OpenPopupDomain(url, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable)
}

function	OpenPopupDomain
			(
				url, width, height,
				toolbar, location, directories,
				status, menubar, scrollbars, resizable
			)
{
	var str;
	str =       ('left=4,top=4');
	str = str + (',width=' + width);
	str = str + (',height=' + height);
	str = str + (',toolbar=' + toolbar);
	str = str + (',location=' + location);
	str = str + (',directories=' + directories);
	str = str + (',status=' + status);
	str = str + (',menubar=' + menubar);
	str = str + (',scrollbars=' + scrollbars);
	str = str + (',resizable=' + resizable);
	var window_name = "popup"
	var popup = window.open(url, window_name, str)
	popup = window.open("", window_name, "")
	popup.focus();
}

//'********************************************************************
//'	Copyright (c) 1998-2004 Web Alchemy
//'********************************************************************
//'	/utilities/popups/scripts/popups.js (USUALLY OVERRIDDEN)
//'	/utilities/popups/scripts/contact.js (USUALLY OVERRIDDEN)
//'		see "/share_common/javascript/dynamicIncludes.js.asp"
//'********************************************************************

function	OpenCampaignPopup
			(
				campaign_id, width, height,
				toolbar, location, directories,
				status, menubar, scrollbars, resizable
			)
{
	//if (campaign_id = cnPopupProductLineSizeRangeChart){/*see OpenProductLineSizeRangeChartPopup below*/}
	//var url = '<%=GetWebsiteURL()%>/popups/popups.asp?<%=csCampaignID%>='+campaign_id
	//var url = '/share_common/utilities/popups/popups.asp?<%=csCampaignID%>='+campaign_id
	var url = '/share_common/utilities/popups/popups.asp?cid='+campaign_id
	var str;
	str =       ('left=4,top=4');
	str = str + (',width=' + width);
	str = str + (',height=' + height);
	str = str + (',toolbar=' + toolbar);
	str = str + (',location=' + location);
	str = str + (',directories=' + directories);
	str = str + (',status=' + status);
	str = str + (',menubar=' + menubar);
	str = str + (',scrollbars=' + scrollbars);
	str = str + (',resizable=' + resizable);
	var window_name = "campaign_popup"
	//if (campaign_id == 527) window_name = "chart_popup"
	var campaign_popup = window.open(url, window_name, str)
	campaign_popup = window.open("", window_name, "")
	campaign_popup.focus();
}

function	OpenDomainCampaignPopup
			(
				domain_id, campaign_id, width, height,
				toolbar, location, directories,
				status, menubar, scrollbars, resizable
			)
{
	//if (campaign_id = cnPopupProductLineSizeRangeChart){/*see OpenProductLineSizeRangeChartPopup below*/}
	//var url = '<%=GetWebsiteURL()%>/popups/popups.asp?<%=csCampaignID%>='+campaign_id
	//var url = '/popups/popups.asp?<%=csCampaignID%>='+campaign_id
	//var url = '/share_common/utilities/popups/popups.asp?<%=csqDomainID%>='+domain_id+'&<%=csqCampaignID%>='+campaign_id;
	var url = '/share_common/utilities/popups/popups.asp?did='+domain_id+'&cid='+campaign_id;
	var str;
	str =       ('left=4,top=4');
	str = str + (',width=' + width);
	str = str + (',height=' + height);
	str = str + (',toolbar=' + toolbar);
	str = str + (',location=' + location);
	str = str + (',directories=' + directories);
	str = str + (',status=' + status);
	str = str + (',menubar=' + menubar);
	str = str + (',scrollbars=' + scrollbars);
	str = str + (',resizable=' + resizable);
	var window_name = "campaign_popup"
	//if (campaign_id == 527) window_name = "chart_popup"
	var campaign_popup = window.open(url, window_name, str)
	campaign_popup = window.open("", window_name, "")
	campaign_popup.focus();
}

