Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function VALIDATE_SBIP()
- {
- var session_id = document.forms["RegForm"]["session_id"];
- var dept_id = document.forms["RegForm"]["dept_id"];
- var course_id = document.forms["RegForm"]["course_id"];
- var proj_title = document.forms["RegForm"]["proj_title"];
- var sv_name = document.forms["RegForm"]["sv_name"];
- var abstract = document.getElementById("abstract").value;
- var prob_stmt = document.getElementById("prob_stmt").value;
- var objective = document.getElementById("objective").value;
- if (session_id.value == "NULL")
- {
- window.alert("Please Select Session");
- session_id.focus();
- return false;
- }
- if (dept_id.value == "NULL")
- {
- window.alert("Please Select Department");
- dept_id.focus();
- return false;
- }
- if (course_id.value == "NULL")
- {
- window.alert("Please Select Course");
- course_id.focus();
- return false;
- }
- if (proj_title.value == "")
- {
- window.alert("Please Fill Project Name");
- proj_title.focus();
- return false;
- }
- if (sv_name.value == "NULL")
- {
- window.alert("Please Select Supervisor");
- sv_name.focus();
- return false;
- }
- if(abstract=="<br>" || abstract=="")
- {
- window.alert("Please Fill Abstract");
- document.getElementById("abstract").focus();
- return false;
- }
- if(prob_stmt=="<br>" || prob_stmt=="")
- {
- window.alert("Please Fill Problem Statement");
- document.getElementById("prob_stmt").focus();
- return false;
- }
- if(objective=="<br>" || objective=="")
- {
- window.alert("Please Fill Objective");
- document.getElementById("objective").focus();
- return false;
- }
- return true;
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement