

function mudaLog(log) {
 parent.contents.document.movie.SetVariable("log", log);
}

function mostraErro(msgerro){

      eval("var tderro=document.getElementById('erro')");
      eval("tderro.innerHTML=\""+msgerro+"\"");
}

function getResolution(){

if(window.screen.width<1024)
	return 800;

else if(window.screen.width>=1024)
	return 1024;

return false;
}

function printMe(frame_print){
  var url;

  url = "inc/print.php?print_text="+escape(frame_print.document.body.outerHTML);
  var win = window.open(url);
}

function isEmailAddr(email)

{

  var result = false

  var theStr = new String(email)

  var index = theStr.indexOf("@");

  if (index > 0)

  {

    var pindex = theStr.indexOf(".",index);

    if ((pindex > index+1) && (theStr.length > pindex+1))

	result = true;

  }

  return result;

}



function properties(client) {

i=0;
msg='';

for (property in client){
msg+=property+':'+client[property]+'\n';

if(i++>20){
i=0;
alert(msg);
msg='';
}

}

alert(msg);
}



/*
      function putTable(){

         
      
      }
      
      function putText(){
        //properties(window.event);
         var text=document.getElementById("area1");

         strreplace(text,"\n","<br>");
          document.getElementById(divactivado).innerHTML=text.value;

      }


      function divActivo(str){
        document.getElementById("area1").value="";
        document.getElementById("area1").value=document.getElementById(str).innerHTML;
        divactivado=str;

      }



function focus(){
idEditbox.focus();


idEditbox.document.designMode = "on"


}

*/

