function validateEMail(str){	var emailexp = /^[a-z][a-z_0-9\.]+@[a-z_0-9\.]+\.[a-z]{2,4}$/i	//Check that the email entry is valid	if (!emailexp.test(str) || str.indexOf("..") >= 0)	{		return false;	}	return true;}//Function to trim a stringString.prototype.trim = function(){	var retstr = this.replace(/^\s+/,"");	retstr = retstr.replace(/\s+$/,"");	return retstr;}function confirmDelete(msg){	return confirm("Do you really want to Delete "+ msg + "?");}function confirmPhone(str){	var phoneexp = /^[0-9\+\(\),\s\-]+$/i//					+()0123456789 space and comma	//Check that the email entry is valid	if (!phoneexp.test(str))	{		return false;	}	return true;}function confirmInteger(str){	var intexp = /^[0-9]+$/i	//Check that the email entry is valid	if (!intexp.test(str))	{		return false;	}	return true;}function checkJPGImage(str){	var jpgexp = /\.jpe?g?$/i	if (!jpgexp.test(str))	{		return false;	}	return true;}