/*function showcourse(ob)
{
	$('#course').remove();
	if($(ob).val().length>0)
	{
		$.ajax({
				type: "POST",
				url: "ajax/sing.php",
				data: "mode=unit&unitid="+$(ob).val(),
				success: function(msg){
					$('#unit').parent().parent().after(msg);
				}
			});
	}
}*/
$(document).ready(function(){
   mF=new MyFunctions();						   
  $('#Login').click(function(){
	if(jQuery.trim($('#username').val()).length==0)
	{
		alert('- Enter Your username.');
		$('#username').focus();
		return false;
	}
	else if(jQuery.trim($('#password').val()).length==0)
	{
		alert('- Enter Your password.');
		$('#password').focus();
		return false;
	}
	else 
	{
		document.frm.submit();	
		//return true;
	}
   });
  $('#forpass').click(function(){
	if(jQuery.trim($('#username').val()).length==0)
	{
		alert('- Enter Your username.');
		$('#username').focus();
		return false;
	}
	else 
	{
		document.frm.submit();	
		//return true;
	}
   });
});
