String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}

function showPop(url, width, height, dynamicPos, windowTitle){
	showPopWin(url, width, height, null, null, dynamicPos, windowTitle);
}

function contactMePopup(url, width, height){
	showPopWin(url, width, height, null);
}

function popContactMe(associateId, glid){
	var url = "/contactus/contactAgent.nem?associateId=" + associateId + "&glid=" + glid;
	showPop(url, 400, 200);
}

function getFormName(obj) {
	var formName = obj.form.name;
	return formName;
}