
	function matchExpression(expression,inputString)
	{
		if(inputString.search(expression)==-1)
		{
			return false;
		}
		else
		{
			return true;
		}
	}	
	
	
	 
	 // Work for both US and Canada format
	 function IsValidZip(strVal) 
	 {
		var regex = /^[a-zA-Z0-9]{3}[ ]{0,1}[a-zA-Z0-9]{2,3}$/; 
		 
		 return matchExpression(regex,strVal);
	 }

	
	var popUpWin=0;
	function popUpWindow(URLStr, left, top, width, height)
	{
	  if(popUpWin)
	  {
		if(!popUpWin.closed) popUpWin.close();
	  }
	  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	}

