var ultimoTamanhoEmail = 0 ;
var domain = document.domain;
var pagina_acessada = document.URL;



if (domain == '192.168.0.200') domain += '/dev/guiadocasorio.com.br';
else if (domain == 'www.magicwebdesign.com.br') domain += '/dev/guiadocasorio';






/*ALTERAR O DOMINIO*/
else domain = 'www.guiadocasorio.com.br';






function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function validaemail(email) {
  var objRegExp  = /^[A-Za-z]([\w\.]*)@([A-Za-z0-9\.]*)\.(([A-Za-z]{3}\.[A-Za-z]{2}$)|([A-Za-z]{3}$)|([a-z]{2}$))/i ;
  return objRegExp.test(email);
}
function envia(param) {
  if (param == 1) {
    if (document.f1.nome.value.length < 3) {
      alert("Preencha o campo NOME!");
      document.f1.nome.focus();
    }
    else {
      if (!validaemail(document.f1.emai.value)) {
        alert("Preencha o campo E-MAIL!");
              document.f1.emai.focus();
      }
      else {
        document.f1.submit();
      }
    }
  }
  else if (param == 2) {
    if (!validaemail(document.f2.emai.value)) {
      alert("Preencha o campo E-MAIL!");
      document.f2.emai.focus();
    }
    else {
      document.f2.submit();
    }
  }
  else if ( param == 3 ) {
    if (document.f1.nome.value.length < 3) {
      alert("Preencha o campo NOME!");
      document.f1.nome.focus();
    }
    else {
      if (!validaemail(document.f1.email.value)) {
        alert("Preencha o campo E-MAIL!");
              document.f1.email.focus();
      }
      else {
        if ( document.f1.comentario.value.length < 3 )
        {
            alert("Preencha o campo MENSAGEM!");
        } else {
            document.f1.submit();
        }
      }
    }
  } else {
    if (document.f1.nome.value.length < 3) {
      alert("Preencha o campo NOME!");
      document.f1.nome.focus();
    }
    else {
      if (!validaemail(document.f1.email.value)) {
        alert("Preencha o campo E-MAIL!");
              document.f1.email.focus();
      }
      else {
        document.f1.submit();
      }
    }
  }
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_showHideLayers2() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers2.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_showHideLayers3() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers3.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_showHideLayers4() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers4.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function abre_popup(foto) {
  window.open('foto.htm?'+foto,'imagem','width=100, height=100, status=no');
}
function anunc_verfoto(param) {
  window.open('anunc_verfotos.php?'+param,'_blank','width=680, height=540, status=no');
}
var res = screen.height;
	if (res <= 600)
	{
		document.write('<style type="text/css">#geral{min-height:100%;_height:100%;}<\/style>')
	}
	else if ( res == 768 )
	{
		document.write('<style type="text/css">#geral{min-height:100%;_height:100%;}<\/style>')
	}
	else if ( res == 864 )
	{
		document.write('<style type="text/css">#geral{min-height:100%;_height:100%;}<\/style>')
	}
	else if ( res == 1024 )
	{
		document.write('<style type="text/css">#geral{min-height:100%;_height:100%;}<\/style>')
	}
	else if ( res == 1200 )
	{
		document.write('<style type="text/css">#geral{min-height:100%;_height:100%;}<\/style>')
	}
	else
	{
		document.write('<style type="text/css">#geral{min-height:100%;_height:100%;}<\/style>')
	}
    
    
    function toggle(obj)
    {

        var el = document.getElementById(obj);
        if ( el.style.display != 'none' ) {
            el.style.display = 'none';
        }
        else {
            el.style.display = '';
        }
    }

    formataCampo = function (tecla, obj, tipo)
    {
        var key;
        var keyNum;
        if (navigator.userAgent.indexOf("MSIE") > 0) key = tecla.keyCode;
        if (navigator.userAgent.indexOf("Gecko") > 0) key = tecla.which;
        if ((key == 8) || (key == 0)) return true;
        
        keyNum = key;
        key = String.fromCharCode(key);

        var erNum = /[0-9]/i;

        if (erNum.test(key)) {
       
            /**** CEP ****/
            if (tipo == 'cep') {
                if (obj.value.length == 4) { obj.value = obj.value + key + '-'; return false; }
                else return true;

            /**** CPF ****/
            }
            else if (tipo == 'cpf') {
                if ((obj.value.length == 2) || (obj.value.length == 6)) { obj.value = obj.value + key + '.'; return false; }
                else if (obj.value.length == 10) { obj.value = obj.value + key + '-'; return false; }
                else if (obj.value.length > 13) { return false }
                else return true;

            /**** Fone ****/
            }
            else if (tipo == 'fone') {
                if ((obj.value.length == 0)) { obj.value = '(' + key ; return false; }
                else if (obj.value.length == 2) { obj.value = obj.value + key + ') '; return false; }
                else if (obj.value.length == 8) { obj.value = obj.value + key + '-'; return false; }
                else return true;

            /**** CNPJ ****/
           }
           else if (tipo == 'cnpj') {
                if ((obj.value.length == 1) || (obj.value.length == 5)) { obj.value = obj.value + key + '.'; return false; }
                else if (obj.value.length == 9) { obj.value = obj.value + key + '/'; return false; }
                else if (obj.value.length == 14) { obj.value = obj.value + key + '-'; return false; }
                else return true;
        
            /**** DATA ****/
            }
            else if (tipo == 'data') {
                if ((obj.value.length == 1) || (obj.value.length == 4)) { obj.value = obj.value + key + '-'; return false; }
                else return true;
            }
            /**** DATA BARRA****/
            else if (tipo == 'databarra') {
                if ((obj.value.length == 1) || (obj.value.length == 4)) { obj.value = obj.value + key + '/'; return false; }
                else return true;
            }
            else { return false; }
        }
        else if ( keyNum == 13 ) {
            return true;
        }
        else return false;
    }
    
    
    
    formataEmail = function (tecla, obj, objInput)
    {
        if ( (objInput.value.length) > (ultimoTamanhoEmail+6) ) {
            objInput.value = "";
            alert("Não copie e cole o texto aqui. Digite-o novamente, por favor.");
        }
        ultimoTamanhoEmail = objInput.value.length ;
    }
    
var max=240;
function progreso_tecla(obj) {
  var progreso = document.getElementById("numero_char");  
  if (obj.value.length < max) {
    progreso.style.backgroundColor = "";    
    progreso.style.color = "#000000";
  } else {
    progreso.style.backgroundColor = "#CC0000";
    progreso.style.color = "#FFFFFF";
    obj.value = obj.value.substr ( 0, max ) ;
  } 
  progreso.innerHTML = "("+(obj.value.length+1)+" / "+max+")";
}    
    
var max=240;
function progreso_tecla2(obj) {
  var progreso = document.getElementById("numero_char2");  
  if (obj.value.length < max) {
    progreso.style.backgroundColor = "";    
    progreso.style.color = "#000000";
  } else {
    progreso.style.backgroundColor = "#CC0000";
    progreso.style.color = "#FFFFFF";
    obj.value = obj.value.substr ( 0, max ) ;
  } 
  progreso.innerHTML = "("+(obj.value.length+1)+" / "+max+")";
}    
		 function textAreasInit(){
		 alert('oi');
		  var objs = document.getElementsByTagName("textarea");
		  var oi = 0; //oi is object index
		  var thisObj;
		
		  for (oi=0;oi<objs.length;oi++) {
		   thisObj = objs[oi];
		   // note that maxlength is case sensitve
		   if (thisObj.getAttribute('maxlength')){
			thisObj.onkeyup = forceMaxLength;
		   }
		   thisObj.onchange = saveEntryValue;
		  }
		 }
		
		 function forceMaxLength(){
		  var maxLength = parseInt(this.getAttribute('maxlength'));
		  if(this.value.length > maxlength){
		   this.value = this.value.substring(0,maxlength);
		  }
		 }

/*
 * Método doReply ()
 *  Mostra o campo para digitar a resposta a um recado
 * @param  obj = objeto que está chamando a função (normalmente, 'this')
 */

function doReply ( obj )
{
    old_span = document.getElementById('span_responder');
    if ( old_span )
    {
        // Se tiver algum span com o campo aberto, fecha
        old_span.style.display = 'none';
        // E remove o id
        old_span.id            = '';
    }
    
    // Mostra o campo e seta o id
    span               = obj.parentNode.getElementsByTagName('span')[0];
    span.style.display = '';
    span.id            = 'span_responder';
}

/*
 * Método cancelReply ()
 *  Reseta e esconde o campo de resposta a um recado
 * @param  obj = objeto que está chamando a função (normalmente, 'this')
 */
function cancelReply ( obj )
{
    span               = obj.parentNode;
    textarea           = span.getElementsByTagName ('textarea')[0];
    
    // Esconde o campo de resposta, reseta e remove o id
    span.style.display = 'none';
    span.id            = '';
    textarea.value     = '';
}

/*
 * Método sendReply ()
 *  Chama a função AJAX para enviar a resposta do recado ao servidor, e atualiza a div de resposta
 * @param  obj = objeto que está chamando a função (normalmente, 'this')
 */
function sendReply ( obj )
{
    div      = obj.parentNode.parentNode;
    cmura_id = obj.parentNode.getElementsByTagName('input')[0].value;
    textarea = obj.parentNode.getElementsByTagName('textarea')[0];
    
    if ( textarea.value )
    {
        post  = "texto=" + encodeURI ( escape ( textarea.value ) );
        post += "&cmura_id=" + cmura_id;
        loadXMLPOST ( '_ajax_reply.php', post );
        div.innerHTML = '<strong>Sua mensagem foi enviada!</strong>';
    }
    else
    {
        alert ( 'Digite uma mensagem!' );
    }
    
    return false;
}

/*
 * Método navCalen ()
 *  Chama a função AJAX para montar o calendário do próximo mês, ou do mês anterior
 * @param  acao = 'prev': mês anterior ou 'next': próximo mês
 */
function navCalen ( acao )
{
    // Pego os valores dos campos ocultos
    var calen_data = document.getElementById ( 'calen_data' ).value;
    var noivo_id   = document.getElementById ( 'noivo_id' ).value;
    
    // Monto a querystring
    post  = "acao="        + acao;
    post += "&noivo_id="   + noivo_id;
    post += "&calen_data=" + calen_data;
    
    // Monto a tabela do calendário para substituir a atual
    var tabela       = document.createElement ( 'table' );
    tabela.className = 'calen_agenda';
    tabela.border    = 0;
    tabela.setAttribute ( 'class', 'calen_agenda' );
    
    // Crio o cabeçalho e o corpo da tabela
    var thead = tabela.createTHead ( );
    var tbody = document.createElement ( 'tbody' );
    
    tr0           = tabela.insertRow ( -1 );
    th0           = tr0.insertCell ( -1 );
    th0.colSpan   = 7;
    th0.innerHTML = '&nbsp;';
    th0.height    = 60;
    
    // Crio o "aguardando" da tabela
    tr1           = tabela.insertRow ( -1 );
    td0           = tr1.insertCell ( -1 );
    td0.colSpan   = 7;
    td0.innerHTML = 'carregando...';
    
    // Deixo "carregando" no nome do mês, também
    document.getElementById ( 'nome_mes' ).innerHTML = 'carregando...';
    
    // Deixo "carregando" na lista de eventos, também
    document.getElementById ( 'div_lista_eventos' ).innerHTML = '<ul class="linha_presentes"><li class="infos_agenda"><p class="infos_carregando">carregando...</p></li></ul>';
    
    // Pego o div que conterá a tabela
    div = document.getElementById ( 'div_inter_calen' );
    
    // Substituo o conteúdo atual pela tabela recém-criada
    div.innerHTML = '';
    div.appendChild ( tabela );
    
    // Chamo a função que enviará os dados para o PHP via AJAX/Post
    loadXMLPOST2 ( '_ajax_calendario.php', post, 'retCalen' );
    return false;
}

/*
 * Método retCalen ()
 *  Recebe os dados do AJAX e monta o calendário e atualiza o campo oculto de data
 */
function retCalen ( )
{
    // Capturo o texto resposta da requisição AJAX
    var resp = unescape ( decodeURI ( req.responseText ) );
    
    // Quebro pelo token mais externo
    resp = resp.split ( '{{brk5}}' );
    
    // Para facilitar, dou nomes para as posições do array
    compromissos    = resp [0].split ( '{{brk2}}' ); // GLOBAL
    var diasEventos = resp [1].split ( '{{brk3}}' );
    var calendario  = resp [2].split ( '-' );
    var nova_data   = resp [3];
    
    // Organizo o array dos dias com eventos pela chave (ex: evento no dia 30 vai ficar na posicao arrEventos[30])
    var arrEventos = new Array;
    for ( i = 0; i < diasEventos.length; i++ )
    {
        arrEventos [diasEventos [i]] = true;
    }
    
    // Monto a tabela do calendário e seto suas propriedades
    var tabela       = document.createElement ( 'table' );
    tabela.className = 'calen_agenda';
    tabela.border    = 0;
    tabela.setAttribute ( 'class', 'calen_agenda' );
    
    // Crio o cabeçalho e o corpo da tabela
    var thead = tabela.createTHead ();
    var tbody = document.createElement ( 'tbody' );
    
    var tr0       = thead.insertRow ( -1 );
    var th0       = tr0.insertCell ( -1 );
    th0.colSpan   = 7;
    th0.height    = 25;
    th0.innerHTML = '&nbsp;';
    
    // Percorro as linhas do calendário, montando cada uma
    for ( linha = 0; linha < calendario.length; linha++ )
    {
    
        var arrLinha = calendario [linha].split ( ',' );
        var tr       = tabela.insertRow ( -1 );
        for ( coluna = 0; coluna < arrLinha.length; coluna++ )
        {
            var td       = tr.insertCell ( -1 );
            td.innerHTML = arrLinha [coluna];
            
            // Se tiver evento agendado para o dia, altero a classe para fazer o highlight
            if ( ( diasEventos [0] ) && arrEventos [arrLinha [coluna]] == true )
            {
                td.setAttribute ( 'class', 'calen_agenda_dia_evento' );
                td.className = 'calen_agenda_dia_evento';
                td.onmouseover = function () {
                    tabela.style.cursor = 'pointer';
                }
                td.onmouseout  = function () {
                    tabela.style.cursor = '';
                }
                td.onclick     = function () {
                    mostraAgendaDia ( this.innerHTML );
                }
            }
        }
    }
    
    // Atualizo o campo oculto com a data atual do calendário
    var calen_data   = document.getElementById ( 'calen_data' );
    calen_data.value = nova_data;
    
    // Pesquiso o nome do mês
    var nome_mes;
    switch ( nova_data.split ( '-' )[0] )
    {
        case '01': nome_mes = 'Janeiro';    break;
        case '02': nome_mes = 'Fevereiro';  break;
        case '03': nome_mes = 'Março';      break;
        case '04': nome_mes = 'Abril';      break;
        case '05': nome_mes = 'Maio';       break;
        case '06': nome_mes = 'Junho';      break;
        case '07': nome_mes = 'Julho';      break;
        case '08': nome_mes = 'Agosto';     break;
        case '09': nome_mes = 'Setembro';   break;
        case '10': nome_mes = 'Outubro';    break;
        case '11': nome_mes = 'Novembro';   break;
        case '12': nome_mes = 'Dezembro';   break;
    }
    
    // Atualizo o nome do mês
    var span_mes       = document.getElementById ( 'nome_mes' );
    span_mes.innerHTML = "<a href=\"#\" onclick=\"javascript:navCalen(''); return false;\" class=\"link01\"><strong>" + nome_mes + '/' + nova_data.split ( '-' )[1] + "</strong></a>";
    
    // Pego o div que conterá a tabela
    var div = document.getElementById ( 'div_inter_calen' );
    
    // Atualizo a lista de compromissos
    document.getElementById ( 'div_lista_eventos' ).innerHTML = '';
    if ( compromissos[0] )
    {
        // Se retornou algum compromisso, percorro o array criando as linhas da lista
        for ( i = 0; i < compromissos.length; i++ )
        {
            var compromisso = compromissos [i].split ( '{{brk}}' );
            classe_da_linha = ( i % 2 == 0 ) ? 'linha_presentes' : 'linha_presentes2';
            document.getElementById ( 'div_lista_eventos' ).innerHTML += '<ul class="'+classe_da_linha+'"><li class="data_agenda"><strong>'+compromisso[1]+'</strong></li><li class="infos_agenda"><p class="titulo_agenda"><strong>'+compromisso[2]+'</strong></p><p class="desc_agenda">'+compromisso[3]+'</p></li><li class="icone"><img src="img/icone_remover.gif" alt="" width="13" height="13" class="float" style="margin-right:4px;" /><a href="noivo_agenda.php?ac=remover&amp;id='+compromisso[0]+'" class="link05"><strong>excluir</strong></a></li></ul>';
        }
    }
    else
    {
        // Se não tiver compromissos, cria uma linha com a informação de que não há
        document.getElementById ( 'div_lista_eventos' ).innerHTML += '<ul class="linha_presentes"><li class="infos_agenda"><p class="infos_carregando">Nenhum compromisso agendado para <strong>'+nome_mes+'/'+nova_data.split ( '-' )[1]+'</strong></p></li></ul>';
    }
    
    // Removo o conteúdo atual e insiro a tabela recém-criada
    div.innerHTML = '';
    tabela.appendChild ( tbody );
    div.appendChild ( tabela );
}

function mostraAgendaDia ( dia )
{
    // Atualizo a lista de compromissos
    if ( compromissos[0] )
    {
        document.getElementById ( 'div_lista_eventos' ).innerHTML = '';
        
        var cor = 0;
        // Se retornou algum compromisso, percorro o array criando as linhas da lista
        for ( i = 0; i < compromissos.length; i++ )
        {
            var compromisso = compromissos [i].split ( '{{brk}}' );
            if ( dia == compromisso [1].split ( '/' )[0] )
            {
                classe_da_linha = ( cor++ % 2 == 0 ) ? 'linha_presentes' : 'linha_presentes2';
                document.getElementById ( 'div_lista_eventos' ).innerHTML += '<ul class="'+classe_da_linha+'"><li class="data_agenda"><strong>'+compromisso[1]+'</strong></li><li class="infos_agenda"><p class="titulo_agenda"><strong>'+compromisso[2]+'</strong></p><p class="desc_agenda">'+compromisso[3]+'</p></li><li class="icone"><img src="img/icone_remover.gif" alt="" width="13" height="13" class="float" style="margin-right:4px;" /><a href="noivo_agenda.php?ac=remover&amp;id='+compromisso[0]+'" class="link05"><strong>excluir</strong></a></li></ul>';
            }
        }
    }
}

function tour() {
  window.open('tour.htm','tour','width=770, height=430, status=no');
}

function popup_player() {
  window.open('player.htm','Player','width=400, height=166, status=no');
  return false;
}

function enviaOrcamento()
{
	new Ajax.Request('http://' + domain + '/_ajax_colecoes.php',
	{
		method     : 'post',
		postBody   : 'captcha='      + $('captcha_valor').value,
		onLoading  : function() {},
		onComplete : function(req)
					 {
					 	if (req.responseText == 'ok')
					 	{
					 		if ($('orca_nome').value.length < 3)
						    {
						        alert('Preencha o campo NOME.');
						        $('orca_nome').focus();
						    }
						    else if (!validaemail($('orca_email').value))
						    {
						        alert('Preencha o campo E-MAIL.');
						        $('orca_email').focus();
						    }
						    else if ($('orca_cidade').value.length < 2)
						    {
						        alert('Preencha o campo CIDADE.');
						        $('orca_cidade').focus();
						    }
						    else if (!$('orca_estado').value)
						    {
						        alert('Selecione um ESTADO.');
						        $('orca_estado').focus();
						    }
						    else if ($('orca_mensagem').value.length < 3)
						    {
						        alert('Preencha o campo MENSAGEM.');
						        $('orca_mensagem').focus();
						    }
						    else if ($('captcha_valor').value.length != 4)
						    {
						        alert('Preencha o texto contido na imagem.');
						        $('captcha_valor').focus();
						    }
						    else
						    {
						        document.f1.submit();
						    }
						    
						    return false;
					 	}
					 	
						alert('O valor digitado não corresponde ao mostrado na imagem!');
					 	return false;
					 },
		onFailure  : function() {}
	});
}


function loadXMLPOST ( url, param )
{
    req = null;
    // PROCURA POR UM OBJETO NATIVO (MOZILLA/SAFARI)
    if ( window.XMLHttpRequest )
        req = new XMLHttpRequest();
    // PROCURA POR UMA VERSAO ACTIVEX (IE)
    else if ( window.ActiveXObject )
        req = new ActiveXObject("Microsoft.XMLHTTP");
    else
        alert( 'Seu browser não suporta AJAX! Está página não funcionará corretamente.' )
    
    req.open('POST', url, true);
    req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    req.setRequestHeader("Content-length", param.length);
    req.setRequestHeader("Connection", "close");
    req.send(param);
}


function processReqChange ()
{
    // apenas quando o estado for "completado"
    if (req.readyState == 4) {
        // apenas se o servidor retornar "OK"
        if (req.status == 200) {
            // procura pela div id="atualiza" e insere o conteudo
            // retornado nela, como texto HTML
            alert ('ok');
        } else {
            alert("Houve um problema ao obter os dados:\n" + req.statusText);
        }
    }
}	

function rejeitaTecla(oEvent)
{
    var oEvent = oEvent ? oEvent : window.event;
    var tecla = (oEvent.keyCode) ? oEvent.keyCode : oEvent.which;
	
	if(tecla == 17)
	{
		return false;
 	}
}

function verificaEmail(email_1,email_2)
{
	if (email_1 == email_2)
		return true;
	else
	{
		alert('Os e-mails não conferem');
		return false;
	}
}

function ContaAcessos ( id )
{
	param = 'id=' + id;
	url   = 'http://' + domain + '/_ajax_acessos.php';
	loadXMLPOST ( url, param );
}