function fnCallback(e) {
var myMouseX=(e||event).clientX;
var myMouseY=(e||event).clientY;
var myMouseX = myMouseX - (document.body.clientWidth / 2);
if (document.body.scrollTop > 0) {
myMouseY = myMouseY + document.body.scrollTop;
}
var log_client = new XMLHttpRequest();
var params = 'op=log&page='+ escape(location) + '&x='+ myMouseX +'&y='+myMouseY;
log_client.open("POST", "datafuncs.php");
log_client.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
log_client.setRequestHeader("Content-length", params.length);
log_client.setRequestHeader("Connection", "close");
log_client.send(params);
}
/*
if (!document.all) {
window.captureEvents(Event.CLICK);
window.onclick=fnCallback;
} else {
document.onclick=fnCallback;
}
*/
function _xgetXmlHttpRequest() {
if (window.XMLHttpRequest) {
return new XMLHttpRequest();
} else if (window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP");
}
}
var _xcmsajaxhttp = _xgetXmlHttpRequest(); //785
function getsql(url, sql, destino, valor_actual, objvalue){
if (navigator.appName=='Microsoft Internet Explorer')
_xcmsajaxhttp.open("GET", url+'?sql='+sql+'&oval='+objvalue, true);
else
_xcmsajaxhttp.open("GET", url+'?sql='+sql+'&oval='+objvalue, true);
_xcmsajaxhttp.onreadystatechange = function(){
if (_xcmsajaxhttp.readyState==4){
document.getElementById(destino).options.length = 0;
var resultado = _xcmsajaxhttp.responseText;
var temp = new Array();
var linha = new Array();
temp=resultado.split("###||###");
for (i=0;i<=temp.length-2;i++)
{
estalinha=temp[i];
linha = estalinha.split("###|###");
document.getElementById(destino).options[i] = new Option(linha[1],linha[0]);
if (linha[0]==valor_actual)
document.getElementById(destino).options[i].selected=true;
}
if (temp.length==1)
{
document.getElementById(destino).options[0] = new Option('','0');
document.getElementById(destino).options[0].selected=true;
}
var estacaixa=document.getElementById(destino);
if (estacaixa.fireEvent){
estacaixa.fireEvent('onchange');
} else {
if (estacaixa.onchange)
estacaixa.onchange();
}
document.getElementById(destino+'_waitajax').style.visibility='hidden';
}
}
_xcmsajaxhttp.send(null);
}
function getlist(obj,sql,valor_actual,objvalue)
{
var miniwait=obj+'_waitajax';
document.getElementById(miniwait).style.visibility='visible';
var sql = encodeURIComponent(sql);
getsql("datafuncs.php",sql, obj, valor_actual, objvalue);
/*
var estacaixa=document.getElementById(obj);
var e = document.createEvent('HTMLEvents');
e.initEvent('change', false, false);
estacaixa.dispatchEvent(e);
*/
}
function url_encode(str) {
var hex_chars = '0123456789ABCDEF';
var noEncode = /^([a-zA-Z0-9\_\-\.])$/;
var n, strCode, hex1, hex2, strEncode = '';
for(n = 0; n < str.length; n++) {
if (noEncode.test(str.charAt(n))) {
strEncode += str.charAt(n);
} else {
strCode = str.charCodeAt(n);
hex1 = hex_chars.charAt(Math.floor(strCode / 16));
hex2 = hex_chars.charAt(strCode % 16);
strEncode += '%' + (hex1 + hex2);
}
}
return strEncode;
}
function verify_form_data(xform,SessionName,return_func)
{
var post_data='QUERY=FORMVALIDATION&DADOS='+SessionName;
var objs = new Array();
for(i=0; i|');
if (linha[1]=='OK')
{
xform.submit();
return true;
} else {
for (i=1;i|');
alert(campo[1]);
if (return_func)
return_func(objs[campo[0]]);
try
{
objs[caFmpo[0]].focus();
}
catch(err)
{
// DataGrid
}
}
}
}
}
_form_cmsajaxhttp.send(post_data);
//_form_cmsajaxhttp.send(null);
return false;
}
Industria Sanitario| UNISAN SA
Al usar este sitio consideramos que ha aceptado el uso de cookies.
¿Qué son las cookies
Las cookies son pequeños fragmentos de texto que se almacenan en el navegador de Internet, y ayudar a nuestro sitio para ofrecer nuestros servicios. La información está relacionada con las preferencias de navegación, por lo tanto, sin incluir sus datos personales.
El nuevo sistema de descarga "rimflush", se caracteriza por la distribución uniforme del agua que efectúa un lavado perfecto y sin salpicaduras del interior del inodoro. La ausencia del marco cerrado convencional permite la limpieza fácil en las zonas difíciles del inodoro, garantizando así una mejora significativa en la higiene y una mayor eficiencia de la descarga.