function openWindow(color_chart,pin,height,width,scrolling) { url='/popups/color_chart.phtml?id='+color_chart+'&pin='+pin; window.open(url,"shiffler_popup","status,height="+height+",width="+width+",scrollbars="+scrolling+",resizable=no,toolbar=0"); } function openTPWindow(tp,height,width,scrolling) { url='/popup/color_chart.phtml?tp='+tp; window.open(url,"shiffler_popup","status,height="+height+",width="+width+",scrollbars="+scrolling+",resizable=no,toolbar=0"); } function openVidWindow(height,width,scrolling) { url='/vidlib/snapcap.phtml'; window.open(url,"shiffler_popup","status,height="+height+",width="+width+",scrollbars="+scrolling+",resizable=no,toolbar=0"); } function openSendToFriend(height,width,scrolling) { url='/popup/emailAFriend.phtml'; window.open(url,"shiffler_popup","status,height="+height+",width="+width+",scrollbars="+scrolling+",resizable=no,toolbar=0"); } function openWindow(type,param) { //alert(type); if (type == 'printReceipt') { url='/checkout/confirmOrder.phtml?p=1'; options='toolbar=0,location=0,menubar=0,width=750,height=500' newWindow=window.open(url,'a',options); newWindow.print(); } if (type == 'printReceiptOrderHistory') { url='/myaccount/viewOrder.phtml?p=1&order_id='+param; options='toolbar=0,location=0,menubar=0,width=750,height=500' newWindow=window.open(url,'a',options); newWindow.print(); } if (type == 'shippingRequest') { url='/popup/shippingRequest.phtml'; options='toolbar=0,location=0,menubar=0,width=650,height=600' newWindow=window.open(url,'a',options); //newWindow.print(); //newWindow.Focus(); } if (type == 'quoteRequest') { url='/popup/shippingRequest.phtml?q=1'; options='toolbar=0,location=0,menubar=0,width=650,height=600' newWindow=window.open(url,'a',options); //newWindow.print(); //newWindow.Focus(); } if (type == 'ccid') { url='/popup/ccid.phtml'; options='toolbar=0,location=0,menubar=0,width=400,height=400' var newWindowTest=window.open(url,'newWindowTest',options); //newWindow.print(); //newWindowTest.Focus(); return false; } }