  function selectRowByOndbclick(obj)
	{
	   var checkbox =obj.childNodes[0].childNodes[0];
	   checkbox.checked =!checkbox.checked;
       var r = obj.parentElement.parentElement;
      if(checkbox.checked)   
      {   
        obj.style.backgroundColor="#F0E68C";  
      }   
      else  
      {   
        if(obj.rowIndex%2==1)obj.style.backgroundColor="";else obj.style.backgroundColor="#F5F5F5";   
      }
	}
  function changeColor(obj){
	var r = obj.parentElement.parentElement;
	if(obj.checked){ r.style.backgroundColor="#F0E68C";}
	else {if(r.rowIndex%2==1)r.style.backgroundColor="";else r.style.backgroundColor="#F5F5F5";}
	}
	
  function isEmail(email)
	{
	    String.prototype.Trim  = function(){return this.replace(/^\s+|\s+$/g,"");}
	    email = email.Trim();
	    if(email != null && email != "" && email.length > 0)
	    {
	        var pattern = /^([\w-])+@([\w-])+(\.[\w-])+/;
	        var  flag = pattern.test(email);
	        return flag;
	    }
	    return true;
	}
