var blnPageChanged=false; //var blnPageChanged=true; function PageChanged() { if(!blnPageChanged) {window.status='Please remember to save your changes for this section.'} else {window.status+='.'} blnPageChanged=true; } function promptNavFromPage(url) {//alert(url) if(blnPageChanged==true) { if(confirm("You have made changes to one or more questions on this page.\n\nWould you like to save your changes before leaving this page?\n\nPress 'OK' to save your changes.\nPress 'Cancel' to ignore your changes and proceed to the next page.")) { document.getElementById("redirecttab").value=QueryString(url,'tab') //document.all.redirecttab.value=QueryString(url,'tab') //alert(document.all.redirecttab.value) //alert('debug: store values answered on this page'); document.forms.sectionform.submit(); } else { window.location.href=url; } } else {//alert(url) window.location.href=url; } } function submitForm() {//alert(blnPageChanged) if(blnPageChanged==true) { return true } else { //alert("You have not made any changes to this section. There is nothing to save."); //return false; return true //override normal message to support auto-advance in SHS survey } } function QueryString(url,key) {QueryString_Parse(url) var value = null; for (var i=0;i= 0) { var argname = pairs[i].substring(0,pos); var value = pairs[i].substring(pos+1); QueryString.keys[QueryString.keys.length] = argname; QueryString.values[QueryString.values.length] = value; } } } //QueryString_Parse();