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 == "AC") { document.ABSTRACT.THIS_SUB_CLASS.options[1] = new Option ("Absorbers", "AB", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[2] = new Option ("BM sources", "BS", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[3] = new Option ("Free Electron Lasers", "FL", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[4] = new Option ("Insertion Devices", "ID", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[5] = new Option ("Magnets", "MA", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[6] = new Option ("Storage rings", "SR", false, false); } else if (class_code == "CD") { document.ABSTRACT.THIS_SUB_CLASS.options[1] = new Option ("Big data and AI", "BA", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[2] = new Option ("Cryogenics", "CR", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[3] = new Option ("Infrastructures", "IF", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[4] = new Option ("New technologies", "NT", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[5] = new Option ("Others", "OT", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[6] = new Option ("Vacuum", "VA", false, false); } else if (class_code == "NU") { document.ABSTRACT.THIS_SUB_CLASS.options[1] = new Option ("Assemble and Installation", "AI", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[2] = new Option ("Fabrication", "FA", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[3] = new Option ("Large scale CAD model integration", "LC", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[4] = new Option ("Logistics and management", "LM", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[5] = new Option ("QA and tracking", "QT", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[6] = new Option ("Utilities", "UT", false, false); } else if (class_code == "PM") { document.ABSTRACT.THIS_SUB_CLASS.options[1] = new Option ("Automation", "AU", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[2] = new Option ("Mechatronics", "ME", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[3] = new Option ("Nano-positioning", "NP", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[4] = new Option ("Stability issues", "SI", false, false); } else if (class_code == "PR") { document.ABSTRACT.THIS_SUB_CLASS.options[1] = new Option ("Beamlines", "BL", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[2] = new Option ("End Stations", "ES", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[3] = new Option ("Front Ends", "FE", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[4] = new Option ("Optics", "OP", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[5] = new Option ("XBPMs", "XB", false, false); } else if (class_code == "SI") { document.ABSTRACT.THIS_SUB_CLASS.options[1] = new Option ("FEA methods", "FM", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[2] = new Option ("Structural statics and dynamics", "SD", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[3] = new Option ("Thermal", "TH", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[4] = new Option ("Vibration", "VI", false, false); } else if (class_code == "") { document.ABSTRACT.THIS_SUB_CLASS.options[1] = new Option ("Absorbers", "AB", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[2] = new Option ("Assemble and Installation", "AI", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[3] = new Option ("Automation", "AU", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[4] = new Option ("BM sources", "BS", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[5] = new Option ("Beamlines", "BL", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[6] = new Option ("Big data and AI", "BA", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[7] = new Option ("Cryogenics", "CR", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[8] = new Option ("End Stations", "ES", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[9] = new Option ("FEA methods", "FM", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[10] = new Option ("Fabrication", "FA", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[11] = new Option ("Free Electron Lasers", "FL", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[12] = new Option ("Front Ends", "FE", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[13] = new Option ("Infrastructures", "IF", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[14] = new Option ("Insertion Devices", "ID", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[15] = new Option ("Large scale CAD model integration", "LC", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[16] = new Option ("Logistics and management", "LM", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[17] = new Option ("Magnets", "MA", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[18] = new Option ("Mechatronics", "ME", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[19] = new Option ("Nano-positioning", "NP", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[20] = new Option ("New technologies", "NT", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[21] = new Option ("Optics", "OP", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[22] = new Option ("Others", "OT", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[23] = new Option ("QA and tracking", "QT", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[24] = new Option ("Stability issues", "SI", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[25] = new Option ("Storage rings", "SR", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[26] = new Option ("Structural statics and dynamics", "SD", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[27] = new Option ("Thermal", "TH", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[28] = new Option ("Utilities", "UT", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[29] = new Option ("Vacuum", "VA", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[30] = new Option ("Vibration", "VI", false, false); document.ABSTRACT.THIS_SUB_CLASS.options[31] = new Option ("XBPMs", "XB", 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)$", "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; } } 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, or .TEX"); 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.")); } }