
	String.prototype.trim = function(){
		return this.replace(/^\s+|\s+$/,'');	
	}

	function is_Empty(thisValue){
		var returnValue = true;
		var len = thisValue.length || thisValue.textLength;
			
			if(len > 0){
				thisValue = thisValue.replace(/\s/gi, "");
				if(thisValue.length > 0) returnValue = false;
			}		
		return returnValue;	
	}
	
	function is_valid_date(thisValue){
	  		var thisResult = '';
	  		var regEx = /[0-9]{1,2}\/[0-9]{1,2}\/[0-9]{4,4}/;
	  		
				thisResult = thisValue.match(regEx);				

			return ((thisResult==null));
	   }	
	   
	function trimString(thisValue)
	{			
		var returnValue = true;
			if(thisValue.length > 0){
					thisValue = thisValue.replace(/^\s+|\s+$/, "");	
					if(thisValue.length > 0) returnValue = false;
		    }
		return thisValue;
	}
	function numeric_only(e,thisValue)
	{ 
		 evt = e || window.event;
		 var keyPressed = evt.which || evt.keyCode;
 		 //alert('Pressed this :' + keyPressed);
         if ((keyPressed >=35 && keyPressed <=57) || keyPressed == 9 || keyPressed == 8 || keyPressed == 99 || keyPressed == 118)
		 		 return true;
       
		 
		  return false;
	}