/* Faslodex additional JS functions */ function fnSwitchpage(the_form){ //Get the selected link URL from the dropdown var link_chosen; link_chosen=the_form.selection.options[the_form.selection.selectedIndex].value; //Redirect to this URL window.location=link_chosen; return false; } function hideSearchText(the_form) { var defaultValue; var inputValue; inputValue=the_form.bsterm.value; if(inputValue == 'Search Faslodex.net here'){ the_form.bsterm.value = ''; } else if(inputValue == '' || inputValue == null){ the_form.bsterm.value = 'Search Faslodex.net here'; } } function redefineOpacity() { //simply sets the minimum opacity minOpacity = 0; } function privacyPopup(){ if(!!$('privacy-popup')){ $$('a#open-popup')[0].observe('click',function(e){ if(!e.stop)e.stopped; $$('div#privacy-popup')[0].style.display="block"; }); $$('a#close-popup')[0].observe('click',function(e){ if(!e.stop)e.stopped; $$('div#privacy-popup')[0].style.display="none"; }); } } var toCall=[]; toCall[0]=privacyPopup; toCall[1]=redefineOpacity;