function gete(a){return document.getElementById(a)}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.mb_basename=function(){if(this.match(/\//)&&!this.match(/\\/)){return this.replace(/^.*\//,'')}else if(this.match(/\\/)&&!this.match(/\//)){return this.replace(/^.*\\/,'')}else{return this.toString()}};var SGET='';function Trim(TRIM_VALUE){if(TRIM_VALUE.length<1){return""}TRIM_VALUE=RTrim(TRIM_VALUE);TRIM_VALUE=LTrim(TRIM_VALUE);if(TRIM_VALUE==""){return""}else{return TRIM_VALUE}}function RTrim(VALUE){var w_space=String.fromCharCode(32);var v_length=VALUE.length;var strTemp="";if(v_length<0){return""}var iTemp=v_length-1;while(iTemp>-1){if(VALUE.charAt(iTemp)==w_space){}else{strTemp=VALUE.substring(0,iTemp+1);break}iTemp=iTemp-1}return strTemp}function LTrim(VALUE){var w_space=String.fromCharCode(32);if(v_length<1){return""}var v_length=VALUE.length;var strTemp="";var iTemp=0;while(iTemp<v_length){if(VALUE.charAt(iTemp)==w_space){}else{strTemp=VALUE.substring(iTemp,v_length);break}iTemp=iTemp+1}return strTemp}var dom=(document.getElementById&&!document.all)?1:0;function getObj(objid){return(dom)?document.getElementById(objid):document.all[objid]}var using_esttotal=false;function confirm_ec(){return confirm("Are you sure you want to clear your list?")}function confirm_imgdel(){return confirm("Are you sure you want to delete this image?")}function confirm_delanno(){return confirm("Are you sure you want to delete this annotation?")}function confirm_l2c(){return confirm("Are you sure you want to add the items from this list to your cart?")}function confirm_pro(dest){var answer=confirm("Are you absolutely sure you want to reset your supplier list? If you proceed, you will NOT be able to go back to your old settings!");if(answer){window.location=dest}}function confirm_d(dest){var answer=confirm("Are you sure you want to delete this item?");if(answer){window.location=dest}}function show_hide_arrow(other,id){var o=gete(id);if(o.style.display=="none"){o.style.display="block";other.src="/i/black_arrow_down.png"}else{o.style.display="none";other.src="/i/black_arrow_right.png"}}function show_hide(the_id){var obj_1=(dom)?document.getElementById(the_id):document.all[the_id];if(obj_1.style.display=="none"){obj_1.style.display="block"}else{obj_1.style.display="none"}}function show(the_id){a=getElementsById(the_id);for(var i in a){a[i].style.display=""}}function hide(the_id){a=getElementsById(the_id);for(var i in a){a[i].style.display="none"}}function oc_scg1(){var i;var tobj;var region;var date;for(i=1;i<=5;i++){tobj=(dom)?document.getElementById('sc_r'+i):document.all['sc_r'+i];if(tobj.checked){region=tobj.value;i=5}}tobj=(dom)?document.getElementById('sc_date'):document.all['sc_date'];date=tobj.value;tobj=(dom)?document.getElementById('sc_g1'):document.all['sc_g1'];tobj.src='?q=h.saleschanges&t=3&graph=1&region='+region+'&date='+date+SGET;tobj=(dom)?document.getElementById('sc_g2'):document.all['sc_g2'];tobj.src='?q=h.saleschanges&t=3&graph=2&region='+region+'&date='+date+SGET;}function oc_nbid(){var obj_1=(dom)?document.getElementById('nbid_t'):document.all['nbid_t'];window.location='?q=h.nb&nbid='+obj_1.value+SGET}function oc_subj(){var obj_1=(dom)?document.getElementById('sj_t'):document.all['sj_t'];window.location='?q=h.sj2&sj='+obj_1.value+SGET}function oc_feat(){var obj_1=(dom)?document.getElementById('fe_t'):document.all['fe_t'];window.location='?q=h.fe&fe='+obj_1.value+SGET}function oc_cpy(){var obj_1=(dom)?document.getElementById('cpy_t'):document.all['cpy_t'];window.location='?q=h.rv2&rid=104&cpy='+obj_1.value+SGET}function oc_close(myRESP){var myDIV=document.getElementById('main_content');myDIV.innerHTML=myRESP;executeEmbeddedScripts(myDIV,myRESP);hideBlockingBox(false)}function show_hide_n(the_id){var obj_1=(dom)?document.getElementById(the_id):document.all[the_id];if(obj_1.style.display=="none"){obj_1.style.display=""}else{obj_1.style.display="none"}}function setCookie(name,value){var today=new Date();var expiry=new Date(today.getTime()+28*24*60*60*1000);if(value!=null&&value!="")document.cookie=name+"="+escape(value)+"; expires="+expiry.toGMTString();}function setrowdisps(i,top,bot){if(dom){if(!(document.getElementById('r'+i).style.display=='none'&&document.getElementById('s'+i).style.display=='none')){document.getElementById('r'+i).style.display=top;document.getElementById('s'+i).style.display=bot;document.getElementById('t'+i).style.display=bot;document.getElementById('v'+i).style.display=bot;document.getElementById('u'+i).style.display=bot}}else{if(!(document.all['r'+i].style.display=='none'&&document.all['s'+i].style.display=='none')){document.all['r'+i].style.display=top;document.all['s'+i].style.display=bot;document.all['t'+i].style.display=bot;document.all['v'+i].style.display=bot;document.all['u'+i].style.display=bot}}}function hrow(i){setrowdisps(i,"","none")}function srow(i){setrowdisps(i,"none","")}var req;var showing_linepo;showing_linepo=0;function processReqChange(){if(request.readyState==4){if(request.status==200){}else{alert("There was a problem retrieving the data:\n"+req.statusText)}}}function updateDiv(row){var sample=request.responseText;document.getElementById('g'+row).value=sample;document.getElementById('f'+row).value=sample}function lpoup(id,eisbn){var obj_d=(dom)?document.getElementById(id):document.all[id];url='index.php?q=h.cart.po&fn=ae&eisbn='+eisbn+'&t=2&po='+obj_d.value+SGET;if(window.XMLHttpRequest){request=new XMLHttpRequest();request.onreadystatechange=processReqChange;request.open("POST",url,false);request.send('nonexistent=1')}else if(window.ActiveXObject){request=new ActiveXObject("Microsoft.XMLHTTP");request.onreadystatechange=processReqChange;request.open("POST",url,false);request.send('nonexistent=1')}obj_d.value=request.responseText}function qtyzc(i,eisbn){qtyz(i,eisbn);setrowdisps(i,"none","none");var esttot=(dom)?document.getElementById('esttotal'):document.all['esttotal'];esttot.innerHTML='<a href="?q=h.cart'+SGET+'">click to recalculate total price.</a>'}function cartbtns_update(i){var obj_c1=(dom)?document.getElementById('c'+i):document.all['c'+i];var obj_d1=(dom)?document.getElementById('d'+i):document.all['d'+i];var obj_e=(dom)?document.getElementById('e'+i):document.all['e'+i];var obj_s=(dom)?document.getElementById('f'+i):document.all['f'+i];var obj_po=(dom)?document.getElementById('po'+i):document.all['po'+i];if(request.responseText!=""&&request.responseText>0){obj_e.style.display="inline";obj_d1.innerHTML='<img class="bj" src="/i/btn_updc.jpg">';obj_d1.style.display="";obj_c1.style.display="";if(showing_linepo){obj_po.style.display=""}}else{obj_e.style.display="none";obj_d1.innerHTML='<img class="bj" src="/i/btn_add2c.jpg">';obj_d1.style.display="";obj_c1.style.display="none";if(showing_linepo){obj_po.style.display="none";obj_po.value='PO#'}}}function qtyz(i,eisbn){setqty(i,eisbn,'');cartbtns_update(i)}function qty1(i,eisbn){var obj_s=(dom)?document.getElementById('f'+i):document.all['f'+i];if(Trim(obj_s.value)==""){setqty(i,eisbn,1);obj_s.onchange()}}function setqty(i,eisbn,qty){var obj_s=(dom)?document.getElementById('f'+i):document.all['f'+i];var obj_d=(dom)?document.getElementById('g'+i):document.all['g'+i];obj_s.value=qty;obj_d.value=qty;url='index.php?q=h.cart.a&fn=ae&eisbn='+eisbn+'&t=2&qty='+qty+SGET;if(window.XMLHttpRequest){request=new XMLHttpRequest();request.onreadystatechange=processReqChange;request.open("POST",url,false);request.send('nonexistent=1')}else if(window.ActiveXObject){request=new ActiveXObject("Microsoft.XMLHTTP");request.onreadystatechange=processReqChange;request.open("POST",url,false);request.send('nonexistent=1')}cartbtns_update(i)}function show_hide_tog(low,high){var i,dispstyle,dispstyle2,hide,xstr;hide=false;if(dom){xstr=document.getElementById('pmb').src}else{xstr=document.all['pmb'].src}xstr=xstr.substring(xstr.length-12);if(xstr=="/i/brief.gif"){hide=true}if(hide){setCookie('listv','brief');dispstyle="";dispstyle2="none";if(dom){document.getElementById('pmb').src="/i/detail.gif"}else{document.all['pmb'].src="/i/detail.gif"}}else{setCookie('listv','full');dispstyle="none";dispstyle2="";if(dom){document.getElementById('pmb').src="/i/brief.gif"}else{document.all['pmb'].src="/i/brief.gif"}}if(high>=low){for(i=low;i<=high;i++){setrowdisps(i,dispstyle,dispstyle2)}}}function show_hide_all(hide,low,high){var i,dispstyle,dispstyle2;if(hide){setCookie('listv','brief');dispstyle="";dispstyle2="none"}else{setCookie('listv','full');dispstyle="none";dispstyle2=""}if(high>=low){for(i=low;i<=high;i++){setrowdisps(i,dispstyle,dispstyle2)}}}function checkall(){var f=document.fcart;var i,j;j=true;for(i=0;i<f.length;i++){if(f[i].name.substring(0,2)=='c_'&&f[i].checked==false){j=false}}if(j==true){for(i=0;i<f.length;i++){f[i].checked=false}}else{for(i=0;i<f.length;i++){f[i].checked=true}}}function changefromto(from,to,col){var f=document.fsupp;var i,j,k;for(i=0;i<f.length;i++){if(f[i].name.substring(f[i].name.length-col.length-1,f[i].name.length-1)==col&&f[i].value==from){f[i].value=to}}}function pw(){href=arguments[0];height=arguments[1]||450;width=arguments[2]||500;window.open(href,name,'width='+width+',height='+height+',scrollbars=1,resizable=1')};function popupWindow(){href=arguments[0];height=arguments[1]||350;width=arguments[2]||500;window.open(href,name,'width='+width+',height='+height+',scrollbars=1,resizable=1')};function clrTbl(category){document.getElementById(category).innerHTML=''}function toggle_iframe(src,id){var obj_1=(dom)?document.getElementById(id):document.all[id];if(obj_1.innerHTML.length<5){obj_1.innerHTML='<iframe scrolling="yes" src="'+src+'" width="100%" height="250" frameborder=0>Cant display IFRAME? click <a href="'+src+'">here</a></iframe>'}else{obj_1.innerHTML=''}}function showHidTbl(fname,category){document.getElementById(category).style.display="none";document.getElementById(category).innerHTML='<iframe id="i'+category+'" scrolling="no" src="'+fname+'" width="100%" height="200" frameborder=0>Cant display IFRAME? click <a href="'+fname+'.html">here</a></iframe>'}function showTbl(fname,category){document.getElementById(category).style.display="block";document.getElementById(category).innerHTML='<iframe id="i'+category+'" scrolling="no" src="'+fname+'" width="100%" height="200" frameborder=0>Cant display IFRAME? click <a href="'+fname+'.html">here</a></iframe>'}function qtyChange(qty,category){document.getElementById('i'+category).value=qty;}function txChange(tx,category){document.getElementById('tx'+category).innerHTML=tx}function cl_sel(){var obj_1=(dom)?document.getElementById('qs'):document.all['qs'];obj_1.value=''}var iframeids=["if1","if2"];var iframehide="yes";function dyniframesize(inframe){var dyniframe=new Array();iframeids[0]=inframe;for(i=0;i<iframeids.length;i++){if(document.getElementById){dyniframe[dyniframe.length]=document.getElementById(iframeids[i]);if(dyniframe[i]){dyniframe[i].style.display="block";if(dyniframe[i].contentDocument&&dyniframe[i].contentDocument.body.offsetHeight)dyniframe[i].height=dyniframe[i].contentDocument.body.offsetHeight+13;else if(dyniframe[i].Document&&dyniframe[i].Document.body.scrollHeight)dyniframe[i].height=dyniframe[i].Document.body.scrollHeight}}if((document.all||document.getElementById)&&iframehide=="no"){var tempobj=document.all?document.all[iframeids[i]]:document.getElementById(iframeids[i]);tempobj.style.display="block"}}}function findPosX(obj){var curleft=0;if(obj.offsetParent)while(1){curleft+=obj.offsetLeft;if(!obj.offsetParent)break;obj=obj.offsetParent}else if(obj.x)curleft+=obj.x;return curleft}function findPosY(obj){var curtop=0;if(obj.offsetParent)while(1){curtop+=obj.offsetTop;if(!obj.offsetParent)break;obj=obj.offsetParent}else if(obj.y)curtop+=obj.y;return curtop}function pad0l(number,length){var str=''+number;while(str.length<length)str='0'+str;return str}function toRGBcolor(arg){varR=parseInt(arg.substring(1,3),16);varG=parseInt(arg.substring(3,5),16);varB=parseInt(arg.substring(5,7),16);return"rgb("+varR+", "+varG+", "+varB+")"}function compareColor(a,b){if((a.indexOf("#")!=-1&&b.indexOf("#")!=-1)||(a.indexOf("rgb")!=-1&&b.indexOf("rgb")!=-1)){return a.toLowerCase()==b.toLowerCase()}else{xCol_1=a;xCol_2=b;if(xCol_1.indexOf("#")!=-1)xCol_1=toRGBcolor(xCol_1);if(xCol_2.indexOf("#")!=-1)xCol_2=toRGBcolor(xCol_2);return xCol_1.toLowerCase()==xCol_2.toLowerCase()}}var hltdef='#e7e7e7';function do_h(o,on,c){var col=hltdef;if(c==1)col="#ddddff";var x=compareColor(o.style.backgroundColor,col);if(on==0){if(x)o.style.backgroundColor=''}else{if(!x)o.style.backgroundColor=col}}function hlt(e,oth,c){if(checkMouseLeave(oth,e))do_h(oth,0,c)}function uhlt(e,oth,c){if(checkMouseEnter(oth,e))do_h(oth,1,c)}function hltd(e,oth){if(checkMouseLeave(oth,e))if(oth.id.substr(oth.id.length-2,2)=='_d'){var o=gete(oth.id.substr(0,oth.id.length-2));do_h(o,0)}}function uhltd(e,oth){if(checkMouseEnter(oth,e))if(oth.id.substr(oth.id.length-2,2)=='_d'){var o=gete(oth.id.substr(0,oth.id.length-2));do_h(o,1)}}var xhr=null;function lurl(url,callback,postdata){var is_async;var sync_data=null;if(typeof(callback)=='undefined'){is_async=false}else{is_async=true}if(typeof(xhr)=='object'&&xhr!=null)xhr.abort();if(typeof showBlockingBox=="function")showBlockingBox();xhr=$.ajax({url:url,type:'POST',async:is_async,data:postdata,success:function(data){if(typeof hideBlockingBox=="function")hideBlockingBox();if(is_async){callback(data);xhr=null}else{sync_data=data}},error:function(data){if(typeof hideBlockingBox=="function")hideBlockingBox()}});return sync_data;}var ajaxRequest=null;function lurl_legacy(url,callback,postdata){var is_async;if(typeof(callback)=='undefined'){is_async=false}else{is_async=true;if(typeof(ajaxRequest)=='object'&&ajaxRequest!=null){ajaxRequest.abort();}}function ajaxBindCallback(){try{if(!ajaxRequest)return;if(ajaxRequest.readyState==4){if(ajaxRequest.status==200){if(ajaxCallback){ajaxCallback(ajaxRequest.responseText);ajaxRequest=null}else{}}else{}}}catch(e){}}var ajaxCallback=callback;if(window.XMLHttpRequest){ajaxRequest=new XMLHttpRequest();ajaxRequest.onreadystatechange=ajaxBindCallback;ajaxRequest.open("POST",url,is_async);if(postdata!=undefined){ajaxRequest.setRequestHeader('Content-Type','application/x-www-form-urlencoded');ajaxRequest.send(postdata)}else{ajaxRequest.send('nonexistent=1')}}else if(window.ActiveXObject){ajaxRequest=new ActiveXObject("Microsoft.XMLHTTP");ajaxRequest.onreadystatechange=ajaxBindCallback;ajaxRequest.open("POST",url,is_async);if(postdata!=undefined){ajaxRequest.setRequestHeader('Content-Type','application/x-www-form-urlencoded');ajaxRequest.send(postdata)}else{ajaxRequest.send('nonexistent=1')}}if(is_async==true)return null;var rt=ajaxRequest.responseText;ajaxRequest=null;return rt}function unone(val){if(val==1){return'&nbsp;'}return val}function unblank(val){if(val===''){return'&nbsp;'}return val}function zunblank(val){if(val===''||val=='0'||val==0){return'&nbsp;'}return val}function containsDOM(container,containee){var isParent=false;do{if((isParent=container==containee))break;try{containee=containee.parentNode}catch(ex){}}while(containee!=null);return isParent}function checkMouseEnter(element,evt){try{if(element.contains&&evt.fromElement){return!element.contains(evt.fromElement)}else if(evt.relatedTarget){return!containsDOM(element,evt.relatedTarget)}}catch(e){}}function checkMouseLeave(element,evt){try{if(element.contains&&typeof(evt.toElement)=='object'){return!element.contains(evt.toElement)}else if(evt.relatedTarget){return!containsDOM(element,evt.relatedTarget)}}catch(e){}}function getElementsById(sId){var outArray=new Array();if(typeof(sId)!='string'||!sId){return outArray}if(document.evaluate){var xpathString="//*[@id='"+sId.toString()+"']";var xpathResult=document.evaluate(xpathString,document,null,0,null);while((outArray[outArray.length]=xpathResult.iterateNext())){}outArray.pop()}else if(document.all){if(typeof(document.all[sId])!='undefined'){if(typeof(document.all[sId].length)=='undefined')outArray[0]=document.all[sId];else for(var i=0,j=document.all[sId].length;i<j;i+=1){outArray[i]=document.all[sId][i]}}}else if(document.getElementsByTagName){var aEl=document.getElementsByTagName('*');for(var i=0,j=aEl.length;i<j;i+=1){if(aEl[i].id==sId){outArray.push(aEl[i])}}}return outArray}var g_pu_t_id=0;function popup_close(div_name){if(g_pu_t_id){clearTimeout(g_pu_t_id);g_pu_t_id=0}if(typeof(div_name)=='undefined')div_name='popupdiv';var d=document.getElementById(div_name);if(d){if(typeof(d.popup_close_function)!='undefined'&&d.popup_close_function!=null){d.popup_close_function();d.popup_close_function=null}d.style.visibility='hidden';d.onmouseout=null;d.other=undefined;}}function popup_chooser(other,nm){var d=gete(nm);if(d){d.style.top=(findPosY(other)+other.offsetHeight+1)+'px';d.style.left=(findPosX(other)-150)+'px';d.style.visibility='visible'}}function esq(x){x=''+x;return x.replace(/'/g,'\\\'').replace(/"/g,'\\\"')}function gettarget(e){var targ;if(!e)var e=window.event;if(e.target)targ=e.target;else if(e.srcElement)targ=e.srcElement;if(targ.nodeType==3)targ=targ.parentNode;return targ}function esc(t){t=t.replace(/&/g,'&amp;');t=t.replace(/</g,'&lt;');t=t.replace(/>/g,'&gt;');t=t.replace(/  /g,' &nbsp;');t=t.replace(/\n/g,'<BR>');return t}function escquot(t){t=t.replace(/&/g,'&amp;');t=t.replace(/"/g,'&quot;');t=t.replace(/'/g,'\\\'');return t}function popupEnSub_eval(e,evalcode,var1){var keynum;if(window.event){keynum=e.keyCode}else if(e.which){keynum=e.which}if(keynum==13){if(evalcode!=undefined)eval(evalcode);else popup_close()}return true}function popupEnSub(e,func){var keynum;if(window.event){keynum=e.keyCode}else if(e.which){keynum=e.which}if(keynum==13){if(func!=undefined)func();else popup_close()}return true}function entercatch(e,func){popupEnSub(e,func)}function getWindowDims(){var myWidth=0,myHeight=0;if(typeof(window.innerWidth)=='number'){myWidth=window.innerWidth;myHeight=window.innerHeight}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight}return[myWidth,myHeight]}function appendCommafy(o,str){if(o){if(o.value.length){o.value+=', '+str+', '}else{o.value=str+', '}}}function sw_disp(pre,which){var o1=gete(pre+'_0');var o2=gete(pre+'_1');o1.style.display='none';o2.style.display='none';if(which==0)o1.style.display='';if(which==1)o2.style.display=''}function mod_cover_image(imgsrc){if(imgsrc&&imgsrc.length)gete('cover').src=imgsrc}function togdisplayo(other){var o1=other.childNodes[0];var o2=other.childNodes[1];if(!o1||!o2)return;var s1='';var s2='none';if(o1.style.display!='none'){s1='none';s2=''}o1.style.display=s1;o2.style.display=s2}function send_verification_email(email){if(!email){alert('Please supply an email.');return}var url='?q=h.misc&act=verification_email&ea='+email+'&t=3'+SGET;var res=eval('('+lurl(url)+')');if(res&&res.errorlevel==0){alert("Email sent.  Please check your inbox shortly.")}else{if(res&&res.errmsg)alert(res.errmsg)}}function dump(arr,level){var dumped_text="";if(!level)level=0;var level_padding="";for(var j=0;j<level+1;j++)level_padding+="    ";if(typeof(arr)=='object'){for(var item in arr){var value=arr[item];if(typeof(value)=='object'){dumped_text+=level_padding+"'"+item+"' ...\n";dumped_text+=dump(value,level+1)}else{dumped_text+=level_padding+"'"+item+"' => \""+value+"\"\n"}}}else{dumped_text="===>"+arr+"<===("+typeof(arr)+")"}return dumped_text};function execJS(node){var bSaf=(navigator.userAgent.indexOf('Safari')!=-1);var bOpera=(navigator.userAgent.indexOf('Opera')!=-1);var bMoz=(navigator.appName=='Netscape');if(!node){return}var st=node.getElementsByTagName('SCRIPT');var strExec;for(var i=0;i<st.length;i++){if(bSaf){strExec=st[i].innerHTML;st[i].innerHTML=""}else if(bOpera){strExec=st[i].text;st[i].text=""}else if(bMoz){strExec=st[i].textContent;st[i].textContent=""}else{strExec=st[i].text;st[i].text=""}try{var x=document.createElement("script");x.type="text/javascript";if((bSaf)||(bOpera)||(bMoz))x.innerHTML=strExec;else x.text=strExec;document.getElementsByTagName("head")[0].appendChild(x)}catch(e){alert(e)}}};function getCheckedValueFromRadioGroupByName(name){var ret;if(typeof(name)=='undefined')return;if(!document.getElementsByName(name).length)return;for(var i=0;i<document.getElementsByName(name).length;i++){if(document.getElementsByName(name)[i].checked)return(document.getElementsByName(name)[i].value)}}function defined(val){if(val===null)return false;if(typeof(val)==='undefined')return false;return true}function getIEVersion(){var matches=navigator.userAgent.match(/MSIE (\d+)/);if(defined(matches))return matches[1];else return false}function hasdata(str){if(str.trim().length>0)return true;return false}function toggleVisiblity(obj){style=obj.style;if(style.display=='none'&&style.visibility=='hidden'){style.display='block';style.visibility='visible'}else{style.display='none';style.visibility='hidden'}}function addEvent(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,false);return true}else if(obj.attachEvent){var r=obj.attachEvent("on"+evType,fn);return r}else{return false}}function isBrowserChrome(){if(navigator.userAgent.match(/Chrome\//))return true;return false}function isBrowserFirefox(){if(navigator.userAgent.match(/Firefox\//))return true;return false}function isBrowserIE(){if(navigator.userAgent.match(/MSIE (\d+)/))return true;return false}function askToCopy(text,item_type){var padding='';if(isBrowserFirefox()){var space_count=15;for(var i=0;i<space_count;++i)padding+=" "}window.prompt(padding+"To share this "+item_type+" with others, copy this link (e.g. Ctrl-C) and then paste it into an email."+padding,text)}
