
function strRight(strSource,subStr)
	{
	return strSource.substr(strSource.indexOf(subStr) + subStr.length);
	}

function strRightBack(strSource,subStr)
	{
	return strSource.substr(strSource.lastIndexOf(subStr) + subStr.length );
	}

function strLeft(strSource,subStr)
	{
	return strSource.substr(0,strSource.indexOf(subStr));
	}

function strLeftBack(strSource,subStr)
	{
	return strSource.substr(0,strSource.lastIndexOf(subStr));
	}

function Instr(strSource,subStr)
	{
	if(strSource.indexOf(subStr)==-1)
		return false;
	else
		return true;
	}
	
function Replace(strSource,strA,strB)
	{
	while(Instr(strSource,strA))
		strSource = strSource.replace(strA,strB);
	return strSource;
	}
	
function IsNumber(sNumber)
	{
	if(isNaN(parseInt(sNumber)))
		return false;
	else
		return true;
	}