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 == "RC101") { } else if (class_code == "RC102") { } else if (class_code == "RC103") { } else if (class_code == "RC104") { } else if (class_code == "RC105") { } else if (class_code == "RC106") { } else if (class_code == "RC107") { } else if (class_code == "RC108") { } else if (class_code == "RC109") { } else if (class_code == "RC110") { } else if (class_code == "RC111") { } else if (class_code == "RC112") { } else if (class_code == "RC113") { } else if (class_code == "RC114") { } else if (class_code == "RC115") { } else 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 > 2000) { alert ("Abstract exceeds the maximum length of 2000 characters. Your abstract is " + document.ABSTRACT.this_description.value.length + " characters."); return false; } if (document.ABSTRACT.this_footnote.value.length > 1400) { alert ("Footnote exceeds the maximum length of 1400 characters. Your footnote is " + document.ABSTRACT.this_footnote.value.length + " characters."); return false; } if (document.ABSTRACT.this_agency.value.length > 400) { alert ("Agency exceeds the maximum length of 400 characters. Your agency is " + document.ABSTRACT.this_agency.value.length + " characters."); return false; } return true; } function validateFileForm () { var SRC = new RegExp (document.FILE_UPLOAD.paper_id.value + "\\.(TEX|DOC|DOCX|ODT)$", "i"); var PS = new RegExp (document.FILE_UPLOAD.paper_id.value + "\\.PS$", "i"); var PDF = new RegExp (document.FILE_UPLOAD.paper_id.value + "\\.(PDF)$", "i"); var TRAN = new RegExp (document.FILE_UPLOAD.paper_id.value + "_TALK\\.(PPT|PPTX|PPS|PPSX|PDF|ODP)$", "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 " + document.FILE_UPLOAD.paper_id.value + ".DOC, " + document.FILE_UPLOAD.paper_id.value + ".TEX, " + document.FILE_UPLOAD.paper_id.value + ".PDF, " + document.FILE_UPLOAD.paper_id.value + "_TALK.PPT or " + document.FILE_UPLOAD.paper_id.value + "_TALK.PDF"; if (document.FILE_UPLOAD.this_file_type.value == "SRC") { if (filename.match(SRC) == null) { alert ("Source filename must be named " + document.FILE_UPLOAD.paper_id.value + ".DOC , " + document.FILE_UPLOAD.paper_id.value + ".TEX, or " + document.FILE_UPLOAD.paper_id.value + ".ODT"); return false; } } else 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; } } else if (document.FILE_UPLOAD.this_file_type.value == "PDF") { if (filename.match(PDF) == null) { alert ("PDF filename must be named " + document.FILE_UPLOAD.paper_id.value + ".PDF"); return false; } } else if (document.FILE_UPLOAD.this_file_type.value == "TRAN") { if (filename.match(TRAN) == null) { alert ("Transparenecy filename must be named " + document.FILE_UPLOAD.paper_id.value + "_talk.PPT, " + document.FILE_UPLOAD.paper_id.value + "_talk.PPS or " + document.FILE_UPLOAD.paper_id.value + "_talk.PDF or " + document.FILE_UPLOAD.paper_id.value + "_TALK.ODT"); return false; } } else { if (filename.match(SRC) !== null) { alert (err_msg); return false; } else if (filename.match(PS) !== null) { alert (err_msg); return false; } else if (filename.match(PDF) !== null) { alert (err_msg); return false; } else if (filename.match(TRAN) !== null) { alert (err_msg); return false; } } return true; } function template_guidelines() { var resp; 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.")); } if (document.FILE_UPLOAD.this_file_type.value == "PDF") { 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.")); } }