function PopuP()
{ 
	var Id = document.getElementById('matrimonialquick_txtID').value;
	Id=trim(Id, " ")
	if(Id.length==0)
	{	
		alert('pls enter id');
		return false;
	}
	Id= Id.replace("NHC","");
	Id= Id.replace("nhc","");
	if(isNaN(Id))			
	alert('Invalid Id');
	else
	window.open('matrimonial-profile.aspx?UserId='+Id,'Profile','resizable=1,toolbar=1,location=1,directories=1,addressbar=1,scrollbars=1,status=1,menubar=1,top=0,left=0,screenX=' + window.screenLeft + ',screenY=' + window.screenTop + ',width=' + window.availWidth + ',height=' + window.availHeight,'');
	return false;
}
function trim(str, chars) {
	return ltrim(rtrim(str, chars), chars);
}
 
function ltrim(str, chars) {
	chars = chars || "\\s";
	return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}
 
function rtrim(str, chars) {
	chars = chars || "\\s";
	return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}
