// JavaScript Document var xmlhttp; // start of loder funtion calling function t_display(){ window.setTimeout('document.getElementById("TheImgId").style.display = "inline";',1); window.setTimeout('document.getElementById("TheImgId").style.display = "none";',1000); //alert("danish tariq"); } // end of loder funtion calling function t_img1(){ window.setTimeout('document.getElementById("loadername").style.display = "inline";',1); window.setTimeout('document.getElementById("loadername").style.display = "none";',1000); window.setTimeout('document.getElementById("namei1").style.display = "inline";',1000); window.setTimeout('document.getElementById("namei1").style.display = "none";',2500); } function t_img2(){ window.setTimeout('document.getElementById("loader2").style.display = "inline";',1); window.setTimeout('document.getElementById("loader2").style.display = "none";',1000); window.setTimeout('document.getElementById("image2").style.display = "inline";',1000); window.setTimeout('document.getElementById("image2").style.display = "none";',2500); } function t_img3(){ window.setTimeout('document.getElementById("loader3").style.display = "inline";',1); window.setTimeout('document.getElementById("loader3").style.display = "none";',1000); window.setTimeout('document.getElementById("image3").style.display = "inline";',1000); window.setTimeout('document.getElementById("image3").style.display = "none";',2500); } /*function t_img4(){ window.setTimeout('document.getElementById("loader4").style.display = "inline";',1); window.setTimeout('document.getElementById("loader4").style.display = "none";',1000); window.setTimeout('document.getElementById("image4").style.display = "inline";',1000); window.setTimeout('document.getElementById("image4").style.display = "none";',2500); }*/ function t_img6(){ window.setTimeout('document.getElementById("loader6").style.display = "inline";',1); window.setTimeout('document.getElementById("loader6").style.display = "none";',1000); window.setTimeout('document.getElementById("image6").style.display = "inline";',1000); window.setTimeout('document.getElementById("image6").style.display = "none";',2500); } function t_img7(){ window.setTimeout('document.getElementById("loader7").style.display = "inline";',1); window.setTimeout('document.getElementById("loader7").style.display = "none";',1000); window.setTimeout('document.getElementById("image7").style.display = "inline";',1000); window.setTimeout('document.getElementById("image7").style.display = "none";',2500); } function t_img8(){ window.setTimeout('document.getElementById("loader8").style.display = "inline";',1); window.setTimeout('document.getElementById("loader8").style.display = "none";',1000); window.setTimeout('document.getElementById("image8").style.display = "inline";',1000); window.setTimeout('document.getElementById("image8").style.display = "none";',2500); } function t_img9(){ window.setTimeout('document.getElementById("loader9").style.display = "inline";',1); window.setTimeout('document.getElementById("loader9").style.display = "none";',1000); window.setTimeout('document.getElementById("image9").style.display = "inline";',1000); window.setTimeout('document.getElementById("image9").style.display = "none";',2500); } function t_img10(){ window.setTimeout('document.getElementById("loader10").style.display = "inline";',1); window.setTimeout('document.getElementById("loader10").style.display = "none";',1000); window.setTimeout('document.getElementById("image10").style.display = "inline";',1000); window.setTimeout('document.getElementById("image10").style.display = "none";',2500); } function t_img11(){ window.setTimeout('document.getElementById("loader11").style.display = "inline";',1); window.setTimeout('document.getElementById("loader11").style.display = "none";',1000); window.setTimeout('document.getElementById("image11").style.display = "inline";',1000); window.setTimeout('document.getElementById("image11").style.display = "none";',2500); } function t_img12(){ window.setTimeout('document.getElementById("loader12").style.display = "inline";',1); window.setTimeout('document.getElementById("loader12").style.display = "none";',1000); window.setTimeout('document.getElementById("image12").style.display = "inline";',1000); window.setTimeout('document.getElementById("image12").style.display = "none";',2500); } function t_img13(){ window.setTimeout('document.getElementById("loader13").style.display = "inline";',1); window.setTimeout('document.getElementById("loader13").style.display = "none";',1000); window.setTimeout('document.getElementById("image13").style.display = "inline";',1000); window.setTimeout('document.getElementById("image13").style.display = "none";',2500); } function t_img14(){ window.setTimeout('document.getElementById("loader14").style.display = "inline";',1); window.setTimeout('document.getElementById("loader14").style.display = "none";',1000); window.setTimeout('document.getElementById("image14").style.display = "inline";',1000); window.setTimeout('document.getElementById("image14").style.display = "none";',2500); } function t_img15(){ window.setTimeout('document.getElementById("loader15").style.display = "inline";',1); window.setTimeout('document.getElementById("loader15").style.display = "none";',1000); window.setTimeout('document.getElementById("image15").style.display = "inline";',1000); window.setTimeout('document.getElementById("image15").style.display = "none";',2500); } // start of personal info textbox empty fuction function t_emptys() { //alert("empty"); document.getElementById("names").innerHTML =""; document.getElementById("designations").innerHTML =""; document.getElementById("departments").innerHTML =""; // document.getElementById("researchs").innerHTML =""; document.getElementById("statements").innerHTML =""; document.getElementById("titles").innerHTML =""; document.getElementById("authors").innerHTML =""; document.getElementById("publishess").innerHTML =""; document.getElementById("emails").innerHTML =""; document.getElementById("passwords").innerHTML =""; document.getElementById("researchs").innerHTML =""; document.getElementById("subjects").innerHTML =""; document.getElementById("degrees").innerHTML =""; document.getElementById("statuss").innerHTML =""; } function t_emptys_main() { //alert("empty"); document.getElementById("names").innerHTML =""; document.getElementById("departments").innerHTML =""; // document.getElementById("researchs").innerHTML =""; document.getElementById("emails").innerHTML =""; document.getElementById("passwords").innerHTML =""; document.getElementById("degrees").innerHTML =""; document.getElementById("statuss").innerHTML =""; } function t_emptys_edit() { //alert("empty"); document.getElementById("names").innerHTML =""; document.getElementById("departments").innerHTML =""; // document.getElementById("researchs").innerHTML =""; document.getElementById("statements").innerHTML =""; document.getElementById("emails").innerHTML =""; document.getElementById("passwords").innerHTML =""; document.getElementById("researchs").innerHTML =""; document.getElementById("subjects").innerHTML =""; document.getElementById("degrees").innerHTML =""; document.getElementById("statuss").innerHTML =""; } // end of personal info textbox empty fuction // start of Publishes empty function t_empty_pub() { document.getElementById("titles").innerHTML =""; document.getElementById("authors").innerHTML =""; document.getElementById("publishess").innerHTML =""; } // end of publishes emptyh function teacherprofile() { // this function for ajax image loader //display(); // end of function for ajax image loader var name= document.getElementById("name").value; var designation= document.getElementById("designation").value; var department= document.getElementById("department").value; var research1= document.getElementById("research1").checked; var research2= document.getElementById("research2").checked; var research3= document.getElementById("research3").checked; var research4= document.getElementById("research4").checked; var research5= document.getElementById("research5").checked; var research6= document.getElementById("research_other").value; var subject1= document.getElementById("subjectes1").checked; var subject2= document.getElementById("subjectes2").checked; var subject3= document.getElementById("subjectes3").checked; var subject4= document.getElementById("subjectes4").checked; var subject5= document.getElementById("subjectes5").checked; var subject6= document.getElementById("subjectes_other").value; var statement= document.getElementById("statement").value; var title= document.getElementById("title").value; var author= document.getElementById("authora").value; var publishes= document.getElementById("publishes").value; var email= document.getElementById("email").value; var password= document.getElementById("password").value; var degree= document.getElementById("degree").value; var status= document.getElementById("status").value; //alert(research); // start check for empty value /* function emptys1(){ document.getElementById('sess').innerHTML=''; }*/ if(name==''){ document.getElementById("names").style.color= "#333333"; document.getElementById("names").innerHTML = "Enter Your Name"; return false; } if(degree==''){ document.getElementById("degrees").style.color= "#333333"; document.getElementById("degrees").innerHTML = "Enter Your Degree"; return false; } if(status==''){ document.getElementById("statuss").style.color= "#333333"; document.getElementById("statuss").innerHTML = "Enter Your Status"; return false; } if(designation==''){ document.getElementById("designations").style.color= "#333333"; document.getElementById("designations").innerHTML = "Enter Your Designation"; return false; } if(department==''){ document.getElementById("departments").style.color= "#333333"; document.getElementById("departments").innerHTML = "Enter Your Department"; return false; } if(research1==false && research2==false && research3==false && research4==false && research5==false && research6==''){ document.getElementById("researchs").style.color= "#333333"; document.getElementById("researchs").innerHTML = "Enter area of research"; return false; } if(subject1==false && subject2==false && subject3==false && subject4==false && subject5==false && subject6==''){ document.getElementById("subjects").style.color= "#333333"; document.getElementById("subjects").innerHTML = "Enter subject"; return false; } if(statement==''){ document.getElementById("statements").style.color= "#333333"; document.getElementById("statements").innerHTML = "Enter department"; return false; } if(title==''){ document.getElementById("titles").style.color= "#333333"; document.getElementById("titles").innerHTML = "Enter title"; return false; } if(author==''){ document.getElementById("authors").style.color= "#333333"; document.getElementById("authors").innerHTML = "Enter author"; return false; } if(publishes==''){ document.getElementById("publishess").style.color= "#333333"; document.getElementById("publishess").innerHTML = "Enter publishes"; return false; } if(email=='' || email !=''){ var RegExp = /^((([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+(\.([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+)*)@((((([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.))*([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.)[\w]{2,4}|(((([0-9]){1,3}\.){3}([0-9]){1,3}))|(\[((([0-9]){1,3}\.){3}([0-9]){1,3})\])))$/ if(RegExp.test(email)){ }else{ document.getElementById("emails").style.color= "#333333"; document.getElementById("emails").innerHTML = "Enter valid email"; return false; } } if(password==''){ document.getElementById("passwords").style.color= "#333333"; document.getElementById("passwords").innerHTML = "Enter password"; return false; } } // end check for empty value function teacherprofile_main() { // this function for ajax image loader //display(); // end of function for ajax image loader var name= document.getElementById("name").value; var department= document.getElementById("department").value; var email= document.getElementById("email").value; var password= document.getElementById("password").value; var degree= document.getElementById("degree").value; var status= document.getElementById("status").value; //alert(research); // start check for empty value /* function emptys1(){ document.getElementById('sess').innerHTML=''; }*/ if(name==''){ document.getElementById("names").style.color= "#333333"; document.getElementById("names").innerHTML = "Enter Your Name"; return false; } if(degree==''){ document.getElementById("degrees").style.color= "#333333"; document.getElementById("degrees").innerHTML = "Enter Your Degree"; return false; } if(status==''){ document.getElementById("statuss").style.color= "#333333"; document.getElementById("statuss").innerHTML = "Enter Your Status"; return false; } if(department==''){ document.getElementById("departments").style.color= "#333333"; document.getElementById("departments").innerHTML = "Enter Your Department"; return false; } if(email=='' || email !=''){ var RegExp = /^((([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+(\.([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+)*)@((((([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.))*([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.)[\w]{2,4}|(((([0-9]){1,3}\.){3}([0-9]){1,3}))|(\[((([0-9]){1,3}\.){3}([0-9]){1,3})\])))$/ if(RegExp.test(email)){ }else{ document.getElementById("emails").style.color= "#333333"; document.getElementById("emails").innerHTML = "Enter valid email"; return false; } } if(password==''){ document.getElementById("passwords").style.color= "#333333"; document.getElementById("passwords").innerHTML = "Enter password"; return false; } } // start of edit function teacherprofile_edit() { // this function for ajax image loader //display(); // end of function for ajax image loader var name= document.getElementById("name").value; var department= document.getElementById("department").value; var research1= document.getElementById("research1").value; var subject1= document.getElementById("subjects1").value; var statement= document.getElementById("statement").value; var email= document.getElementById("email").value; var password= document.getElementById("password").value; var degree= document.getElementById("degree").value; var status= document.getElementById("status").value; //alert(research); // start check for empty value /* function emptys1(){ document.getElementById('sess').innerHTML=''; }*/ if(name==''){ document.getElementById("names").style.color= "#333333"; document.getElementById("names").innerHTML = "Enter Your Name"; return false; } if(degree==''){ document.getElementById("degrees").style.color= "#333333"; document.getElementById("degrees").innerHTML = "Enter Your Degree"; return false; } if(status==''){ document.getElementById("statuss").style.color= "#333333"; document.getElementById("statuss").innerHTML = "Enter Your Status"; return false; } if(department==''){ document.getElementById("departments").style.color= "#333333"; document.getElementById("departments").innerHTML = "Enter Your Department"; return false; } if(research1==''){ document.getElementById("researchs").style.color= "#333333"; document.getElementById("researchs").innerHTML = "Enter area of research"; return false; } if(subject1==''){ document.getElementById("subjects").style.color= "#333333"; document.getElementById("subjects").innerHTML = "Enter subject"; return false; } if(statement==''){ document.getElementById("statements").style.color= "#333333"; document.getElementById("statements").innerHTML = "Enter department"; return false; } if(email=='' || email !=''){ var RegExp = /^((([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+(\.([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+)*)@((((([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.))*([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.)[\w]{2,4}|(((([0-9]){1,3}\.){3}([0-9]){1,3}))|(\[((([0-9]){1,3}\.){3}([0-9]){1,3})\])))$/ if(RegExp.test(email)){ }else{ document.getElementById("emails").style.color= "#333333"; document.getElementById("emails").innerHTML = "Enter valid email"; return false; } } if(password==''){ document.getElementById("passwords").style.color= "#333333"; document.getElementById("passwords").innerHTML = "Enter password"; return false; } } // end of edit //start of teacher publishes function teacher_pub() { var title= document.getElementById("title").value; var author= document.getElementById("authora").value; var publishes= document.getElementById("publishes").value; if(title==''){ document.getElementById("titles").style.color= "#333333"; document.getElementById("titles").innerHTML = "Enter title"; return false; } if(author==''){ document.getElementById("authors").style.color= "#333333"; document.getElementById("authors").innerHTML = "Enter author"; return false; } if(publishes==''){ document.getElementById("publishess").style.color= "#333333"; document.getElementById("publishess").innerHTML = "Enter publishes"; return false; } } // end of teacher publishes