function popup(url, name, features) { window.open(url, name, features); } function popupCustomerService(url, name) { popup(url, name, 'toolbars=no,resizable=no,overflow-x=hidden,overflow-y=auto,left=50,top=50,width=400,height=500'); } function popupGlossary(url, name) { popup(url, name, 'toolbars=no,resizable=no,overflow-x=hidden,overflow-y=auto,left=50,top=50,width=447,height=524'); } function email_a_friend(url) { popup(url, '', 'toolbars=no,status=1,resizable=0,overflow-x=hidden,overflow-y=hidden,left=50,top=50,width=427,height=520'); } function popupPaymentSchedule(url, name) { popup(url, name, 'toolbars=no,resizable=no,overflow-x=hidden,overflow-y=auto,left=50,top=50,width=600,height=525'); } function setActionSubmitForm(formName, action) { var form = document.forms[formName]; if(form != null) { var fullAction = "https://" + document.location.host + "/" + action; if(formName == "add_to_cart") { fullAction = "http://" + document.location.host + "/" + action; } form.action = fullAction; return true; } return false; }