function kill_inputs () { var inputs = document.getElementsByTagName('input'); for (i=0;i 1014) x = 1014; if (y > 616) x = 616; sOptions = 'location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,toolbar=yes'; sOptions = sOptions + ',width=' + x.toString(); sOptions = sOptions + ',height=' + x.toString(); sOptions = sOptions + ',screenX=0,screenY=0,left=0,top=0'; wOpen = window.open( '', aWinName, sOptions ); wOpen.location = aURL; wOpen.focus(); wOpen.moveTo( 0, 0 ); wOpen.resizeTo( 1024, 768 ); return wOpen; } function add_to_fav_tech(pid,lbl_def) { global_pid = pid; ae_prompt(add_to_fav_tech_callback, 'Add to favorites: Label your product with your custom label:',lbl_def); } function add_to_fav_tech_callback(lbl) { if (lbl != null) { f_open_window_max('/order.php?act=favadd&pid='+global_pid+'&lbl='+lbl+'&bmw=780' , 'signatureproduct'); } } function email_url_to_friend(url) { global_pid = url; ae_prompt(email_url_to_friend_callback, "Please enter your friend's E-Mail address:",''); } function email_url_to_friend_callback(target_email) { if (target_email == null) { return false; } subj = 'Check out this product on Elaflex'; body = 'Check out this product on Elaflex: \n\r
' + global_pid; var target_url = 'mailto:' + target_email + '?Subject=' + subj + '&Body=' + body; location.href = target_url; // var target_mailto_url = '/technical.php?mtf='+escape(target_email)+'&pid='+global_pid; // xmlreq_load(target_mailto_url,'e'+global_pid,"run_email_url('e"+global_pid+"')"); } function email_to_friend(product_id) { global_pid = product_id; ae_prompt(email_to_friend_callback, "Please enter your friend's E-Mail address:",''); } function email_to_friend_callback(target_email) { /* var target_mailto_url = '/technical.php?mtf='+escape(target_email)+'&pid='+escape(global_pid);*/ var target_mailto_url = '/technical.php?mtf_url='+escape(target_email)+'&pid='+escape(global_pid); xmlreq_load(target_mailto_url,'e'+global_pid,"run_email_url('e"+global_pid+"','"+target_email+"')"); } function email_pic_to_friend(product_id) { global_pid = product_id; ae_prompt(email_pic_to_friend_callback, "Please enter your friend's E-Mail address:",''); } function email_pic_to_friend_callback(target_email) { var target_mailto_url = '/technical.php?mptf='+escape(target_email)+'&pid='+encodeURIComponent(global_pid); xmlreq_load(target_mailto_url,'emurl',"run_email_url('emurl','"+target_email+"')"); } function copyinput(obj_e) { var tmp = d(obj_e); tmp.focus(); tmp.select(); if (document.all) { tmprange=tmp.createTextRange(); tmprange.execCommand("Copy"); } } function run_email_url(obj_from,target_eaddr) { var url_obj = document.getElementById(obj_from); var target_url = url_obj.innerHTML.replace(/&/g,"&"); var output = 'Click Here to create e-mail.

Or use the URL below if e-mail creation is not working:

'; if (target_eaddr != 'null' && target_eaddr != '') { ae_popup('E-Mail to a friend: ' + target_eaddr, output); } } function addslashes(str) { str=str.replace(/\'/g,'\\\''); str=str.replace(/\"/g,'\\"'); str=str.replace(/\\/g,'\\\\'); str=str.replace(/\0/g,'\\0'); return str; } function stripslashes(str) { str=str.replace(/\\'/g,'\''); str=str.replace(/\\"/g,'"'); str=str.replace(/\\\\/g,'\\'); str=str.replace(/\\0/g,'\0'); return str; } function showHideDetails(i_iID){ $j("tr[name="+i_iID+"]").each(function(){ if($j(this).css('display') == 'none'){ $j(this).css('display', ''); $j("#"+i_iID+"").text('hide details'); } else{ $j(this).css('display', 'none'); $j("#"+i_iID+"").text('more details'); } }); }