pressed = ""; zipsubmit = 0; function editfollowup_popup( url ) { window.open( url, "Info", 'width=400,height=100,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=no'); } function helptext_popup( htid ) { window.open( "helptext.php?htid=" + htid, "Helptext", 'width=660,height=400,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=no'); } function helppic_popup( img ) { window.open( img, "Helppic", 'width=300,height=200,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no'); } function name_check( f ) { // Validate form if ( f.company_name.value == "" ) { alert( "Du må angi et navn på selskapet!" ); return false; } if ( f.conditions.checked == false ) { alert( "Avtalevilkårene må godkjennes!" ); return false; } } function name_check_uk( f ) { // Validate form if ( f.company_name.value == "" ) { alert( "The company needs a name!" ); return false; } if ( f.conditions.checked == false ) { alert( "The agreement needs to be verified!" ); return false; } } function ukcompany_address_check( f ) { _enter_check( f ); } function ukcompany_member_check( f ) { if ( f.company_member_nr.value == "" || f.company_member_nr.value == " " ) { alert( "You need to enter in the member id!" ); return false; } _enter_check( f ); } function ukcompany_member_birth( f ) { if ( f.company_member_birthday.value == "" || f.company_member_birthmonth.value == "" || f.company_member_birthyear == "" ) { alert( "You need the set the person's date of birth!" ); return false; } _enter_check( f ); } function ukcompany_stock_check( f ) { _enter_check( f ); } function ukcompany_auth_check( f ) { _enter_check( f ); } function nocompany_address_check( f ) { _enter_check( f ); } function nocompany_member_check( f ) { if ( f.company_member_nr.value == "" ) { alert( "Du må angi nr på person/selskap!" ); return false; } _enter_check( f ); } function _enter_check( f ) { // alert( "enter!" ); // If back button is pressed reg_back_button = /^\