function PPisStringEmpty(str)
{ 
	return !str.match(/[A-Za-z0-9_]/,'i'); 
}
function PPobjFocus(obj, sMsg)
{ 
	if (sMsg) 
		alert(sMsg); 
	if (obj && obj.type != 'hidden' && !obj.disabled) 
	{ 
		obj.focus(); 
		if (obj.type == 'text' || obj.type == 'textarea' || obj.type == 'password') 
			obj.select(); 
	} 
	return true; 
}
function PPisStringEmail(str)
{ 
	return str.match(/^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/, 'i'); 
}

