function load_sub_class (class_code) { document.ABSTRACT.THIS_SUB_CLASS.options.length = 0; // remove all options document.ABSTRACT.THIS_SUB_CLASS.options[0] = new Option ("", "", true, true); if (class_code == "01") { document.ABSTRACT.THIS_SUB_CLASS.options[1] = new Option ("Colliders", "1E", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[2] = new Option ("Electron linac projects", "1A", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[3] = new Option ("Energy recovery linacs", "1B", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[4] = new Option ("FELs", "1D", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[5] = new Option ("Industrial and medical accelerators", "1F", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[6] = new Option ("Other electron accelerators", "1G", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[7] = new Option ("Synchrotron light sources", "1C", false, false); } else if (class_code == "02") { document.ABSTRACT.THIS_SUB_CLASS.options[1] = new Option ("Industrial and medical accelerators", "2F", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[2] = new Option ("Ion linac projects", "2B", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[3] = new Option ("Other proton/ion", "2G", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[4] = new Option ("Proton linac projects", "2A", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[5] = new Option ("RFQs", "2C", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[6] = new Option ("Room temperature structures", "2D", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[7] = new Option ("Superconducting structures", "2E", false, false); } else if (class_code == "03") { document.ABSTRACT.THIS_SUB_CLASS.options[1] = new Option ("Beam diagnostics", "3G", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[2] = new Option ("Cryomodules and cryogenics", "3E", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[3] = new Option ("Industrial developments", "3H", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[4] = new Option ("Insertion devices", "3F", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[5] = new Option ("Low level RF", "3D", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[6] = new Option ("Other technology", "3I", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[7] = new Option ("RF power sources and power couplers", "3C", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[8] = new Option ("Room temperature RF", "3B", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[9] = new Option ("Superconducting RF", "3A", false, false); } else if (class_code == "04") { document.ABSTRACT.THIS_SUB_CLASS.options[1] = new Option ("Beam Dynamics, beam simulations, beam transport", "4A", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[2] = new Option ("Control systems", "4D", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[3] = new Option ("Dielectric and laser based accelerators", "4G", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[4] = new Option ("Electron and ion sources, guns, photo injectors, charge breeders", "4B", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[5] = new Option ("Industrial developments", "4E", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[6] = new Option ("Other beams", "4F", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[7] = new Option ("Plasma and wakefield acceleration", "4C", false, false); } else if (class_code == "") { document.ABSTRACT.THIS_SUB_CLASS.options[1] = new Option ("Beam Dynamics, beam simulations, beam transport", "4A", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[2] = new Option ("Beam diagnostics", "3G", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[3] = new Option ("Colliders", "1E", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[4] = new Option ("Control systems", "4D", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[5] = new Option ("Cryomodules and cryogenics", "3E", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[6] = new Option ("Dielectric and laser based accelerators", "4G", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[7] = new Option ("Electron and ion sources, guns, photo injectors, charge breeders", "4B", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[8] = new Option ("Electron linac projects", "1A", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[9] = new Option ("Energy recovery linacs", "1B", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[10] = new Option ("FELs", "1D", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[11] = new Option ("Industrial and medical accelerators", "1F", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[12] = new Option ("Industrial and medical accelerators", "2F", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[13] = new Option ("Industrial developments", "4E", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[14] = new Option ("Industrial developments", "3H", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[15] = new Option ("Insertion devices", "3F", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[16] = new Option ("Ion linac projects", "2B", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[17] = new Option ("Low level RF", "3D", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[18] = new Option ("Other beams", "4F", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[19] = new Option ("Other electron accelerators", "1G", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[20] = new Option ("Other proton/ion", "2G", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[21] = new Option ("Other technology", "3I", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[22] = new Option ("Plasma and wakefield acceleration", "4C", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[23] = new Option ("Proton linac projects", "2A", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[24] = new Option ("RF power sources and power couplers", "3C", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[25] = new Option ("RFQs", "2C", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[26] = new Option ("Room temperature RF", "3B", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[27] = new Option ("Room temperature structures", "2D", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[28] = new Option ("Superconducting RF", "3A", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[29] = new Option ("Superconducting structures", "2E", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[30] = new Option ("Synchrotron light sources", "1C", false, false); } return true; } function validatedSource () { window.opener.document.FILE_UPLOAD.source_verified.value="Y"; window.close(); return true; } function validateJACoWForm (sub_required) { if (document.ABSTRACT.this_title.value == "") { alert ("You must enter a Title"); return false; } if (document.ABSTRACT.this_PRESENTATION.options[document.ABSTRACT.this_PRESENTATION.selectedIndex].value == "") { alert ("You must select a Presentation"); return false; } if (document.ABSTRACT.this_CLASSIFICATION.options.length <= 1) { if (sub_required == "N") { load_classifiation (document.ABSTRACT.this_presentation.options[document.ABSTRACT.this_presentation.selectedIndex].value); } } if (document.ABSTRACT.this_CLASSIFICATION.options[document.ABSTRACT.this_CLASSIFICATION.selectedIndex].value == "") { alert ("You must select a Main Classification"); return false; } if (sub_required == "Y") { if (document.ABSTRACT.THIS_SUB_CLASS.options.length != 1) { if (document.ABSTRACT.THIS_SUB_CLASS.options[document.ABSTRACT.THIS_SUB_CLASS.selectedIndex].value == "") { alert ("You must select a Sub Classification"); return false; } } } if (document.ABSTRACT.this_description.value == "") { alert ("You must enter an Abstract"); return false; } if (document.ABSTRACT.this_description.value.length > 1200) { alert ("Abstract exceeds the maximum length of 1200 characters. Your abstract is " + document.ABSTRACT.this_description.value.length + " characters."); return false; } if (document.ABSTRACT.this_footnote.value.length > 200) { alert ("Footnote exceeds the maximum length of 200 characters. Your footnote is " + document.ABSTRACT.this_footnote.value.length + " characters."); return false; } if (document.ABSTRACT.this_agency.value.length > 200) { alert ("Agency exceeds the maximum length of 200 characters. Your agency is " + document.ABSTRACT.this_agency.value.length + " characters."); return false; } return true; } function validateFileForm () { var PDFS = new RegExp (document.FILE_UPLOAD.paper_id.value + "\\.(PDF|PS)$", "i"); var SRC = new RegExp (document.FILE_UPLOAD.paper_id.value + "\\.(TEX|DOC|DOCX|DOCM|ODT)$", "i"); var TRAN = new RegExp (document.FILE_UPLOAD.paper_id.value + "_TALK\\.(PPT|PPTX|PPS|PPSX|PDF|ODP)$", "i"); var POST = new RegExp (document.FILE_UPLOAD.paper_id.value + "_poster\\.(PDF)$", "i"); var filename = document.FILE_UPLOAD.file_name.value.toUpperCase(); document.FILE_UPLOAD.validated.value = "YES"; if (document.FILE_UPLOAD.this_file_type.value == "") { alert ("You must specify a File Type"); return false; } if (document.FILE_UPLOAD.this_platform.value == "") { alert ("You must specify a Platform"); return false; } if (document.FILE_UPLOAD.file_name.value == "") { alert ("You must specify a File to Upload"); return false; } if (document.FILE_UPLOAD.this_file_type.value == "PS") { if (filename.match(PS) == null) { alert ("Postscript filename must be named " + document.FILE_UPLOAD.paper_id.value + ".PS"); return false; } } if (document.FILE_UPLOAD.this_file_type.value == "SRC") { if (document.FILE_UPLOAD.source_verified.value == "N") { alert ("You must verify the Abstract and Author List prior to uploading a source file."); return false; } } var err_msg = "Upload of \"Other Supporting File\" can not be named .DOC/TEX/PDF, _TALK.PPT/PDF"; if (document.FILE_UPLOAD.this_file_type.value == "PDFS") { if (filename.match(PDFS) == null) { alert ("Filename must be named .PDF or .PS"); return false; } } else if (document.FILE_UPLOAD.this_file_type.value == "SRC") { if (filename.match(SRC) == null) { alert ("Source filename must be named .DOC /X/M, .TEX, or .ODT"); return false; } } else if (document.FILE_UPLOAD.this_file_type.value == "TRAN") { if (filename.match(TRAN) == null) { alert ("Transparency filename must be named _talk.PPT/PPTX/PPS/PPTX/PDF/ODP"); return false; } } else if (document.FILE_UPLOAD.this_file_type.value == "POST") { if (filename.match(POST) == null) { alert ("Poster filename must be named _poster.PDF"); return false; } } else { if (filename.match(PDFS) !== null) { alert (err_msg); return false; } else if (filename.match(SRC) !== null) { alert (err_msg); return false; } else if (filename.match(TRAN) !== null) { alert (err_msg); return false; } else if (filename.match(POST) !== null) { alert (err_msg); return false; } } return true; } function template_guidelines() { var resp; if (document.FILE_UPLOAD.this_file_type.value == "PDFS") { return (confirm ("I confirm that my manuscript conforms to the guidelines of the JACoW template, and I have checked the paper against the \"Common Oversights\" document, and implemented any necessary changes accordingly.")); } if (document.FILE_UPLOAD.this_file_type.value == "SRC") { return (confirm ("I confirm that my manuscript conforms to the guidelines of the JACoW template, and I have checked the paper against the \"Common Oversights\" document, and implemented any necessary changes accordingly.")); } }