var cats_obj = {}; cats_obj[1000] = 'Arkitekter'; cats_obj[1001] = 'Belegningstein'; cats_obj[1002] = 'Betongsaging'; cats_obj[1003] = 'Blikkenslager'; cats_obj[1004] = 'Brønnboring'; cats_obj[1005] = 'Elektriker'; cats_obj[1006] = 'Etterisolering'; cats_obj[1007] = 'Flislegging'; cats_obj[1008] = 'Fuktutbedring'; cats_obj[1009] = 'Gartner'; cats_obj[1010] = 'Glassarbeid'; cats_obj[1011] = 'Gulvavretting'; cats_obj[1012] = 'Gulvsliping'; cats_obj[1013] = 'Interiørarkitekter'; cats_obj[1014] = 'Lafting'; cats_obj[1015] = 'Landskapsarkitekter'; cats_obj[1016] = 'Låsesmed'; cats_obj[1017] = 'Lekeplass entrepenør'; cats_obj[1018] = 'Maler'; cats_obj[1019] = 'Møbelsnekker / Møbelrestaurering'; cats_obj[1020] = 'Murer'; cats_obj[1021] = 'Restaurering'; cats_obj[1022] = 'Rørlegger / VVS'; cats_obj[1023] = 'Skadedyr'; cats_obj[1024] = 'Snekker / byggmester'; cats_obj[1025] = 'Støpe / betongarbeid'; cats_obj[1026] = 'Takstmenn'; cats_obj[1027] = 'Taktekking'; cats_obj[1028] = 'Termofotografering'; cats_obj[1029] = 'Vaktmester'; cats_obj[1030] = 'Ventilasjon'; cats_obj[1100] = 'Asfalt'; cats_obj[1101] = 'Brannsikring'; cats_obj[1102] = 'Eiendomsforvaltning'; cats_obj[1103] = 'Fjellsikring'; cats_obj[1104] = 'Gassanlegg'; cats_obj[1105] = 'Heis arbeider'; cats_obj[1106] = 'Maskinentreprenører'; cats_obj[1107] = 'Oppmåling'; cats_obj[1108] = 'Prosjektledelse'; cats_obj[1109] = 'Renseanlegg'; cats_obj[1110] = 'Riving / sanering'; cats_obj[1111] = 'Sprengning'; cats_obj[1112] = 'Stillas'; cats_obj[1113] = 'Sveisearbeid'; cats_obj[1114] = 'Utleie av maskiner og utstyr'; cats_obj[1200] = 'Badstuer'; cats_obj[1201] = 'Belysning'; cats_obj[1202] = 'Beslag'; cats_obj[1203] = 'Byggevarer'; cats_obj[1204] = 'Dører og vinduer'; cats_obj[1205] = 'Fliser'; cats_obj[1206] = 'Garasjeporter'; cats_obj[1207] = 'Garasjer'; cats_obj[1208] = 'Garderobeinnredning'; cats_obj[1209] = 'Gulv'; cats_obj[1210] = 'Kjøkken- baderom innredning'; cats_obj[1211] = 'Maling / Fargehandel'; cats_obj[1212] = 'Naturstein'; cats_obj[1213] = 'Ovner og peiser'; cats_obj[1214] = 'Taktekkingsprodukter'; cats_obj[1215] = 'Trapper'; cats_obj[1300] = 'Alarmer'; cats_obj[1301] = 'Eiendomsmegler'; cats_obj[1302] = 'Ferdigplen'; cats_obj[1303] = 'Fjerning av skadedyr'; cats_obj[1304] = 'Gjerder'; cats_obj[1305] = 'Markiser'; cats_obj[1306] = 'Møbler / innredning'; cats_obj[1307] = 'Næring og Boligutleie'; cats_obj[1308] = 'Solskjerming'; cats_obj[1309] = 'Svømmebasseng og massasjebad'; cats_obj[1310] = 'Trefelling'; cats_obj[1311] = 'Varmepumper'; cats_obj[1400] = 'Fasadevask'; cats_obj[1401] = 'Rengjøring bedrift'; cats_obj[1402] = 'Rengjøring privat'; cats_obj[1403] = 'Vaskerier'; cats_obj[1404] = 'Vinduspuss'; cats_obj[1500] = 'Butikkdata'; cats_obj[1501] = 'Database / Internett programmering'; cats_obj[1502] = 'Datasikkerhet'; cats_obj[1503] = 'Hardware - data, telefon, TV'; cats_obj[1504] = 'IT-support'; cats_obj[1505] = 'Programvare'; cats_obj[1506] = 'Webdesign / hjemmeside'; cats_obj[1600] = 'Advokater'; cats_obj[1601] = 'Bedriftsrådgivning'; cats_obj[1602] = 'Inkasso'; cats_obj[1603] = 'Regnskapsfører'; cats_obj[1604] = 'Revisor'; cats_obj[1700] = 'Forsikring'; cats_obj[1800] = 'Arbeidsformidling'; cats_obj[1801] = 'Rekruttering'; cats_obj[1802] = 'Vikarbyrå'; cats_obj[1900] = 'Budtjenester'; cats_obj[1901] = 'Containerutleie'; cats_obj[1902] = 'Flyttebyrå'; cats_obj[1903] = 'Godstransport'; cats_obj[1904] = 'Person transport'; cats_obj[1905] = 'Snørydding'; cats_obj[2000] = 'Bildekk / Felger'; cats_obj[2001] = 'Bildeler'; cats_obj[2002] = 'Bilforhandlere'; cats_obj[2003] = 'Bilglass'; cats_obj[2004] = 'Billakkering'; cats_obj[2005] = 'Bilopphogging'; cats_obj[2006] = 'Biloppretting'; cats_obj[2007] = 'Bilpleie'; cats_obj[2008] = 'Biltaksering'; cats_obj[2009] = 'Bilutleie'; cats_obj[2010] = 'Bilutstyr'; cats_obj[2011] = 'Bilverksted'; cats_obj[2100] = 'Båtopplag'; cats_obj[2101] = 'Båtpleie'; cats_obj[2102] = 'Båtutleie'; cats_obj[2103] = 'Båtutstyr'; cats_obj[2200] = 'Aktivitetsarrangører'; cats_obj[2201] = 'Campingplasser'; cats_obj[2202] = 'Catering Selskapsmat'; cats_obj[2203] = 'Event- og arrangement'; cats_obj[2204] = 'Hotell'; cats_obj[2205] = 'Konferanselokaler'; cats_obj[2206] = 'Reisebyråer'; cats_obj[2207] = 'Selskapslokaler'; cats_obj[2208] = 'Utleie av arrangementsprodukter'; cats_obj[2300] = 'Callsenter'; cats_obj[2301] = 'Firmagaver'; cats_obj[2302] = 'Grafisk'; cats_obj[2303] = 'Markedsundersøkelser'; cats_obj[2304] = 'Reklame'; cats_obj[2305] = 'Reklameartikler'; cats_obj[2306] = 'Reklamebyråer'; cats_obj[2307] = 'Tekstiltrykk Trykkeri'; cats_obj[2400] = 'Ergoterapi'; cats_obj[2401] = 'Fysioterapi'; cats_obj[2402] = 'Kiropraktorer'; cats_obj[2403] = 'Tannleger'; cats_obj[2500] = 'Bakerier'; cats_obj[2501] = 'Blomsterforretninger'; cats_obj[2502] = 'Bunader'; cats_obj[2503] = 'Fotografer'; cats_obj[2504] = 'Frisører'; cats_obj[2505] = 'Gullsmeder'; cats_obj[2506] = 'Oversettere'; cats_obj[2507] = 'Patent'; cats_obj[2508] = 'Sandblåsing'; cats_obj[2509] = 'Urmakere'; cats_obj[2510] = 'Yrkesklær'; $(document).ready( function(){ var helptext_old_text = $('#helpinfo').html(); var helptext_changed = 0; var max_bottom = 600; var timestamp = 0; // Focus on inputfield if error in input format if ( '' != '' ) { $( '#' ).focus(); } var $scrollingDiv = $("#helpinfo"); $(window).scrollTop(0); $(window).scroll(function(){ if ( $('#infobox').length ) { if ( $(window).scrollTop() >= $('#infobox').offset().top && $(window).scrollTop() < max_bottom ) { var offset = $(window).scrollTop() - $('#infobox').offset().top; } else if ( $(window).scrollTop() >= max_bottom ) { var offset = $(window).scrollTop() - $('#infobox').offset().top; if ( offset > max_bottom ) { offset = max_bottom; } } else { var offset = 0; } $scrollingDiv .stop() .animate({"marginTop": offset + "px"}, "slow" ); } }); $('select[name="trade_main"]').change( function (){ var catid_main = this.value; if ( catid_main > 1 && catid_main < 1000 ) { $('select[name="trade_sub"]').html(''); $('select[name="trade_sub"]').slideDown(); $.each( cats_obj, function( catid_sub, catname ) { if ( catid_sub.substr( 0, 2 ) == catid_main ) { $('select[name="trade_sub"]').append( '' ); } }); $('select[name="trade_sub"]').append( '' ); } else if ( this.value <= 1 ) { $('select[name="trade_sub"]').slideUp(); } }); $('select[name="trade"]').change( function (){ if ( this.value > 1 && this.value < 1000 ) { responseinfo( 'Man kan ikke velge en hovedbransjer, velg en underbransje.', 'warning' ); } }); // Finn selskapsnavnet fra orgnr $('input[name="orgnr"]').change( function (){ var orgnr = $('input[name="orgnr"]').val(); $.get('/get_companyname?orgnr='+ orgnr, function( companyname ){ $('input[name="companyname"]').val( companyname ); }); }); // Finn poststed fra postnr $('input[name="zipcode"]').change( function (){ var postnr = $('input[name="zipcode"]').val(); $.get('/get_zipcodeinfo?type=1&postnr='+ postnr, function( place ){ $('input[name="place"]').val( place ); }); }); // Config giftcard input boxes // $("form#form1 input:text").each(function(){ // var input = $(this); // i = input.attr( 'id' ); v = $.trim(input.val()); l = v.length; // if( i.match( /^giftcard_email\d+$/ ) ) { alert( 'dd' ); }; // }); var inputbox = $('input[name="giftcard_email1"]'); var inputboxtext = 'E-post nr 1'; if ( inputbox.val() == '' ) { inputbox.css( 'color', '#a0a0a0' ); inputbox.val( inputboxtext ); } inputbox.focus( function (){ if ( inputbox.val() == inputboxtext ) { inputbox.val(''); inputbox.css( 'color', '#000000' ); } } ); if ( $('input[name="giftcard_email2"]').val() == '' ) { $('input[name="giftcard_email2"]').css( 'color', '#a0a0a0' ); $('input[name="giftcard_email2"]').val('E-post nr 2'); } $('input[name="giftcard_email2"]').focus( function (){ if ( $('input[name="giftcard_email2"]').val() == 'E-post nr 2' ) { $('input[name="giftcard_email2"]').val(''); $('input[name="giftcard_email2"]').css( 'color', '#000000' ); } } ); if ( $('input[name="giftcard_email3"]').val() == '' ) { $('input[name="giftcard_email3"]').css( 'color', '#a0a0a0' ); $('input[name="giftcard_email3"]').val('E-post nr 3'); } $('input[name="giftcard_email3"]').focus( function (){ if ( $('input[name="giftcard_email3"]').val() == 'E-post nr 3' ) { $('input[name="giftcard_email3"]').val(''); $('input[name="giftcard_email3"]').css( 'color', '#000000' ); } } ); // alert( $('#infobox').offset().top ); // alert( $('#infobox').height() ); $('input[name="name"]').mouseover( function (){ change_helptext( 1 ) }); $('input[name="name"]').mouseout( function (){ change_helptext( 0 ) }); $('input[name="address"]').mouseover( function (){ change_helptext( 2 ) }); $('input[name="address"]').mouseout( function (){ change_helptext( 0 ) }); $('input[name="zipcode"]').mouseover( function (){ change_helptext( 3 ) }); $('input[name="zipcode"]').mouseout( function (){ change_helptext( 0 ) }); $('input[name="place"]').mouseover( function (){ change_helptext( 4 ) }); $('input[name="place"]').mouseout( function (){ change_helptext( 0 ) }); $('input[name="phone"]').mouseover( function (){ change_helptext( 5 ) }); $('input[name="phone"]').mouseout( function (){ change_helptext( 0 ) }); $('input[name="email"]').mouseover( function (){ change_helptext( 6 ) }); $('input[name="email"]').mouseout( function (){ change_helptext( 0 ) }); $('select[name="trade_main"]').mouseover( function (){ change_helptext( 10 ) }); $('select[name="trade_main"]').mouseout( function (){ change_helptext( 0 ) }); $('select[name="trade_sub"]').mouseover( function (){ change_helptext( 11 ) }); $('select[name="trade_sub"]').mouseout( function (){ change_helptext( 0 ) }); $('select[name="municipalityid"]').mouseover( function (){ change_helptext( 12 ) }); $('select[name="municipalityid"]').mouseout( function (){ change_helptext( 0 ) }); $('textarea[name="description"]').mouseover( function (){ change_helptext( 13 ) }); $('textarea[name="description"]').mouseout( function (){ change_helptext( 0 ) }); $('select[name="pricerange"]').mouseover( function (){ change_helptext( 14 ) }); $('select[name="pricerange"]').mouseout( function (){ change_helptext( 0 ) }); $('input[name="name"]').focus( function (){ change_helptext( 1 ) }); $('input[name="name"]').blur( function (){ change_helptext( 0 ) }); $('input[name="address"]').focus( function (){ change_helptext( 2 ) }); $('input[name="address"]').blur( function (){ change_helptext( 0 ) }); $('input[name="zipcode"]').focus( function (){ change_helptext( 3 ) }); $('input[name="zipcode"]').blur( function (){ change_helptext( 0 ) }); $('input[name="place"]').focus( function (){ change_helptext( 4 ) }); $('input[name="place"]').blur( function (){ change_helptext( 0 ) }); $('input[name="phone"]').focus( function (){ change_helptext( 5 ) }); $('input[name="phone"]').blur( function (){ change_helptext( 0 ) }); $('input[name="email"]').focus( function (){ change_helptext( 6 ) }); $('input[name="email"]').blur( function (){ change_helptext( 0 ) }); $('select[name="trade_main"]').focus( function (){ change_helptext( 10 ) }); $('select[name="trade_main"]').blur( function (){ change_helptext( 0 ) }); $('select[name="trade_sub"]').focus( function (){ change_helptext( 11 ) }); $('select[name="trade_sub"]').blur( function (){ change_helptext( 0 ) }); $('select[name="municipalityid"]').focus( function (){ change_helptext( 12 ) }); $('select[name="municipalityid"]').blur( function (){ change_helptext( 0 ) }); $('textarea[name="description"]').focus( function (){ change_helptext( 13 ) }); $('textarea[name="description"]').blur( function (){ change_helptext( 0 ) }); $('select[name="pricerange"]').focus( function (){ change_helptext( 14 ) }); $('select[name="pricerange"]').blur( function (){ change_helptext( 0 ) }); //alert( (new Date).getTime() ); function change_helptext( helptext_id ) { var htmltext = helptext_old_text; // Navn* if ( helptext_id == 1 ) { htmltext = 'Navn
Skriv inn fullt navn på den som ønsker tilbudene.'; // Address* } else if ( helptext_id == 2 ) { htmltext = 'Adresse
Skriv inn adressen til den som ønsker tilbudene.'; // Postnr* } else if ( helptext_id == 3 ) { htmltext = 'Postnr
Skriv inn postnummeret der du ønsker bilen levert.'; // Poststed* } else if ( helptext_id == 4 ) { htmltext = 'Poststed
Poststed hentet fra postnummeret. Fylles inn automatisk.'; // Telefonnr* } else if ( helptext_id == 5 ) { htmltext = 'Telefon
Skriv inn et telefonnr, helst mobilnr, som vi kan benytte for å kontakte deg.'; // E-post* } else if ( helptext_id == 6 ) { htmltext = 'E-post
Skriv inn en e-postadresse som vi kan benytte for å kontakte deg. Det er også til denne e-postadressen vi vil sende tilbudene fra leverandørene.'; // Bransje hoved* } else if ( helptext_id == 10 ) { htmltext = 'Hovedbransje
Først velger man hovedbransje, så velger man underbransje.'; // Bransje under* } else if ( helptext_id == 11 ) { htmltext = 'Underbransje
Oppdraget sendes til leverandører i den underbransjen du velger.'; // Kommune* } else if ( helptext_id == 12 ) { htmltext = 'Kommmune
Oppdraget sendes til leverandører som utfører oppdrag i kommunen du velger.'; // Oppdrag* } else if ( helptext_id == 13 ) { htmltext = 'Oppdraget
Beskriv ditt oppdrag. Vær så nøyaktig og kortfattet som mulig!'; // Prisområde* } else if ( helptext_id == 14 ) { htmltext = 'Prisområde
Ditt uforpliktende anslag på hva oppdraget vil koste totalt, eller pr år.'; // Giftcard } else if ( helptext_id == 25 ) { htmltext = 'Gavekort
Legg inn epost-adressen til inntil 3 personer, så setter vi inn 500 kr direkte på kontoen deres!

Det eneste vilkår er at man kjøper en tjeneste av MerLokalt.no

Gavekortene er selvfølgelig gratis for både deg og dine venner!

Du kan ikke gi gavekort til deg selv eller noen i samme husstand.'; } if ( typeof helptext_old_text != 'undefined' ) { if ( helptext_changed == 0 && helptext_old_text.match( /Feil:/ ) ) { var t=setTimeout(function(){ helptext_changed=1 }, 1800 ); } else { $('#helpinfo').html( htmltext ); } } } });