Tilauslomake Tilaajan tiedot Nimi Lähiosoite Postitoimipaikka Postinumero Puhelinnumero Sähköpostiosoite Tilattavat tuotteet Valitse tilattavat tuotteet KOTONA KEHOSSA – LÄSNÄ LIIKKEESSÄ 25€+postitus Milton Trager, Injured Gymnas 10€+postitus Devia. Working in the Moment 2 20€+postitus Brian, Exploring softness 20€+postitus TilaaKiitos tilauksestasi!Lähetämme sinulle maksutiedot sähköpostilla. Please turn on javascript to submit your data. Thank you! function bfCheckMaxlength(id, maxlength, showMaxlength){ if( JQuery("#ff_elem"+id).val().length > maxlength ){ JQuery("#ff_elem"+id).val( JQuery("#ff_elem"+id).val().substring(0, maxlength) ); } if(showMaxlength){ JQuery("#bfMaxLengthCounter"+id).text( "(" + (maxlength - JQuery("#ff_elem"+id).val().length) + " chars left)" ); } } function bfRegisterSummarize(id, connectWith, type, emptyMessage, hideIfEmpty){ bfSummarizers.push( { id : id, connectWith : connectWith, type : type, emptyMessage : emptyMessage, hideIfEmpty : hideIfEmpty } ); } function bfField(name){ var value = ""; switch(ff_getElementByName(name).type){ case "radio": if(JQuery("[name="+ff_getElementByName(name).name+"]:checked").val() != "" && typeof JQuery("[name="+ff_getElementByName(name).name+"]:checked").val() != "undefined"){ value = JQuery("[name="+ff_getElementByName(name).name+"]:checked").val(); if(!isNaN(value)){ value = Number(value); } } break; case "checkbox": case "select-one": case "select-multiple": var nodeList = document["ff_form1"][""+ff_getElementByName(name).name+""]; if(ff_getElementByName(name).type == "checkbox" && typeof nodeList.length == "undefined"){ if(typeof JQuery("[name="+ff_getElementByName(name).name+"]:checked").val() != "undefined"){ value = JQuery("[name="+ff_getElementByName(name).name+"]:checked").val(); if(!isNaN(value)){ value = Number(value); } } } else { var val = ""; for(var j = 0; j < nodeList.length; j++){ if(nodeList[j].checked || nodeList[j].selected){ val += nodeList[j].value + ", "; } } if(val != ""){ value = val.substr(0, val.length - 2); if(!isNaN(value)){ value = Number(value); } } } break; default: if(!isNaN(ff_getElementByName(name).value)){ value = Number(ff_getElementByName(name).value); } else { value = ff_getElementByName(name).value; } } return value; } function populateSummarizers(){ // cleaning first for(var i = 0; i < bfSummarizers.length; i++){ JQuery("#"+bfSummarizers[i].id).parent().css("display", ""); JQuery("#"+bfSummarizers[i].id).html(""+bfSummarizers[i].emptyMessage+""); } for(var i = 0; i < bfSummarizers.length; i++){ var summVal = ""; switch(bfSummarizers[i].type){ case "bfTextfield": case "bfTextarea": case "bfHidden": case "bfCalendar": case "bfFile": if(JQuery("[name=\"ff_nm_"+bfSummarizers[i].connectWith+"[]\"]").val() != ""){ JQuery("#"+bfSummarizers[i].id).text( JQuery("[name=\"ff_nm_"+bfSummarizers[i].connectWith+"[]\"]").val() ).html(); var breakableText = JQuery("#"+bfSummarizers[i].id).html().replace(/\r/g, "").replace(/\n/g, ""); if(breakableText != ""){ var calc = null; eval( "calc = typeof bfFieldCalc"+bfSummarizers[i].id+" != \"undefined\" ? bfFieldCalc"+bfSummarizers[i].id+" : null" ); if(calc){ breakableText = calc(breakableText); } } JQuery("#"+bfSummarizers[i].id).html(breakableText); summVal = breakableText; } break; case "bfRadioGroup": case "bfCheckbox": if(JQuery("[name=\"ff_nm_"+bfSummarizers[i].connectWith+"[]\"]:checked").val() != "" && typeof JQuery("[name=\"ff_nm_"+bfSummarizers[i].connectWith+"[]\"]:checked").val() != "undefined"){ var theText = JQuery("[name=\"ff_nm_"+bfSummarizers[i].connectWith+"[]\"]:checked").val(); if(theText != ""){ var calc = null; eval( "calc = typeof bfFieldCalc"+bfSummarizers[i].id+" != \"undefined\" ? bfFieldCalc"+bfSummarizers[i].id+" : null" ); if(calc){ theText = calc(theText); } } JQuery("#"+bfSummarizers[i].id).text( theText ); summVal = theText; } break; case "bfCheckboxGroup": case "bfSelect": var val = ""; var nodeList = document["ff_form1"]["ff_nm_"+bfSummarizers[i].connectWith+"[]"]; for(var j = 0; j < nodeList.length; j++){ if(nodeList[j].checked || nodeList[j].selected){ val += nodeList[j].value + ", "; } } if(val != ""){ var theText = val.substr(0, val.length - 2); if(theText != ""){ var calc = null; eval( "calc = typeof bfFieldCalc"+bfSummarizers[i].id+" != \"undefined\" ? bfFieldCalc"+bfSummarizers[i].id+" : null" ); if(calc){ theText = calc(theText); } } JQuery("#"+bfSummarizers[i].id).text( theText ); summVal = theText; } break; } if( ( bfSummarizers[i].hideIfEmpty && summVal == "" ) || ( typeof bfDeactivateField != "undefined" && bfDeactivateField["ff_nm_"+bfSummarizers[i].connectWith+"[]"] ) ){ JQuery("#"+bfSummarizers[i].id).parent().css("display", "none"); } } } var bfUseErrorAlerts = false; function bfShowErrors(error){ JQuery(".bfErrorMessage").html(""); JQuery(".bfErrorMessage").css("display","none"); JQuery(".bfErrorMessage").fadeIn(1500); var allErrors = ""; var errors = error.split("\n"); for(var i = 0; i < errors.length; i++){ allErrors += "" + errors[i] + ""; } JQuery(".bfErrorMessage").html(allErrors); JQuery(".bfErrorMessage").css("display",""); if(JQuery.bfvalidationEngine) { JQuery("#ff_form1").bfvalidationEngine({ promptPosition: "bottomLeft", success : false, failure : function() {} }); for(var i = 0; i < inlineErrorElements.length; i++) { if(inlineErrorElements[i][1] != "") { var prompt = null; if(inlineErrorElements[i][0] == "bfCaptchaEntry"){ prompt = JQuery.bfvalidationEngine.buildPrompt("#bfCaptchaEntry",inlineErrorElements[i][1],"error"); } else if(inlineErrorElements[i][0] == "bfReCaptchaEntry"){ // nothing here yet for recaptcha, alert is default alert(inlineErrorElements[i][1]); } else if(typeof JQuery("#flashUpload"+inlineErrorElements[i][0]).get(0) != "undefined") { prompt = JQuery.bfvalidationEngine.buildPrompt("#"+JQuery("#flashUpload"+inlineErrorElements[i][0]).val(),inlineErrorElements[i][1],"error"); } else { prompt = JQuery.bfvalidationEngine.buildPrompt("#"+ff_getElementByName(inlineErrorElements[i][0]).id,inlineErrorElements[i][1],"error"); } JQuery(prompt).mouseover( function(){ var inlineError = JQuery(this).attr("class").split(" "); if(inlineError && inlineError.length && inlineError.length == 2){ var result = inlineError[1].split("formError"); if(result && result.length && result.length >= 1){ JQuery.bfvalidationEngine.closePrompt("#"+result[0]); } } } ); } else { if(typeof JQuery("#flashUpload"+inlineErrorElements[i][0]).get(0) != "undefined") { JQuery.bfvalidationEngine.closePrompt("#"+JQuery("#flashUpload"+inlineErrorElements[i][0]).val()); } else { JQuery.bfvalidationEngine.closePrompt("#"+ff_getElementByName(inlineErrorElements[i][0]).id); } } } inlineErrorElements = new Array(); } } var bfElemWrapBg = ""; function bfSetElemWrapBg(){ bfElemWrapBg = JQuery(".bfElemWrap").css("background-color"); } function bfRollover() { JQuery(".ff_elem").focus( function(){ var parent = JQuery(this).parent(); if(parent && parent.attr("class").substr(0, 10) == "bfElemWrap"){ parent.css("background","#ffc"); } else { parent = JQuery(this).parent().parent(); parent.css("background","#ffc"); } parent.addClass("bfRolloverBg"); } ).blur( function(){ var parent = JQuery(this).parent(); if(parent && parent.attr("class").substr(0, 10) == "bfElemWrap"){ parent.css("background",bfElemWrapBg); } else { parent = JQuery(this).parent().parent(); parent.css("background",bfElemWrapBg); } parent.removeClass("bfRolloverBg"); } ); } function bfRollover2() { JQuery(".bfElemWrap").mouseover( function(){ JQuery(this).css("background","#ffc"); JQuery(this).addClass("bfRolloverBg"); } ); JQuery(".bfElemWrap").mouseout( function(){ JQuery(this).css("background",bfElemWrapBg); JQuery(this).removeClass("bfRolloverBg"); } ); } JQuery(document).ready(function() { if(typeof bfFade != "undefined")bfFade(); if(typeof bfSetElemWrapBg != "undefined")bfSetElemWrapBg(); if(typeof bfRollover != "undefined")bfRollover(); if(typeof bfRollover2 != "undefined")bfRollover2(); if(typeof bfRegisterToggleFields != "undefined")bfRegisterToggleFields(); if(typeof bfDeactivateSectionFields != "undefined")bfDeactivateSectionFields(); if(JQuery.bfvalidationEngine) { JQuery.bfvalidationEngineLanguage.newLang(); JQuery(".ff_elem").change( function(){ JQuery.bfvalidationEngine.closePrompt(this); } ); } JQuery(".hasTip").css("color","inherit"); // fixing label text color issue JQuery(".bfTooltip").css("color","inherit"); // fixing label text color issue JQuery("input[type=text]").bind("keypress", function(evt) { if(evt.keyCode == 13) { evt.preventDefault(); } }); });