var SF_options1=new Array();function showhiderow(show,hide){if(show)
document.getElementById(show).style.display=((document.defaultCharset)?'block':'table-row');if(hide)
document.getElementById(hide).style.display="none";}
function hideDisplaySF(form,action){var temp_options=new Array();if(action=='hide'){for(var i=form.retid.options.length-1;i>=0;i--){if(form.retid[i].value.indexOf('SF')>=0||form.retid[i].innerHTML.indexOf('StoreFront')>=0){var x=new Array(2);x[0]=form.retid[i].value;x[1]=form.retid[i].innerHTML;form.retid.remove(i);temp_options.push(x);}}
SF_options1=temp_options;}else{if(SF_options1.length>0){for(var i=SF_options1.length-1;i>=0;i--){var new_opt=document.createElement('option');new_opt.value=SF_options1[i][0];new_opt.innerHTML=SF_options1[i][1];form.retid.appendChild(new_opt);}
SF_options1=new Array();}}}
function onTicketTypeSelect(form){var val=form.ticket_type[form.ticket_type.selectedIndex].value;if(val=='price'||val=='link'){form.form_ticket_type.value='price';form.form_sub_cat_id.value=41;form.form_problem.value=val;hideDisplaySF(form,'hide');}else if(val=='multiple'){form.form_ticket_type.value=val;form.form_sub_cat_id.value=46;hideDisplaySF(form,'display');}else{form.form_ticket_type.value=val;form.form_sub_cat_id.value=46;hideDisplaySF(form,'display');}}

