var pop_Up;
function popUp(prmWindowObj, prmURL, prmName, prmLeft, prmTop, prmCenterWindow, prmWidth, prmHeight, prmLocation, prmToolBar, prmMenuBar, prmStatus, prmResizable, prmScrollBars){
var _leftFeatureName;
var _left = prmLeft;
var _topFeatureName;
var _top = prmTop;
var _width = prmWidth;
var _height = prmHeight;
if (typeof(prmWindowObj) == 'object'){
if (!prmWindowObj.closed){
prmWindowObj.close();
}
prmWindowObj = '';
}
if (document.layers){
_leftFeatureName = 'screenX';
_topFeatureName = 'screenY';
}
else{
_leftFeatureName = 'left';
_topFeatureName = 'top';
}
if (prmWidth <= 0 || prmHeight <= 0){
_width = window.screen.availWidth;
_height = window.screen.availHeight;
}
if (prmCenterWindow){
_left = ((window.screen.availWidth - _width) / 2);
_top = ((window.screen.availHeight - _height) / 2);
}
prmWindowObj = window.open(prmURL, prmName, _leftFeatureName + '=' + _left + ',' + _topFeatureName + '=' + _top + ',width=' + _width + ',height=' + _height + ',location=' + prmLocation + ',toolbar=' + prmToolBar + ',menubar=' + prmMenuBar + ',status=' + prmStatus + ', resizable=' + prmResizable + ',scrollbars=' + prmScrollBars);
return prmWindowObj;
}
function productPhoto(prmProductId){
var _url = 'productphoto.aspx?product=' + prmProductId;
pop_Up=popUp(pop_Up,_url,'',0,0,1,700,650,0,0,0,1,1,1);
}
function pg(prmSetting, prmValue){
with (window.document.ProductGridForm){
if (prmSetting == 'p'){
page.value = prmValue;
}
submit();
}
}
function compare(prmSetting, prmValue){
with (window.document.ProductGridForm){
action = 'compareproducts.aspx';
submit();
}
}
function scRemove(prmItemType, prmItemId){
with (window.document.ShoppingCartForm){
ItemType.value = prmItemType;
ItemId.value = prmItemId;
ShoppingCartAction.value = 'Remove';
submit();
}
}
