
String.prototype.Trim = function()
{
	return this.replace(/(^\s+)|(\s+$)/g,"");
}


String.prototype.IsInteger = function()
{
	var pattern = /^\d+$/;
	return pattern.test(this);
}


String.prototype.IsNumber = function()
{
	var pattern = /^\d+(\.\d+)?$/;
	return pattern.test(this);
}


function LookupFullImage(strImagePath)
{
	window.open("originalPic.aspx?file="+strImagePath,"","width=500px;height=500px;resizable=1");
}

function OpenCalendar(CIDCalendarInput)
{
			var retobj = document.getElementById(CIDCalendarInput);
			var ret = window.showModalDialog("JsCalendar.html",retobj,"DialogWidth=250px;DialogHeight=260px;status=no;help=no;scroll=no;");
			if(ret != null)
			{
				document.getElementById(CIDCalendarInput).value = ret;
			}
			return false;
}

