"; }// end if ch_button += "<\/DIV>\n"; return ch_button; }// end function makeCHbutton var ch_class; var ch_cat; var ch_small; var ch_group; function check_clicks(in_r_i){ var in_row_id = in_r_i; //alert('Start check_clicks(in_row_id="'+in_row_id+'")'); if (document.getElementById('WhichSEWP') != undefined){ this_sewp = document.getElementById('WhichSEWP').value; }else{ this_sewp = "s4"; }// end if class_array = []; this_ch = ContractHolders[in_row_id][1]; this_ch_scn = ContractHolders[in_row_id][3]; this_ch_scn = this_ch_scn.replace(/-/g,'_'); my_in_ref = ContractHolders[in_row_id][0]; ch_class = ContractHolders[in_row_id][5]; ch_cat = ContractHolders[in_row_id][6]; ch_small = ContractHolders[in_row_id][7]; ch_group = ContractHolders[in_row_id][11]; if (document.SOCS == undefined){ in_row_id_ref = document.getElementById(my_in_ref); }else{ in_row_id_ref = document.SOCS[this_ch_scn]; }// end if //alert("in_row_id = "+in_row_id+"\nin_row_id_ref.name = "+in_row_id_ref.name); var this_cat = ContractHolders[in_row_id][8]; //alert("this_cat = ("+this_cat+")"); //alert("PASS this_cat("+this_cat+") = nc"); //alert("in_row_id = "+in_row_id+"\nin_row_id_ref.name = "+in_row_id_ref.name); //alert("FAIL this_cat("+this_cat+") != nc"); var status = this_row_unchecked(in_row_id); if(status === false){ //alert("this_row_unchecked status = "+status+" and in_row_id = "+in_row_id+"\n"); check_over_status = check_over_ride(in_row_id); if (check_over_status === true){ same_status = same_ch_click(in_row_id); //alert("same_status = "+same_status+" and in_row_id = "+in_row_id+"\n"); status = multi_click(ch_class, my_in_ref); //alert("multi_click complete, status = "+status+" and ch_class = "+ch_class+"\n"); }// end if }// end if if (document.SOCS == undefined){ setQuoteFields(); }// end if return true; }// end check_clicks //alert('Start (="'++'")'); var button_name_array = ["s4all","sdvosb","s48a","set","A","B", "none"]; function highlight_click(){ //alert('Start highlight_click'); if(document.getElementById('small_button').checked === true){ my_bg_color = '#FBECC8'; }else{ my_bg_color = 'transparent'; }// end if document.getElementById('small_div').style.backgroundColor = my_bg_color; var small_reg = /8|s/g; for (var i in ContractHolders){ var my_id = "ch_div_"; my_id += ContractHolders[i][0]; var my_small = ContractHolders[i][7]; if (small_reg.test(my_small) == true){ //alert('my_id('+my_id+') and getElementById(my_id).style.value('+getElementById(my_id).style.value); //alert('my_id('+my_id+') and document.getElementById(my_id).style.backgroundColor('+document.getElementById(my_id).style.backgroundColor); if (document.getElementById(my_id) != undefined){ document.getElementById(my_id).style.backgroundColor = my_bg_color; }// end if small_reg.lastIndex = 0; }// end if }// end for }// end highlight_click // if (multi_in_row = undefined){ // var multi_in_row = "NA"; // }// end for function multi_click(in_b, multi_in_row){ /* button names = s3all s4all sdvosb s38a s48a set A B */ in_button = in_b; //alert("in_button = "+in_button); //alert('Start multi_click(in_button="'+in_button+'")'); if (document.getElementById('WhichSEWP') != undefined){ this_sewp = document.getElementById('WhichSEWP').value; }else{ this_sewp = "s4"; }// end if var button_reg = /s3all|s4all|sdvosb|s38a|s48a|set|A|B|none/; var other_than_small_button_reg = /s3all|s4all|A|B|none/; var class_reg = /^\d+$/g; var sdvosb_reg = /d/g; var a8a_reg = /8a/g; var small_reg = /8|s/g; var s3_reg = /s3/g; var s4_reg = /s4/g; var do_class_over = false; var check_id = "m4"; if (button_reg.test(in_button) === true){ button_click = true; //alert('button_click = "'+button_click+'"'); }else{ button_click = false; }// end if button_reg.lastIndex = 0; //alert('button_click = "'+button_click+'"'); //alert('1 - in_button = "'+in_button+'"'); //alert('1 - in_button = "'+in_button+'" AND check_id ="'+check_id+'"'); if (s3_reg.test(in_button) === true){ check_id = "m3"; }else if (a8a_reg.test(in_button) === true){ check_id = "m8"; if (s4_reg.test(in_button) === true){ check_id = "m4"; }// end if }else{ check_id = in_button; }// end if a8a_reg.lastIndex = 0; s3_reg.lastIndex = 0; s4_reg.lastIndex = 0; //alert('2 - in_button = "'+in_button+'" AND check_id ="'+check_id+'"'); //alert('before - check_over_status ="'+check_over_status+'"'); if ((check_over_status === "") && (in_button !="none")){ check_over_status = check_over_ride(check_id); }// end if //alert('after - check_over_status ="'+check_over_status+'"'); if ((check_over_status === true) || (in_button =="none")){ //alert('3 - in_button = "'+in_button+'"'); if ((in_button >= 0) && (in_button <= 13)){ var is_class_reg_test = true; }else{ var is_class_reg_test = false; }// end if //alert("is_class_reg_test = "+is_class_reg_test+" -- in_button = ("+in_button+")"); if(is_class_reg_test === true){ class_click = true; }else{ class_click = false; }// end if //alert("class_click = "+class_click); var TorF = true; if (button_click === true){ var this_button = in_button+"_button"; //alert('this document.getElementById(this_button"'+this_button+'").value = '+document.getElementById(this_button).value); //alert('this document.getElementById(this_button"'+this_button+'").checked = '+document.getElementById(this_button).checked); if (document.getElementById(this_button).checked === false){ //alert(this_button+" this_button has been clicked OFF"); TorF = false; var other_than_small_test_result = 'N'; for (var b in button_name_array){ var other_button_name = button_name_array[b]; if(other_than_small_button_reg.test(other_button_name) === true){ if(document.getElementById(this_button).checked === true){ other_than_small_test_result = 'Y'; }// end if }// end if }// end for document.getElementById('other_than_small').value = other_than_small_test_result; }else if (in_button =="none"){ // Reset button action TorF = false; unClickAllBut(in_button); document.getElementById('other_than_small').value = 'N'; for (var b in button_name_array){ var button = button_name_array[b]; var button_name = button; button_name += "_button"; //alert("array button ="+button+"\n button_name ="+ button_name); var button_ref = document.getElementById(button_name); if(button_ref != undefined){ //alert("button_ref ="+button_ref+"\n button_name ="+ button_name); if (button_ref.checked === true){ button_ref.checked = false; }// end if }// end if }// end for }else{ // actions for any Button clicked ON except reset TorF = true; //alert(this_button+" this_button has been clicked ON"); if(other_than_small_button_reg.test(in_button) === true){ document.getElementById('other_than_small').value = 'Y'; }// end if }// end if //alert('this document.getElementById(this_button"'+this_button+'").value = '+document.getElementById(this_button).value); }// end if var is_other_than_small = document.getElementById('other_than_small').value; other_large_status = large_ch_check(); var counter_i = 1; for (var i in ContractHolders){ var my_id = ContractHolders[i][0]; var my_vend = ContractHolders[i][1]; var my_cat = ContractHolders[i][6]; var my_class = ContractHolders[i][5]; var my_small = ContractHolders[i][7]; var my_sewp = ContractHolders[i][8]; var my_group = ContractHolders[i][11]; // var is_other_than_small = document.getElementById('other_than_small').value; //alert("is_other_than_small("+is_other_than_small+")"); //////////////////////////////////////////////////////// /////////////// CLASS level Click Not a Button if (class_click === true){ // if this click is a large company or it is a large group we set the //if (((ch_group == 'D') || (ch_group == 'A') || (ch_small == 'o')) && (is_other_than_small == 'N')){ if ((ch_group == 'D') || (ch_group == 'A') || (ch_small == 'o')){ document.getElementById('other_than_small').value = 'Y'; is_other_than_small = document.getElementById('other_than_small').value; //alert("this click("+in_button+") is a Large CH and we will set Y for the is_other_than_small("+is_other_than_small+")"); other_large_status = large_ch_check(); if((other_large_status === true) && (is_groupBchked == 'Y')){ // B is the 'sdvosb' group if(document.getElementById(my_id) != undefined){ if( (my_id != multi_in_row) && (is_other_than_small == 'Y') && (my_small == 'o') && (my_group == 'B')) { document.getElementById(my_id).checked = TorF; //alert("677 - CH "+document.getElementById(my_id).value+" should NOT be checked"); }// end if }// end if }// end if if ((other_large_status === true) && (is_groupCchked == 'Y')) { // C is the 's48a' group if(document.getElementById(my_id) != undefined){ if( (my_id != multi_in_row) && (is_other_than_small == 'Y') && (my_small == 'o') && (my_group == 'C')) { document.getElementById(my_id).checked = TorF; //alert("686 - CH "+document.getElementById(my_id).value+" should NOT be checked"); }// end if }// end if }// end if }// end if if ((my_class == ch_class) && (ch_class == "0")){ //alert("A -0- my_vend("+my_vend+") -- my_class("+my_class+") -- ch_class("+ch_class+") -- in_button("+in_button+") -- my_cat("+my_cat+") -- ch_cat("+ch_cat+") "); //alert("A --class_click = "+class_click); //alert("my_sewp = "+my_sewp+" and this_sewp = "+this_sewp); //alert("673 - CH "+document.getElementById(my_id).value+"my_small("+my_small+") my_group("+my_group+") my_id("+my_id+") multi_in_row("+multi_in_row+") is_other_than_small("+is_other_than_small+") "); if((my_id != multi_in_row) && (my_small == 'o') && (is_other_than_small == 'N') && ((my_group == 'B') || (my_group == 'C'))) { document.getElementById(my_id).checked = false; //alert("676 - CH "+document.getElementById(my_id).value+" should NOT be checked"); }else{ document.getElementById(my_id).checked = true; }// end if }// end if //alert("681 - my_small("+my_small+") my_group("+my_group+") my_id("+my_id+") multi_in_row("+multi_in_row+") is_other_than_small("+is_other_than_small+") "); // if( (my_id = multi_in_row) && (my_small == 'o') && (is_other_than_small == 'N') && ((my_group == 'B') || (my_group == 'C'))) { // document.getElementById('other_than_small').value = 'Y'; // }// end if if (my_sewp == this_sewp){ //alert("my_sewp = "+my_sewp+" and this_sewp = "+this_sewp); //alert("A -1- my_vend("+my_vend+") -- my_class("+my_class+") -- in_button("+in_button+") -- my_cat("+my_cat+") -- ch_cat("+ch_cat+") "); if ( (my_class == in_button) || ((my_cat == ch_cat) && (ch_cat == "A")) ){ //alert("A -2- my_class = "+my_class+" and in_button = "+in_button); //alert("CH "+document.getElementById(my_id).value+" should get checked now"); if(document.getElementById(my_id) != undefined){ //alert("673 - CH "+document.getElementById(my_id).value+"my_small("+my_small+") my_group("+my_group+") my_id("+my_id+") multi_in_row("+multi_in_row+")"); if((my_id != multi_in_row) && (my_small == 'o') && (is_other_than_small == 'N') && ((my_group == 'B') || (my_group == 'C'))) { document.getElementById(my_id).checked = false; //alert("676 - CH "+document.getElementById(my_id).value+" should NOT be checked"); }else{ document.getElementById(my_id).checked = true; }// end if }// end if }else if ((my_cat == ch_cat) && (ch_cat == "B") && (my_class != "9") && (my_class != "6") && (ch_class != "9") && (ch_class != "6")){ if(document.getElementById(my_id) != undefined){ if( (my_id != multi_in_row) && (my_small == 'o') && (is_other_than_small == 'N') && ((my_group == 'B') || (my_group == 'C'))) { document.getElementById(my_id).checked = false; //alert("687 - CH "+document.getElementById(my_id).value+" should NOT be checked"); }else{ document.getElementById(my_id).checked = true; }// end if }// end if }else{ //alert("B -- my_class = "+my_class+" and in_button = "+in_button); }// end if }// end if //alert("this_sewp = "+this_sewp+" and ContractHolders["+i+"][8] = "+ContractHolders[i][8]+" with ContractHolders[i][5] = "+ContractHolders[i][5]); }else{ //////////////////////////////////////////////////////// /////////////// Button Click Not a CLASS level //alert("B -- class_click = "+class_click); //alert("button("+in_button+") Clicked!"); if ((in_button =="s4all") && (my_sewp == "s4")){ if(document.getElementById(my_id) != undefined){ document.getElementById(my_id).checked = TorF; if(TorF == false){ document.getElementById('other_than_small').value = 'N'; }// end if }// end if }else if ((in_button =="none") && (my_sewp == "s4")){ if(document.getElementById(my_id) != undefined){ document.getElementById(my_id).checked = TorF; }// end if }else if ((in_button =="A") && (my_cat == "A")){ if(document.getElementById(my_id) != undefined){ document.getElementById(my_id).checked = TorF; }// end if }else if ((in_button =="B") && (my_cat == "B") && (my_class != "9") && (my_class != "6")){ if(document.getElementById(my_id) != undefined){ document.getElementById(my_id).checked = TorF; }// end if }else if ((in_button =="s3all") && (my_sewp == "s3")){ if(document.getElementById(my_id) != undefined){ document.getElementById(my_id).checked = TorF; }// end if }else if( (in_button =="sdvosb") && (my_sewp == "s4") && ( (sdvosb_reg.test(my_small) == true) || (my_class == "9")) && (my_class != "5") ){ if(document.getElementById(my_id) != undefined){ if( (my_id != multi_in_row) && (my_small == 'o') && (is_other_than_small == 'N') && ((my_group == 'B') || (my_group == 'C'))) { document.getElementById(my_id).checked = false; //alert("726 - CH "+document.getElementById(my_id).value+" should NOT be checked"); }else{ document.getElementById(my_id).checked = TorF; }// end if }// end if sdvosb_reg.lastIndex = 0; }else if ((in_button =="s38a") && (my_sewp == "s3") && (small_reg.test(my_small) == true)){ if(document.getElementById(my_id) != undefined){ document.getElementById(my_id).checked = TorF; }// end if small_reg.lastIndex = 0; }else if ((in_button =="s48a") && (my_sewp == "s4") && (my_class == "6")){ if(document.getElementById(my_id) != undefined){ if( (my_id != multi_in_row) && (my_small == 'o') && (is_other_than_small == 'N') && ((my_group == 'B') || (my_group == 'C'))) { document.getElementById(my_id).checked = false; //alert("741 - CH "+document.getElementById(my_id).value+" should NOT be checked"); }else{ document.getElementById(my_id).checked = TorF; }// end if }// end if }else if ((in_button =="set") && (my_sewp == "nc")){ if(document.getElementById(my_id) != undefined){ document.getElementById(my_id).checked = TorF; var this_s4_id = my_id; document.getElementById(this_s4_id).checked = TorF; }// end if }else{ // document.getElementById(my_id).checked = false; }// end if //////////////////////////// other_large_status = large_ch_check(); if ((counter_i < 2) || (counter_i > 50)){ //alert(counter_i+" this click("+in_button+") and other_large_status("+other_large_status+") and is_other_than_small("+is_other_than_small+")"); }// end if if (((in_button =="A") || (in_button == 'B')) && (other_large_status == true)){ // document.getElementById('other_than_small').value = 'Y'; // is_other_than_small = document.getElementById('other_than_small').value; //alert("this click("+in_button+") is a Large CH and we will set Y for the is_other_than_small("+is_other_than_small+")"); other_large_status = large_ch_check(); if ((counter_i < 2) || (counter_i > 50)){ //alert(counter_i+" is_groupBchked ("+is_groupBchked+") and is_groupCchked ("+is_groupCchked+")"); }// end if if((other_large_status === true) && (is_groupBchked == 'Y')){ // B is the 'sdvosb' group if(document.getElementById(my_id) != undefined){ if( (my_id != multi_in_row) && (is_other_than_small == 'Y') && (my_small == 'o') && (my_group == 'B')) { document.getElementById(my_id).checked = TorF; }// end if }// end if }// end if if ((other_large_status === true) && (is_groupCchked == 'Y')) { // C is the 's48a' group if(document.getElementById(my_id) != undefined){ if( (my_id != multi_in_row) && (is_other_than_small == 'Y') && (my_small == 'o') && (my_group == 'C')) { document.getElementById(my_id).checked = TorF; }// end if }// end if }// end if }// end if }// end if counter_i++; }// end for other_large_status = large_ch_check(); check_over_status = ""; in_button = ""; button_click = false; if (document.SOCS == undefined){ setQuoteFields(); }// end if return do_class_over; }// end if check_over_status = ""; in_button = ""; button_click = false; if (document.SOCS == undefined){ setQuoteFields(); }// end if }// end multi_click var is_groupBchked = "N"; var is_groupCchked = "N"; function large_ch_check(){ // check all the B and C groups for any checks and check the others //alert("Start of large_ch_check -- "); var small_reg = /d|8|s/g; var is_small = "N"; var is_group = ""; var large_return = false; var other_than_small_testing_value = 'N'; is_groupBchked = "N"; is_groupCchked = "N"; for (var l in ContractHolders){ var my_id = ContractHolders[l][0]; var this_small = 'N'; if (document.getElementById(my_id) != undefined){ this_small = ContractHolders[l][7]; is_group = ContractHolders[l][11]; if (small_reg.test(this_small) == true){ is_small = "Y"; }// end if if (document.getElementById(my_id).checked == true){ //alert("ID ("+my_id+") is clicked"); //alert("this_small ("+this_small+") and is_small ("+is_small+") and is_group ("+is_group+")"); if (this_small == 'o') { other_than_small_testing_value = 'Y'; //alert(" other_than_small_testing_value("+other_than_small_testing_value+")"); }; if ((is_small == "Y") && (is_group == "B") && (is_groupBchked == "N")) { is_groupBchked = "Y"; //alert("is_groupBchked ("+is_groupBchked+")"); }// end if if ((is_small == "Y") && (is_group == "C") && (is_groupCchked == "N")) { is_groupCchked = "Y"; //alert("is_groupCchked ("+is_groupCchked+")"); }// end if }// end if }// end if if ((is_groupBchked == "Y") && (is_groupCchked == "Y") && (other_than_small_testing_value == 'Y')){ break; //alert("is_groupCchked ("+is_groupCchked+") and is_groupBchked ("+is_groupBchked+")"); }// end if }// end for //alert("is_groupBchked ("+is_groupBchked+") and is_groupCchked ("+is_groupCchked+")"); if ((is_groupBchked == "Y") || (is_groupCchked == "Y")){ large_return = true; }// end if document.getElementById('other_than_small').value = other_than_small_testing_value; is_other_than = document.getElementById('other_than_small').value; //alert('this is the value for other_than_small ('+is_other_than+') '); //alert("large_return("+large_return+") and is_groupBchked ("+is_groupBchked+") and is_groupCchked ("+is_groupCchked+")"); return large_return; }// end large_ch_check function same_ch_click(in_row){ //alert("Start of same_ch_click -- in_row = "+in_row); var vend_id = ContractHolders[in_row][1]; var vend_r_id = ContractHolders[in_row][0]; var vend_sewp = ContractHolders[in_row][8]; var vend_ch_class = ContractHolders[in_row][5]; for (var r in ContractHolders){ var v_id = ContractHolders[r][1]; var v_sewp = ContractHolders[r][8]; var v_row = ContractHolders[r][0]; var v_ch_class = ContractHolders[r][5]; if((v_id == vend_id) && (v_sewp == vend_sewp) && (r != in_row)){ //alert("OK --v_row("+v_row+") is getting clicked v_id("+v_id+") == vend_id("+vend_id+") and v_sewp("+v_sewp+") == vend_sewp("+vend_sewp+") and r("+r+") != in_row("+in_row+")"); if (document.getElementById(v_row) != undefined){ document.getElementById(v_row).checked = true; }// end if if(v_ch_class != vend_ch_class){ ch_class = v_ch_class; ch_cat = ContractHolders[r][6]; //alert("OK - go to multi_click- v_row("+v_row+") is getting clicked v_id("+v_id+") == vend_id("+vend_id+") and v_sewp("+v_sewp+") == vend_sewp("+vend_sewp+") and r("+r+") != in_row("+in_row+")-- v_ch_class("+v_ch_class+") should != vend_ch_class("+vend_ch_class+") "); multi_click(v_ch_class, vend_r_id); //alert("return from multi_click"); ch_class = vend_ch_class; ch_cat = ContractHolders[in_row][6]; //check_clicks(r); }// end if }// end if }// end for return true; }// end same_ch_click function this_row_unchecked(in_ri){ var in_row_id = in_ri; //alert('Start this_row_unchecked(in_row_id="'+in_row_id+'")'); var tru_check_id = ContractHolders[in_row_id][0]; var status = true; if (document.getElementById(tru_check_id) != undefined){ if(document.getElementById(tru_check_id).checked === true){ ContractHolders[in_row_id][10] = "Y"; status = false; }// end if }// end if //alert('Is row '+tru_check_id+' unchecked = '+status); return status; }// end this_row_unchecked function check_other_8a(in_r_i_r){ var in_row_id_ref = in_r_i_r; //alert('Start check_other_8a(in_row_id_ref="'+in_row_id_ref+'")'); //alert("check_other_8a -- in_row_id_ref = "+in_row_id_ref+"\n
in_row_id_ref.name = "+in_row_id_ref.name+"\n
in_row_id_ref.id = "+in_row_id_ref.id); var other_reg = new RegExp('s4'); //alert("check_other_8a -- my_row_id_name "+my_row_id_name); var other_row_id_name = String(in_row_id_ref.id); //alert("check_other_8a -- other_row_id_name "+other_row_id_name); //alert("check_other_8a -- in_row_id_ref.name "+in_row_id_ref.id); if (other_reg.test(in_row_id_ref.name) === true){ other_row_id_name = other_row_id_name.replace(other_reg, ""); //alert("check_other_8a -- Yes the in_row_id_ref.name("+in_row_id_ref.name+") has s4\n so other_row_id_name "+other_row_id_name); }else{ other_row_id_name = "s4"+other_row_id_name; //alert("check_other_8a -- No the in_row_id_ref.name("+in_row_id_ref.name+") has No s4\n so other_row_id_name "+other_row_id_name); }// end if other_reg.lastIndex = 0; //alert("check_other_8a -- in_row_id_ref.name = "+in_row_id_ref.name+"\n AND in_row_id_ref.checked ="+in_row_id_ref.checked); //alert("check_other_8a -- other_row_id_name = "+other_row_id_name); if (document.getElementById(other_row_id_name) != undefined){ var other_row_id_ref = document.getElementById(other_row_id_name); //alert("check_other_8a -- other_row_id_ref.name = "+other_row_id_ref.name); other_row_id_ref.checked = in_row_id_ref.checked; }// end if //alert("check_other_8a -- other_row_id_ref.name = "+other_row_id_ref.name+"\n AND other_row_id_ref.checked ="+other_row_id_ref.checked); return true; }// end check_other_8a function check_over_ride(in_r_id){ if((in_r_id === undefined) || (in_r_id === "")){ return false; }// end if var in_row_id = in_r_id; var this_in_id = this_in_id; //alert("START check_over_ride - in_row_id = "+in_row_id); if (button_click === true){ //this_in_sewp = document.getElementById('WhichSEWP').value; this_in_sewp = this_sewp; //alert("button_click = "+button_click+" and this_in_sewp("+this_in_sewp+") will be populated with this_sewp("+this_sewp+")"); var m_reg = /m/i; var s_reg = /s/i; var s3_m_reg = /3/i; var s8_m_reg = /8/i; if (in_row_id == "none"){ this_in_sewp = "s4"; //alert("none test - in_row_id = "+in_row_id); }else if (m_reg.test(in_row_id) === true){ //alert("m_reg test - in_row_id = "+in_row_id); if (s3_m_reg.test(in_row_id) === true){ this_in_sewp = "s3"; }else if (s8_m_reg.test(in_row_id) === true){ this_in_sewp = "nc"; }else{ this_in_sewp = "s4"; }// end if }else if (s_reg.test(in_row_id) === true){ //alert("s_reg test - in_row_id = "+in_row_id); if (s3_m_reg.test(in_row_id) === true){ this_in_sewp = "s3"; }else{ this_in_sewp = "s4"; }// end if }// end if s3_m_reg.lastIndex = 0; s8_m_reg.lastIndex = 0; s_reg.lastIndex = 0; m_reg.lastIndex = 0; if (in_row_id == "none"){ unClickAllBut(in_button); }else{ for (var j in ContractHolders){ //alert("CH ["+j+"][9] = "+ContractHolders[j][9]); this_id = ContractHolders[j][0]; this_ch = ContractHolders[j][1]; //alert("this_id is "+this_id); //alert("this_ch is "+this_ch); if (document.getElementById(this_id) != undefined){ if (document.getElementById(this_id).checked === true){ //alert("found a checked box - CH "+this_ch+" ["+this_id+"]"); if (this_in_sewp != ContractHolders[j][8]){ //alert("check_over_ride -- CH "+this_ch+" ["+this_id+"] - ContractHolders[j][8]-"+ContractHolders[j][8]+" - this_in_sewp-"+this_in_sewp+" - in_row_id["+in_row_id+"]"); this_a = "SEWP "; if (this_in_sewp == "s3"){ this_a += "III Competed"; }else if(this_in_sewp == "s4"){ this_a += "IV Competed"; }else if(this_in_sewp == "nc"){ this_a += "8(a) set aside"; }else{ this_a += "IV Competed"; }// end if this_b = "SEWP "; if (ContractHolders[j][8] == "s3"){ this_b += "III Competed"; }else if(ContractHolders[j][8] == "s4"){ this_b += "IV Competed"; }else if(ContractHolders[j][8] == "nc"){ this_b += "8(a) set aside"; }else{ this_b += "IV Competed"; }// end if // is this s3 or s4 or nc and are any of the others already selected? if so confirm. if ( confirm("You can not include "+ this_a +" and "+ this_b +" Contract Holders(CH)!\nIf you continue all the "+ this_b +" CHs selected will be unselected!")){ //alert('confirm is yes! button_click = "'+button_click+'" and in_button = '+in_button); unClickAllBut(in_button); return true; }else{ //alert("confirm is no! button_click is "+button_click+" and in_row_id = "+in_row_id+" with in_button = "+in_button); var check_box_id = String(in_button); var row_id_ref = document.getElementById(check_box_id); check_box_id += "_button"; row_id_ref.checked = false; return false; }// end if }// end if }else{ }// end if }// end if }// end for }// end if }else{ this_in_sewp = ContractHolders[in_row_id][8]; this_in_id = ContractHolders[in_row_id][0]; //alert("button_click = "+button_click+" and this_in_sewp("+this_in_sewp+") will be populated with ContractHolders[in_row_id][8]-("+ContractHolders[in_row_id][8]+")"); }// end if // this_in_ch = ContractHolders[in_row_id][1]; //alert("this sewp is "+this_in_sewp); var blankReg = /^\s*$/; //alert(" check_over_ride - this_in_id = "+this_in_id); if ((blankReg.test(this_in_sewp) != true) && (blankReg.test(this_in_id) != true)){ if ((document.getElementById(this_in_id) != undefined) && (document.getElementById(this_in_id).checked === true)){ //alert("check_over_ride -new if- document.getElementById(this_in_id)("+document.getElementById(this_in_id)+") != undef -- document.getElementById(this_in_id).checked("+document.getElementById(this_in_id).checked+") is true"); blankReg.lastIndex = 0; for (var j in ContractHolders){ //alert("CH ["+j+"][9] = "+ContractHolders[j][9]); this_id = ContractHolders[j][0]; this_ch = ContractHolders[j][1]; //alert("this_id is "+this_id); //alert("this_ch is "+this_ch); if (document.getElementById(this_id) != undefined){ if (document.getElementById(this_id).checked === true){ //alert("found a checked box - CH "+this_ch+" ["+this_id+"]"); if (this_in_sewp != ContractHolders[j][8]){ //alert("check_over_ride -- CH "+this_ch+" ["+this_id+"] - ContractHolders[j][8]-"+ContractHolders[j][8]+" - this_in_sewp-"+this_in_sewp+" - in_row_id["+in_row_id+"]"); this_a = "SEWP "; if (this_in_sewp == "s3"){ this_a += "III Competed"; }else if(this_in_sewp == "s4"){ this_a += "IV Competed"; }else if(this_in_sewp == "nc"){ this_a += "8(a) set aside"; }else{ this_a += "IV Competed"; }// end if this_b = "SEWP "; if (ContractHolders[j][8] == "s3"){ this_b += "III Competed"; }else if(ContractHolders[j][8] == "s4"){ this_b += "IV Competed"; }else if(ContractHolders[j][8] == "nc"){ this_b += "8(a) set aside"; }else{ this_b += "IV Competed"; }// end if // is this s3 or s4 or nc and are any of the others already selected? if so confirm. if ( confirm("You can not include "+ this_a +" and "+ this_b +" Contract Holders(CH)!\nIf you continue all the "+ this_b +" CHs selected will be unselected!")){ if (button_click === true){ //alert('button_click = "'+button_click+'" and in_button = '+in_button); unClickAllBut(in_button); }else{ //alert('button_click = "'+button_click+'" and in_r_id = '+in_r_id); unClickAllBut(in_r_id); }// end if return true; }else{ if (button_click === true){ //alert("button_click is "+button_click+" and in_row_id = "+in_row_id+" with in_button = "+in_button); var check_box_id = String(in_button); var row_id_ref = document.getElementById(check_box_id); check_box_id += "_button"; row_id_ref.checked = false; }else{ var check_box_id = String(this_in_id); var row_id_ref = document.getElementById(check_box_id); row_id_ref.checked = false; }// end if return false; }// end if }// end if }else{ //alert("CH "+this_ch+" ["+this_id+"] is NOT selected"); }// end if }// end if }// end for }else{ //alert("did not go through the for loop! document.getElementById(this_in_id) is undefined) or (document.getElementById(this_in_id).checked === true) "; }// end if //alert("might have gone through the for loop! blankReg.test(this_in_sewp) != true "+blankReg.test(this_in_sewp)+" && (blankReg.test(this_in_id) != true) "+blankReg.test(this_in_id)); }else{ //alert("did not go through the for loop! blankReg.test(this_in_sewp) != true"+blankReg.test(this_in_sewp)+" && (blankReg.test(this_in_id) != true)"+blankReg.test(this_in_id)); }// end if return true; }// end check_over_ride function unClickAllBut(in_row_i) { var in_row_id = in_row_i; //alert("unClick all but in_row_id ="+in_row_id); for (var row in ContractHolders){ if (row != in_row_id){ var check_box_id = String(ContractHolders[row][0]); //alert("unClick check_box_id ="+check_box_id+"ContractHolders[row][0] = "+ContractHolders[row][0]+"in_row_id = "+in_row_id); if (document.getElementById(check_box_id) != undefined){ var row_id_ref = document.getElementById(check_box_id); row_id_ref.checked = false; }else{ //alert("1st check NOT Un-Clicked: row = "+ row +" CH("+ContractHolders[row][1]+") in_row_id ="+in_row_id); }// end if }else{ //alert("NOT Un-Clicked: row = "+ row +"in_row_id ="+in_row_id); }// end if }// end for var my_comp_code = ""; if(button_click === false){ my_comp_code = ContractHolders[in_row_i][8]; }// end if //alert("my_comp_code ="+my_comp_code+" this_sewp = "+this_sewp); for (var b in button_name_array){ var button = button_name_array[b]; var button_name = button; button_name += "_button"; var button_ref = document.getElementById(button_name); //alert("array button ="+button); if ((button == "set") || (button == "in_row_id")){ }else if (button == "none"){ // unselect all button_ref.checked = false; }else{ if(my_comp_code == "nc"){ button_ref.checked = false; //alert("my_comp_code("+my_comp_code+") - unchecking - button ="+button); }else{ if ((this_sewp == "s3") && ( (button == "s4all") || (button == "sdvosb") || (button == "s48a") || (button == "A") || (button == "B"))){ button_ref.checked = false; //alert("this_sewp("+this_sewp+") - unchecking - button ="+button); }// end if if ((this_sewp == "s4") && ( (button == "none") || (button == "s3all") || (button == "s38a"))){ button_ref.checked = false; //alert("this_sewp("+this_sewp+") - unchecking - button ="+button); }// end if }// end if }// end if }// end for return true; }// end unClickAllBut /* // -------------- Start calendar functions ------------------------------------- */ function today() { /* used in web page form*/ tday = new Date(); mm = tday.getMonth(); dd = tday.getDate(); yy = tday.getFullYear(); mm++; date = mm +"/" +dd+"/" + yy; document.hottopicrequest.startdate.value = date; document.hottopicrequest.enddate.value = date; }// end today function isDatpickerHoliday(indate){ //alert('indate = '+indate); var thisYear = y2k(indate.getYear()); //alert('thisYear = '+thisYear); //myDateReg = new RegExp('^0'); var tDate = indate.getDate(); //alert('tDate = '+tDate); //thisDate = tDate.replace(myDateReg,''); var tMonth = indate.getMonth(); //alert('tMonth = '+tMonth); var thisMonth = tMonth+1; var thisDate = thisMonth+'-'+tDate+'-'+thisYear; var wday = indate.getDay(); for(x in holiday){ //alert('thisDate = '+thisDate+' -vs- holiday = '+holiday[x][0]); if((thisDate == holiday[x][0]) || ((wday === 0) || (wday == 6))){ //alert('Made a Match thisDate = '+thisDate+' -vs- holiday = '+holiday[x][0]); return [false, '']; }// end if }// end for return [true,'']; }// end isDatpickerHoliday function isHoliday(date){ for(x in holiday){ if(date == holiday[x][0]){ return true; }// end if }// end for return false; }// end isHoliday function isWeekend(date){ var dateArray = date.split('-',3); var my_date = new Date(dateArray[2],dateArray[0]-1,dateArray[1]); var wday = my_date.getDay(); if((wday === 0) || (wday == 6)){ return true; }// end if return false; }// end isWeekend function weekendsHolidays(in_days){ var s = (now.getMonth()+1) +'-'+ now.getDate() +'-'+ now.getFullYear(); var count = 0; for(i = 0;i <= in_days;i++){ s = (now.getMonth()+1) +'-'+ (now.getDate()+ i) +'-'+ now.getFullYear(); if(isHoliday(s) || isWeekend(s)){ count++; if(v_days){ in_days++; }// end if }// end if }// end for return count; }// end weekendsHolidays function timeDifference(laterdate,earlierdate) { var difference = laterdate.getTime() - earlierdate.getTime(); var daysDifference = Math.floor(difference/1000/60/60/24); return daysDifference; }// end timeDifference function Contract_Dates(In_Form) { /* used in vendor order search tool set the dates to begin and ending contract dates */ if (In_Form.ALL.checked === true){ In_Form.start_day.value = "01"; In_Form.start_month.value = "05"; In_Form.start_year.value = "2007"; In_Form.end_day.value = "09"; In_Form.end_month.value = "06"; In_Form.end_year.value = "2014"; }else{ In_Form.start_day.value = ""; In_Form.start_month.value = ""; In_Form.start_year.value = ""; In_Form.end_day.value = ""; In_Form.end_month.value = ""; In_Form.end_year.value = ""; }// end if }// end Contract_Dates function padout(number){ return (number < 10) ? '0' + number : number; }// end padout function restart(field) { /* used in the calendar */ if(myForm == "RFQ"){ document.RFQ.reply_date.value = '' + padout(month - 0 + 1) + '-' + padout(day) + '-' + year; }else if (myForm == "RFQ_SEARCH"){ document.RFQ_SEARCH[field].value = '' + padout(month - 0 + 1) + '-' + padout(day) + '-' + year; }else if(myForm == "AddEvent"){ document.AddEvent[field].value = '' + padout(month - 0 + 1) + '-' + padout(day) + '-' + year; if (field == "start_date"){ document.AddEvent.end_date.value = '' + padout(month - 0 + 1) + '-' + padout(day) + '-' + year; } }else if(myForm == "search"){ document.search[field].value = '' + padout(month - 0 + 1) + '-' + padout(day) + '-' + year; if (field == "start_date"){ document.search.end_date.value = '' + padout(month - 0 + 1) + '-' + padout(day) + '-' + year; } }else if(myForm == "edit_form"){ document.edit_form[field].value = '' + padout(month - 0 + 1) + '-' + padout(day) + '-' + year; if (field == "start_date"){ document.edit_form.end_date.value = '' + padout(month - 0 + 1) + '-' + padout(day) + '-' + year; } }else if (myForm == "Property"){ document[myForm][field].value = '' + padout(month - 0 + 1) + '-' + padout(day) + '-' + year; if (field == "leave_date"){ document[myForm].arive_date.value = '' + padout(month - 0 + 1) + '-' + padout(day) + '-' + year; } }else{ document[myForm][field].value = '' + padout(month - 0 + 1) + '-' + padout(day) + '-' + year; if (field == "leave_date"){ document[myForm].arive_date.value = '' + padout(month - 0 + 1) + '-' + padout(day) + '-' + year; } }// end if mywindow.close(); if(myForm == "RFQ"){ validDate(); }// end if }// end restart function calWindow(string, in_form) { /* used for the new pop-up mini calendar */ //alert(string); myReg = new RegExp('calendar.pl'); if(myReg.test(self.location) === true){ var myRegA = new RegExp('ADDENTRY'); var myRegedit = new RegExp('EDIT'); if(myRegA.test(self.location) === true){ myForm = "AddEvent"; }else if(myRegedit.test(self.location) === true){ myForm = "edit_form"; }else{ myForm = "search"; }// end if myRegA.lastIndex = 0; myRegedit.lastIndex = 0; }else{ if ((in_form === undefined) || (in_form.name === "")){ myReg = new RegExp('property'); var myRegR = new RegExp('rfq.pl'); if(myReg.test(self.location) === true){ myForm = "Property"; }else if(myRegR.test(self.location) === true){ var myRegF = new RegExp('RFQ_SEARCH'); if (myRegF.test(document.RFQ_SEARCH.name) === true){ myForm = "RFQ_SEARCH"; //alert("FORM: "+myForm); }else{ myForm = "RFQ"; //alert("FORM: "+myForm); }// end if myRegF.lastIndex = 0; }else{ myForm = "RFQ"; }// end if myRegR.lastIndex = 0; myReg.lastIndex = 0; }else{ myForm = in_form.name; }// end if }// end if myReg.lastIndex = 0; document[myForm].cal_form.value = myForm; var attribs = "alwaysRaised=yes,resizable=no,width=320,height=225"; if (is_nav === true){ attribs = "alwaysRaised=yes,resizable=yes,status=no,width=320,height=225"; }// end if var win_title = (' '+month+' '+year); var this_cal_url = '/addins/cal.shtml'; mywindow = open(this_cal_url,'CALWIN',attribs); mywindow.focus(); if (string !== undefined){ if((myForm != "RFQ") && (string !== "")){ document[myForm].inField.value = string; }// end if }// end if if (mywindow.opener === null){ mywindow.opener = self; }// end if }// end calWindow var timer = ''; // -------------- End calendar functions ------------------------------------- /* // -------------- Start Form Validation functions ------------------------------------- */ function valid_12_mfrs() { var count = 0; var selectElem = document.getElementById('find_MFR'); var selectOptions = selectElem.options; var status; for(var i = 0, max = selectOptions.length; i < max; ++i) { if(selectOptions[i].selected) { if(selectOptions[i].value != 'any'){ count++; }// end if }// end if }// end for if ((count>12) || (count<1)) { // User can select maximum of 2 values from List prompt. alert("You have selected " + count + " Manufactures, MAXIMUM Selection is 12."); status = false; return status; }else { //alert("You have selected " + count + " Manufactures, Selection is limited to 12 or less."); status = true; }// end if return status; }// end function valid_12_mfrs function valid_12_mfrs_descr_only() { var count = 0; var selectElem = document.getElementById('find_MFR'); var selectOptions = selectElem.options; var type_selector = document.getElementById('data_type'); var type_selectOptions = type_selector.options; var status; //alert("type_selectOptions.length ("+type_selectOptions.length+")"); for(var j = 0, max = type_selectOptions.length; j < max; ++j) { if (type_selectOptions[j]){ //alert("type_selectOptions[j].value ("+type_selectOptions[j].value+")"); if (type_selectOptions[j].selected){ //alert("type_selectOptions[j] ("+type_selectOptions[j]+") is selected"); if ((type_selectOptions[j].value == '4') || (type_selectOptions[j].value == '31')){ //alert("type_selectOptions[j].value ("+type_selectOptions[j].value+") is 4 or 31 and selected"); for(var i = 0, max = selectOptions.length; i < max; ++i) { if(selectOptions[i].selected) { if(selectOptions[i].value != 'any'){ count++; }// end if }// end if }// end for if ((count>12) || (count<1)) { // User can select maximum of 2 values from List prompt. alert("You have selected " + count + " Manufactures, MAXIMUM Selection is 12."); status = false; return status; }else { //alert("You have selected " + count + " Manufactures, Selection is limited to 12 or less."); status = true; }// end if }// end if }else { //alert("You have selected " + count + " Manufactures, Selection is limited to 12 or less."); status = true; }// end if }// end if }// end for return status; }// end function valid_12_mfrs_descr_only var i_Chars = "*|,\":<>[]{}`\';()@&$#%"; // edited to allow apostrophies -- var iChars = "*|,\":<>[]{}`\';()&$#% "; var iChars = "*|,\":<>[]{}`\;()&$#% "; var i_phone_Chars = "*|,\":<>[]{}`\';&$#%"; var i_u_Chars = "*|\":<>[]{}`;()&$#%"; var i_d_Chars = "*|\":<>[]{}`;()@&$#%"; function CheckFileExt(filename, field_name){ var FileName = String(filename); var in_field_name = String(field_name); var ExtIndex = FileName.lastIndexOf('.'); ExtIndex++; var FileExt = FileName.slice(ExtIndex); FileExt = FileExt.toLowerCase(); var locationReg = new RegExp('clin',i); if ((locationReg.test(self.location)) || (locationReg.test(in_field_name))) { var BadFileExtListArray = new Array("doc", "xls", "pdf", "html", "htm"); var CLINListText = "CLIN List "; }else{ var BadFileExtListArray = [""]; var CLINListText = ""; }// end if //alert('filename = '+filename+'\n field_name = '+in_field_name+'\n FileName = '+FileName+'\n FileExt = '+FileExt+'\n CLINListText = '+CLINListText+'\n BadFileExtListArray = '+BadFileExtListArray); for(var i in BadFileExtListArray){ var badExt = BadFileExtListArray[i]; if(FileExt !== ""){ if (FileExt == badExt) { alert('We are not accepting '+CLINListText+'files of type('+FileExt+').\n Please select a different file.'); return false; }else{ //alert(CLINListText+'Files of type('+FileExt+') are perfectly acceptable.'); }// end if }// end if }// end for return; }// end CheckFileExt function checkStar(chbx){ /* used in RFQ form web page*/ var chbx_name = chbx.name; //alert('chkbox.name = '+chbx_name+ ' chbx.value = '+chbx.value); //alert('chkbox.name = '+chbx_name+ ' chbx.checked = '+chbx.checked); if((chbx.value == "email") || (chbx.value == "web")){ document.getElementById('emailon').style.visibility = "visible"; document.getElementById('FAXon').style.visibility = "hidden"; }else if(chbx.name == "notifyA"){ if(chbx.checked == true){ document.getElementById('emailon').style.visibility = "visible"; }else{ document.getElementById('emailon').style.visibility = "hidden"; } }else if(chbx.name == "notifyB"){ if(chbx.checked == true){ document.getElementById('modon').style.visibility = "visible"; }else{ document.getElementById('modon').style.visibility = "hidden"; } }else{ document.getElementById('emailon').style.visibility = "visible"; document.getElementById('FAXon').style.visibility = "hidden"; }// end if }// end checkStar function isPhone(string) { // is it a string if (!string){ return false; }// end if slength = string.length; // invalid chars // are there any invalid chars for (var i = 0; i < slength; i++) { if (i_phone_Chars.indexOf(string.charAt(i)) != -1){ return false; }// end if }// end for // edited on 2-4-08 to accept () or . instead of - and also to include ext numbers if (string.search(/^\(*[0-9][0-9][0-9](-|\)|\.)[0-9][0-9][0-9](-|\.)[0-9][0-9][0-9][0-9](.*)$/) != -1) { return true; } else if (string ==="") { return true; } else { return false; }// end if }// end isPhone function isEmail(string) { //alert("testing for isEmail in value = "+string); // is it a string if (!string){ return false; }// end if slength = string.length; // invalid chars // are there any invalid chars for (var i = 0; i < slength; i++) { if (iChars.indexOf(string.charAt(i)) != -1){ return false; }// end if }// end for // is there an @ symbol if (string.search(/@/) == -1) { return false; }// end if // these address are not allowed var at_disallow_index = string.search(/doddpap\.us|dodmda\.us/i); //alert("at_disallow_index = "+at_disallow_index); if (at_disallow_index > 0) { return false; }// end if // is there text after the @ symbol var at_index = string.search(/@/); if (at_index > 0) { var pindex = string.indexOf(".",at_index); var lindex = string.lastIndexOf("."); // is there atleast one "." // is the "." at the end // is there 3 characters after the last "." or ".us" if ((pindex <= (at_index+1)) || (slength <= (pindex+1)) ||((lindex+4) != slength)) { if (string.search(/\.us|\.ws$/) != -1) { return true; }else{ return false; }// end if }// end if }// end if return true; }// end isEmail function isProper(string) { //alert('START isProper string = ('+string+')'); if (!string) { //alert('Not a string = ('+string+')'); return false; }// end if for (var i = 0; i < string.length; i++) { if (i_Chars.indexOf(string.charAt(i)) != -1){ //alert('Found bad char ('+i_Chars.indexOf(string.charAt(i))+') in string = ('+string+')'); return false; }// end if }// end for var space_index = string.search(/ /); //if (((space_index <= 0) || (space_index == string.length)) && (space_index != -1)){ if ((space_index <= 0) || (space_index == string.length)){ if (space_index != -1){ //alert('Found space in string = ('+string+') space_index('+space_index+') string.length('+string.length+')'); return false; }else{ return true; }// end if }// end if return true; }// end isProper function validPhone(phone){ var phoneName = phone.name; var InForm = phone.form.name; var phoneV = phone.value; var status = isPhone(phoneV); if (status === false) { alert(phoneName+' - '+phoneV+' - Not Valid!\n Example: 123-123-1234 or 123-123-1234 x1234'); phone.focus(); return false; }else{ return true; }// end if }// end validPhone function validEmail(email){ var emailName = email.name; var EmailName = ''; var myReg = new RegExp('alt'); if (myReg.test(emailName) === true){ EmailName = 'Secondary Contact E-mail'; }else{ EmailName = 'E-mail'; }// end if myReg.lastIndex = 0; var InForm = email.form.name; var emailV = email.value; var status = isEmail(emailV); if (status === false) { alert(EmailName+' - '+email.value+' - Not Valid!\n Example: YourName@YourAgency.gov'); if (emailName == "alt_email"){ }else{ email.focus(); } return false; }else{ return true; }// end if }// end validEmail function validWholeName(inString) { var InField = inString; var InFieldName = inString.name; var InForm = inString.form.name; var name = inString.value; if (isProper(name) === false) { alert('Full Name - '+name+' - Not Valid!\n Example: FirstName LastName'); document[InForm][InFieldName].focus(); return false; }else{ return true; }// end if }// end validWholeName function validField(inString,inLabel) { var status = true; var InFieldName = inString.name; var InForm = inString.form.name; var string = inString.value; if (!string) { status = false; }// end if if ((inLabel != "Description")&&(inLabel != "Organization Name")) { var myChars = i_d_Chars; if ((InFieldName == "url") || (InFieldName == "manufacturer_name") || (InFieldName == "manufacturer_name_alias")){ myChars = i_u_Chars; }// end if for (var i = 0; i < string.length; i++) { if (myChars.indexOf(string.charAt(i)) != -1){ status = false; }// end if }// end for }// end if if (status === false) { alert('"' + inLabel + '" may not be left blank!\n'); // alert('"' + inLabel + '" may not be left blank!\nAlso NONE of the following characters may be used |:*<>[]{}\`;"()@&$#%'); document[InForm][InFieldName].focus(); return false; }else{ return true; }// end if }// end validField function validateAward(passedForm){ var status = validWholeName(passedForm.f_name); if(status === false){ return false; }// end if var status = validWholeName(passedForm.l_name); if(status === false){ return false; }// end if status = validEmail(passedForm.e_mail); if(status === false){ return false; }// end if }// end of function validateAward function validateForm(passedForm){ var status = validWholeName(passedForm.full_name); if(status === false){ return false; }// end if status = validEmail(passedForm.e_mail); if(status === false){ return false; }// end if status = validField(passedForm.manufacturer_name,"Manufacturer Name"); if(status === false){ return false; }// end if status = validField(passedForm.manufacturer_name_alias,"Manufacturer Name Alias"); if(status === false){ return false; }// end if status = validField(passedForm.url,"MFR URL"); if(status === false){ return false; }// end if status = validField(passedForm.manufacturer_desc,"Description"); if(status === false){ return false; }// end if status = (passedForm.business_type_list.selectedIndex != -1)?true:false; if(status === false){ alert('"Business Type" may not be left blank!'); passedForm.business_type_list.focus(); return false; }// end if if (status === true){ validate_mfr(); }// end if }// end of function validateForm function VerifyThisForm(field){ var formName = field.form.name; if (document[formName].co_form_flag[0].checked === true || document[formName].co_form_flag[1].checked === true){ }else{ alert_text = "This Form Must Be Completed\n"; if (document[formName].co_form_flag[0].checked === false && document[formName].co_form_flag[1].checked === false){ alert_text += "Please select Market Research Quote or Final Quote.\n"; }// end if alert(alert_text); }// end if }// end VerifyThisForm function new_validate(button_value){ /* used in function makeButton */ /* used in web page templates rfi.html, rfq.html, start.html, rfq_view_add.html, rfq_view_edit.html, rfq_view_start.html */ //alert("start new_validate"); var thisForm = "SOCS"; var myReg_exp = new RegExp("rfq.pl"); if ((myReg_exp.test(self.location)) || (button_value == "SEARCH")){ thisForm = "RFQ"; }// end if myReg_exp.lastIndex = 0; //alert("button_value = "+button_value); var ch_checked = false; if ((button_value == "search") || (button_value == "SEARCH")){ for (var r_id in ContractHolders){ if((ContractHolders[r_id][10] == "Y") && (thisForm != "SOCS")){ id = ContractHolders[r_id][0]; //alert("id = "+ id+"r_id = "+ r_id); if (document.getElementById(id) != undefined){ if(document.getElementById(id).checked === true){ ch_checked = true; break; }// end if }// end if }else if(thisForm == "SOCS"){ id = ContractHolders[r_id][0]; //alert("id = "+ id+"r_id = "+ r_id); if (document.getElementById(id) != undefined){ if(document.getElementById(id).checked === true){ ch_checked = true; break; }// end if }// end if }// end if }// end for if (ch_checked === false){ alert("You must select at least one Contract Holder!"); return false; }else{ //alert("button_value = "+button_value); if (button_value == "SEARCH"){ return true; }else{ if (navigator.appVersion.indexOf('Mac') != -1){ }else{ NewWin = new OpenLoadWin(); }//end if document[thisForm].ACTION.value ="SEARCH" ; document[thisForm].action = document.URL ; document[thisForm].submit(); }//end if }//end if }else if (button_value == "rfq"){ if (navigator.appVersion.indexOf('Mac') != -1){ }else{ NewWin = new OpenLoadWin(); }//end if if (thisForm == 'RFQ'){ document[thisForm].action ="/cgi-bin/rfq.pl" ; }else{ document[thisForm].action ="/cgi-bin/socs.pl" ; }// end if document[thisForm].submit(); }else{ if (navigator.appVersion.indexOf('Mac') != -1){ }else{ NewWin = new OpenLoadWin(); }//end if document[thisForm].ACTION.value ="RFQ" ; if (thisForm == 'RFQ'){ document[thisForm].action ="/cgi-bin/rfq.pl" ; }else{ document[thisForm].action ="/cgi-bin/socs.pl" ; }// end if document[thisForm].submit(); }// end if }// end new_validate function Valid(string,TYPE) { /* used in programs zipcode, */ /* used in web page templates rfq_form.html, */ var my_string = String(string.value); if (TYPE == "e-mail") { if (my_string.search(/@/) != -1) { return true; } else if (my_string ==="") { return true; }else { alert('E-mail -'+my_string+'- Not Valid! Example: You@YourCompany.com'); string.focus(); string.select(); return true; }// end if }else if (TYPE == "phone") { if (my_string.search(/^[0-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]$/) != -1) { return true; } else if (my_string ==="") { return true; } else { alert('Phone or Fax # -'+my_string+'- Not Valid! Example: 123-456-7890'); string.focus(); string.select(); return false; }// end if }// end if }// end Valid var e_name = ""; function saveReview(in_form, event, address) { //alert("got to saveReview"); if (is_nav){ e_name = event.currentTarget.name; }else if ((is_ie) || (is_opera)){ e_name = event.srcElement.name; }// end if //alert("event name is "+ e_name); var form_name = in_form.name; //alert('the form name is '+ form_name); in_form.ACTION.value = "REVIEW"; //alert('the form ACTION '+ in_form.ACTION.value); //alert('OK subiting the form now!'); in_form.submit(); if(in_form.attachment_review.value == 'F'){ Nw = window.open(address); Nw.close(); }// end if return true; }// end saveReview function saveClin(in_form,event) { //alert("got to saveClin"); if (is_nav){ e_name = event.currentTarget.name; //alert("is_nav = Y"); }else if ((is_ie) || (is_opera)){ e_name = event.srcElement.name; //alert("is_ie = Y"); }// end if var default_text = "All remarks will be shared with the contacts for this request."; var form_name = in_form.name; var submit_div = "isSubmit"; //alert('default_text = '+ default_text); //alert('the form name is '+ form_name); //alert('the quote_number is '+ in_form.quote_number.value); if ((e_name == "send_info2") || (e_name == "NoBid") || (e_name == "No Quote")){ //alert('the quote_remark is '+ in_form.quote_remark.value +'\nthe no_bid_remark is '+ in_form.no_bid_remark.value); submit_div = "isSubmit2"; if (((in_form.quote_remark.value === "") || (in_form.quote_remark.value == default_text)) && ((in_form.no_bid_remark.value !== "") && (in_form.no_bid_remark.value != default_text))){ in_form.quote_remark.value = in_form.no_bid_remark.value; }// end if }// end if var myCvalue = in_form.clin_file.value; var cStatus = CheckFileExt(myCvalue, 'clin_file'); if(cStatus === false){ changein(submit_div); return false; }// end if for(var i = 1; i < 7; i++){ var elemName = 'quote_file_'; elemName += i; myCvalue = in_form[elemName].value; if (myCvalue !== ""){ cStatus = CheckFileExt(myCvalue); }// end if if(cStatus === false){ changein(submit_div); return false; }// end if }// end for if ((in_form.quote_number.value === "") && (!in_form.no_bid.checked)){ alert_text = "The Quote Number field must be filled in.\n"; alert(alert_text); changein(submit_div); return false; }else if (in_form.isSubmitted.value == "YES"){ alert_text = "This Form has already been submitted. Please wait for it to process. This form may not be re-submitted by using the 'Back' button or after an error\n"; alert(alert_text); changein(submit_div); return false; }else{ //alert('the form ACTION '+ in_form.ACTION.value); if (in_form.ACTION.value === ""){ in_form.ACTION.value = "SAVE"; }// end if //alert('the form ACTION '+ in_form.ACTION.value); in_form.isSubmitted.value = "YES"; if (is_safari){ //changein('files'); changein('isDeleted'); // DivSetVisible('true', 'files'); }// end if if (navigator.appVersion.indexOf('Mac') != -1){ }else{ NewWin = new OpenLoadWin(); }//end if // copy clin_array to clin_text field var clin_text = ""; for (var j in clin_list){ clin_text += j+myDelimiter+clin_list[j][0]+myDelimiter+clin_list[j][1]+myDelimiter+clin_list[j][2]+"\n"; // clin_text += j+myDelimiter+clin_list[j][0]+myDelimiter+clin_list[j][1]+"\n"; }//end for in_form.clin_text.value = clin_text; //alert('OK subiting the form now!'); in_form.submit(); return true; }//end if }// end saveClin function saveQuote(in_form,event) { //alert("got to saveQuote"); if (is_nav){ e_name = event.currentTarget.name; }else if ((is_ie) || (is_opera)){ e_name = event.srcElement.name; }else{ e_name = event.currentTarget.name; }// end if var default_text = "All remarks will be shared with all Contacts for this Request."; var form_name = in_form.name; var attach_count = 0; var submit_div = "isSubmit"; //alert('default_text = '+ default_text); //alert('the form name is '+ form_name); //alert('the e_name is '+ e_name); //alert('the quote_number is '+ in_form.quote_number.value); var isNoBid = document.getElementById('no_bid').value; if ((e_name == "send_info2") || (e_name == "NoBid") || (e_name == "No Quote") || (isNoBid == "YES")){ //alert('the quote_remark is '+ in_form.quote_remark.value +'\nthe no_bid_remark is '+ in_form.no_bid_remark.value); submit_div = "isSubmit2"; if (((in_form.quote_remark.value === "") || (in_form.quote_remark.value == default_text)) && ((in_form.no_bid_remark.value !== "") && (in_form.no_bid_remark.value != default_text))){ in_form.quote_remark.value = in_form.no_bid_remark.value; }// end if }else{ var myValue = in_form.clin_file.value; var cStatus = CheckFileExt(myValue, 'clin_file'); if(cStatus === false){ changein(submit_div); return false; }// end if //alert('Got here and cStatus = '+cStatus); for(var i = 1; i < 7; i++){ var elemName = 'quote_file_'; elemName += i; myValue = in_form[elemName].value; if (myValue !== ""){ cStatus = CheckFileExt(myValue); }else{ attach_count++; }// end if if(cStatus === false){ changein(submit_div); return false; }// end if }// end for //alert('attach_count = '+attach_count); }// end if //alert(' in_form.quote_remark.value = '+in_form.quote_remark.value+'\n default_text = '+default_text); if (in_form.quote_remark.value == default_text){ remarks_status = 0; }else{ remarks_status = 1; }// end if if ((remarks_status == 0) && (attach_count == 6)){ alert_text = "You must have Remarks or Attachments.\n"; alert(alert_text); changein(submit_div); return false; }// end if if ((in_form.quote_number.value === "") && (!in_form.no_bid.checked)){ alert_text = "The Quote Number field must be filled in.\n"; alert(alert_text); changein(submit_div); return false; }else if (in_form.isSubmitted.value == "YES"){ alert_text = "This Form has already been submitted. Please wait for it to process. This form may not be re-submitted by using the 'Back' button or after an error\n"; alert(alert_text); changein(submit_div); return false; }else{ if ((e_name != "send_info2") && ((e_name != "NoBid") || (e_name == "No Quote"))){ //alert('the form ACTION '+ in_form.ACTION.value); if (in_form.ACTION.value === ""){ in_form.ACTION.value = "SAVE"; }// end if //alert('the form ACTION '+ in_form.ACTION.value); in_form.isSubmitted.value = "YES"; if (is_safari){ //alert('is_safari = '+ is_safari); // changein('files'); changein('isDeleted'); // DivSetVisible('true', 'files'); }// end if if (navigator.appVersion.indexOf('Mac') != -1){ }else{ NewWin = new OpenLoadWin(); }//end if // copy clin_array to clin_text field var clin_text = ""; for (var j in clin_list){ clin_text += j+myDelimiter+clin_list[j][0]+myDelimiter+clin_list[j][1]+myDelimiter+clin_list[j][2]+"\n"; // clin_text += j+myDelimiter+clin_list[j][0]+myDelimiter+clin_list[j][1]+"\n"; }//end for in_form.clin_text.value = clin_text; //alert('OK subiting the form now!'); var type_var = "type_"+in_form.RFQ_seq.value; //alert("type_var = "+type_var+"\nin_form[type_var].value = "+in_form[type_var].value); //alert("in_form.clin_file.value = "+in_form.clin_file.value+"\nin_form.clin_text.value = "+in_form.clin_text.value); var blankReg = /^\s*$/; if ((in_form[type_var].value == "RFQ") && (blankReg.test(in_form.clin_file.value) == true) && (blankReg.test(in_form.clin_text.value) == true)){ alert_text = "This is a Request For Quote (RFQ) a CLIN List must be supplied.\n"; alert(alert_text); changein(submit_div); in_form.isSubmitted.value = "No"; return false; }else if ((in_form[type_var].value == "MRR") && (blankReg.test(in_form.clin_file.value) == true) && (blankReg.test(in_form.clin_text.value) == true)){ alert_text = "This is a Market Research Request (MRR) a CLIN List must be supplied.\n"; alert(alert_text); changein(submit_div); in_form.isSubmitted.value = "No"; return false; }// end if }// end if in_form.submit(); return true; }//end if }// end saveQuote function saveCLINform(in_form,event) { //alert("got to saveCLINform"); if (is_nav){ e_name = event.currentTarget.name; }else if ((is_ie) || (is_opera)){ e_name = event.srcElement.name; }// end if var default_text = "All remarks will be shared with the contacts for this request."; var form_name = in_form.name; var submit_div = "isSubmit"; //alert('the form name is '+ form_name); //alert('the quote_number is '+ in_form.quote_number.value); var myValue = in_form.clin_file.value; var cStatus = CheckFileExt(myValue, 'clin_file'); if(cStatus === false){ changein(submit_div); return false; }// end if var blankReg = /^\s*$/; if ((blankReg.test(in_form.vendor_id.value) == true) || (blankReg.test(in_form.sewp_contract_number.value) == true)) { alert_text = "You must select a Contract Holder.\n"; alert(alert_text); changein(submit_div); in_form.isSubmitted.value = "No"; return false; }// end if if ((blankReg.test(in_form.clin_file.value) == true) && (blankReg.test(in_form.clin_text.value) == true)){ alert_text = "You must include a CLIN List file or an On-line list must be supplied.\n"; alert(alert_text); changein(submit_div); in_form.isSubmitted.value = "No"; return false; }// end if if(cStatus === false){ alert('The file type must be txt.'); changein(submit_div); return false; }// end if if (in_form.isSubmitted.value == "YES"){ alert_text = "This Form has already been submitted. Please wait for it to process. This form may not be re-submitted by using the 'Back' button or after an error\n"; //alert_text = "This Form has already been submitted. Please wait for it to process.\n"; alert(alert_text); changein(submit_div); return false; }else{ if (in_form.ACTION.value === ""){ in_form.ACTION.value = "SAVE"; }// end if in_form.isSubmitted.value = "YES"; if (is_safari){ // changein('files'); changein('isDeleted'); // DivSetVisible('true', 'files'); }// end if if (navigator.appVersion.indexOf('Mac') != -1){ }else{ NewWin = new OpenLoadWin(); }//end if // copy clin_array to clin_text field var clin_text = ""; for (var j in clin_list){ clin_text += j+myDelimiter+clin_list[j][0]+myDelimiter+clin_list[j][1]+myDelimiter+clin_list[j][2]+"\n"; // clin_text += j+myDelimiter+clin_list[j][0]+myDelimiter+clin_list[j][1]+"\n"; }//end for in_form.clin_text.value = clin_text; //alert('OK subiting the form now!'); in_form.submit(); return true; }//end if }// end saveCLINform function save_n_send(in_form){ /* used in programs socs, mfr_clin_list, vendor_clin_list, quotes*/ /* used in web page templates rfq_form.html, thanks.html, */ /* Verify the fields are correct */ //alert("in_form = "+in_form); //alert("name of in_form = "+in_form.name); var inForm = in_form.name; if (inForm === ""){ inForm = document.getElementById(in_form); }// end if var vendors_status = new_validate('SEARCH'); if(vendors_status === false){ changein('isSubmit'); return false; }// end if var status = validDate(); var tmpmsg = ""; //alert("status from validDate = "+status); if(status === false){ in_form.reply_date.focus(); changein('isSubmit'); return false; }// end if var isSubmitted = in_form.isSubmitted.value; var message =''; if ((in_form.agency_seq.value == "0") || (in_form.agency_seq.value == undefined)){ tmpmsg = message; message = "Please select Your Agency!\n"; message += tmpmsg; in_form.agency_seq.focus(); }// end if if (in_form.reply_date.value.length === 0){ tmpmsg = message; message = "Please enter a reply date!\n"; message += tmpmsg; in_form.reply_date.focus(); }// end if // if (in_form.preference[0].checked){ // WEB status = validEmail(in_form.email); if(status === false){ in_form.email.focus(); changein('isSubmit'); return false; }// end if if (in_form.l_name.value.length === 0){ tmpmsg = message; message = "Please enter your Last Name!\n"; message += tmpmsg; in_form.l_name.focus(); }// end if if (in_form.f_name.value.length === 0){ tmpmsg = message; message = "Please enter your First Name!\n"; message += tmpmsg; in_form.f_name.focus(); }// end if // check to see if any secondary contact info is filled in if ((in_form.alt_f_name.value.length !== 0) || (in_form.alt_l_name.value.length !== 0) || (in_form.alt_email.value.length !== 0)){ status = validEmail(in_form.alt_email); if(status === false){ changein('alt_contact'); DivSetVisible('true', 'alt_contact'); in_form.alt_email.focus(); changein('isSubmit'); return false; }// end if if (in_form.alt_l_name.value.length === 0){ tmpmsg = message; message = "Please enter a Secondary Contact Last Name!\n"; message += tmpmsg; changein('alt_contact'); DivSetVisible('true', 'alt_contact'); in_form.alt_l_name.focus(); }// end if if ((in_form.alt_agency_seq.value == "0") || (in_form.alt_agency_seq.value == undefined)){ tmpmsg = message; message = "Please select an Agency for the Secondary Contact!\n"; message += tmpmsg; in_form.alt_agency_seq.focus(); }// end if }// end if if ( message.length > '0' ){ alert(message); changein('isSubmit'); return false; }else { for(var i = 1; i < 6; i++){ var elemName = 'attachment_'; elemName += i; var myValue = document.RFQ[elemName].value; var cStatus; if(myValue !== ""){ cStatus = CheckFileExt(myValue); }// end if if(cStatus === false){ changein('isSubmit'); return false; }// end if }// end for if ((document.RFQ.rfq_flag[0].checked === false) && (document.RFQ.rfq_flag[1].checked === false) && (document.RFQ.rfq_flag[2].checked === false)){ alert_text = "This Form Must Be Completed\n"; if ((document.RFQ.rfq_flag[0].checked === false) && (document.RFQ.rfq_flag[1].checked === false) && (document.RFQ.rfq_flag[2].checked === false)){ alert_text += "You must Select Request For Quote or Market Research Request or Request For Information.\n"; }// end if alert(alert_text); changein('isSubmit'); return false; }else{ if (isSubmitted == "YES"){ alert_text = "This Form has already been submitted. Please wait for it to process. This form may not be re-submitted by using the 'Back' button or after an error\n"; // alert_text = "This Form has already been submitted. Please wait for it to process.\n"; alert(alert_text); changein('isSubmit'); return false; }else{ document.RFQ.agency_name.value = document.RFQ.agency_seq.options[document.RFQ.agency_seq.options.selectedIndex].text; if (in_form.ACTION.value === ""){ in_form.ACTION.value = "SAVE_N_SEND"; }// end if in_form.isSubmitted.value = "YES"; if (is_safari){ //alert("you are using Safari!"); // changein('files'); changein('isDeleted'); // DivSetVisible('true', 'files'); }// end if if (navigator.appVersion.indexOf('Mac') != -1){ }else{ NewWin = new OpenLoadWin(); }//end if in_form.submit(); }// end if }// end if }// end if }//end save_n_send function setQuoteFields(){ //alert("starting setQuoteFields"); changeout('quote_form'); DivSetVisible('false', 'quote_form'); for (var ai in ContractHolders){ var this_scn = ContractHolders[ai][3]; this_scn = this_scn.replace(/-/g,'_'); var quote_name = "div_"+this_scn+"_quote_number"; if (document.getElementById(quote_name) != undefined) { document.getElementById(quote_name).style.visibility = "hidden"; document.getElementById(quote_name).style.display = "none"; }// end if }// end for for (var i in ContractHolders){ var this_id = ContractHolders[i][0]; var this_name = ContractHolders[i][1]; var this_group = ContractHolders[i][11]; var this_scn = ContractHolders[i][3]; var this_primary = ContractHolders[i][10]; //alert(" --\n - this_name("+this_name+") this_id("+this_id+") this_group("+this_group+") this_primary("+this_primary+") this_scn("+this_scn+")"); //is primary or not only primaries are quote fields if(this_primary == "Y"){ //alert("CH("+this_id+")("+this_name+") is the primary"); this_scn = this_scn.replace(/-/g,'_'); // var quote_name = this_scn+"_quote_number"; var quote_name = "div_"+this_scn+"_quote_number"; //alert("this_id = "+this_id); //if (document.getElementById(this_id) != undefined){ if ((document.getElementById(quote_name) != undefined) && (document.getElementById(this_id) != undefined)){ if (document.getElementById(this_id).checked == true){ //alert(" set this one -- this_name(this_id) = "+this_name+"("+this_id+") quote_name = "+quote_name); // document.getElementById(quote_name).disabled = (document.getElementById(this_id).checked == true)? false : true; // document.getElementById(quote_name).style.visibility = (document.getElementById(this_id).checked == true)? "visible" : "hidden"; // document.getElementById(quote_name).style.display = (document.getElementById(this_id).checked == true)? "block" : "none"; document.getElementById(quote_name).style.visibility = "visible" ; document.getElementById(quote_name).style.display = "block"; }else{ document.getElementById(quote_name).style.visibility = "hidden"; document.getElementById(quote_name).style.display = "none"; if (document.getElementById(this_id) != undefined){ if (document.getElementById(this_id).checked == true){ //alert(" NEED TO SET THIS ONE -- this_name(this_id) = "+this_name+"("+this_id+") quote_name = "+quote_name); for (var z in ContractHolders){ var z_group = ContractHolders[z][11]; var z_name = ContractHolders[z][1]; var z_scn = ContractHolders[z][3]; z_scn = z_scn.replace(/-/g,'_'); //alert(" inner-else loop --\n - this_name(this_id) = "+this_name+"("+this_id+") this_group("+this_group+")\n - z_name( z_id) = "+z_name+"("+z+") z_group("+z_group+")"); //alert(" inner-else loop -- this_name(this_id) = "+this_name+"("+this_id+") z_name(z_id) = "+z_name+"("+z+")"); if (z_name == this_name){ var z_quote_name = "div_"+z_scn+"_quote_number"; //alert(" inner-else loop -- z_quote_name = "+z_quote_name); if (document.getElementById(z_quote_name) != undefined){ //alert(" else loop - set this one -- this_name(this_id) = "+this_name+"("+this_id+") z_name(z_id) = "+z_name+"("+z+")"); document.getElementById(z_quote_name).style.visibility = "visible" ; document.getElementById(z_quote_name).style.display = "block"; }// end if }// end if }// end for }else{ //alert("CH("+this_id+")("+this_name+") is NOT checked"); }// end if }else{ //alert("CH("+this_id+")("+this_name+") is NOT a valid checkbox"); }// end if }// end if }// end if }else{ //alert("CH("+this_id+")("+this_name+") is NOT set to primary"); if (document.getElementById(this_id) != undefined){ if (document.getElementById(this_id).checked == true){ //alert(" NEED TO SET THIS ONE -- this_name(this_id) = "+this_name+"("+this_id+") quote_name = ("+quote_name+") this_group("+this_group+")"); for (var z in ContractHolders){ var z_group = ContractHolders[z][11]; var z_name = ContractHolders[z][1]; var z_scn = ContractHolders[z][3]; z_scn = z_scn.replace(/-/g,'_'); //alert(" else loop -- this_name(this_id) = "+this_name+"("+this_id+") z_name(z_id) = "+z_name+"("+z+") z_group("+z_group+")"); if (z_name == this_name){ //alert(" Match found in name --\n this_name(this_id) = "+this_name+"("+this_id+") this_group("+this_group+")\n - z_name(z_id) = "+z_name+"("+z+") z_group("+z_group+")"); var z_quote_name = "div_"+z_scn+"_quote_number"; //alert("Is this a valid DIV z_quote_name = "+z_quote_name); if (document.getElementById(z_quote_name) != undefined){ //alert(" Yes it is a valid DIV - set this one -- this_name(this_id) = "+this_name+"("+this_id+") z_name(z_id) = "+z_name+"("+z+")"); document.getElementById(z_quote_name).style.visibility = "visible" ; document.getElementById(z_quote_name).style.display = "block"; }// end if }// end if }// end for }else{ //alert("CH("+this_id+")("+this_name+") is NOT checked"); }// end if }else{ //alert("CH("+this_id+")("+this_name+") is NOT a valid checkbox"); }// end if }// end if }// end for //alert("ending setQuoteFields"); }// end setQuoteFields function check_length(string,length,field){ /* used in vendor_info_edit web pages*/ var my_string = String(string); if (my_string.length > length){ this_text = field+" has exceeded "+length+" characters unless edited it will be truncated when saved"; alert(this_text); }// end if }// end check_length function check4_one_day(day_count){ if (day_count == 1){ var text = "Caution: A one day response time may not provide adequate time for a quote. If possible, please allow for two or more days. If you do not receive responses in the time allotted, please contact SEWP at rfq@sewp.nasa.gov / 301-286-1478 for assistance."; alert(text); }// end if return; }// end function // -------------- End Form Validation functions ------------------------------------- /* // -------------- Start Menu functions ------------------------------------- */ function CI(ix) { changein(ix); }// end CI function changein(id) { /* used in new menu*/ //alert('changein\n id = '+id); //alert('is_ie = '+is_ie); var myShowReg = new RegExp('ALIAS|files_count', 'g'); if (document.layers) { document.layers[id].visibility = "show"; }else if (document.getElementById) { var idName = document.getElementById(id).id; //alert('the id is '+ idName); document.getElementById(id).style.visibility = "visible"; if (myShowReg.test(idName)) { document.getElementById(id).style.display = "inline"; }else{ document.getElementById(id).style.display = "block"; } }else if (document.all && !(document.getElementById)){ var idName = document.all(id).id; //alert('the id is '+ idName); document.all(id).style.visibility = "visible"; if (myShowReg.test(idName)) { document.all(id).style.display = "inline"; }else{ document.all(id).style.display = "block"; } }else { var idName = document.getElementById(id).id; //alert('the id is '+ idName); document.getElementById(id).style.visibility = "visible"; if (myShowReg.test(idName)) { document.getElementById(id).style.display = "inline"; }else{ document.getElementById(id).style.display = "block"; } }// end if var myReg = new RegExp('link|list|menu', 'g'); if((myReg.test(id)) && (id != 'search_menu')){ }// end if myReg.lastIndex = 0; }// end changein function CO(ox) { changeout(ox); }// end CO function changeOut(id) { /* used in new menu*/ var myReg = new RegExp('link|list|menu', 'g'); if((myReg.test(id)) && (id != 'search_menu')){ timeOut(id); }// end if myReg.lastIndex = 0; }// end changeOut function changeout(id) { /* used in new menu*/ //alert('changeout\n id = '+id); if (document.layers) { document.layers[id].visibility = "hide"; }else if (document.getElementById) { document.getElementById(id).style.visibility = "hidden"; document.getElementById(id).style.display = "none"; }else if (document.all && !(document.getElementById)) { document.all(id).style.visibility = "hidden"; document.all(id).style.display = "none"; }else { document.getElementById(id).style.visibility = "hidden"; document.getElementById(id).style.display = "none"; }// end if }// end changeout function timeOut(id) { /* used in new menu*/ my_id = id; if (timerid > 0){ clearTimeout(timerid); } var menu_array = ["button", "linkpage1", "linkpage1A", "linkpage2", "linkpage3", "linkpage3A", "linkpage4", "linkpage5", "linkpage6", "linkpage7", "linkpage8"]; var code = ""; for (var menu in menu_array){ code += "changeout('"+menu_array[menu]+"'); "; }// end for // Wait 1/2 second then close menu timerid = setTimeout(code, 500); }// end timeOut // -------------- End Menu functions ------------------------------------- /* // -------------- Start Misc functions ------------------------------------- */ var open_elem_id = ""; function news_loading(){ var my_url = String(document.location); //alert('my_url = '+my_url); var at_index = my_url.search(/#/); //alert('at_index = '+at_index); var anchor_id = my_url.substr(at_index+1); //alert('anchor_id = '+anchor_id); var elem = document.getElementById(anchor_id); //alert('elem = '+elem); //alert('elem name = '+elem.name); var my_elem_reg = new RegExp("_i"); if(at_index > 0){ if ( elem.parentNode ){ var e_p_id = elem.parentNode.id; //alert('parent id is ('+e_p_id+')'); if (e_p_id.search(/_i/)){ var p_elem = document.getElementById(e_p_id); //alert('p_elem name = '+p_elem.name); if ( p_elem.parentNode ){ var p_e_p_id = p_elem.parentNode.id; //alert('parent id of ('+e_p_id+') is ('+p_e_p_id+')'); if (p_e_p_id.search(/_i/)){ var p_p_elem = document.getElementById(p_e_p_id); //alert('p_p_elem name = '+p_p_elem.name); if ( p_p_elem.parentNode){ var p_p_e_p_id = p_p_elem.parentNode.id; if (p_p_e_p_id != ""){ //alert('parent id of ('+p_e_p_id+') is ('+p_p_e_p_id+')'); new_p_p_e_p_id = p_p_e_p_id.replace(my_elem_reg, ""); //alert('UnHiding new_p_p_e_p_id '+new_p_p_e_p_id); open_elem_id = new_p_p_e_p_id; }// end if }// end if }// end if }// end if }// end if }// end if new_p_e_p_id = p_e_p_id.replace(my_elem_reg, ""); //alert('UnHiding new_p_e_p_id '+new_p_e_p_id); open_elem_id = new_p_e_p_id; newsDisplay(open_elem_id); new_e_p_id = e_p_id.replace(my_elem_reg, ""); //alert('UnHiding new_e_p_id '+new_e_p_id); open_elem_id = new_e_p_id; newsDisplay(open_elem_id); //alert("All DIV tags should be open! Now I'll scroll to the anchor!"); document.getElementById(anchor_id).focus(); }// end if }// end function news_loading function newsDisplay(open) { /* used in News Archive web page*/ //alert('open = '+open+'\n'); // if open starts with "arcyr" and not ends with "h" // hide open and show the open with h and show months for this year var myOpenRegExp = new RegExp('h$'); if (myOpenRegExp.test(open) == false){ //alert('passed into if\n'); hide_sewp(open); var openh = open +'h'; show_sewp(openh); var open_i = open + '_i'; show_sewp(open_i); }else{ //alert('passed into else\n'); hide_sewp(open); var openNo_h = open; openNo_h = openNo_h.replace(/h/g,''); show_sewp(openNo_h); var openNo_h_i = openNo_h + '_i'; hide_sewp(openNo_h_i); }// end if var myDivs = document.getElementsByTagName("DIV"); //var myDivList = "START\n"; var myArcRegExp = new RegExp("^arc"); var divCount= 0; // start of a loop to check through all the divs to see which are open and if there are any to be closed for (var i in myDivs){ // myDiv is the current div from list this is the one we are checking var myDiv = myDivs[i]; var myDivId = myDiv.id; // if the div has arc in it then we will check it if(myArcRegExp.test(myDivId) == true) { // is myDiv visible? if yes continue checking else go to next div if(document.getElementById(myDivId).style.visibility == "visible") { // parent_div is the parent container of myDiv var parent_div = myDiv.parentNode; var p_divId = parent_div.id; // does the open div have a parent div if(open.parentNode){ var open_parent_div = open.parentNode; var o_divId = open_parent_div.id; // o_divId is the parent container of open }// end if divCount++; // create a var to hold the value we need to use for comparing (year) if the div should be closed // OpenNo_h = OpenNo_h.replace(/h/g,''); //remove any h var OpenNo_h = open; // start with a copy of the div sent in OpenNo_h = OpenNo_h.replace(/[a-zA-Z]/g,''); // remove all letters var myTestRegExp = new RegExp(OpenNo_h); //alert("OpenNo_h ("+OpenNo_h+") -- myDiv.id ("+myDiv.id+")\n"); // if the current div from the list does not pass the year test it may get closed if (myTestRegExp.test(myDiv.id) != true){ var myH_IRegExp = new RegExp('(h|i)$'); // if the current div is not the open div or a parent then close it unless it is a div ending in h or i if ((myDiv.id != open) && (myDiv.id != o_divId) && (myDiv.id != p_divId) && (myH_IRegExp.test(myDiv.id) == true)){ //myDivList += "Closing "+divCount+" - NAME = "+myDiv.name+" ID = "+myDivId+" parent ID("+p_divId+")\n"; var myDiv_noH = myDiv.id; myDiv_noH = myDiv_noH.replace(/h|_i/g,''); //remove any h or i //alert("myDiv_noH ("+myDiv_noH+") -- myDiv.id ("+myDiv.id+")\n"); hide_sewp(myDiv.id); show_sewp(myDiv_noH); }// end if }else{ var myYrRegExp = new RegExp("yr"); if (myYrRegExp.test(myDiv.id) != true){ var myH_IRegExp = new RegExp('(h|i)$'); var myMonthId = open; myMonthId = myMonthId.replace(/^arc/g,''); myMonthId = myMonthId.replace(/yr/g,''); myMonthId = myMonthId.replace(/[0-9]/g,''); myMonthId = myMonthId.replace(/h|_i/g,''); var myMonthRegExp = new RegExp(myMonthId); // if the current div is not the open div or a parent then close it unless it is a div ending in h or i //alert("myMonthId ("+myMonthId+") -- open ("+open+") -- p_divId ("+p_divId+") -- myDiv.id ("+myDiv.id+")\n"); //if ((myDiv.id != open) && (myDiv.id != p_divId) && (myH_IRegExp.test(myDiv.id) != true)){ if ((myDiv.id != open) && (myDiv.id != o_divId) && (myDiv.id != p_divId) && (myMonthRegExp.test(myDiv.id) != true)){ //myDivList += "Closing "+divCount+" - NAME = "+myDiv.name+" ID = "+myDivId+" parent ID("+p_divId+")\n"; var myDiv_noH = myDiv.id; myDiv_noH = myDiv_noH.replace(/h|_i/g,''); //remove any h or i //alert("myDiv_noH ("+myDiv_noH+") -- myDiv.id ("+myDiv.id+")\n"); hide_sewp(myDiv.id); show_sewp(myDiv_noH); }// end if }// end if //myDivList += "Opening "+divCount+" - NAME = "+myDiv.name+" ID = "+myDivId+" parent ID("+o_divId+")\n"; }// end if }// end if }// end if }// end for //myDivList += "END"; //alert('This page has the following DIV\'s ('+ myDivs.length +')\n'+myDivList+'\n Total '+myArcRegExp+' divs ('+divCount+')\n'); return; }// end newsDisplay clin_list = []; function addCLIN(clin, price, quantity) { /* used in vendors quote page */ var in_clin = clin.value; var in_price = price.value; var in_quantity = quantity.value; if ((in_clin === "") || (in_clin == undefined) || (in_price === "")){ return false; }else{ //if (in_quantity < 1){in_quantity = 1;} var new_row = [in_clin,in_price,in_quantity]; clin_list.push(new_row); //alert("list from function addCLIN \n"+clin_list.toString()); show_clin_list(); return true; }// end if }// end of addCLIN function OLDaddCLIN(clin, price) { /* used in vendors quote page */ var in_clin = clin.value; var in_price = price.value; if ((in_clin === "") || (in_price === "")){ return false; }else{ var new_row = [in_clin,in_price]; clin_list.push(new_row); //alert("list from function addCLIN \n"+clin_list.toString()); show_clin_list(); return true; }// end if }// end of addCLIN function removeCLIN(item) { /* used in vendors quote page */ clin_list.splice(item,1); show_clin_list(); return true; }// end of removeCLIN function show_clin_list(){ //alert("Got to the function show_clin_list \n"+clin_list.toString()); var clinDivRef = document.getElementById('clin_list'); var myForm = "QUOTE"; var FormRegExp = /clin_check/; if (FormRegExp.test(document.location)){ myForm = "CLIN"; }// end if //alert("myForm = "+myForm); var clin_text = ""; clin_text += ""; }// end if }// end for clin_text += "
CLIN LIST<\/TH><\/TR>"; clin_text += "
CLIN<\/FONT><\/TH>"; clin_text += " Price<\/FONT><\/TH>"; clin_text += " Quantity <\/FONT><\/TH>"; clin_text += "   <\/TH><\/TR>"; for (var i in clin_list){ if (clin_list[i][0] === ""){ }else{ clin_text += "
"; clin_text += clin_list[i][0]; clin_text += "$"; clin_text += clin_list[i][1]; clin_text += " "; clin_text += clin_list[i][2]; clin_text += " "; clin_text += " "; clin_text += "
"; //alert("clin_text \n"+clin_text); clinDivRef.innerHTML = clin_text; // copy clin_array to clin_text field var clin_list_text = ""; for (var j in clin_list){ clin_list_text += j+myDelimiter+clin_list[j][0]+myDelimiter+clin_list[j][1]+myDelimiter+clin_list[j][2]+"\n"; //OLD way clin_list_text += j+myDelimiter+clin_list[j][0]+myDelimiter+clin_list[j][1]+"\n"; }//end for document[myForm].clin_text.value = clin_list_text; return; }// end show_clin_list function changeParentLocation(url,close){ self.opener.location = url; if (close == "no"){ }else{ self.close(); }// end if }// end changeParentLocation function Update_RFQ(Rfq_Seq, Status) { var StatusTxt = Status; if (StatusTxt == "CANCELED"){ StatusTxt = "CANCEL"; } var This_Alert_Text = 'Be aware if you "'+StatusTxt+'" this Request (Seq #:'+Rfq_Seq+')...\n - Notification will be sent to all Contract Holders(CH) affected\n - All unsaved edits will be lost.\n\n If you are sure you wish to "'+StatusTxt+'" this request Click the "Ok" button.\n Click the "Cancel" button to continue editing this Request.'; var confirm_status = confirm(This_Alert_Text); //if(confirm(This_Alert_Text)){ if(confirm_status == true){ //alert("the confirm_status = "+confirm_status); document.RFQ_MENU.RFQ_seq.value = Rfq_Seq; //alert("document.RFQ_MENU.RFQ_seq.value = "+document.RFQ_MENU.RFQ_seq.value); document.RFQ_MENU.ACTION.value = Status; //alert("document.RFQ_MENU.ACTION.value = "+document.RFQ_MENU.ACTION.value); document.RFQ_MENU.action = document.URL ; //alert("document.RFQ_MENU.action = "+document.RFQ_MENU.action+" \n submit is next"); document.RFQ_MENU.submit(); return true; }else{ return; }// end if }// end Update_RFQ function typeAhead(in_elem) { var my_elem = in_elem; // function invoked by select element's onkeydown event handler // limit processing to IE event model supporter; don't trap Ctrl+keys if (window.event && !window.event.ctrlKey) { // timer for current event var this_now = new Date(); // process for an empty accumString or an event within [delay] ms of last if (typeAheadInfo.accumString === "" || this_now - typeAheadInfo.last < typeAheadInfo.delay) { // make shortcut event object reference var evt = window.event; // get reference to the select element if (my_elem != ''){ var selectElem = document.getElementById(my_elem); }else{ var selectElem = evt.srcElement; }// end if // get typed character ASCII value var charCode = evt.keyCode; // get the actual character, converted to uppercase var newChar = String.fromCharCode(charCode).toUpperCase(); // append new character to accumString storage typeAheadInfo.accumString += newChar; // grab all select element option objects as an array var selectOptions = selectElem.options; // prepare local variables for use inside loop var txt, nearest; // look through all options for a match starting with accumString for (var i = 0; i < selectOptions.length; i++) { // convert each item's text to uppercase to facilitate comparison // (use value property if you want match to be for hidden option value) txt = selectOptions[i].text.toUpperCase(); // record nearest lowest index, if applicable nearest = (typeAheadInfo.accumString > txt.substr(0, typeAheadInfo.accumString.length)) ? i : nearest; // process if accumString is at start of option text if (txt.indexOf(typeAheadInfo.accumString) === 0) { // stop any previous timeout timer clearTimeout(typeAheadInfo.timeout); // store current event's time in object typeAheadInfo.last = this_now; // reset typeAhead properties in [delay] ms unless cleared beforehand typeAheadInfo.timeout = setTimeout("typeAheadInfo.reset()", typeAheadInfo.delay); // visibly select the matching item selectElem.selectedIndex = i; // prevent default event actions and propagation evt.cancelBubble = true; evt.returnValue = false; // exit function return false; }// end if }// end for // if a next lowest match exists, select it if (nearest !== null) { selectElem.selectedIndex = nearest; //alert("got here"); }// end if } else { // not a desired event, so clear timeout clearTimeout(typeAheadInfo.timeout); }// end if // reset global object typeAheadInfo.reset(); }// end if return true; }// end typeAhead function colapseData(state, in_div){ //alert("Got to the function show_clin_list \n"+clin_list.toString()); var DivRef = document.getElementById(in_div); var textDivRef = document.getElementById("stats_text"); var empty_text = ""; var true_text = "[-<\/FONT><\/A>] Hide Summary<\/FONT><\/FONT>"; var this_text = ""; if (state == "true") { orig_data_text = DivRef.innerHTML; data_text = empty_text; this_text = true_text; }else{ data_text = orig_data_text; this_text = false_text; }// end if //alert("clin_text \n"+clin_text); DivRef.innerHTML = data_text; textDivRef.innerHTML = this_text; return; }// end colapseData function DivSetVisible(state,inDiv) { var DivRef = document.getElementById(inDiv); var IfrRef = document.getElementById('DivShim'); var myReg = new RegExp('link|list|menu', 'g'); var myReg2 = new RegExp('file', 'g'); var myReg3 = new RegExp('VEND_LIST', 'g'); var myReg4 = new RegExp('clin_list', 'g'); var my_display = "block"; //alert('DivRef = '+DivRef); if (myReg3.test(inDiv)){ //alert('Yes RegTest3 passed'); }else{ var mfrIfrkRef = document.getElementById('menublock'); var mfrDivRef = document.getElementById('mfr'); var mfrAppRef = document.getElementById('MFR_applet'); }// end if myReg3.lastIndex = 0; if (myReg2.test(inDiv)){ my_display = "inline"; }// end if myReg2.lastIndex = 0; //alert(' = '+); if ((is_ie) || (is_opera)){ div_name = DivRef.getAttribute("name"); }else{ }// end if //alert('DivSetVisible\n in-state = '+state + '\n inDiv = '+inDiv+'\n is_ie = '+is_ie+'\n DivRef.name = '+div_name); //IE & Opera //alert('DivSetVisible\n in-state = '+state + '\n inDiv = '+inDiv+'\n is_ie = '+is_ie+'\n DivRef.name = '+DivRef.name); if(state == 'true' && inDiv != 'button') { // state = TRUE //alert("State is TRUE("+state+") and inDiv("+inDiv+") not equal 'button'"); if((myReg.test(inDiv)) && (myReg3.test(inDiv) === false) && (myReg4.test(inDiv) === false)){ if (!is_ie){ mfrIfrkRef.style.zIndex = 600; mfrIfrkRef.style.display = "inline"; mfrIfrkRef.style.backgroundcolor = "#B5D1E8"; }// end if }// end if myReg.lastIndex = 0; myReg3.lastIndex = 0; if(is_opera){ //alert("is_opera("+is_opera+") = yes"); DivRef.style.display = my_display; IfrRef.style.width = DivRef.offsetWidth; IfrRef.style.height = DivRef.offsetHeight; IfrRef.style.top = DivRef.style.top; IfrRef.style.left = DivRef.style.left; IfrRef.style.zIndex = DivRef.style.zIndex - 1; //alert('DivRef.style.zIndex = '+DivRef.style.zIndex+'\n inDiv = '+inDiv); //alert('IfrRef.style.zIndex = '+IfrRef.style.zIndex); IfrRef.style.display = "block"; }else if(DivRef.currentStyle){ // if not IE //alert("DivRef.currentStyle("+DivRef.currentStyle+") = yes so this is not IE but maybe..."); DivRef.style.display = my_display; IfrRef.style.width = DivRef.offsetWidth; IfrRef.style.height = DivRef.offsetHeight; IfrRef.style.top = DivRef.currentStyle.top; IfrRef.style.left = DivRef.currentStyle.left; IfrRef.style.zIndex = DivRef.currentStyle.zIndex - 1; //alert('DivRef.currentStyle.zIndex = '+DivRef.currentStyle.zIndex+'\n DivRef.currentStyle.top = '+DivRef.currentStyle.top+'\n DivRef.currentStyle.left = '+DivRef.currentStyle.left+'\n IfrRef.style.zIndex = '+IfrRef.style.zIndex); IfrRef.style.display = "block"; }else{ //alert("This is IE I think"); DivRef.style.display = my_display; IfrRef.style.width = DivRef.offsetWidth; IfrRef.style.height = DivRef.offsetHeight; IfrRef.style.top = DivRef.style.top; IfrRef.style.left = DivRef.style.left; IfrRef.style.zIndex = DivRef.style.zIndex - 1; //alert('DivRef.style.zIndex = '+DivRef.style.zIndex+'\n inDiv = '+inDiv); //alert('IfrRef.style.zIndex = '+IfrRef.style.zIndex); IfrRef.style.display = "block"; } // end if }else{ // state = FALSE //alert("State is FALSE("+state+")"); if((myReg.test(inDiv)) && (myReg3.test(inDiv) === false) && (myReg4.test(inDiv) === false)){ //alert("got here and myReg = "+myReg+" and test string = "+inDiv); mfrDivRef.style.zIndex += 1; mfrAppRef.focus(); if ((is_ie) || (is_opera)){ mfrAppRef.externalRefresh(); }// end if mfrIfrkRef.style.zIndex = -1; mfrIfrkRef.style.display = "none"; if (is_safari){ //alert("you are using Safari!"); mfrIfrkRef.style.position = "absolute"; mfrIfrkRef.style.left = "-1000px"; }// end if }// end if myReg.lastIndex = 0; myReg3.lastIndex = 0; IfrRef.style.zIndex = -1; IfrRef.style.display = "none"; if (is_safari){ //alert("you are using Safari!"); IfrRef.style.position = "absolute"; IfrRef.style.left = "-1000px"; }else{ DivRef.style.display = "none"; }// end if }// end if } // end function DivSetVisible function blurred() { timer = setTimeout('self.focus()',50); } function focused() { if (timer !== ''){ clearTimeout(timer); } } function emptyPg(text) { return ''+text+'<\/title><\/head><body bgcolor="#ffffff"><\/body><\/html>'; }// end emptyPg function OpenLoadWin(){ var my_test = 'no'; var this_url = ''; if (my_test == 'no'){ }else{ var MyRegExp = new RegExp('rfq', 'g'); if (MyRegExp.test(document.location) === true){ this_url = 'https://'+document.domain; }else{ this_url = 'http://'+document.domain; }// end if MyRegExp.lastIndex = 0; this_url += '/addins/LOADING.html'; //alert("the document.domain = "+document.domain+"\n the URL="+this_url); LOADING = document.open(this_url,"LOADING",'dependent=yes,menubar=no,scrollbars=no,resizable=no,width=350,height=120'); LOADING.focus(); } }// end OpenLoadWin function OpenLoginWin(InType){ if (InType == "EDIT") { SEWP_Log_In = open('https://dev.sewp.nasa.gov/popup/log_in.shtml',"SEWP_Log_In",'dependent=yes,menubar=no,scrollbars=no,resizable=no,width=350,height=150'); }// end if SEWP_Log_In.focus(); }// end OpenLoginWin function newWindow(file,window) { /* used in web page templates mfr_clin_list_info.html, chopclin_output.html, */ var msgWindow = open('',window,'menubar=yes,scrollbars=yes,resizable=yes,width=750,height=500'); msgWindow.location.href = file; if (msgWindow.opener === null){ msgWindow.opener = self; } }// end newWindow function createWindow(In_url,In_name,ht,wt,raised) { /* used in program mfr_admin used for send page to friend*/ var attribs = "scrollbars=yes,resizable=yes,height="+ht+",width="+wt; if (raised == "yes"){ attribs = "scrollbars=yes,resizable=yes,alwaysRaised=yes,height="+ht+",width="+wt; }// end if //alert('In_url = '+In_url+' In_name = '+In_name+' attribs = '+attribs); var myWindow = open(In_url,In_name,attribs); }// end createWindow function OpenInNewWin(page,hth,wth){ Attribs = "menubar=yes,scrollbars=yes,resizable=yes,height="+hth+",width="+wth; window.open(page,'SEWP_Info',Attribs,'alwaysRaised=yes'); }// end OpenInNewWin function OpenChildInNewWin(page,hth,wth){ /* used in Search -n- Quote */ Attribs = "scrollbars=yes,resizable=yes,dependent=yes,height="+hth+",width="+wth; window.open(page,'MyChild',Attribs,'alwaysRaised=yes'); }// end OpenChildInNewWin function go2menu_item(in_URL){ /* used in function build_menu, build_vendor_menu, build_internal_menu */ /* used in program vendorcontacts */ /* used in web page template mfr_clin_list_info.html */ location.href = in_URL; }// end go2menu_item function go2url(){ /* used in web pages s3register.shtml, v2header.shtml */ var linkid=getLastnum(); location.href = ar_action[linkid]; }// end go2url function makeButton() { /* MAY NOT BE USED AT ALL */ var text4button1 = "<INPUT type=\"button\" name=\"rfq\" value=\"Go\" onClick=\"validate('rfq')\">"; document.write(text4button1); }// end makeButton function makeButtonText(type,name,value,clk,in_font) { /* used in web page templates rfi.html, rfq.form.html */ var inclick = String(clk); var text4button = '<button type="' + type; text4button += '" name="' + name; text4button += '" value="' + value; text4button += '" onClick="' + inclick + '">'; text4button += in_font; text4button += value; text4button += '<\/font>'; text4button += '<\/button>'; return text4button; }// end makeButtontext function makeButtonNew(type,name,value,clk) { /* used in web pages s3register.shtml, v2header.shtml, deny.shtml */ /* used in web page templates mfr_clin_list_info.html, printable.html, rfi.html, rfq.html, rfq.form.html, chopclin_output.html, mfr_add.html, mfr_edit.html, mfr_info.html, mfr_start.html, mfr_thanks.html, mfr_admin_start.html, rfq_view_info.html, rfq_view_add.html, rfq_view_edit.html, view_edit.html, */ /* used in programs program_managers, vendorcontacts, mfr, insert_vend_info */ var inclick = String(clk); var text4button = '<INPUT type="' + type; text4button += '" name="' + name; text4button += '" value="' + value; text4button += '" CLASS="button"'; text4button += ' onClick="' + inclick + '">'; document.write(text4button); }// end makeButtonNew function getLastnum(){ /* used in function go2url, banner_switch */ var lastnum = ""; lastnum = document.banners.currentnum.value; return lastnum; }// end getLastnum function printWindow(){ /* used in web page templates printable.html*/ /*"Macintosh"*/ if (navigator.appVersion.indexOf('Mac') != -1){ }else{ bV = parseInt(navigator.appVersion, 0); if (bV >= 4){ window.print(); } }//end if }//end printWindow function expnew(when) { /* used in any web page to provide an expiring "new" image*/ when = new Date(when); date = new Date(); if (when.getTime() > date.getTime()) { document.write("<IMG SRC="+image+" ALT='NEW item within the past 30 days' ALIGN='center' HEIGHT='27' WIDTH='40'>"); }// end if }// end expnew function expwords(when,text) { /* used in any web page to provide expiring text*/ what = text; when = new Date(when); date = new Date(); if (when.getTime() > date.getTime()) { document.write(what); }// end if }// end expwords function delayexpwords(show,hide,text) { /* used in any web page to provide expiring text with a delay start date*/ what = text; show = new Date(show); hide = new Date(hide); date = new Date(); if ((hide.getTime() > date.getTime()) && (show.getTime() < date.getTime())) { document.write(what); /* document.write("<FONT color=teal size=-1>"+what+"<\/FONT>");*/ }// end if }// end expwords function GO(text1,text2){ /* used in socs web pages*/ if (navigator.appVersion.indexOf('Mac') != -1){ }else{ NewWin = new OpenLoadWin(); }//end if document.SOCS.ACTION.value = text1; document.SOCS.SELECTED.value = text2; document.SOCS.submit(); }// end Go function PAGE_GO(fOrM){ /* used in question web pages*/ /* used in db results web pages*/ //alert("Form sent in: " +fOrM); if (navigator.appVersion.indexOf('Mac') != -1){ }else{ NewWin = new OpenLoadWin(); }// end if if((fOrM !== '') && (fOrM !== undefined)){ //fOrM.submit(); inName = fOrM.name; //alert("Form sent in name: " + inName); inName = fOrM.name; document.forms[inName].submit(); document.forms["myform"].submit(); }else{ document.forms[1].submit(); } }// end PAGE_GO function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p){ d.MM_p= []; }// end for var i,j = d.MM_p.length, a = MM_preloadImages.arguments; for(i=0; i<a.length; i++){ if (a[i].indexOf("#") !== 0){ d.MM_p[j]=new Image(); d.MM_p[j++].src=a[i]; }// end if }// end for }// end if }// end MM_preloadImages function MM_swapImgRestore() { //v3.0 var i, x, a= document.MM_sr; for(i=0; a && i<a.length && (x=a[i]) && x.oSrc; i++){ x.src = x.oSrc; }// end for }// end MM_swapImgRestore function MM_findObj(n, d) { //v4.01 var p, i, x; if(!d){ d=document; if((p=n.indexOf("?")) > 0 && parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); }// end if }// end if if(!(x=d[n]) && d.all){ x=d.all[n]; for (i=0;!x && i<d.forms.length; i++){ x=d.forms[i][n]; }// end for }// end if for(var j=0; !x&&d.layers&&j<d.layers.length;j++){ x= new MM_findObj(n,d.layers[j].document); }// end for if(!x && d.getElementById){ x=d.getElementById(n); }// end if return x; }// end MM_findObj function MM_swapImage() { //v3.0 var i, j=0, x, a=MM_swapImage.arguments; document.MM_sr= []; for(i=0; i<(a.length-2);i+=3){ if ((x= new MM_findObj(a[i])) !== null){ document.MM_sr[j++]=x; if(!x.oSrc){ x.oSrc=x.src; x.src=a[i+2]; }// end if }// end if }// end for }// end MM_swapImage function CreateRfq(inForm){ if((inForm !== '') && (inForm !== undefined)){ document[inForm].ACTION.value = 'NEW'; document[inForm].submit(); }else{ document.RFQ_MENU.ACTION.value = 'NEW'; document.RFQ_MENU.submit(); }// end if }// end CreateRfq function doQuote(rfq_seq) { //alert("got to doQuote("+ rfq_seq+")"); if ((rfq_seq === '') || (rfq_seq === undefined)){ document.RFQ_SEARCH.ACTION.value='QUOTE'; document.RFQ_SEARCH.submit(); return; }else{ document.RFQ_SEARCH.ACTION.value='QUOTE'; //alert("document.RFQ_SEARCH.ACTION.value = ("+ document.RFQ_SEARCH.ACTION.value+")"); document.RFQ_SEARCH.RFQ_seq.value = rfq_seq; //alert("document.RFQ_SEARCH.RFQ_seq.value = ("+ document.RFQ_SEARCH.RFQ_seq.value+")"); document.RFQ_SEARCH.submit(); return; }// end if return; }// end doQuote function doArchive(theForm) { //alert("theForm("+theForm+") Name("+theForm.name+")"); var in_form = theForm; theForm = document.RFQ_EDIT; //var theSubmitForm = "RFQ"; var myReg = new RegExp('archive_'); var found = false; //alert("theForm.elements.length ("+theForm.elements.length+")"); for(var j = 0; j < theForm.elements.length;j++){ //alert("theForm.elements[j].name ("+theForm.elements[j].name+")"); if ((theForm.elements[j].type == "checkbox") && (myReg.test(theForm.elements[j].name) === true) && (theForm.elements[j].checked === true)){ var thisElemName = theForm.elements[j].name; var thisHiddenElemName = theForm.elements[j].name; thisHiddenElemName = thisHiddenElemName.replace(/archive_/g,'archive_hid_'); var thisHiddenElemValue = thisElemName; thisHiddenElemValue = thisHiddenElemValue.replace(/archive_/g,''); //alert("thisElemName("+thisElemName+") thisHiddenElemName("+thisHiddenElemName+") thisHiddenElemValue("+thisHiddenElemValue+")"); document.getElementById(thisHiddenElemName).value = thisHiddenElemValue; found = true; //break; }// end if myReg.lastIndex = 0; }// end for if (found === true){ // theForm.ACTION.value = "ARCHIVE"; // theForm.submit(); // document.theSubmitForm.ACTION.value = "ARCHIVE"; // document.theSubmitForm.submit(); document.RFQ.ACTION.value = "ARCHIVE"; document.RFQ.submit(); }else{ alert("There were no requests marked for Archiving"); }// end if return; }// end doArchive function Q_Interface(in_rfq_seq, event) { //alert("got to Q_Interface("+ in_rfq_seq+")"); e_form = ''; if (is_nav){ e_name = event.currentTarget.name; e_form = event.currentTarget.form; }else if ((is_ie) || (is_opera)){ e_name = event.srcElement.name; e_form = event.srcElement.form; }else{ e_name = event.currentTarget.name; e_form = event.currentTarget.form; }// end if var e_form_name = e_form.name; //alert("event name is "+ e_name); //alert("event FORM name is "+ e_form_name); if ((e_name == "NoBid") || (e_name == "No Quote")){ if (!e_form.no_bid.checked){ e_form.no_bid.click(); }// end if e_form.RFQ_seq.value = in_rfq_seq; show_message('remark', event); show_message('isSubmit2', event); }else if(e_name == "Update"){ e_form.RFQ_seq.value = in_rfq_seq; document.RFQ_SEARCH.RFQ_seq.value = in_rfq_seq; show_message('quote_form', event); changein('isDeleted'); DivSetVisible('true', 'isDeleted'); changein('isSubmit'); DivSetVisible('true', 'isSubmit'); } if ((document.RFQ_SEARCH != undefined) && (e_form != "RFQ_SEARCH")){ document.RFQ_SEARCH.ACTION.value='SAVE'; } e_form.ACTION.value='SAVE'; return; }// end Q_Interface function show_message(in_message, event) { //alert("got to show_message("+ in_rfq_seq+")"); var e_left = event.clientX; var e_top = event.clientY; var s_left = 0; var s_top = -80; var myDocReg = /quotes/; if (myDocReg.test(document.location) === true){ // s_top = -400; } if (window.pageXOffset){ s_left += window.pageXOffset; //alert("window.pageYOffset("+ window.pageYOffset+")"); s_top += window.pageYOffset; }else if (document.body.scrollTop){ s_left += document.body.scrollLeft; //alert("document.body.scrollTop("+document.body.scrollTop +")"); s_top += document.body.scrollTop; }else{ s_left += 250; s_top += 0; }// end if //alert("s_top("+s_top+")"); if(is_ie6){ //alert("this is IE6!"); s_top += -400; }// end if //alert("s_top("+s_top+")"); if (myDocReg.test(document.location) != true){ var DivRef = document.getElementById(in_message); DivRef.style.display = "block"; DivRef.style.top = (e_top + s_top); changein(in_message); if(!is_ie){ DivSetVisible('true', in_message); }// end if }else{ var DivRef = document.getElementById(in_message); DivRef.style.display = "block"; DivRef.style.top = (e_top + s_top) - 260; changein(in_message); if(!is_ie) { DivSetVisible('true', in_message); } } }// end show_message function hide_message(in_message) { //alert("got to hide_message("+ in_rfq_seq+")"); changeout(in_message); if(!is_ie) { DivSetVisible('false', in_message); }// end if }// end hide_message function change_in_out(in_Div) { var myDivRef = document.getElementById(in_Div); if (myDivRef.style.visibility != "visible"){ show_sewp(in_Div); }else{ hide_sewp(in_Div); }// end if }// end change_in_out //--------------------------------------- sfHover = function() { if(document.getElementById("main_menu") != undefined){ var sfEls = document.getElementById("main_menu").getElementsByTagName("LI"); for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" sfhover"; this.className+=" m2"; }// end function sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); this.className=this.className.replace(new RegExp(" m2\\b"), ""); }// end function }// end for }// end for }// end function if (window.attachEvent) window.attachEvent("onload", sfHover); //--------------------------------------- function menuAction(in_menuID, in_hide) { // var myDivs = document.getElementsByTagName("DIV"); var myDivs = ["sub_menu2", "sub_menu2a", "sub_menu3", "sub_menu4", "sub_menu4a", "sub_menu5", "sub_menu6", "sub_menu7", "sub_menu8", "sub_menu9",]; //alert('in_menuID'+in_menuID); var my_Menu1RegExp = new RegExp("^sub_menu"); var myChildMenuID = in_menuID; myChildMenuID += "a"; var myParentMenuID = in_menuID; myParentMenuID = myParentMenuID.replace(/[a-z]$/g,''); if (in_menuID == "hide"){ in_hide = in_menuID; } if (in_hide == "hide"){ for(var i in myDivs){ //alert("i "+i); var myDiv = myDivs[i]; //alert("myDiv "+myDiv); var myDivId = myDiv; //alert("myDivId "+myDivId); // if( // (my_Menu1RegExp.test(myDivId) == true) // && // (myDivId != myChildMenuID) // && // (myDivId != myParentMenuID)){ if (my_Menu1RegExp.test(myDivId) == true){ // changeout(in_menuID); changeout(myDivId); //alert("change OUT of "+myDivId+" is complete"); }else{ //alert("NOT Changing OUT of "+myDivId+" must be child or parent"); }// end if }// end for }else{ changein(in_menuID); //alert("change IN of "+in_menuID+" is complete"); for(var i in myDivs){ var myDiv = myDivs[i]; // var myDivId = myDiv.id; var myDivId = myDiv; //alert("myDivId "+myDivId); if( (my_Menu1RegExp.test(myDivId) == true) && (myDivId != in_menuID) && (myDivId != myParentMenuID)) { changeout(myDivId); //alert("change OUT of "+myDivId+" is complete"); if( myDivId == in_menuID){ //alert("change OUT of "+myDivId+" is complete"); }// end if }// end if }// end for }// end if }// end menuAction function show_sewp(in_sewp) { changein(in_sewp); DivSetVisible('true', in_sewp); }// end show_sewp function hide_sewp(in_sewp) { changeout(in_sewp); DivSetVisible('false', in_sewp); }// end hide_sewp function editRfq(rfq_seq) { //alert("got to editRfq("+ rfq_seq+")"); if ((rfq_seq === '') || (rfq_seq === undefined)){ var one_rfq_seq = Pick_rfq(); //alert("got to editRfq(in rfq ="+ rfq_seq+" & one_rfq_seq ="+ one_rfq_seq+")"); if((one_rfq_seq !== "") && (one_rfq_seq != false) && (one_rfq_seq != true)){ //alert("editRfq if is true"); document.RFQ_SEARCH.ACTION.value = 'EDIT'; document.RFQ_SEARCH.RFQ_seq.value = one_rfq_seq; document.RFQ_SEARCH.submit(); return; }else{ //alert("editRfq if is false"); document.RFQ_SEARCH.ACTION.value = 'EDIT'; return; }// end if }else{ document.RFQ_SEARCH.ACTION.value='EDIT'; //alert("document.RFQ_SEARCH.ACTION.value = ("+ document.RFQ_SEARCH.ACTION.value+")"); document.RFQ_SEARCH.RFQ_seq.value = rfq_seq; //alert("document.RFQ_SEARCH.RFQ_seq.value = ("+ document.RFQ_SEARCH.RFQ_seq.value+")"); document.RFQ_SEARCH.submit(); return; }// end if return; }// end edit_rfq function detailRfq(rfq_seq) { document.RFQ_SEARCH.ACTION.value='DETAIL'; //alert("document.RFQ_SEARCH.ACTION.value = ("+ document.RFQ_SEARCH.ACTION.value+")"); document.RFQ_SEARCH.RFQ_seq.value= rfq_seq; //alert("document.RFQ_SEARCH.RFQ_seq.value = ("+ document.RFQ_SEARCH.RFQ_seq.value+")"); document.RFQ_SEARCH.go.click(); return; }// end detail_rfq function which_rfq_seq(in_form) { //alert('got to which_rfq_seq form = "'+in_form.name+'"'); //alert(in_form.name+'.ACTION.value = ('+in_form.ACTION.value+")"); //alert(in_form.name+'.RFQ_seq.value = ('+ in_form.RFQ_seq.value+")"); if ((in_form.RFQ_seq.value === "") || (in_form.RFQ_seq === undefined)) { if (document.RFQ_SEARCH.rfq_seq_1.value !== ""){ in_form.RFQ_seq.value = document.RFQ_SEARCH.rfq_seq_1.value; }else if (document.RFQ_SEARCH.rfq_seq_2.value !== "") { in_form.RFQ_seq.value = document.RFQ_SEARCH.rfq_seq_2.value; }else if ( (in_form.agency_rfq_id.value !== "") || (in_form.start_rfq_date.value !== "") || (in_form.end_rfq_date.value !== "") || (in_form.status.selectedIndex > 0) ) { return true; }else{ return false; }// end if }else{ //alert('which_rfq_seq completed "True"'); document.RFQ_SEARCH.go.click(); return true; }// end if }// end which_rfq_seq function displayVars(){ /* used in many web pages, programs, templates for DEBUGGING */ var text = "<TABLE BORDER='1' BGCOLOR='#B5D1E8'>"; for( i = 0; i < document.forms.length;i++){ text += "<TR><TH colspan='3' align='left' BGCOLOR='#336699'>"; text += "<FONT color='#FFFFFF'> Form Name: "; text += document.forms[i].name; text += "<\/FONT><\/TH><\/TR>"; text += "<TR><TH colspan='3' align='left' BGCOLOR='#99BADD'>"; text += "<FONT color='#FFFFFF'> Form Action: "; text += document.forms[i].action; text += "<\/FONT><\/TH><\/TR>"; text += "<TR><TH colspan='3' align='left' BGCOLOR='#99BADD'>"; text += "<FONT color='#FFFFFF'> Form onSubmit: "; text += document.forms[i].onSubmit; text += "<\/FONT><\/TH><\/TR>"; text += "<TR><TH>Element Name:<\/TH><TH>Type:<\/TH><TH>Value:<\/TH><\/TR>"; for(var j = 0; j < document.forms[i].elements.length;j++){ text += "<TR BGCOLOR='#FFFFFF'><TD align='right'>"; text += document.forms[i].elements[j].name; text += "<\/TD><TD align='left'> "; text += document.forms[i].elements[j].type; text += "<\/TD><TD align='left'> "; if ( (document.forms[i].elements[j].type == "select-one") || (document.forms[i].elements[j].type == "select-multiple")) { var text_b = ""; for(var k = 0; k < document.forms[i].elements[j].options.length;k++){ if(document.forms[i].elements[j].options[k].selected){ text_b += document.forms[i].elements[j].options[k].value; text_b += " / "; text_b += document.forms[i].elements[j].options[k].text; text_b += " "; }// end if }// end for text += text_b; }else if (document.forms[i].elements[j].type == "checkbox"){ if(document.forms[i].elements[j].checked === true){ text += "True"; }else{ text += "False"; }// end if }else if (document.forms[i].elements[j].type == "radio"){ if(document.forms[i].elements[j].checked === true){ text += document.forms[i].elements[j].value + " - CHECKED"; }else{ text += document.forms[i].elements[j].value; }// end if }else{ text += document.forms[i].elements[j].value; }// end if text += "<\/TD><\/TR>"; }// end for }// end for text += "<\/TABLE>"; // fixed for IE if (!newWin || newWin.closed){ var myAttribs = 'menubar=yes,scrollbars=yes,resizable=yes,height=800,width=600,alwaysRaised=yes'; newWin = window.open("/empty.html","Display_Vars", myAttribs); setTimeout(writeTonewWin(text), 500); }// end if }// end displayVars function writeTonewWin(text) { newWin.document.write(text); newWin.document.close(); newWin.focus(); }// end writeTonewWin // -------------- End Misc functions ------------------------------------- // JavaScript Browser Sniffer // convert all characters to lowercase to simplify testing var agt=navigator.userAgent.toLowerCase(); var appVer = navigator.appVersion.toLowerCase(); // *** BROWSER VERSION *** var is_minor = parseFloat(appVer); var is_major = parseInt(is_minor,0); // Note: On IE, start of appVersion return 3 or 4 // which supposedly is the version of Netscape it is compatible with. // So we look for the real version further on in the string var iePos = appVer.indexOf('msie'); if (iePos !=-1) { is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos))); is_major = parseInt(is_minor,0); } var is_getElementById = (document.getElementById) ? "true" : "false"; // 001121-abk var is_getElementsByTagName = (document.getElementsByTagName) ? "true" : "false"; // 001127-abk var is_documentElement = (document.documentElement) ? "true" : "false"; // 001121-abk var is_gecko = ((navigator.product)&&(navigator.product.toLowerCase()=="gecko"))?true:false; //alert("is_gecko = "+is_gecko); var is_gver = 0; if (is_gecko){ is_gver=navigator.productSub; } var is_moz = ((agt.indexOf('mozilla/5')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible')==-1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1) && (is_gecko) && ((navigator.vendor === "")||(navigator.vendor=="Mozilla"))); if (is_moz) { var is_moz_ver = (navigator.vendorSub)?navigator.vendorSub:0; if(!(is_moz_ver)) { is_moz_ver = agt.indexOf('rv:'); is_moz_ver = agt.substring(is_moz_ver+3); is_paren = is_moz_ver.indexOf(')'); is_moz_ver = is_moz_ver.substring(0,is_paren); } is_minor = is_moz_ver; is_major = parseInt(is_moz_ver,0); } var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1) && (!(is_moz))); if ((navigator.vendor)&& ((navigator.vendor=="Netscape6")||(navigator.vendor=="Netscape"))&& (is_nav)) { is_major = parseInt(navigator.vendorSub,0); is_minor = parseFloat(navigator.vendorSub); } var is_opera = (agt.indexOf("opera") != -1); var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1); var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1); var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1); var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1); var is_opera6 = (agt.indexOf("opera 6") != -1 || agt.indexOf("opera/6") != -1); // new 020128- abk var is_opera5up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4); var is_opera6up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4 && !is_opera5); // new020128 var is_nav2 = (is_nav && (is_major == 2)); var is_nav3 = (is_nav && (is_major == 3)); var is_nav4 = (is_nav && (is_major == 4)); var is_nav4up = (is_nav && is_minor >= 4); var is_navonly = (is_nav && ((agt.indexOf(";nav") != -1) || (agt.indexOf("; nav") != -1)) ); var is_nav6 = (is_nav && is_major==6); // new 010118 mhp var is_nav6up = (is_nav && is_minor >= 6); // new 010118 mhp var is_nav5 = (is_nav && is_major == 5 && !is_nav6); // checked for ns6 var is_nav5up = (is_nav && is_minor >= 5); var is_nav7 = (is_nav && is_major == 7); var is_nav7up = (is_nav && is_minor >= 7); var is_ie = ((iePos!=-1) && (!is_opera)); var is_ie3 = (is_ie && (is_major < 4)); var is_ie4 = (is_ie && is_major == 4); var is_ie4up = (is_ie && is_minor >= 4); var is_ie5 = (is_ie && is_major == 5); var is_ie5up = (is_ie && is_minor >= 5); var is_ie5_5 = (is_ie && (agt.indexOf("msie 5.5") !=-1)); // 020128 new - abk var is_ie5_5up =(is_ie && is_minor >= 5.5); // 020128 new - abk var is_ie6 = (is_ie && is_major == 6); var is_ie6up = (is_ie && is_minor >= 6); var is_aol = (agt.indexOf("aol") != -1); var is_aol3 = (is_aol && is_ie3); var is_aol4 = (is_aol && is_ie4); var is_aol5 = (agt.indexOf("aol 5") != -1); var is_aol6 = (agt.indexOf("aol 6") != -1); var is_aol7 = ((agt.indexOf("aol 7")!=-1) || (agt.indexOf("aol7")!=-1)); var is_webtv = (agt.indexOf("webtv") != -1); var is_TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1)); var is_AOLTV = is_TVNavigator; var is_chrome = (agt.indexOf("webkit") != -1); var is_safari = (agt.indexOf("safari") != -1); var is_hotjava = (agt.indexOf("hotjava") != -1); var is_hotjava3 = (is_hotjava && (is_major == 3)); var is_hotjava3up = (is_hotjava && (is_major >= 3)); var is_chrome = (agt.indexOf("webkit") != -1); // *** JAVASCRIPT VERSION CHECK *** var is_js; if (is_nav2 || is_ie3){ is_js = 1.0; }else if (is_nav3){ is_js = 1.1; }else if (is_opera5up){ is_js = 1.3; // 020214 - dmr }else if (is_opera){ is_js = 1.1; }else if ((is_nav4 && (is_minor <= 4.05)) || is_ie4){ is_js = 1.2; }else if ((is_nav4 && (is_minor > 4.05)) || is_ie5){ is_js = 1.3; }else if (is_nav5 && !(is_nav6)){ is_js = 1.4; }else if (is_hotjava3up){ is_js = 1.4; // new 020128 - abk }else if (is_nav6up){ is_js = 1.5; }else if (is_nav && (is_major > 5)){ is_js = 1.4; }else if (is_ie && (is_major > 5)){ is_js = 1.3; }else if (is_moz){ is_js = 1.5; }else if (is_chrome){ is_js = 1.6; }else{ is_js = 0.0; } if ((agt.indexOf("mac")!=-1) && is_ie5up){ is_js = 1.4; // 020128 - abk } if (is_nav6up) { is_minor = navigator.vendorSub; } var is_win = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) ); var is_win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1)); var is_win16 = ((agt.indexOf("win16")!=-1) || (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("windows 16-bit")!=-1) ); var is_win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) || (agt.indexOf("windows 16-bit")!=-1)); var is_winme = ((agt.indexOf("win 9x 4.90")!=-1)); // new 020128 - abk var is_win2k = ((agt.indexOf("windows nt 5.0")!=-1) || (agt.indexOf("windows 2000")!=-1)); // 020214 - dmr var is_winxp = ((agt.indexOf("windows nt 5.1")!=-1) || (agt.indexOf("windows xp")!=-1)); // 020214 - dmr var is_win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1)); var is_winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1)); var is_win32 = (is_win95 || is_winnt || is_win98 || ((is_major >= 4) && (navigator.platform == "Win32")) || (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1)); var is_os2 = ((agt.indexOf("os/2")!=-1) || (navigator.appVersion.indexOf("OS/2")!=-1) || (agt.indexOf("ibm-webexplorer")!=-1)); var is_mac = (agt.indexOf("mac")!=-1); if (is_mac) { is_win = !is_mac; } // dmr - 06/20/2002 var is_mac68k = (is_mac && ((agt.indexOf("68k")!=-1) || (agt.indexOf("68000")!=-1))); var is_macppc = (is_mac && ((agt.indexOf("ppc")!=-1) || (agt.indexOf("powerpc")!=-1))); var is_sun = (agt.indexOf("sunos")!=-1); var is_sun4 = (agt.indexOf("sunos 4")!=-1); var is_sun5 = (agt.indexOf("sunos 5")!=-1); var is_suni86= (is_sun && (agt.indexOf("i86")!=-1)); var is_irix = (agt.indexOf("irix") !=-1); // SGI var is_irix5 = (agt.indexOf("irix 5") !=-1); var is_irix6 = ((agt.indexOf("irix 6") !=-1) || (agt.indexOf("irix6") !=-1)); var is_hpux = (agt.indexOf("hp-ux")!=-1); var is_hpux9 = (is_hpux && (agt.indexOf("09.")!=-1)); var is_hpux10= (is_hpux && (agt.indexOf("10.")!=-1)); var is_aix = (agt.indexOf("aix") !=-1); // IBM var is_aix1 = (agt.indexOf("aix 1") !=-1); var is_aix2 = (agt.indexOf("aix 2") !=-1); var is_aix3 = (agt.indexOf("aix 3") !=-1); var is_aix4 = (agt.indexOf("aix 4") !=-1); var is_linux = (agt.indexOf("inux")!=-1); var is_sco = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1); var is_unixware = (agt.indexOf("unix_system_v")!=-1); var is_mpras = (agt.indexOf("ncr")!=-1); var is_reliant = (agt.indexOf("reliantunix")!=-1); var is_dec = ((agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) || (agt.indexOf("dec_alpha")!=-1) || (agt.indexOf("alphaserver")!=-1) || (agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1)); var is_sinix = (agt.indexOf("sinix")!=-1); var is_freebsd = (agt.indexOf("freebsd")!=-1); var is_bsd = (agt.indexOf("bsd")!=-1); var is_unix = ((agt.indexOf("x11")!=-1) || is_sun || is_irix || is_hpux || is_sco ||is_unixware || is_mpras || is_reliant || is_dec || is_sinix || is_aix || is_linux || is_bsd || is_freebsd); var is_vms = ((agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1)); var is_anchors = (document.anchors) ? "true":"false"; var is_regexp = (window.RegExp) ? "true":"false"; var is_option = (window.Option) ? "true":"false"; var is_all = (document.all) ? "true":"false"; document.cookie = "cookies=true"; var is_cookie = (document.cookie) ? "true" : "false"; var is_images = (document.images) ? "true":"false"; var is_layers = (document.layers) ? "true":"false"; // gecko m7 bug? var is_forms = (document.forms) ? "true" : "false"; var is_links = (document.links) ? "true" : "false"; var is_frames = (window.frames) ? "true" : "false"; var is_screen = (window.screen) ? "true" : "false"; var is_java = (navigator.javaEnabled()); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function GetJaVa(){ var applet = document.myApplet; if(applet === null){ alert("Please, install Java Runtime Environment"); return; } alert("JRE Version: " + document.myApplet.getJavaVersion()); } var browsername; function doNetscape(){ for (i=0; i < navigator.plugins.length; i++){ for (j = 0; j < navigator.plugins.length; j++){ if(navigator.plugins[j].type == "application/x-java-applet;version=1.3"){ alert("You are running Netscape with Java Plugin 1.3.0 - OK"); return; } } } alert("You are running Netscape\nPlease, install Java Runtime Environment 1.3.0"); } function doMicrosoft(){ var applet = document.myApplet; if(applet === null){ alert("You are running Microsoft Browser.\nPlease, install Java Runtime Environment 1.3.0"); return; } var version = applet.getJavaVersion(); if(version == "1.3.0"){ alert("You are running IE, Java Plugin 1.3.0 installed - OK"); }else{ alert("You are running IE, other plugin installed - mybe OK if later that 1.3.0\nYour version: " + version); } } function getJava(){ var applet = document.myApplet; if(applet === null){ alert("Please, install Java Runtime Environment"); return; } alert("JRE Version: " + document.myApplet.getJavaVersion()); } function checkJavaPlugin(){ browsername = navigator.appName; if(browsername.indexOf("Netscape")!= -1){ browsername="NS"; doNetscape(); }else{ if(browsername.indexOf("Microsoft")!=-1){ browsername="MSIE"; doMicrosoft(); }else{ browsername="N/A"; alert("Unknown browser: " + browsername); } } } <!--/SCRIPT --> <!-- END /addins/s3.js --> <!-- SEARCH-ENGINE-ON --> <script language="JavaScript" src="/addins/overlib.js"></script> <base href='http://www.sewp.nasa.gov/addins/hot_topic/archived/surcharge_increase.shtml'> </head> <body> <!-- Start of the BODY --> [an error occurred while processing this directive] <table border="0" bordercolor="#B5D1E8" cellpadding="0" cellspacing="0" height="425" width="800"> <tr valign="top"> <!-- Start of /addins/v3header.shtml --> <div id="head1"> <div id="head2"> <a href="http://www.sewp.nasa.gov/index.shtml" title="Click Here to go to the SEWP Home Page." accesskey="h" > <img id="head1img" src="/images/sewpvhead.png" style="height: auto; max-width: 100%;" alt="Solutions for Enterprise-Wide Procurement" /></a> <!-- SEARCH-ENGINE-OFF --> <!-- Start /addins/headtext.shtml --> <ul class="headtext"> <li>Helpline: (301) 286-1478<br /><a href="mailto:help@sewp.nasa.gov" title="help@sewp.nasa.gov">help@sewp.nasa.gov</a></li> <li>Orders: FAX (301) 286-0317<br /><a href="mailto:sewporders@sewp.nasa.gov" title="sewporders@sewp.nasa.gov">sewporders@sewp.nasa.gov</a></li> <li>Customer Support Center<br /><a href="https://support.sewp.nasa.gov/" target="_blank" title="support.sewp.nasa.gov">support.sewp.nasa.gov</a></li> </ul> <!-- End /addins/headtext.shtml --> <!-- SEARCH-ENGINE-ON --> </div> </div> <!-- SEARCH-ENGINE-OFF --> <!-- Begin /addins/main_menu_new.html --> <div id="MainMenu"> <ul id= "main-menu" class="sm sm-blue"> <!--HOME--> <li > <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/index.shtml">'; my_url += '<img src="/images/newhome.png" class="home" border="0" width="13px" height="12px" alt="Link to SEWP Home Page" /></a>'; document.writeln(my_url); </script> </li> <!-- Fast Access --> <li class="fa"> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/index.shtml">'; my_url += ' Fast Access</a>'; document.writeln(my_url); </script> <ul id="fast_access_sub_menu" class="sub-menu sm-nowrap"> <li > <a href="https://support.sewp.nasa.gov/ics/support/default.asp?deptID=15032&task=knowledge">FAQ</a> </li> <li > <a href="http://events.sewp.nasa.gov/multimedia/index.shtml">Training Video</a> </li> <li > <script language="JavaScript" type="text/javascript"> var my_url = '<a href="'; my_url += my_https; my_url += my_domain; my_url += '/sewp5public/">Request A Quote<\/a>'; document.writeln(my_url); </script> </li> <li > <script language="JavaScript" type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/agencies/NASA/cc_order_process.shtml">NASA Credit Cards<\/a>'; document.writeln(my_url); </script> </li> <!-- <li> <script language="JavaScript" type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/procurement_resources.shtml">Procurement Resources<\/a>'; document.writeln(my_url); </script> </li> --> <li> <script language="JavaScript" type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/contact.shtml">Address and Directions<\/a>'; document.writeln(my_url); </script> </li> <li> <a href="mailto:help@sewp.nasa.gov">Give Us Your Feedback</a> </li> </ul> </li> <!-- Info Center --> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/info_center.shtml">'; my_url += 'Info Center<\/a>'; document.writeln(my_url); </script> <ul> <li id=> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/sewp_policies.shtml">'; my_url += 'SEWP Policies <\/a>'; document.writeln(my_url); </script> <ul> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/fairopportunity.shtml">'; my_url += 'Fair Opportunity<\/a>'; document.writeln(my_url); </script> </li> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/ordering.shtml#ECONOMY">'; my_url += 'Economy Act<\/a>'; document.writeln(my_url); </script> </li> </ul> </li> <li> <a href="https://support.sewp.nasa.gov/ics/support/default.asp?deptID=15032&task=knowledge">FAQ</a></li> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/geninfo.shtml">'; my_url += ' General Info<\/a>'; document.writeln(my_url); </script> </li> <!-- <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/procurement_resources.shtml">'; my_url += ' Procurement Resources<\/a>'; document.writeln(my_url); </script> </li> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/template.shtml">'; my_url += ' Forms & Documents<\/a>'; document.writeln(my_url); </script> </li>--> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/services.shtml">'; my_url += ' Services<\/a>'; document.writeln(my_url); </script> </li> </ul> </li> <!-- Contract Holders --> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/sewp5public/chp/vendorViews/layoutlist">'; my_url += 'Contract Holders<\/a>'; document.writeln(my_url); </script> <ul> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/sewp5public/chp/vendorViews/layoutlist">'; my_url += ' Contract Holders by Group<\/a>'; document.writeln(my_url); </script> <ul> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/sewp5public/chp/vendorViews/group/A">'; my_url += 'Group A<\/a>'; document.writeln(my_url); </script></li> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/sewp5public/chp/vendorViews/group/B_HUBZone">'; my_url += 'Group B: Hubzone<\/a>'; document.writeln(my_url); </script></li> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/sewp5public/chp/vendorViews/group/B_SDVOSB">'; my_url += 'Group B: SDVOSB<\/a>'; document.writeln(my_url); </script></li> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/sewp5public/chp/vendorViews/group/C">'; my_url += 'Group C<\/a>'; document.writeln(my_url); </script></li> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/sewp5public/chp/vendorViews/group/D">'; my_url += 'Group D<\/a>'; document.writeln(my_url); </script></li> </ul> </li> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/sewp5public/chp/subList/managers">'; my_url += 'Program Managers<\/a>'; document.writeln(my_url); </script> </li> <!-- <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/template.shtml">'; my_url += 'Program Performance<\/a>'; document.writeln(my_url); </script> </li>--> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/sewp5public/chp/vendorViews/group/SM">'; my_url += 'Small Businesses<\/a>'; document.writeln(my_url); </script> </li> </ul> </li> <!-- Order Info --> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/order_info.shtml">'; my_url += 'Order Info<\/a>'; document.writeln(my_url); </script> <ul> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/ordering.shtml">'; my_url += 'Order Info<\/a>'; document.writeln(my_url); </script> <ul> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/fairopportunity.shtml">'; my_url += 'Fair Opportunity<\/a>'; document.writeln(my_url); </script></li> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/services.shtml">'; my_url += 'Services<\/a>'; document.writeln(my_url); </script></li> </ul> </li> <!-- <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/template.shtml">'; my_url += 'Order Status<\/a>'; document.writeln(my_url); </script> </li> --> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/template.shtml">'; my_url += 'Approved Contractors<\/a>'; document.writeln(my_url); </script> </li> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/fax_form.shtml">'; my_url += 'Fax Form Tool<\/a>'; document.writeln(my_url); </script> </li> <!-- <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/508_info.shtml">'; my_url += '508 Info<\/a>'; document.writeln(my_url); </script> </li> --></ul> </li> <!-- SEWP Tools --> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/sewp_tools.shtml">'; my_url += 'SEWP Tools<\/a>'; document.writeln(my_url); </script> <ul> <li><script type="text/javascript"> var my_domain = document.domain; var my_url = '<a href="'; my_url += my_https; my_url += my_domain; my_url += '/sewp5public/">'; my_url += 'Quote Requests (QRT)<\/a>'; document.writeln(my_url); </script></li> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_https; my_url += my_domain; my_url += '/sewp45public/">'; my_url += 'SEWP IV QRT (Read Only)<\/A>'; document.writeln(my_url); </script></li> <li><script type="text/javascript"> var my_domain = document.domain; var my_url = '<a href="'; my_url += my_https; my_url += my_domain; my_url += '/sewp5public/productLookup.html">'; my_url += 'Quick RFI Tool<\/a>'; document.writeln(my_url); </script></li> <li><script type="text/javascript"> var my_domain = document.domain; var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/cgi/provider_lookup.pl">'; my_url += 'Provider Lookup<\/a>'; document.writeln(my_url); </script></li> <!-- <li><script type="text/javascript"> var my_domain = document.domain; var my_url = '<a href="'; my_url += my_https; my_url += my_domain; my_url += '/template.shtml">'; my_url += 'Quote Verification<\/a>'; document.writeln(my_url); </script></li> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/template.shtml">'; my_url += 'Provider Lookup<\/a>'; document.writeln(my_url); </script> </li> --> </ul> </li> <!-- Customer Service --> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/customer_service.shtml">'; my_url += 'Customer Service<\/a>'; document.writeln(my_url); </script> <ul> <li> <a href="https://support.sewp.nasa.gov">Customer Support Center</a></li> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/events.shtml">'; my_url += 'Events Calendar<\/a>'; document.writeln(my_url); </script> </li> <li> <a href="http://support.sewp.nasa.gov/ics/support/default.asp?deptID=15032&task=knowledge">FAQ</a></li> <LI> <a href="http://www.sewp.nasa.gov/events/survey.html?SID=714150Pwd=b909" target="_blank">Take our survey!</a></LI> <LI> <a href="http://www.sewp.nasa.gov/events/survey.html?SID=644729Pwd=196c" target="_blank">Request a Training</a></LI> <!-- <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/template.shtml">'; my_url += 'Why Customers Use SEWP<\/a>'; document.writeln(my_url); </script> </li> --> </ul> </li> <!-- Agency Specific --> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/agencies.shtml">'; my_url += 'Agency Specific<\/a>'; document.writeln(my_url); </script> <ul> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/agencies/DOD/index.shtml">'; my_url += 'DoD<\/a>'; document.writeln(my_url); </script> </li> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/agencies/DOI/index.shtml">'; my_url += 'DOI<\/a>'; document.writeln(my_url); </script> </li> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/agencies/NASA/index.shtml">'; my_url += 'NASA<\/a>'; document.writeln(my_url); </script> </li> <li> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/agencies/USAF/index.shtml">'; my_url += 'USAF<\/a>'; document.writeln(my_url); </script> </li> <li><script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/agencies/VA/index.shtml">'; my_url += 'VA<\/a>'; document.writeln(my_url); </script> </li> </ul> </li> <!-- SEWP IV --> <li class="fa"> <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/sewpiv/index.shtml">'; my_url += ' SEWP IV     <\/a>'; document.writeln(my_url); </script> </li> <!-- Chat --> <li class="chat"> <a id='c3b33ecc-243e-4457-be3d-a5255e1f0381' href='javascript:void(0);' onclick='return launchChatWindow("https://support.sewp.nasa.gov/ics/support/default.asp?deptID=15032&task=chat&deploymentId=c3b33ecc-243e-4457-be3d-a5255e1f0381");'></a> <script src='https://support.sewp.nasa.gov/ics/csrchat/inc/chatDeployment.js' type='text/javascript'></script> <script type='text/javascript'> window.onload = createDplOnLoadDelegate('c3b33ecc-243e-4457-be3d-a5255e1f0381', 'support.sewp.nasa.gov', 15028, 15032, window.onload, true,true); </script> <!-- <script type="text/javascript"> var my_url = '<a href="'; my_url += my_http; my_url += my_domain; my_url += '/template.shtml">'; my_url += '<IMG src="/images/emailsewp.png" /><\/a>'; document.writeln(my_url); </script> --> </li> </ul> </div> <!-- End of /addins/main_menu_new.html --> <!-- SEARCH-ENGINE-ON --> <SCRIPT LANGUAGE="JavaScript"> // set this to true to show uncheduled wording with a notice // the default should be false (i.e. scheduled) // var scheduledOverride = true; var scheduledOverride = false; /////////////////////////////// StartDate = "2/3/2014"; EndDate = "2/10/2015"; delayexpwords(StartDate,EndDate,'<DIV CLASS="notice"><p> <strong>Notice:</strong> Due to scheduled maintenance, the SEWP Website will be unavailable <span style="font-weight: bold;"> Sunday, February 9, 2014 from 8:00 AM to 4:00 PM EST</span>. For questions or concerns during the outage you may submit an email to <a href="mailto:help@sewp.nasa.gov">help@sewp.nasa.gov</a> or access our FAQs through our <a href="https://support.sewp.nasa.gov">Customer Support Center</a>. <div style="position: relative; text-align: right; font-size: 10px; color: teal; margin: -5px 5px 0px 5px;">Updated: Wednesday, February 5, 2014</div></p></DIV>'); //////////////// do not touch the stuff below this line ////////////// if (scheduledOverride === true) { scheduled = false; }else{ var testStart = new Date(StartDate); var testEnd = new Date(EndDate); if ((testEnd.getTime() > date.getTime()) && (testStart.getTime() < date.getTime())) { scheduled = true; }else{ scheduled = false; }// end if }// end if //alert('the variable scheduled is set to ('+scheduled+')!'); </SCRIPT> <!-- End of /addins/v3header.shtml --> </tr> <tr valign="top"> <td valign="top"> [an error occurred while processing this directive] </td> <td> <table width="650" height="520" border="0" align="left" cellpadding="2" cellspacing="0"> <tr> <td height="31" colspan="2" align="left"> <h3><font color="#006699" face="Verdana, Arial, Helvetica, sans-serif">SEWP Surcharge Fee Adjustment</font></h3> </td> </tr> <tr> <td align="left" width="2%"> </td> <td width="98%" align="left" valign="top"> <hr> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"> <P>In order to maintain our vision to be the premier customer-focused contract vehicle for Federal Government purchase of IT products, the NASA SEWP program will adjust the surcharge fee structure on August 15, 2005 to the following scale: <BR> <!-- <BR>$0 - $2,500 No fee <BR>$2,500 - $1,538,461 0.65% <BR> > $1,538,461 cap of $10,000 <BR>This fee structure remains the lowest in the Government. Along with our customer service commitment, the NASA SEWP Program is pledged to keep costs and consequently the surcharge fee as low as possible.</P></font> --> <BR>[an error occurred while processing this directive] <hr> </td> </tr> </table> </td> </tr> </table> [an error occurred while processing this directive] </body> </html>