function dofocus(obj)
{
	obj.className = 'textf';
	obj.select();
}
function doblur(obj)
{
	obj.className = 'text';	
}


function isNotEmail(val)
{
	var illegalChars= '/[\(\)\<\>\,\;\:\\\/\"\[\]]/';
	p=val.indexOf('@');
	if (p<1 || p==(val.length-1))
	{ return true; }
	else
	p=val.indexOf('.');
	if (p<1 || p==(val.length-1))
	{ return true; }
	else
	if (val.match(illegalChars))
	{ return true; }
	else
	{ return false; }
}

function isEmpty(val)
{
	if ((val.length==0) || (val==null))
	{ return true; }
	else
	{ return false; }
}



function pleasewait(obj)
{
	obj.value = 'Please wait...';
	obj.disabled = true;
}


function dohide(obj)
{
	document.getElementById(obj).className = 'hiddenitem';
}

function doshow(obj)
{
	document.getElementById(obj).className = 'visibleitem';
}
