function AddToFavorites(lsProductId,lsCatId,lsModule,lsLocation) { var liWidth = 430; var liHeight = 110; var Url; var Features; var Left = (screen.width - liWidth)/2; var Top = (screen.height - liHeight)/2; Url = 'Http://www.pckids.com.ar/Subscriber/AddToFavorites.aspx?ProductId=' + lsProductId + "&CatId=" + lsCatId; Features = "Width=" + liWidth + "px,Height=" + liHeight + "px,scrollbars=yes,resizable=no,Top=" + Top + ",Left="+ Left + ",status=no"; if ('0' != "0") window.open(Url,"AddToFavorites",Features); else { var lsUrlReferer = ""; if (lsModule.indexOf("?")==-1) lsUrlReferer = lsModule + '?CatId=' + lsCatId + '@@@ProductId=' + lsProductId; else lsUrlReferer = lsModule + '@@@ProductId=' + lsProductId; var lsLoginUrl = 'Http://www.pckids.com.ar/Login/Login.aspx?UrlReferer=' + lsUrlReferer; if (confirm('MF_LoginBeforeAdd')) { if (lsLocation==1) window.location =lsLoginUrl; else { self.location.href = 'Http://www.pckids.com.ar/Login/PopupLogin.aspx?UrlReferer=Http://www.pckids.com.ar/ProductModule/Products.aspx'; } } } } function AddToCart(lsProductId,lsLocation) { var Url = 'Http://www.pckids.com.ar/ProductModule/AddToCart.aspx?ProdId=' + lsProductId; if (lsLocation==1) window.location =Url; else { window.opener.location = Url; window.close(); } } function AddReviews(lsProductId,lsCatId,lsModule) { if ('0' != "0") { liWidth = 550; liHeight = 400; var Left = (screen.width - liWidth)/2; var Top = (screen.height - liHeight)/2; Url = 'Http://www.pckids.com.ar/ProductModule/AddReview.aspx?ProductId=' + lsProductId; Features = "Width=" + liWidth + "px,Height=" + liHeight + "px,scrollbars=yes,resizable=no,Top=" + Top + ",Left="+ Left + ",status=no"; window.open(Url,"Win",Features); } else { var lsUrlReferer = ""; if (lsModule.indexOf("?")==-1) lsUrlReferer = lsModule + '?CatId=' + lsCatId + '@@@ProductId=' + lsProductId; else lsUrlReferer = lsModule + '@@@ProductId=' + lsProductId; var lsLoginUrl = 'Http://www.pckids.com.ar/Login/Login.aspx?UrlReferer=' + lsUrlReferer; if (confirm('Key not found : Lang, REM_LoginBeforeAdd')) window.location = lsLoginUrl; } } function SeeReviews(lsProductId) { liWidth = 550; liHeight = 400; var Left = (screen.width - liWidth)/2; var Top = (screen.height - liHeight)/2; Url = 'Http://www.pckids.com.ar/ProductModule/SeeReviews.aspx?ProductId=' + lsProductId; Features = "Width=" + liWidth + "px,Height=" + liHeight + "px,scrollbars=yes,resizable=no,Top=" + Top + ",Left="+ Left + ",status=no"; window.open(Url,"Win",Features); } function MoreInfo(lsProductId, lsCatId) { var liWidth = 800; var liHeight = 600; var Url; var Features; var Left = (screen.width - liWidth)/2; Url = 'Http://www.pckids.com.ar/ProductModule/FrameProduct.aspx?ProductId=' + lsProductId + "&CatId=" + lsCatId; if (navigator.appName=="Microsoft Internet Explorer") { Features = "dialogWidth:" + liWidth + "px;dialogHeight:" + liHeight + "px;scroll:yes;center:1;edge:raised;resizable:0;status:0;dialogTop:80;help:no;status:no"; window.showModalDialog(Url,"WinProduct",Features); //Features = "Width=" + liWidth + "px,Height=" + liHeight + "px,scrollbars=yes,resizable=no,Top=0,Left="+ Left + ",status=no"; //window.open(Url,"Win",Features); } else { Features = "Width=" + liWidth + "px,Height=" + liHeight + "px,scrollbars=yes,resizable=no,Top=0,Left="+ Left + ",status=no"; window.open(Url,"",Features); } } function SendMailToFriend(liProductId) { var liWidth = 320; var liHeight = 300; var Url; var Features; var Left = (screen.width - liWidth)/2; Url = 'Http://www.pckids.com.ar/ProductModule/SendProductByMail.aspx?ProductId=' + liProductId; Features = "Width=" + liWidth + "px,Height=" + liHeight + "px,scrollbars=yes,resizable=no,Top=140,Left="+ Left + ",status=no"; window.open(Url,"WinFriend",Features); } function ViewQuestions(liProductId) { var liWidth = 550; var liHeight = 450; var Url; var Features; var Left = (screen.width - liWidth)/2; Url = 'Http://www.pckids.com.ar/ProductModule/ProductFaq.aspx?ProductId=' + liProductId; Features = "Width=" + liWidth + "px,Height=" + liHeight + "px,scrollbars=yes,resizable=no,Top=140,Left="+ Left + ",status=no"; window.open(Url,"WinFriend",Features); } function StockInfo() { alert('Key not found : Lang, PD_StockInfo') } function ViewImage(url) { liWidth = 450; liHeight = 550; var Left = (screen.width - liWidth)/2; var Top = (screen.height - liHeight)/2; Features = "Width=" + liWidth + "px,Height=" + liHeight + "px,scrollbars=yes,resizable=no,Top=" + Top + ",Left="+ Left + ",status=no"; window.open(url,"Win",Features); } function OpenReg(Url) { liWidth = 450; liHeight = 450; var Left = (screen.width - liWidth)/2; var Top = (screen.height - liHeight)/2; Features = "Width=" + liWidth + "px,Height=" + liHeight + "px,scrollbars=yes,resizable=no,Top=" + Top + ",Left="+ Left + ",status=yes"; window.open(Url,"Win",Features); } function OpenRegLimit(Url) { liWidth = 445; liHeight = 500; var Left = (screen.width - liWidth)/2; var Top = (screen.height - liHeight)/2; Features = "Width=" + liWidth + "px,Height=" + liHeight + "px,scrollbars=yes,resizable=no,Top=" + Top + ",Left="+ Left + ",status=yes"; window.open(Url,"",Features); }