﻿function openCenterPop (url,productname)
{
pWidth = 610;
pHeight = 384;
leftPos = 0;
topPos = 0;
if (screen) {
	leftPos = (screen.width / 2) - Math.round(pWidth/2);
	topPos = (screen.height / 2) - Math.round(pHeight/2);
}
centerWin = window.open(url+"?productname="+productname,'PEpop','width='+pWidth+',height='+pHeight+',left='+leftPos+',top='+topPos);
if (window.focus) {centerWin.focus()}
}


function openCenterPopThin (url,productname)
{
pWidth = 420;
pHeight = 390;
leftPos = 0;
topPos = 0;
if (screen) {
	leftPos = (screen.width / 2) - Math.round(pWidth/2);
	topPos = (screen.height / 2) - Math.round(pHeight/2);
}
centerWinThin = window.open(url+"?productname="+productname,'PEpopThin','width='+pWidth+',height='+pHeight+',left='+leftPos+',top='+topPos);
if (window.focus) {centerWinThin.focus()}
}


function openCenterPopBigger (url,productname)
{
pWidth = 470;
pHeight = 560;
leftPos = 0;
topPos = 0;
if (screen) {
	leftPos = (screen.width / 2) - Math.round(pWidth/2);
	topPos = (screen.height / 2) - Math.round(pHeight/2);
}
centerWin = window.open(url+"?productname="+productname,'PEpopB','width='+pWidth+',height='+pHeight+',left='+leftPos+',top='+topPos+',scrollbars=yes');
if (window.focus) {centerWin.focus()}
}


function showHideToggle(objectID)
{
	document.getElementById(objectID).style.display= document.getElementById(objectID).style.display=='none' ? '' : 'none'
}
