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 == "") { } 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.")); } }