function goto(url)
{
	document.location=url;
}

function ajaxGoTo(page)
{
	$("#sys_content").load(page);
}
function ajaxDele(redirect)
{
	if ( confirm ( "Confirma a exclusão deste Registro" ) )
		ajaxGoTo(redirect);
	else
		return false;
}
function isEncHTML(str) { 
  if(str.search(/&amp;/g) != -1 || str.search(/&lt;/g) != -1 || str.search(/&gt;/g) != -1) 
    return true; 
  else 
    return false; 
}; 
 
function decHTMLifEnc(str){ 
    if(isEncHTML(str)) 
      return str.replace(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>'); 
    return str; 
}
