browserName = navigator.appName; browserVer = parseInt(navigator.appVersion); // Image Overload var imageoff = new Image(); var imageon = new Image(); imageoff.src = "images/arrow_n.gif"; imageon.src = "images/arrow_a.gif"; old_postal = ""; function onImageOn(img) { img.src = imageon.src; } function onImageOff(img) { img.src = imageoff.src; } function viewform(m) { var w = 700; var h = 600; var scroll = 'no'; var settings; var LeftPosition; var TopPosition; var win; LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll; settings = settings + ',resizable=no,maximize=no,status=no,toolbar=no,directories=no,menubar=no,location=no'; win = window.open(m, 'pre', settings); win.name = 'name'; win.focus(); } function popup2(m) { var scroll = 'yes'; var settings; var win; settings = 'scrollbars='+scroll; settings = settings + ',resizable=yes,maximize=yes,status=no,toolbar=no,directories=no,menubar=no,location=no'; win = window.open(m, 'pre', settings); win.name = 'name'; win.focus(); } function viewform2(m, w, h) { alter=(settings); var scroll = 'yes'; var settings; var LeftPosition; var TopPosition; var win; w=760; h=600; LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+', width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll; settings = settings + ', resizable=yes, maximize=yes, status=no,toolbar=no,directories=no,menubar=no,location=no'; if (document.inviteform) { if (document.inviteform.friend_email) m = m + "?friend_email="+document.inviteform.friend_email.value; } win = window.open(m, 'pre', settings); win.name = 'name'; win.focus(); } function viewformscr(m, w, h) { alter=(settings); var scroll = 'no'; var settings; var LeftPosition; var TopPosition; var win; LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+', width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll; settings = settings + ', resizable=yes, maximize=no, status=no,toolbar=no,directories=no,menubar=no,location=no, copyhistory=no'; if (document.inviteform) { if (document.inviteform.friend_email) m = m + "?friend_email="+document.inviteform.friend_email.value; } win = window.open(m, 'pre', settings); win.name = 'name'; win.focus(); } function doPreview(param1, param2) { if (dom) { var src = document.getElementById(param1).value; } else if (ie) { var src = document.all[param1].value; } if (src.charAt(1)==":") src = "file:/" + src; if (dom) { document.getElementById(param2).src=src; } else if (ie) { document.all[param2].src = src; } } function resize(dw, dh) { var i=0; var j=0; var LeftPosition; var TopPosition; var w; var h; if (!dw) {dw=16} var BrowserName = navigator.appName; if(navigator.appName == 'Netscape'){ i=0; dh= dh + 65; }else dh = dh + 90; if (document.getElementById('view_link')){ j = 25;} if (document.images[0]) { w = document.screenshot.width+dw; h = document.screenshot.height+dh+j-i; window.resizeTo(w, h); LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; window.moveTo(LeftPosition, TopPosition); } self.focus(); } function resize_(dw, dh) { var i=0; var j=0; var LeftPosition; var TopPosition; var w; var h; if (!dw) {dw=16} if (navigator.appName == 'Netscape'){ i=0; dh= dh + 65; }else dh = dh + 90; if (document.getElementById('view_link')){ j = 25;} if (document.images[0]) { document.getElementById('div_link').style.display = 'block'; w = document.screenshot_back.width+dw; h = document.screenshot_back.height+dh-i+j; window.resizeTo(w, h); LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; window.moveTo(LeftPosition, TopPosition); document.getElementById('div_link').style.display = 'none'; } self.focus(); } var preloadFlag = false; function preloadImages() { if (document.images) { preloadFlag = true; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i?~_"; for (var i = 0; i < val.length; i++) { if (iChars.indexOf(val.charAt(i)) != -1) { return false; } } return true; } function checkUserInfoStep2_() { var flag = false; if (!document.UserForm.get_tos.checked) { alert('You can open an account if you agree with our Terms of Use and mark the check box \'I have read and agree ...\'!'); document.UserForm.get_tos.focus(); return false; } if (!document.UserForm.get_ref_question.value) { alert('How did you hear about the site?'); document.UserForm.get_ref_question.focus(); return false; } return true; } function QuickLogin() { if (!document.loginform.username.value) { alert('Please enter a user name!'); document.loginform.username.focus(); return false; } if (!document.loginform.password.value) { alert('Please enter a password!'); document.loginform.password.focus(); return false; } return true; } function check_invite() { if (!document.inviteform.friend_email.value) { alert('Please enter the email address!'); document.inviteform.friend_email.focus(); return false; } return true; } function SelectWishList(mark) { for (i = 0; i < document.sent_item_form.elements.length; i++) { var item = document.sent_item_form.elements[i]; if (item.name == "wish_list_id[]") { item.checked = mark; }; } } function InputUserInfo() { /* if (!document.UserForm.get_name.value) { alert('Please enter a user name!'); document.UserForm.get_name.focus(); return false; } */ return true; } function checkUserInfo() { /* if (!document.UserForm.get_name.value) { alert('Please enter a user name!'); document.UserForm.get_name.focus(); return false; } */ if (!document.UserForm.get_pasw_1.value) { alert('Please enter a password!'); document.UserForm.get_pasw_1.focus(); return false; } if (!document.UserForm.get_pasw_2.value) { alert('Please confirm your password!'); document.UserForm.get_pasw_2.focus(); return false; } if (document.UserForm.get_pasw_1.value != document.UserForm.get_pasw_2.value) { alert('Password verification and the password does not match!'); document.UserForm.get_pasw_1.focus(); return false; } if (document.UserForm.get_pasw_1.value.length < 6) { alert('The password must be more than 6 characters!'); document.UserForm.get_pasw_1.focus(); return false; } if (!document.UserForm.get_fname.value) { alert('Please enter your name!'); document.UserForm.get_fname.focus(); return false; } if (!document.UserForm.get_lname.value) { alert('Please enter your surname!'); document.UserForm.get_lname.focus(); return false; } if (!document.UserForm.get_address.value) { alert('Please enter your contact address'); document.UserForm.get_address.focus(); return false; } if (!document.UserForm.get_city.value) { alert('Please enter the city!'); document.UserForm.get_city.focus(); return false; } /* if (!document.UserForm.get_postal_code1.value) { alert('Please enter the Post code (Contact Information )!'); document.UserForm.get_postal_code1.focus(); return false; } */ if (!document.UserForm.get_phone.value) { alert('Please enter a phone number!'); document.UserForm.get_phone.focus(); return false; } if (!document.UserForm.get_email.value) { alert('Please enter the email address!'); document.UserForm.get_email.focus(); return false; } adresse = document.UserForm.get_email.value; var place = adresse.indexOf("@",1); var point = adresse.indexOf(".",place+1); if ((place > -1)&&(adresse.length >2)&&(point > 1)) { } else { alert('Please use the valid email address!'); document.UserForm.get_email.focus(); return false; } if (!document.UserForm.get_shipping_address.value) { alert('Please, enter the address (Information for sending )!'); document.UserForm.get_shipping_address.focus(); return false; } if (!document.UserForm.get_shipping_city.value) { alert('Please enter the city (Information for sending )!'); document.UserForm.get_shipping_city.focus(); return false; } /* if (!document.UserForm.get_shipping_postal_code1.value) { alert('Please enter the Post code (Information for sending )!'); document.UserForm.get_shipping_postal_code1.focus(); return false; } */ if (!document.UserForm.get_tos.checked) { alert('You can open an account if you agree with our Terms of Use and mark the check box \'I have read and agree ...\'!'); document.UserForm.get_tos.focus(); return false; } return true; } function checkGiftUserInfo() { if (document.GiftUserForm.get_gift_code.value) { xajax_check_gift(document.GiftUserForm.get_gift_code.value); return false; } if (!document.GiftUserForm.get_email_from.value) { alert('Please enter the email address of the sender if you want to redeem the Gift or the Gift Code'); document.GiftUserForm.get_email_from.focus(); return false; } if (!document.GiftUserForm.get_confirm_email_from.value) { alert('Confirm E-mail'); document.GiftUserForm.get_confirm_email_from.focus(); return false; } if (!document.GiftUserForm.get_email_to.value) { alert('Please enter the email for recipient!'); document.GiftUserForm.get_email_to.focus(); return false; } if (!document.GiftUserForm.get_confirm_email_to.value) { alert('Confirm E-mail'); document.GiftUserForm.get_confirm_email_to.focus(); return false; } adresse = document.GiftUserForm.get_email_from.value; var place = adresse.indexOf("@",1); var point = adresse.indexOf(".",place+1); if ((place > -1)&&(adresse.length >2)&&(point > 1)) { } else { alert('Please use the valid email address!'); document.GiftUserForm.get_email_from.focus(); return false; } if (document.GiftUserForm.get_email_from.value != document.GiftUserForm.get_confirm_email_from.value) { alert('E-mail and confirmation of the e-mail does not match!'); document.GiftUserForm.get_email_from.focus(); return false; } if (!document.GiftUserForm.get_from.value) { alert('Please enter the email address!'); document.GiftUserForm.get_from.focus(); return false; } adresse = document.GiftUserForm.get_from.value; if (adresse.length >0) { } else { alert('Please use the valid email address!'); document.GiftUserForm.get_email_from.focus(); return false; } adresse = document.GiftUserForm.get_email_to.value; var place = adresse.indexOf("@",1); var point = adresse.indexOf(".",place+1); if ((place > -1)&&(adresse.length >2)&&(point > 1)) { } else { alert('Please use the valid email address!'); document.GiftUserForm.get_email_to.focus(); return false; } if (document.GiftUserForm.get_email_to.value != document.GiftUserForm.get_confirm_email_to.value) { alert('E-mail and confirmation of the e-mail does not match!'); document.GiftUserForm.get_email_to.focus(); return false; } if (!document.GiftUserForm.get_to.value) { alert('Please enter the email address!'); document.GiftUserForm.get_to.focus(); return false; } adresse = document.GiftUserForm.get_to.value; if(adresse.length >0) { } else { alert('Please use the valid email address!'); document.GiftUserForm.get_email_to.focus(); return false; } return true; } function confirm_del() { var reply = confirm('This will permanently delete this record!'); if(reply) { return true; } else { return false; } } function NothingSend(act) { document.sent_item_form.act.value=act; document.sent_item_form.submit(); return true; } function SelectAuto(act) { try{ xajax_selectAuto(act, arguments[1]); }catch (err){ if ( document.UserForm.get_auto_fill_shipping.checked) { document.UserForm.get_shipping_address.value = document.UserForm.get_address.value; document.UserForm.get_shipping_city.value = document.UserForm.get_city.value; /* if(document.UserForm.get_shipping_postal_code) document.UserForm.get_shipping_postal_code.value = document.UserForm.get_postal_code.value; else{ document.UserForm.get_shipping_postal_code1.value = document.UserForm.get_postal_code1.value; document.UserForm.get_shipping_postal_code2.value = document.UserForm.get_postal_code2.value; } */ document.UserForm.get_shipping_address2.value = document.UserForm.get_address2.value; document.UserForm.get_shipping_phone.value = document.UserForm.get_phone.value; document.UserForm.get_shipping_ref_state.value = document.UserForm.get_ref_state.value; } else { document.UserForm.get_shipping_address.value =""; /* if(document.UserForm.get_shipping_postal_code) document.UserForm.get_shipping_postal_code.value = ''; else{ document.UserForm.get_shipping_postal_code1.value = ''; document.UserForm.get_shipping_postal_code2.value = ''; } */ document.UserForm.get_shipping_city.value = ""; document.UserForm.get_shipping_address2.value = ""; document.UserForm.get_shipping_phone.value = ""; document.UserForm.get_shipping_ref_state.value = 0; } } } function onCountryChange(act) { document.UserForm.act.value = act; document.UserForm.submit(); return true; } function setSelectOptions(the_form, the_select, do_check) { var selectObject = document.forms[the_form].elements[the_select]; var selectCount = selectObject.length; for (var i = 0; i < selectCount; i++) { selectObject.options[i].selected = do_check; } // end for return true; } function select_esrb(mark) { for (i = 0; i < document.ParentalForm.elements.length; i++) { var item = document.ParentalForm.elements[i]; if (item.name == "esrb[]") { item.checked = mark; }; } } opera = (navigator.userAgent.indexOf('Opera') >= 0)? true : false; ie = (document.all && !opera)? true : false; dom = (document.getElementById && !ie && !opera)? true : false; var expiration = new Date(); expiration.setTime(expiration.getTime() + 3600*3600*3600); function showtranscript(elemId,displayValue) { if(!document.getElementById(elemId)) return 0; if (dom) { if (displayValue) { document.getElementById(elemId).style.display = displayValue; return 0; } if (document.getElementById(elemId).style.display == "none") { document.getElementById(elemId).style.display = "block"; } else if (document.getElementById(elemId).style.display == "block") { document.getElementById(elemId).style.display = "none"; } } else if (ie) { if (displayValue) { window.document.all[elemId].style.display = displayValue; return 0; } if (document.all[elemId].style.display == "block") { document.all[elemId].style.display = "none"; } else if (document.all[elemId].style.display == "none") { document.all[elemId].style.display = "block"; } } } function display(cookie_name, id) { var template_category_cookie; template_category_cookie = GetCookie(cookie_name); if (id.substr(0,9) == "spotlight" && document.getElementById('wish_list'+id.substr(9, id.length-9)).style.display == "none") template_category_cookie = 0; if (template_category_cookie) { SetCookie(cookie_name, "1", expiration, "", "","") showtranscript(id, 'block'); } else { SetCookie(cookie_name, "", expiration, "", "","") showtranscript(id, 'none'); } return true; } function onCookieChange(cookie_name, id) { if (dom) { if (document.getElementById(id).style.display == "none") { SetCookie(cookie_name, "", expiration, "", "","") } else if (document.getElementById(id).style.display == "block") { SetCookie(cookie_name, "1", expiration, "", "","") } } else if (ie) { if (document.all[id].style.display == "block") { SetCookie(cookie_name, "1", expiration, "", "","") } else if (document.all[id].style.display == "none") { SetCookie(cookie_name, "", expiration, "", "","") } } } function SetCookie(name, value, expires, path, domain, secure) { var mycookie = name + "=" + escape(value); var myexpires = new Date(); myexpires.setTime(myexpires.getTime() + 5000); mycookie = mycookie + "; myexpires=" + myexpires.toGMTString(); document.cookie = mycookie; } function GetCookie(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function checkTellaFriend() { if (!document.TellaFriendForm.get_sender.value) { alert('Please enter the email address!'); document.TellaFriendForm.get_sender.focus(); return false; } if (!document.TellaFriendForm.get_email1.value && !document.TellaFriendForm.get_email2.value && !document.TellaFriendForm.get_email3.value ) { alert('Please enter the email for recipient!'); document.TellaFriendForm.get_email1.focus(); return false; } if (!document.TellaFriendForm.get_subject.value) { alert('Please enter the subject!'); document.TellaFriendForm.get_subject.focus(); return false; } if (!document.TellaFriendForm.get_body.value) { alert('Please enter the message!'); document.TellaFriendForm.get_body.focus(); return false; } } function TrimString(sInString) { sInString = sInString.replace( /^\s+/g, "" );// strip leading return sInString.replace( /\s+$/g, "" );// strip trailing } function checkBasket() { for(var i = 0; i <= document.basket.elements.length - 1; i++){ if (document.basket.elements[i].className == "formfields"){ if (isNaN(parseInt(document.basket.elements[i].value))){ alert('Please enter the numerical value only please!'); document.basket.elements[i].focus(); return false; } } } //document.basket.submit(); return true; } function left_advanced_search_form_clear() { document.left_advanced_search_form.get_name.value = ""; // document.left_advanced_search_form.get_keyword.value = ""; // document.left_advanced_search_form.get_ref_actor.value = ""; document.left_advanced_search_form.get_ref_language.value = ""; document.left_advanced_search_form.get_ref_action.value = ""; } function CheckAdvancedSearch() { //alert(document.left_advanced_search_form.get_ref_actor); if ( !document.left_advanced_search_form.get_name.value // && !document.left_advanced_search_form.get_keyword.value && (document.left_advanced_search_form.get_ref_actor?!document.left_advanced_search_form.get_ref_actor.value:1) && !document.left_advanced_search_form.get_ref_action.value && !document.left_advanced_search_form.get_ref_language.value ) { alert('Please select search criteria!'); document.left_advanced_search_form.get_name.focus(); return false; } if (document.left_advanced_search_form.get_name.value.indexOf("%") != -1) { alert("Delete symbol % from title"); return false; } /* if (document.left_advanced_search_form.get_keyword.value.indexOf("%") != -1) { alert("Delete symbol % from keyword"); return false; } */ return true; } function winPopUp(url, winName, width, height) { if (winName == null) winName = "defaultWin"; if (width == null) width = "500"; if (height == null) height = "600"; var winProperties = "status=no,resize=no,scrollbars=yes,toolbar=no,dependent=yes,alwaysRaised=yes,maximize=no,resizable=no,width=" + width +",height=" + height + ""; postwindow = window.open(url, winName, winProperties); window.status = "Done"; } function onover(img, img_file) { img.src = img_file; return false; } function show_item_list_home() { if (GetCookie('item_list_most_popular_cookie') == '1') { showtranscript('item_list_best_rentals', 'none'); showtranscript('item_list_most_popular', 'block'); showtranscript('item_list_new_dvds', 'none'); showtranscript('item_list_sales_offers', 'none'); showtranscript('item_list_top_games', 'none'); return true; } if (GetCookie('item_list_best_rentals_cookie') == '1') { showtranscript('item_list_best_rentals', 'block'); showtranscript('item_list_most_popular', 'none'); showtranscript('item_list_new_dvds', 'none'); showtranscript('item_list_sales_offers', 'none'); showtranscript('item_list_top_games', 'none'); return true; } if (GetCookie('item_list_sales_offers_cookie') == '1') { showtranscript('item_list_best_rentals', 'none'); showtranscript('item_list_most_popular', 'none'); showtranscript('item_list_new_dvds', 'none'); showtranscript('item_list_sales_offers', 'block'); showtranscript('item_list_top_games', 'none'); return true; } if (GetCookie('item_list_top_games_cookie') == '1') { showtranscript('item_list_best_rentals', 'none'); showtranscript('item_list_most_popular', 'none'); showtranscript('item_list_new_dvds', 'none'); showtranscript('item_list_sales_offers', 'none'); showtranscript('item_list_top_games', 'block'); return true; } // Default Tab showtranscript('item_list_best_rentals', 'none'); showtranscript('item_list_most_popular', 'none'); showtranscript('item_list_new_dvds', 'block'); showtranscript('item_list_sales_offers', 'none'); showtranscript('item_list_top_games', 'none'); return true; } function show_item_list_best_rentals() { SetCookie('item_list_best_rentals_cookie', "1", expiration, "", "",""); SetCookie('item_list_most_popular_cookie', "0", expiration, "", "",""); SetCookie('item_list_new_dvds_cookie', "0", expiration, "", "",""); SetCookie('item_list_sales_offers_cookie', "0", expiration, "", "",""); SetCookie('item_list_top_games_cookie', "0", expiration, "", "",""); show_item_list_home(); return true; } function show_item_list_most_popular() { SetCookie('item_list_best_rentals_cookie', "0", expiration, "", "",""); SetCookie('item_list_most_popular_cookie', "1", expiration, "", "",""); SetCookie('item_list_new_dvds_cookie', "0", expiration, "", "",""); SetCookie('item_list_sales_offers_cookie', "0", expiration, "", "",""); SetCookie('item_list_top_games_cookie', "0", expiration, "", "",""); show_item_list_home(); return true; } function show_item_list_new_dvds() { SetCookie('item_list_best_rentals_cookie', "0", expiration, "", "",""); SetCookie('item_list_most_popular_cookie', "0", expiration, "", "",""); SetCookie('item_list_new_dvds_cookie', "1", expiration, "", "",""); SetCookie('item_list_sales_offers_cookie', "0", expiration, "", "",""); SetCookie('item_list_top_games_cookie', "0", expiration, "", "",""); show_item_list_home(); return true; } function show_item_list_sales_offers() { SetCookie('item_list_best_rentals_cookie', "0", expiration, "", "",""); SetCookie('item_list_most_popular_cookie', "0", expiration, "", "",""); SetCookie('item_list_new_dvds_cookie', "0", expiration, "", "",""); SetCookie('item_list_sales_offers_cookie', "1", expiration, "", "",""); SetCookie('item_list_top_games_cookie', "0", expiration, "", "",""); show_item_list_home(); return true; } function show_item_list_top_games() { SetCookie('item_list_best_rentals_cookie', "0", expiration, "", "",""); SetCookie('item_list_most_popular_cookie', "0", expiration, "", "",""); SetCookie('item_list_new_dvds_cookie', "0", expiration, "", "",""); SetCookie('item_list_sales_offers_cookie', "0", expiration, "", "",""); SetCookie('item_list_top_games_cookie', "1", expiration, "", "",""); show_item_list_home(); return true; } function show_features() { // SetCookie('item_features_cookie', "1", expiration, "", "",""); // SetCookie('item_hints_cookie', "0", expiration, "", "",""); SetCookie('item_instructions_cookie', "0", expiration, "", "",""); SetCookie('item_reviews_cookie', "0", expiration, "", "",""); SetCookie('item_videos_cookie', "0", expiration, "", "",""); SetCookie('item_recomendation_cookie', "0", expiration, "", "",""); // SetCookie('item_email_friend_cookie', "0", expiration, "", "",""); SetCookie('item_screenshots_cookie', "0", expiration, "", "",""); show_item_bar(); return true; } function show_hints() { // SetCookie('item_features_cookie', "0", expiration, "", "",""); // SetCookie('item_hints_cookie', "1", expiration, "", "",""); SetCookie('item_instructions_cookie', "0", expiration, "", "",""); SetCookie('item_reviews_cookie', "0", expiration, "", "",""); SetCookie('item_videos_cookie', "0", expiration, "", "",""); SetCookie('item_recomendation_cookie', "0", expiration, "", "",""); // SetCookie('item_email_friend_cookie', "0", expiration, "", "",""); SetCookie('item_screenshots_cookie', "0", expiration, "", "",""); show_item_bar(); return true; } function show_instructions() { // SetCookie('item_features_cookie', "0", expiration, "", "",""); // SetCookie('item_hints_cookie', "0", expiration, "", "",""); SetCookie('item_instructions_cookie', "1", expiration, "", "",""); SetCookie('item_reviews_cookie', "0", expiration, "", "",""); SetCookie('item_videos_cookie', "0", expiration, "", "",""); SetCookie('item_recomendation_cookie', "0", expiration, "", "",""); // SetCookie('item_email_friend_cookie', "0", expiration, "", "",""); SetCookie('item_screenshots_cookie', "0", expiration, "", "",""); show_item_bar(); return true; } function show_reviews() { // SetCookie('item_features_cookie', "0", expiration, "", "",""); // SetCookie('item_hints_cookie', "0", expiration, "", "",""); SetCookie('item_instructions_cookie', "0", expiration, "", "",""); SetCookie('item_reviews_cookie', "1", expiration, "", "",""); SetCookie('item_videos_cookie', "0", expiration, "", "",""); SetCookie('item_recomendation_cookie', "0", expiration, "", "",""); // SetCookie('item_email_friend_cookie', "0", expiration, "", "",""); SetCookie('item_screenshots_cookie', "0", expiration, "", "",""); show_item_bar(); return true; } function show_videos() { // SetCookie('item_features_cookie', "0", expiration, "", "",""); // SetCookie('item_hints_cookie', "0", expiration, "", "",""); SetCookie('item_instructions_cookie', "0", expiration, "", "",""); SetCookie('item_reviews_cookie', "0", expiration, "", "",""); SetCookie('item_videos_cookie', "1", expiration, "", "",""); SetCookie('item_recomendation_cookie', "0", expiration, "", "",""); // SetCookie('item_email_friend_cookie', "0", expiration, "", "",""); SetCookie('item_screenshots_cookie', "0", expiration, "", "",""); show_item_bar(); return true; } function show_email_friend() { // SetCookie('item_features_cookie', "0", expiration, "", "",""); // SetCookie('item_hints_cookie', "0", expiration, "", "",""); SetCookie('item_instructions_cookie', "0", expiration, "", "",""); SetCookie('item_reviews_cookie', "0", expiration, "", "",""); SetCookie('item_videos_cookie', "0", expiration, "", "",""); SetCookie('item_recomendation_cookie', "0", expiration, "", "",""); // SetCookie('item_email_friend_cookie', "1", expiration, "", "",""); SetCookie('item_screenshots_cookie', "0", expiration, "", "",""); show_item_bar(); return true; } function show_recomendation() { // SetCookie('item_features_cookie', "0", expiration, "", "",""); // SetCookie('item_hints_cookie', "0", expiration, "", "",""); SetCookie('item_instructions_cookie', "0", expiration, "", "",""); SetCookie('item_reviews_cookie', "0", expiration, "", "",""); SetCookie('item_videos_cookie', "0", expiration, "", "",""); SetCookie('item_recomendation_cookie', "1", expiration, "", "",""); // SetCookie('item_email_friend_cookie', "0", expiration, "", "",""); SetCookie('item_screenshots_cookie', "0", expiration, "", "",""); show_item_bar(); return true; } function show_screenshots() { // SetCookie('item_features_cookie', "0", expiration, "", "",""); // SetCookie('item_hints_cookie', "0", expiration, "", "",""); SetCookie('item_instructions_cookie', "0", expiration, "", "",""); SetCookie('item_reviews_cookie', "0", expiration, "", "",""); SetCookie('item_videos_cookie', "0", expiration, "", "",""); SetCookie('item_recomendation_cookie', "0", expiration, "", "",""); // SetCookie('item_email_friend_cookie', "0", expiration, "", "",""); SetCookie('item_screenshots_cookie', "1", expiration, "", "",""); show_item_bar(); return true; } function show_item_bar() { if (GetCookie('item_screenshots_cookie') == '1') { showtranscript('item_screenshots', 'block'); // showtranscript('item_features', 'none'); // showtranscript('item_hints', 'none'); showtranscript('item_instructions', 'none'); showtranscript('item_reviews', 'none'); showtranscript('item_videos', 'none'); showtranscript('item_recomendation', 'none'); // showtranscript('item_email_friend', 'none'); return true; } if (GetCookie('item_features_cookie') == '1') { showtranscript('item_screenshots', 'none'); // showtranscript('item_features', 'block'); // showtranscript('item_hints', 'none'); showtranscript('item_instructions', 'none'); showtranscript('item_reviews', 'none'); showtranscript('item_videos', 'none'); showtranscript('item_recomendation', 'none'); // showtranscript('item_email_friend', 'none'); return true; } if (GetCookie('item_hints_cookie') == '1') { showtranscript('item_screenshots', 'none'); // showtranscript('item_features', 'none'); // showtranscript('item_hints', 'block'); showtranscript('item_instructions', 'none'); showtranscript('item_reviews', 'none'); showtranscript('item_videos', 'none'); showtranscript('item_recomendation', 'none'); // showtranscript('item_email_friend', 'none'); return true; } if (GetCookie('item_instructions_cookie') == '1') { showtranscript('item_screenshots', 'none'); // showtranscript('item_features', 'none'); // showtranscript('item_hints', 'none'); showtranscript('item_instructions', 'block'); showtranscript('item_reviews', 'none'); showtranscript('item_videos', 'none'); showtranscript('item_recomendation', 'none'); // showtranscript('item_email_friend', 'none'); return true; } if (GetCookie('item_reviews_cookie') == '1') { showtranscript('item_screenshots', 'none'); // showtranscript('item_features', 'none'); // showtranscript('item_hints', 'none'); showtranscript('item_instructions', 'none'); showtranscript('item_reviews', 'block'); showtranscript('item_videos', 'none'); showtranscript('item_recomendation', 'none'); // showtranscript('item_email_friend', 'none'); return true; } if (GetCookie('item_videos_cookie') == '1') { showtranscript('item_screenshots', 'none'); // showtranscript('item_features', 'none'); // showtranscript('item_hints', 'none'); showtranscript('item_instructions', 'none'); showtranscript('item_reviews', 'none'); showtranscript('item_videos', 'block'); showtranscript('item_recomendation', 'none'); // showtranscript('item_email_friend', 'none'); return true; } if (GetCookie('item_email_friend_cookie') == '1') { showtranscript('item_screenshots', 'none'); // showtranscript('item_features', 'none'); // showtranscript('item_hints', 'none'); showtranscript('item_instructions', 'none'); showtranscript('item_reviews', 'none'); showtranscript('item_videos', 'none'); showtranscript('item_recomendation', 'none'); // showtranscript('item_email_friend', 'block'); return true; } if (GetCookie('item_recomendation_cookie') == '1') { showtranscript('item_screenshots', 'none'); // showtranscript('item_features', 'none'); // showtranscript('item_hints', 'none'); showtranscript('item_instructions', 'none'); showtranscript('item_reviews', 'none'); showtranscript('item_videos', 'none'); showtranscript('item_recomendation', 'block'); // showtranscript('item_email_friend', 'none'); return true; } showtranscript('item_screenshots', 'block'); // showtranscript('item_features', 'none'); // showtranscript('item_hints', 'none'); showtranscript('item_instructions', 'none'); showtranscript('item_reviews', 'none'); showtranscript('item_videos', 'none'); showtranscript('item_recomendation', 'none'); // showtranscript('item_email_friend', 'none'); return true; } function CheckPageSearch() { if (document.PageSearchForm.pos_items.value) { pos_items = document.PageSearchForm.pos_items.value; for (i = 0; i < pos_items.length; i++) { achar = pos_items.charAt(i); if ((parseInt(achar, 10) >= 0) && (parseInt(achar, 10) <= 9)) { continue; } else { alert('Please enter a valid page number'); document.PageSearchForm.pos_items.focus(); return false; } } } else { alert('Please enter a page number!'); document.PageSearchForm.pos_items.focus(); return false; } return true; } function ShowFAQ(id) { if(document.getElementById(id).style.display!='block'){ document.getElementById(id).style.display = "block"; }else{ document.getElementById(id).style.display = "none"; } } function ShowHW(id) { document.getElementById("hw1").style.display = "none"; document.getElementById("hw2").style.display = "none"; document.getElementById("hw3").style.display = "none"; document.getElementById("hw4").style.display = "none"; document.getElementById(id).style.display = "block"; ShowPasso(id); } function ShowPasso(id) { if (id == "hw1") { content = ""; } else if (id == "hw2") { content = ""; } else if (id == "hw3") { content = ""; } else if (id == "hw4") { content = ""; } if (navigator.appName == 'Netscape'){ document.getElementById('passo').innerHTML=content; } else { document.all.passo.innerHTML=content; } } function CheckTellFriend(frm) { var prefix0 = 'get_'; var input_array = new Array('email','friend_email','subject','message'); var error_array = new Array('My Email','Friend Email','Subject','Message'); for (var i=0; i -1)&&(adresse.length >2)&&(point > 1)) { } else { alert('Please use the valid email address!'); frm.get_email.focus(); return false; } adresse = frm.get_friend_email.value; var place = adresse.indexOf("@",1); var point = adresse.indexOf(".",place+1); if ((place > -1)&&(adresse.length >2)&&(point > 1)) { } else { alert('Please use the valid email address!'); frm.get_friend_email.focus(); return false; } return true; } function IsNumeric(sNumber) { // Checks that a number is numeric if (sNumber.length == 0) return false; for (x = 0; x < sNumber.length; x++) { if(isNaN(sNumber.charAt(x))){ return false; break; } } return true; } function checknumber(nObj , sLength, sName, sAlert){ sNumber = nObj.value; if(!IsNumeric(sNumber)){ if(sName) alert('Please enter the numerical value only please!'); else alert(sAlert); nObj.focus(); return false; } if(sNumber.length > sLength){ if(sName) alert('There are more singles than it is necessary!'); else alert(sAlert); nObj.focus(); return false; } if(sNumber.length < sLength){ if(sName) alert('There are less singles than it is necessary!'); else alert(sAlert); nObj.focus(); return false; } return true; } function autotab(current,to){ check_length(current); if (current.getAttribute && current.value.length==current.getAttribute("maxlength")) { to.focus() } } function check_length(nObj, sLength, is_message) { // Checks that a number is numeric sNumber = nObj.value; if(sNumber.length == 0) return false; if(IsNumeric(sNumber)){ if((sNumber.length < sLength) && sLength ){ alert('There are less singles than it is necessary!'); nObj.focus(); return false; } if((sNumber.length > sLength) && sLength ){ next_nObj.focus(); nObj.value = old_postal; alert('There are more singles than it is necessary!'); nObj.focus(); nObj.value = old_postal; return false; } } /* else{ alert('Please enter the numerical value only please!'); nObj.value = old_postal; nObj.focus(); return false; } */ old_postal = sNumber; return true; } function disable(checked, id, package_item_count){ if(checked == 'damage_items'){ checked2 = 'return_items'; }else{ checked2 = 'damage_items'; } count_ = 0; if(document.getElementById(checked+id) && document.getElementById(checked+id).checked){ if(checked == 'return_items'){ for (i = 0; i < document.wish_list.elements.length; i++) { var item = document.wish_list.elements[i]; if (item.name.indexOf('return_items') == 0 && item.checked && item.value != id){ count_= count_+ 1; } } } if(document.getElementById(checked2+id) && !count_){ document.getElementById(checked2+id).checked = false; document.getElementById(checked2+id).disabled = 'disabled'; }else{ if(count_ >= package_item_count){ alert("You can return only "+package_item_count+" items by Fast Return!"); document.getElementById(checked+id).checked = false; } } }else{ if(document.getElementById(checked2+id)) document.getElementById(checked2+id).disabled = ''; count_ = 0; for (i = 0; i < document.wish_list.elements.length; i++) { var item = document.wish_list.elements[i]; if (item.name.indexOf('wish_id') == 0 && item.checked){ count_= count_+ 1; if (count_ > package_item_count) { item.checked = ''; count_= count_- 1; } } } } } /* function disable(checked, id, package_item_count){ if(checked == 'damage_items'){ checked2 = 'return_items'; }else{ checked2 = 'damage_items'; } if(document.getElementById(checked+id).checked){ document.getElementById(checked2+id).disabled = 'disabled'; document.wish_list.all_wish_count.value = eval(document.wish_list.all_wish_count.value) - 1; }else{ document.getElementById(checked2+id).disabled = ''; document.wish_list.all_wish_count.value = eval(document.wish_list.all_wish_count.value) + 1; all_wish_count = document.wish_list.all_wish_count.value; count_ = 0; for (i = 0; i < document.wish_list.elements.length; i++) { var item = document.wish_list.elements[i]; if (item.name.indexOf('wish_id') == 0 && item.checked){ count_= count_+ 1; if (count_ > (package_item_count - all_wish_count)) { item.checked = ''; count_= count_- 1; } } } } return true; } */ function select_check(obj, package_item_count){ all_wish_count = document.wish_list.all_wish_count.value; count_ = 0; for (i = 0; i < document.wish_list.elements.length; i++) { var item = document.wish_list.elements[i]; if (item.name.indexOf('wish_id') == 0 && item.checked) { count_= count_+ 1; }; /* if ((item.name.indexOf('damage_items') == 0 || item.name.indexOf('return_items') == 0) && (item.checked) && !item.disabled) { count_= count_- 1; }; */ } if(obj.checked){ if(eval(all_wish_count) + count_ > package_item_count){ alert('Thats your limit - please read your rental plan conditions if you have any queries'); return false; }else{ return true; } } return true; } function check_field_type(nObj, type){ sNumber = nObj.value; if(sNumber.length == 0){ nObj.old_digit = sNumber; return false; } if(type == "integer"){ if(!IsNumeric(sNumber)){ alert('Please enter the numerical value only please!'); nObj.value = (isNaN(nObj.old_digit))?"":nObj.old_digit; return false; } } if(type == "digital"){ if(isNaN(sNumber)){ alert('Please enter the numerical value only please!'); nObj.value = (isNaN(nObj.old_digit))?"":nObj.old_digit; return false; } } nObj.old_digit = sNumber; return true; } function member_message(){ if(document.wish_list && document.wish_list.click_applay.value == 1){ document.wish_list.click_applay.value = 0; alert('Your list successfully updated!'); } } function checkCCInfo(name) { Form = eval('document.'+name); if(!Form.trnCardOwner) return true; if (!Form.trnCardOwner.value) { alert("Please enter Card Owner!"); Form.trnCardOwner.focus(); return false; } if (!Form.trnCardType.value) { alert("Please enter Card Type!"); Form.trnCardType.focus(); return false; } if (!Form.trnCardNumber.value) { alert("Please enter Card #!"); Form.trnCardNumber.focus(); return false; } if (!Form.trnExpMonth.value) { alert("Please enter Card Expire Date!"); Form.trnExpMonth.focus(); return false; } if (!Form.trnExpYear.value) { alert("Please enter Card Expire Date!"); Form.trnExpYear.focus(); return false; } if (!Form.trnCardCvd.value) { alert("Please enter Verification Code!"); Form.trnCardCvd.focus(); return false; } if (PositiveInteger(Form.trnCardNumber) == true) { /* if (CreditModCheck(Form.trnCardNumber) == false) { alert("Wrong Card Number!"); return false; } */ }else{ return false; } if(document.getElementById('continue')){ document.getElementById('continue').style.visibility = 'hidden'; } return true; } function checkCCInfo_Form() { if (!document.ccform.get_trnCardOwner.value) { alert("Please enter Card Owner!"); document.ccform.get_trnCardOwner.focus(); return false; } if (!document.ccform.get_trnCardType.value) { alert("Please enter Card Type!"); document.ccform.get_trnCardType.focus(); return false; } if (!document.ccform.get_trnCardNumber.value) { alert("Please enter Card #!"); document.ccform.get_trnCardNumber.focus(); return false; } if (!document.ccform.get_trnExpMonth.value) { alert("Please enter Card Expire Date!"); document.ccform.get_trnExpMonth.focus(); return false; } if (!document.ccform.get_trnExpYear.value) { alert("Please enter Card Expire Date!"); document.ccform.get_trnExpYear.focus(); return false; } if (!document.ccform.get_trnCardCvd.value) { alert("Please enter Verification Code!"); document.ccform.get_trnCardCvd.focus(); return false; } if (PositiveInteger(document.ccform.get_trnCardNumber) == true) { /* if (CreditModCheck(document.ccform.get_trnCardNumber) == false) { alert("Wrong Card Number!"); return false; } */ }else{ return false; } return true; } function check_postal(){ if(arguments[0]) ship = 'shipping_'; else ship =''; if(!check_length(eval('document.UserForm.get_'+ship+'postal_code1'), 4, '')) return false; if(!check_length(eval('document.UserForm.get_'+ship+'postal_code2'), 3, '')) return false; return true; }