HEX
Server: Apache
System: Linux sg2plmcpnl492417.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: nyiet8349bzl (9207396)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/nyiet8349bzl/iecbm.sbsc.in/js/validation.js
function IsNumeric(evt)
	{
		var charCode = (evt.which) ? evt.which : event.keyCode
		if (charCode > 31 && (charCode < 48 || charCode > 57))
		return false;
		return true;
	}

	
function withoutspecialnumeric(evt)
	{
		var charCode = (evt.which) ? evt.which : event.keyCode
		if((64 < charCode && charCode < 91) || (96 <charCode && charCode< 123) || (charCode==32) || charCode == 8  || charCode == 46)
		{
			return true;
		}else{
			return false;
		}
	}		


function registration()
	{ 				
		if(document.request.name.value.trim() == '')
		{
			$(".msg").html('Please enter your name');
			document.request.name.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.request.name.value.length < 3)
		{
			$(".msg").html('Please enter your correct name');
			document.request.name.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.request.email.value.trim() == '')
		{
			$(".msg").html('Please enter your email id');
			document.request.email.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.request.email.value.trim()!= '')
		{
			if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.request.email.value)))
			{
				$(".msg").html('Invalid email id! Please enter the correct user email id');
				document.request.email.focus();
				$(".msg").css("display", "block");
				return false;
			} else{
				$(".msg").css("display", "none");
			}
		}
		/*if(document.request.email.value.trim()!= '')
		{
			if (!(/^\w+([\-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.request.email.value)))
			{
				$(".msg").html('Invalid email id!');
				document.request.email.focus();
				$(".msg").css("display", "block");
				return false;
			} else{
				$(".msg").css("display", "none");
			}
		}*/
		if(document.request.phone.value.trim() == '')
		{
			$(".msg").html('Please enter your mubile number');
			document.request.phone.focus();
			$(".msg").css("display", "block"); 
			return false;
		}else{
			$(".msg").css("display", "none"); 
		}
		if(document.request.phone.value.length < 10)
		{
			$(".msg").html("Please enter your mobile number greater than or equal to 10 digits");
			document.request.phone.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.request.university.value.trim() == '')
		{
			$(".msg").html('Please enter your Department/University');
			document.request.university.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.request.institute.value.trim() == '')
		{
			$(".msg").html('Please enter your affiliated institute');
			document.request.institute.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.request.country.value.trim() == '')
		{
			$(".msg").html('Please enter your country');
			document.request.country.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.request.payment.value.trim() == '')
		{
			$(".msg").html('Please select your payment type');
			document.request.payment.focus();
			$(".msg").css("display", "block"); 
			return false;
		} else{
			$(".msg").css("display", "none"); 
		}
		if(document.request.transaction.value.trim() == '')
		{
			$(".msg").html("Please enter your transaction id");
			document.request.transaction.focus();
			$(".msg").css("display", "block");
			return false;
		} else {
			$(".msg").css("display", "none");
		}
		/*if(document.request.reg_type.value.trim() == '')
		{
			$(".msg").html('Please select your registration type');
			document.request.reg_type.focus();
			$(".msg").css("display", "block"); 
			return false;
		} else{
			$(".msg").css("display", "none"); 
		}*/
        return true;
	}
	
function student_registration()
	{ 				
		if(document.student.title.value.trim() == '')
		{
			$(".msg").html('Please select your title');
			document.student.title.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.student.fname.value.trim() == '')
		{
			$(".msg").html('Please enter your first name');
			document.student.fname.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.student.fname.value.length < 3)
		{
			$(".msg").html('Please enter your correct name');
			document.student.fname.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.student.lname.value.trim() == '')
		{
			$(".msg").html('Please enter your last name');
			document.student.lname.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.student.lname.value.length < 3)
		{
			$(".msg").html('Please enter your correct name');
			document.student.lname.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.student.institution.value.trim() == '')
		{
			$(".msg").html('Please enter your institution name');
			document.student.institution.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.student.category.value.trim() == '')
		{
			$(".msg").html('Please select your registration category');
			document.student.category.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.student.field.value.trim() == '')
		{
			$(".msg").html('Please enter your research field');
			document.student.field.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.student.email.value.trim() == '')
		{
			$(".msg").html('Please enter your email id');
			document.student.email.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
		if(document.student.email.value.trim()!= '')
		{
			if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.student.email.value)))
			{
				$(".msg").html('Invalid email id! Please enter the correct user email id');
				document.student.email.focus();
				$(".msg").css("display", "block");
				return false;
			} else{
				$(".msg").css("display", "none");
			}
		}
		/*if(document.student.email.value.trim()!= '')
		{
			if (!(/^\w+([\-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.student.email.value)))
			{
				$(".msg").html('Invalid email id!');
				document.student.email.focus();
				$(".msg").css("display", "block");
				return false;
			} else{
				$(".msg").css("display", "none");
			}
		}*/
		if(document.student.phone.value.trim() == '')
		{
			$(".msg").html('Please enter your mubile number');
			document.student.phone.focus();
			$(".msg").css("display", "block"); 
			return false;
		}else{
			$(".msg").css("display", "none"); 
		}
		if(document.student.phone.value.length < 10)
		{
			$(".msg").html("Please enter your mobile number greater than or equal to 10 digits");
			document.student.phone.focus();
			$(".msg").css("display", "block");
			return false;
		} else{
			$(".msg").css("display", "none");
		}
        return true;
	}