var Currency = getCookie("Currency") var noprefpop if (Currency != null) { // alert('cookie already set!') } else { function init() { // Call init() to make the fuction run on page load if (noprefpop == "on") { // don't pop the pref window } else { // Do Function on page load divwin=dhtmlwindow.open('divbox', 'div', 'popDiv', 'Ordering Options', 'top=60,left=200,width=520px,height=280px,resize=1,scrolling=1,center=1'); // Do Some Function on page load after N seconds // setTimeout("divwin=dhtmlwindow.open('divbox', 'div', 'popDiv', 'Ordering Options', 'top=60,left=200,width=460px,height=240px,resize=1,scrolling=1,center=1');", 2000); } } window.onload = init; } function getSelectedCheckbox(buttonGroup) { // Go through all the check boxes. return an array of all the ones // that are selected (their position numbers). if no boxes were checked, // returned array will be empty (length will be zero) var retArr = new Array(); var lastElement = 0; if (buttonGroup[0]) { // if the button group is an array (one check box is not an array) for (var i=0; i