var img = 'images/buscar.gif';
(function() { var f = document.getElementById('cse-search-box'); if (!f) { f = document.getElementById('searchbox_demo'); } if (f && f.q) { var q = f.q; var n = navigator; var l = location; if (n.platform == 'Win32') { q.style.cssText = 'border: 1px solid #333; padding: 2px;'; } var b = function() { if (q.value == '') { q.style.background = '#000 url('+img+') left no-repeat'; } }; var f = function() { q.style.background = '#000'; }; q.onfocus = f; q.onblur = b; if (!/[&?]q=[^&]/.test(l.search)) { b(); } } })();

var img2 = 'images/usuario.gif';
(function() { var f = document.getElementById('login'); if (f && f.username) { var username = f.username; var n = navigator; var l = location; if (n.platform == 'Win32') { username.style.cssText = 'border: 1px solid #333; padding: 2px;'; } var b = function() { if (username.value == '') { username.style.background = '#000 url('+img2+') left no-repeat'; } }; var f = function() { username.style.background = '#000'; }; username.onfocus = f; username.onblur = b; if (!/[&?]username=[^&]/.test(l.search)) { b(); } } })();

var img3 = 'images/pass.gif';
(function() { var f = document.getElementById('login'); if (f && f.password) { var password = f.password; var n = navigator; var l = location; if (n.platform == 'Win32') { password.style.cssText = 'border: 1px solid #333; padding: 2px;'; } var b = function() { if (password.value == '') { password.style.background = '#000 url('+img3+') left no-repeat'; } }; var f = function() { password.style.background = '#000'; }; password.onfocus = f; password.onblur = b; if (!/[&?]password=[^&]/.test(l.search)) { b(); } } })();

var img4 = 'images/nombre.gif';
(function() { var f = document.getElementById('contactos'); if (f && f.nombre) { var nombre = f.nombre; var n = navigator; var l = location; if (n.platform == 'Win32') { nombre.style.cssText = 'border: 1px solid #333; padding: 2px;'; } var b = function() { if (nombre.value == '') { nombre.style.background = '#000 url('+img4+') left no-repeat'; } }; var f = function() { nombre.style.background = '#000'; }; nombre.onfocus = f; nombre.onblur = b; if (!/[&?]nombre=[^&]/.test(l.search)) { b(); } } })();

var img5 = 'images/email.gif';
(function() { var f = document.getElementById('contactos'); if (f && f.email) { var email = f.email; var n = navigator; var l = location; if (n.platform == 'Win32') { email.style.cssText = 'border: 1px solid #333; padding: 2px;'; } var b = function() { if (email.value == '') { email.style.background = '#000 url('+img5+') left no-repeat'; } }; var f = function() { email.style.background = '#000'; }; email.onfocus = f; email.onblur = b; if (!/[&?]email=[^&]/.test(l.search)) { b(); } } })();

var img5 = 'images/mensaje.gif';
(function() { var f = document.getElementById('contactos'); if (f && f.mensaje) { var mensaje = f.mensaje; var n = navigator; var l = location; if (n.platform == 'Win32') { mensaje.style.cssText = 'border: 1px solid #333; padding: 2px;'; } var b = function() { if (mensaje.value == '') { mensaje.style.background = '#000 url('+img5+') left top no-repeat'; } }; var f = function() { mensaje.style.background = '#000'; }; mensaje.onfocus = f; mensaje.onblur = b; if (!/[&?]mensaje=[^&]/.test(l.search)) { b(); } } })();