// Removes leading whitespaces
function LTrim( value ) {
	
	var re = /\s*((\S+\s*)*)/;
	return value.replace(re, "$1");
	
}

// Removes ending whitespaces
function RTrim( value ) {
	
	var re = /((\s*\S+)*)\s*/;
	return value.replace(re, "$1");
	
}

// Removes leading and ending whitespaces
function trim( value ) {
	
	return LTrim(RTrim(value));
	
}

function isValidEmail(str) {

   return  (str.indexOf("@") > 0);
 
}
function bookmark() 
{ 
	if (document.all) 
	{ 
		window.external.AddFavorite('https://www.pdffiller.com',document.title);
	}	 
	else 
	{ 
		alert("Press Ctrl+D to bookmark this page."); 
	} 
} 
