var base_url = 'http://www.tworivers.com.au/'; function confirmg(question,url) { var x = confirm(question); if (x) { window.location = url; } } function optionSelect(div_name, option_value) { for(var x=0; x < document.getElementById(div_name).length; x++) { if(document.getElementById(div_name).options[x].value == option_value) { document.getElementById(div_name).options[x].selected = true; } } } function optionDeselect(div_name, option_value) { for(var x=0; x < document.getElementById(div_name).length; x++) { if(document.getElementById(div_name).options[x].value == option_value) { document.getElementById(div_name).options[x].selected = false; } } } function appendOption(div_name, option_value, option_text, sv) { var elOptNew = document.createElement('option'); elOptNew.text = option_text; elOptNew.value = option_value; elOptNew.selected = sv; var elSel = document.getElementById(div_name); try { elSel.add(elOptNew, null); // standards compliant; doesn't work in IE } catch(ex) { elSel.add(elOptNew); // IE only } } function submit_popup(f) { f.target = 'cc'; cc = window.open('', f.target ,'menubar=no,scrollbars=no,width=300,height=150,resizable=yes'); f.submit(); return false; } function confirmg(question,url) { var x = confirm(question); if (x) { window.location = url; } }