//-------------------------------------------------------------------------------- function object_preview(obj,ctrl){ var typeid = ctrl.options[ctrl.selectedIndex].value; var value = obj.value; if(value){ switch(typeid){ case "0":{ document.all["t"].src=value; }break; case "1":{ document.f.movie=value; }break; } //end of switch } //end of of(value) } //-------------------------------------------------------------------------------- /* //-- auto maximize window -- */ //-------------------------------------------------------------------------------- //shopping cart functions function ShippingFee(form){ if(form.shippingfee_domestic.disabled==false && form.shippingfee_domestic.value){ alert(form.shippingfee_domestic.options[form.shippingfee_domestic.selectedIndex].text + ' - Php ' + form.shippingfee_domestic.value + '.00'); } else if(form.shippingfee_foreign.disabled==false && form.shippingfee_foreign.value){ alert(form.shippingfee_foreign.options[form.shippingfee_foreign.selectedIndex].text + ' - Php ' + form.shippingfee_foreign.value + '.00'); } } function ValidateShippingForm(form, msg) { if (confirm(msg)){ /* fullname email phone cellphone address shippingloc - radio button shippingfee_domestic shipping_foreign */ if(!form.fullname.value) return feedback(form.fullname,"Please fill in your name."); if(!form.email.value) return feedback(form.email,"Please fill in your e-mail."); if(!form.phone.value) return feedback(form.phone,"Please fill in your phone number."); if(!form.cellphone.value) return feedback(form.cellphone,"Please fill in your mobile number."); if(!form.address.value) return feedback(form.address,"Please fill in your shipping address."); if(!form.shippingfee_domestic.disabled && !form.shippingfee_domestic.value){ alert("Please select your domestic shipping zone based on your shipping address."); return false; } if(!form.shippingfee_foreign.disabled && !form.shippingfee_foreign.value){ alert("Please select your foreign shipping zone based on your shipping address."); return false; } return true; //return (checkHTML(form)); } return false; } //-------------------------------------------------------------------------------- function ShowHide(name){ if (document.getElementById(name).style.visibility=="visible") { document.getElementById(name).style.visibility="hidden"; document.getElementById(name).style.position="absolute"; } else{ document.getElementById(name).style.visibility="visible"; document.getElementById(name).style.position="static"; } } //-------------------------------------------------------------------------------- function bookmark() { window.external.AddFavorite("http://www.imagesphilippines.com.","ImagesPhilippines - EACOMM Corporation") } //-------------------------------------------------------------------------------- //change button color //-------------------------------------------------------------------------------- // Typewrier Text on Status Bars //-------------------------------------------------------------------------------- //trim trailing and leading spaces and multispace inbetweens //-------------------------------------------------------------------------------- //check for invalid filename characters //-------------------------------------------------------------------------------- //Restrict Base Price to numbers //-------------------------------------------------------------------------------- //Integer numbers only //-------------------------------------------------------------------------------- //Format to Decimal //-------------------------------------------------------------------------------- //Change link //-------------------------------------------------------------------------------- //korek to jpg, swf filename //-------------------------------------------------------------------------------- //delete keyword from keywords //NOTE: select options list is zero-based. //-------------------------------------------------------------------------------- // simulate enter key to do other other events instead of form onSubmit //-------------------------------------------------------------------------------- //Validate Form [Required Elements] //-------------------------------------------------------------------------------- //limit search characters without //customized for search //-------------------------------------------------------------------------------- // adminpages validate form //-------------------------------------------------------------------------------- // adminnewprofile validate form //-------------------------------------------------------------------------------- // requestmage.php validate form //-------------------------------------------------------------------------------- // ../aboutus/application.php validate form //-------------------------------------------------------------------------------- //about us/ application --- limit to jpeg and gif attachment only //-------------------------------------------------------------------------------- // ./recommend/index.html //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- //Validate URL for http:// and www //-------------------------------------------------------------------------------- //Validate maximum characters //-------------------------------------------------------------------------------- //Restrict Date to Digits and some characters //-------------------------------------------------------------------------------- //Add Artist/Photographer and Date Taken to Technical Info and Keyword //-------------------------------------------------------------------------------- //Edit Artist/Photographer and Date Taken to Technical Info and Keyword //-------------------------------------------------------------------------------- //Proper Case //-------------------------------------------------------------------------------- //Proper Case2 //-------------------------------------------------------------------------------- //Upper Case //-------------------------------------------------------------------------------- //Add Dot [for M.I.] //--------------------------------------------------------------------------------//================= ADMINPAGE SCRIPTS ============================================ //Validate Email Address //-------------------------------------------------------------------------------- //Initialize Case (For Textarea - include newLine) //-------------------------------------------------------------------------------- //Restrict Phone and Fax to Digits and some characters //-------------------------------------------------------------------------------- //Restrict to Digits and some characters //-------------------------------------------------------------------------------- //requestmage.php //--------------------------------------------------------------------------------//================= ADMINPAGE SCRIPTS ============================================ //Get width/height requestmage.php //-------------------------------------------------------------------------------- /* //----------------- CALENDAR FUNCTIONS ------------------------------------------- //------------- END SCRIPT FOR ADMINPAGE -------------------------------------------