var button_big_start='<table border="0" cellspacing="0" cellpadding="0"  class="normal_button_big" onmouseover="this.className=\'hover_button_big\'" onmouseout="this.className=\'normal_button_big\'"><tr><td class="left"></td><td class="center">';var button_big_end='</td><td class="right">&nbsp;</td></tr></table>';var SUBJECT_LENGTH=255;var COMMENTS_AREA_LENGTH=1000;Ajax.Responders.register({onCreate:function(){if($('busy_indicator')&&Ajax.activeRequestCount>0){Element.show('busy_indicator')}},onComplete:function(){if($('busy_indicator')&&Ajax.activeRequestCount==0){Element.hide('busy_indicator')}},onFailure:function(){if($('busy_indicator')&&Ajax.activeRequestCount==0){Element.hide('busy_indicator')}}});function MM_findObj(n,d){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)}if(!(x=d[n])&&d.all){x=d.all[n]}for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n]}for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=MM_findObj(n,d.layers[i].document)}if(!x&&d.getElementById){x=d.getElementById(n)}return x}function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p){d.MM_p=new Array()}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]}}}}function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++){x.src=x.oSrc}}function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3){if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc){x.oSrc=x.src}x.src=a[i+2]}}}function switchStepTo(id){var old=document.getElementById("old_selected");var old_step=document.getElementById("step_"+old.value);var old_text=document.getElementById("text_"+old.value);var old_tab=document.getElementById("tab_"+old.value);old_step.className="normal_step";old_text.className="related_text_normal";old_tab.className="product_tab_normal";var new_step=document.getElementById("step_"+id);var new_text=document.getElementById("text_"+id);var new_tab=document.getElementById("tab_"+id);new_step.className="selected_step";new_text.className="related_text_selected";new_tab.className="product_tab_selected";old.value=id}function showStateSelect(country_select,state_select,state_div,state_field_name){var country=document.getElementById(country_select);if(country){var sel=country.options[country.selectedIndex];if(sel.text=="USA"||sel.text=="United States"||sel.text=="United States of America"){document.getElementById(state_select).name=state_field_name;document.getElementById(state_div).style.display="block"}else{document.getElementById(state_select).name=state_field_name;document.getElementById(state_div).style.display="none"}}}function showCategoryMappingSelect(level_select,category_select,subcategory_select){var level=document.getElementById(level_select);if(level){var sel=level.options[level.selectedIndex];if(sel.value=="Vendor Category"){document.getElementById(category_select).options[0].selected=true;document.getElementById(category_select).style.display="";document.getElementById(subcategory_select).style.display="none"}else if(sel.value=="Vendor Subcategory"){document.getElementById(subcategory_select).options[0].selected=true;document.getElementById(subcategory_select).style.display="";document.getElementById(category_select).style.display=""}else{}}}function showSubcategorySelect(category_select,subcategory_select){var category=document.getElementById(category_select);if(category){var category_sel=category.options[category.selectedIndex];if(category_sel.value=="Project Management"){document.getElementById(subcategory_select).options[0].selected=true}else if(category_sel.value=="Business Analysis"){document.getElementById(subcategory_select).options[0].selected=true}else if(category_sel.value=="Analytics"){document.getElementById(subcategory_select).options[0].selected=true}else if(category_sel.value=="Leadership & Management"){document.getElementById(subcategory_select).options[0].selected=true}else if(category_sel.value=="Financial Management"){document.getElementById(subcategory_select).options[0].selected=true}else{}}}function showBillToInformationByCheck(bill_info_check,bill_info_div){var bill_info=document.getElementById(bill_info_check);if(bill_info){var value=bill_info.checked;if(value){document.getElementById(bill_info_div).style.display="none"}else{document.getElementById(bill_info_div).style.display="block"}}}function showBillToInformationByRadio(bill_info_div){document.getElementById(bill_info_div).style.display="block"}function notShowBillToInformationByRadio(bill_info_div){document.getElementById(bill_info_div).style.display="none"}function showExactPriceTextField(price_select,exactPrice_text,exactPrice_div,exactPrice_field_name){var price=document.getElementById(price_select);if(price){var sel=price.options[price.selectedIndex];if(sel.text=="User Input"||sel.text=="User"){document.getElementById(exactPrice_text).name=exactPrice_field_name;document.getElementById(exactPrice_div).style.display="block"}else{document.getElementById(exactPrice_div).style.display="none"}}}function toggleConfiguratorAvailability(){var conft_chk=document.getElementById("conft_ava");var conft_txt=document.getElementById("conft_ava_text");if(conft_chk&&conft_chk.checked==true){conft_txt.innerHTML="Configurator would be made available once you submit. Uncheck to make it un-available"}else if(conft_chk&&conft_chk.checked==false){conft_txt.innerHTML="Configurator would be made un-available once you submit. Check to make it available"}}function showSaveLoadSearchMenu(){var save_menu=document.getElementById("save_load_search_menu");if(save_menu&&save_menu.style.display=="none"){save_menu.style.display="block"}else if(save_menu&&save_menu.style.display=="block"){save_menu.style.display="none"}}function showSaveSharePopup(mode,func){var head_text=document.getElementById("save_popup_header");var label_text=document.getElementById("save_popup_label");var save_status=document.getElementById("for_save_status");if(mode=="save"){if(func=="search"){head_text.innerHTML="Save Search&nbsp;";label_text.innerHTML="Enter a label for your saved search. You may resume a saved search at any time from the 'Saved' menu at the top of the page.&nbsp;";save_status.value="SEARCH_SAVE"}else if(func=="conft"){head_text.innerHTML="Save Solution&nbsp;";label_text.innerHTML="Enter a label for your saved solution. You may resume a saved solution at any time from the 'Saved' menu at the top of the page.&nbsp;";save_status.value="SOLUTION_SAVE"}}else if(mode=="share"){if(func=="search"){head_text.innerHTML="Email Search&nbsp;";label_text.innerHTML="Please enter email address of the person to whom you want to share this search&nbsp;";save_status.value="SEARCH_SHARE"}else if(func=="conft"){head_text.innerHTML="Email Solution&nbsp;";label_text.innerHTML="Please enter email address of the person to whom you want to share this solution&nbsp;";save_status.value="SOLUTION_SHARE"}}YAHOO.example.container.savePopupPanel.show();var save_menu=document.getElementById("save_load_search_menu");if(save_menu&&save_menu.style.display=="block"){save_menu.style.display="none"}if(document.getElementById("for_save_name")){document.getElementById("for_save_name").focus()}var pids=document.getElementById("checked_products");if(pids&&pids.value!=""){pids=pids.value;new Ajax.Request('/configurator/change_session_products?pids='+pids,{asynchronous:true,evalScripts:true})}}function saveShareSubmit(){var save_status=document.getElementById("for_save_status");var save_name=document.getElementById("for_save_name");if(save_status&&save_name&&save_status.value!=""&&save_name.value!=""){new Ajax.Updater("save_share_reponse","/save/save?status="+save_status.value+"&name="+save_name.value,{asynchronous:true,evalScripts:true});save_name.value="";save_status.value="";YAHOO.example.container.savePopupPanel.hide()}else{alert("You have not provided complete information")}}function hideLoadSearchMenu(id){var menu=document.getElementById('save_load_search_menu')}function submitFeedbackForm(){var feedback_body=document.getElementById('feedback_body');if(trim(feedback_body.value)==''){open_alert('Please enter in the feedback comments.',"Notice");return}else if(feedback_body.value.length>COMMENTS_AREA_LENGTH){open_alert("The comments cannot be greater than "+COMMENTS_AREA_LENGTH+" characters.","Notice");return}else{var form=document.getElementById('add_feedback');if(form.action!=""){form.submit()}form.action=""}}function submitReplyFeedbackForm(){var post_body=document.getElementById('post_body');if(trim(post_body.value)==''){alert('Please enter in the reply comments.');return}else if(post_body.value.length>COMMENTS_AREA_LENGTH){alert("The comments cannot be greater than "+COMMENTS_AREA_LENGTH+" characters.");return}else{if(document.forms[0].action!=""){document.forms[0].submit()}document.forms[0].action=""}}function validateGenerateRequest(){prod=document.getElementsByName('lead[product_ids][]');if(!prod){return}prod_selected=false;for(i=0;i<prod.length;i++){if(prod[i].checked==true){prod_selected=true}}if(prod_selected==false){alert("You have to select at least one Product, to send a request");return}com=document.getElementById('comments');com.value=trim(com.value);if(com.value!=""&&com.value.length>500){alert("Your comments cannot exceed the limit of 500 characters");return}if((document.getElementById('rfp_attachment').value!="")&&(checkFileForDoc('rfp_attachment')==false)){return}if(document.forms[0].action!=""){document.forms[0].submit()}document.forms[0].action="";return}function select_tab_view(name,id_number){var all=document.getElementsByName(name);document.getElementById(name+"_0").style.display="none";document.getElementById(name+"_1").style.display="none";document.getElementById(name+"_2").style.display="none";document.getElementById(name+"_3").style.display="none";document.getElementById(name+"_0_header").className="unselected";document.getElementById(name+"_1_header").className="unselected";document.getElementById(name+"_2_header").className="unselected";document.getElementById(name+"_3_header").className="unselected";document.getElementById(name+"_"+id_number).style.display="block";document.getElementById(name+"_"+id_number+"_header").className="selected"}function show_loading(msg){if(msg==""){msg="Please wait while we gather your results"}document.getElementById('show_loading_message').innerHTML=msg+" ";document.getElementById('processing_image').src="../gtce_images/layout/loading.gif";var loading=document.getElementById('processing_popup');loading.style.display='block'}function hide_loading(msg){document.getElementById('processing_popup').style.display='none'}function get_remaining_characters(object,limit,label){label_object=document.getElementById(label);if(object.value.length>limit){label_object.innerHTML="(0 characters remaining)";object.value=object.value.substring(0,limit)}else{var value=limit-object.value.length;label_object.innerHTML="("+value+" characters remaining)"}}