/* Global Constants*/
var FUN_NAME="";
var DEFAULT_LOCALE = "en_US";
var MULTIPLE_ALERT = false;
var VALID_SPACE_COUNT = 20;
var MAX_COUNT = 70;
var LIMIT_STR = 60;
var MAX_SELECT_COUNT = 10;
var KEYWORD_PAGING_SIZE = 5;
/* Cookie Keys */
var UID = "_UID";
var PWD = "_PWD";

/* Validation Patterns*/
var PATTERN_CODE = '^[\\w.]+$'; // this is for the code through out the application
var PATTERN_NUMBER = "^[\\d]{1,8}$"; // this is for the numbers without the decimal value
var PATTERN_NUMBER_NEGATIVE = "^[-]?[\\d]{1,8}$"; // this is for the numbers without the decimal value
var PATTERN_DECIMAL = "^[0-9]{1,8}([.][0-9]{0,2})?$"; // this is for the numbers with or without decimal value
var PATTERN_ALPHA = "^.*([a-zA-Z]).*$"; // this is for the value with atleast one alphabet
var PATTERN_NUMERIC = "^.*(\\d)+.*$"; // this is for the value with atleast one digit
var PATTERN_SP_CHAR = "^.*([\\W_])+.*$"; // this is for the value with atleast one special character
var PATTERN_ISSUE_SEARCH = "^[(0-9)][(0-9)|,]*$"; // this is for the "," seperated issue numbers

function Global(strSessionLocale, strRootFolder)
{
	var strLocale = (strSessionLocale == "null" || strSessionLocale == "")?DEFAULT_LOCALE:strSessionLocale;
	var blnMultipleAlert=MULTIPLE_ALERT;
	var strDefaultLocale=DEFAULT_LOCALE;
	
	this.getLocale=getLocale;
	this.getMultipleAlert=getMultipleAlert;
	this.getRootFolder=getRootFolder;
	this.getDefaultLocale=getDefaultLocale;

	function getLocale()
	{
		return strLocale;
	}
	
	function getMultipleAlert()
	{
		return blnMultipleAlert;
	}

	function getRootFolder()
	{
		return strRootFolder;
	}

	function getDefaultLocale()
	{
		return strDefaultLocale;
	}
}

function displayStatus()
{
	window.status = "AltUse - Discover Alternative Uses for Everyday Products";
	return true; 
}


displayStatus();


