// JavaScript Document

String.prototype.trim = function() 
{ 
	return this.replace(/^\s+|\s+$/g, ''); 
}

String.prototype.isEmail = function() {
   return (this.indexOf(".") > 2) && (this.indexOf("@") > 0);
 
}

String.prototype.stripHTML = function()
{
	var matchTag = /<(?:.|\s)*?>/g;
	return this.replace(matchTag, "");
}

////////////////////////////////////////////////
function openDialogLink(url, width, height)
{
	parent.hidePopWin(false);
	parent.showPopWin(url, width, height, null, true);
}
