function rolloverButton (id, state) {r1.checked = true;window.alert(id);if (document.getElementById) {var element_id = document.getElementById(id);if (state == 'over') {element_id.className = 'buttons_over';}else{element_id.className = 'buttons';}}}
function enableButtons(){document.getElementById('submit3').disabled = false;document.getElementById('submit4').disabled = false;document.getElementById('submit5').disabled = false;}
function enable(id, en) {var obj = document.getElementById(id);if (obj != null) {if (en) {obj.disabled = false; }else{obj.disabled = true;}}}
function selectCheckBox(id){if (document.getElementById) {var element_id = document.getElementById(id);if (element_id.checked == true) {element_id.checked = false;}else{element_id.checked = true;}}}
function enableDisableRow(rowNumber, classId){if (document.getElementById) {var element_id = document.getElementById('r'+rowNumber);var td_id = document.getElementById('r'+rowNumber+'td');var td_id_other = document.getElementById('r'+rowNumber+'tdo');var td_id_other2 = document.getElementById('r'+rowNumber+'tdo2');var div_id = document.getElementById('divr'+rowNumber+'_startDate');var div_id2 = document.getElementById('divr'+rowNumber+'_endDate');if (element_id.checked == true) {element_id.checked = false;div_id.style.visibility = "hidden";div_id2.style.visibility = "hidden";if(classId == 'table_item_row'){td_id.className = 'table_item_first_row_disabled';td_id_other.className = 'table_item_other_rows_disabled';td_id_other2.className = 'table_item_other_rows_disabled';}else{td_id.className = 'table_alternate_item_first_row_disabled';td_id_other.className = 'table_alternate_item_other_rows_disabled';td_id_other2.className = 'table_alternate_item_other_rows_disabled';}}else{element_id.checked = true;div_id.style.visibility = "visible";div_id2.style.visibility = "visible";if(classId == 'table_item_row'){td_id.className = 'table_item_first_row';td_id_other.className = 'table_item_other_rows';td_id_other2.className = 'table_item_other_rows';}else{td_id.className = 'table_alternate_item_first_row';td_id_other.className = 'table_alternate_item_other_rows';td_id_other2.className = 'table_alternate_item_other_rows';}}}}
function selectRadioBtn(id){if (document.getElementById(id)) {var element_id = document.getElementById(id);if (element_id.disabled == false){element_id.checked = true;}else{return false;}}}
function enableSections(){if(document.form.price.checked){document.form.Sections.disabled=true;} else{document.form.Sections.disabled=false;}}
function disableSections(){if(document.form.price.checked){document.form.Sections.disabled=false;}else{document.form.Sections.disabled=true;}}
function enableDisableSection(id, status){document.form.id.disabled=status;}
function closeSections(){for(var i=1;i<10;i++){display('quantity'+i, 'hide');} }
function closeSections1(){for(var i=1;i<6;i++){display('price0'+i, 'hide');} }
function setWidth(id, width){document.getElementById(id).style.width = width + 'px';}
function hide_to_print(){setWidth("page_container", 675);if(document.getElementById('body') != null){document.getElementById('body').className='body_white';}if(document.getElementById('headerLinks') != null){document.getElementById('headerLinks').className="hide";}if(document.getElementById('status') != null){document.getElementById('status').className="hide";}if(document.getElementById('footer') != null){document.getElementById('footer').className='hide';}if(document.getElementById('buttons') != null){document.getElementById('buttons').className='hide';}if(document.getElementById('orderNo_to_print') != null){document.getElementById('orderNo_to_print').className='show';}if(document.getElementById('orderNo') != null){document.getElementById('orderNo').className='hide';}if(document.getElementById('steps') != null){document.getElementById('steps').className='hide';}if(document.getElementById('myAccountSubmenu') != null){document.getElementById('myAccountSubmenu').className='hide';}if(document.getElementById('beta') != null) document.getElementById('beta').className='hide';}
function window_popup(url, name, width, height){var newwin = window.open(url,name,'height='+height+', width='+width+',toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');newwin.focus();}
function seating_assignment_popup(){window.open('../SeatingAssignment.aspx','name','height=490, width=740,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');}
function seating_chart_view_popup(){window.open('seating_chart_view.htm','name','height=490, width=740,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');}
function seating_chart_view_popup_generic(){window.open('seating_chart_view_generic.htm','name','height=490, width=740,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');}
function popup_generic(){window.open('generic_pop_up.htm','name','height=450, width=740,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');}
function close_cards(){var card;var key;var i=1;document.getElementById("otherCard").className='hide';do{key = 'CardDiv'+i;card = document.getElementById(key);i++;if(card!=null & card!=undefined)card.className='hide';}while(card!=null & card!=undefined);}
function uncheck(){for (var i = 0; i < document.form1.r1.length; i++) {document.form1.r1[i].checked = false;}}
function display(id,status){if (document.getElementById(id) != null) document.getElementById(id).className = status;}
function toggle(id){if (document.getElementById(id) != null){if(document.getElementById(id).className == "hide"){document.getElementById(id).className = "show";}else{document.getElementById(id).className = "hide";}}}
function setFocus(id){document.getElementById(id).focus();}
function close_popup(){closetime = 60; if (closetime) setTimeout("this.close();", closetime*1000);}
function timedSuccess(id){var id = "display('"+id+"','hide')";setTimeout(id, 10000);}
function getHeight(id){return document.getElementById(id).offsetHeight;}
function setHeight(id, height){document.getElementById(id).style.height = height + 'px';	}
function setWidth(id, width){document.getElementById(id).style.width = width + 'px';	}
function countDown(x,redirectUrl, remainingTimeMsg, timeExpireMsg){var x = Math.round(Number(x));var s;var min = Number(0); var sec;sec = x;do{if (sec >= 60){min++;sec = sec - 60;}}while(sec>=60);if (x > 0){ 	if (sec < 10 ){s = min + ":0"+sec;}else{s = min + ":"+sec;}x--;}else{x = 0;clearTimeout(count);alert(timeExpireMsg);document.location.href = redirectUrl;}window.status = remainingTimeMsg + " " + s;count = setTimeout("countDown("+x+",'"+redirectUrl+"','" + remainingTimeMsg + "','" + timeExpireMsg + "')",1000);return true;}
function getObject(id) {return document.getElementById(id);}
function setValue(id, value) {var object;object = document.getElementById(id);if (object != null){object.value = value;}}
function setClass(id, className) {var object;object = document.getElementById(id);if (object != null){object.className = className;}}
function hideValidationSummary(validadionSummaryId){var validadionSummary = getObject(validadionSummaryId + '_outerdiv');if (validadionSummary != null) validadionSummary.style.display = 'none';}
function onlyNumbers(evt) { var nav4 = window.Event ? true : false;var key = nav4 ? evt.which : evt.keyCode; return (key <= 13 || (key >= 48 && key <= 57) || key == 46);}
function onlyLetters(evt) { var nav4 = window.Event ? true : false;var key = nav4 ? evt.which : evt.keyCode; return (key <= 13 || (key >= 65 && key <= 90) || (key >= 97 && key <= 122) || key == 45 || key == 32 || key == 46 || key == 39 || key == 44);}
function onlyAlphaNumeric(evt) { var nav4 = window.Event ? true : false;var key = nav4 ? evt.which : evt.keyCode; return (key <= 13 || (key >= 65 && key <= 90) || (key >= 97 && key <= 122) || (key >= 48 && key <= 57));}