﻿
function RegisterNamespace(nameSpace) {
	var nsParts = nameSpace.split(".");
	var root = window;

	for (var i = 0; i < nsParts.length; i++) {
	    if (typeof root[nsParts[i]] == "undefined") {
	        root[nsParts[i]] = {};
	    }
		root = root[nsParts[i]];
	}
}


if (typeof Object.create !== 'function') {
	Object.create = function(o) {
		function F() { }
		F.prototype = o;
		return new F();
	};
}

RegisterNamespace("VP");

VP.AjaxWebServiceUrl = null;
VP.SiteId = null;
VP.EmailRegEx = "^([\\w-]+(?:\\.[\\w-]+)*(?:[\\+]){0,1})@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([A-Za-z]{2,6}(?:\\.[A-Za-z]{2})?)$";
VP.BaseUrl = null;

