String.prototype.isEmpty = function()
{
	return this.match(/^\s*$/);
}

String.prototype.isInteger = function()
{
	return this.match(/^[0-9]+$/);
}

String.prototype.isFloat = function()
{
	return this.match(/^([0-9]+|[0-9]+\.[0-9]+)$/);
}

String.prototype.isEmail = function()
{
	return this.match(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/);
}
String.prototype.isURL = function()
{
	return this.match(/^www+[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/);
}

function highlight_row( id , mode )
{
	if( mode == 1 )
	{
		document.getElementById( id ).className = "on";
	}
	else
	{
		document.getElementById( id ).className = "off";
	}
}


function highlight_div( id , mode )
{
	if( mode == 1 )
	{
		document.getElementById( id ).className = "on";
	}
	else
	{
		document.getElementById( id ).className = "off";
	}
}
