// HREF FUNCTION function hrefFormat(loc){ var base = document.getElementsByTagName('base'); if (base && base[0] && base[0].href) { loc = base[0].href + loc; } return loc; } // LINK FUNCTION function gohref(loc){ loc = hrefFormat(loc); location.href = loc; } function sessionAppend() { var session_string = ""; return session_string; } // CATALOG SEARCH function SearchSubmit() { if (document.searchForm.item_search.value == "") { alert("Please enter a search term."); if (top.IsFormAdvanced) document.searchForm.item_search.focus(); } else { document.searchForm.submit(); } } function SubmitSubscribe(x) { regex = /^([._a-zA-Z0-9-]+[._a-zA-Z0-9-]*)@(([a-zA-Z0-9-]+\.)*([a-zA-Z0-9-]+)(\.[a-zA-Z]+))$/; if (!regex.test(document.BTbinForm.subscribe_email.value)){ alert('You need to enter a valid email address such as: username@internet.com'); if (top.IsFormAdvanced) document.BTbinForm.subscribe_email.focus(); } else if (document.BTbinForm.subscribe_email.value.length >= 127) { alert("Your email address contains too many characters"); if (top.IsFormAdvanced) document.BTbinForm.subscribe_email.focus(); } else{ document.BTbinForm.target.value = x; document.BTbinForm.submit(); } } function PrintFrame(){ var DivCont = document.getElementById("content").innerHTML; window.frames.myiFrame.document.getElementById("printcontent").innerHTML= DivCont; document.getElementById("myiFrame").contentWindow.focus(); document.getElementById("myiFrame").contentWindow.print(); } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i max || o.val().length < min ) { o.addClass( "ui-state-error" ); updateTips( "Please enter your " + n ); return false; } else { return true; } } function checkRegexp( o, regexp, n ) { if ( !( regexp.test( o.val() ) ) ) { o.addClass( "ui-state-error" ); updateTips( n ); return false; } else { return true; } } function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i