
//This function is used to trim any string value using javascript.
function trimString (str) {
  return str.replace(/^\s+/g, '').replace(/\s+$/g, '');
}

//This function is used for email validation
function isValid(str) {
	var emailFilter=/^.+@.+\..{2,3}$/;
	if (!(str.match(emailFilter))) { 
        return false;
	}
	else {
		return true;
	}

}
function popUp(URL) {
	mywindow = window.open(URL, 'newWindow','left=800,top=600,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=800');
	//if (window.focus) {newwindow.focus()}

}




