function ClearForm() { var FieldType; for (var i = 0; i < document.EditForm.length; i++) { FieldType = document.EditForm.elements[i].type if (FieldType == "text" || FieldType == "textarea") { document.EditForm.elements[i].value = "" } if (FieldType == "select-one") { document.EditForm.elements[i].options.selectedIndex = 0 } } } function OpenNewWindow(url, width, height) { var randomnumber=Math.floor(Math.random()*5001) window.open(url, randomnumber, "top=10,left=10,menubar=0,resizable=1,scrollbars=1,width=" + width + ",height=" + height) } function OpenWindowNoScroll(url, width, height) { window.open(url, 'popup_noscroll', "top=10,left=10,menubar=0,resizable=0,scrollbars=0,width=" + width + ",height=" + height) } function protect_images2(e) { var msg = "Sorry, our images are copyrighted."; if (navigator.appName == 'Netscape' && e.which == 3) { alert(msg); return false; } if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) { alert(msg); return false; } else return true; } function protect_images1() { if(document.images) { for(i=0;i function changeCurrency(argCurrency) { document.CurrencyChoice.ER_ID.value=argCurrency; document.CurrencyChoice.submit(); } function showLang(argLang) { var the_current_url = location.href; var this_url_string_fixed; switch(the_current_url.substring(0,20)) { //looks like we're in English... send the user to this current page in new language case 'http://www.cluburban': case 'https://www.cluburba': case 'http://cluburban.com': case 'https://cluburban.co': this_url_string_fixed = the_current_url; //this_url_string_fixed = the_current_url.split("?")[0]; this_url_string_fixed = this_url_string_fixed.replace(/:/g,"%3A"); this_url_string_fixed = this_url_string_fixed.replace(/\//g,"%2F"); if (argLang == 'English') { this.window.location.href.reload; } else if (argLang == 'French') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_fr&url=' + this_url_string_fixed; } if (argLang == 'Spanish') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_es&url=' + this_url_string_fixed; } if (argLang == 'German') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_de&url=' + this_url_string_fixed; } if (argLang == 'Italian') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_it&url=' + this_url_string_fixed; } if (argLang == 'Dutch') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_nl&url=' + this_url_string_fixed; } if (argLang == 'Japanese') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_ja&url=' + this_url_string_fixed; } break; //looks like we're in language mode... get current page and redisplay in new language case 'http://babelfish.alt': case 'https://babelfish.al': case 'http://www.babelfish': case 'https://www.babelfis': this_url_string_fixed = the_current_url.split("&url=")[1]; this_url_string_fixed = this_url_string_fixed.replace(/%3A/g,":"); this_url_string_fixed = this_url_string_fixed.replace(/%2F/g,"/"); if (argLang == 'English') { this.window.location.href = this_url_string_fixed; } else if (argLang == 'French') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_fr&url=' + this_url_string_fixed; } if (argLang == 'Spanish') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_es&url=' + this_url_string_fixed; } if (argLang == 'German') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_de&url=' + this_url_string_fixed; } if (argLang == 'Italian') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_it&url=' + this_url_string_fixed; } if (argLang == 'Dutch') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_nl&url=' + this_url_string_fixed; } if (argLang == 'Japanese') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_ja&url=' + this_url_string_fixed; } break; //a language might already be selected... send the user to the home page and reset the language default: this_url_string_fixed = 'http%3A%2F%2Fwww.cluburban.com'; if (argLang == 'English') { this.window.location.href = 'ht' + 'tp://' + 'www.cluburban.' + 'com'; } else if (argLang == 'French') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_fr&url=' + this_url_string_fixed; } if (argLang == 'Spanish') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_es&url=' + this_url_string_fixed; } if (argLang == 'German') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_de&url=' + this_url_string_fixed; } if (argLang == 'Italian') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_it&url=' + this_url_string_fixed; } if (argLang == 'Dutch') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_nl&url=' + this_url_string_fixed; } if (argLang == 'Japanese') { this.window.location.href = 'ht' + 'tp://' + 'babe' + 'lfish.altav' + 'ista.' + 'com/babe' + 'lfish/trurl_load?lp=en_ja&url=' + this_url_string_fixed; } break; } } // convert all characters to lowercase to simplify testing var agt=navigator.userAgent.toLowerCase(); // *** BROWSER VERSION *** // note: on IE5, these return 4, so use is_ie5up to detect IE5. var is_major = parseInt(navigator.appVersion); var is_minor = parseFloat(navigator.appVersion); var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1)); var is_nav4 = (is_nav && (is_major == 4)); var is_nav4up = (is_nav && (is_major >= 4)); var is_navonly = (is_nav && ((agt.indexOf(";nav") != -1) || (agt.indexOf("; nav") != -1)) ); var is_nav5 = (is_nav && (is_major == 5)); var is_nav5up = (is_nav && (is_major >= 5)); var is_ie = (agt.indexOf("msie") != -1); var is_ie3 = (is_ie && (is_major < 4)); var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) ); var is_ie4up = (is_ie && (is_major >= 4)); var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) ); var is_ie5up = (is_ie && !is_ie3 && !is_ie4);