
var CTxt="Warning!\n";
var ETxt= "";
var Host='http://'+window.location.hostname+'/';
var Site = "Municipal Hotel BOLDINO";


var reEmail = new RegExp('([._a-z0-9-]+[._a-z0-9-]*)@([a-z0-9-]+\.)*([.])([a-z]{2,3})$');
var reWord = new RegExp('\\s\\w+');
var reSpace = new RegExp('^(\\s+|\\s*)$');
var reMoney = new RegExp('^\\d+[.]{0,1}\\d+$');
var reQuantity = new RegExp('^\\d+$');
var rePhone = new RegExp('\\d+\\s*\\w*[-()]*');
var reDate = new RegExp('\\d{4,}\\s*\\w*[-()]*');

function PhOpen(Img,w,h,Alt) {
t=(screen.height-h-20)/5; 
l=(self.screen.width-w)*9/10;
d=open('','Dw','menubar=0,directories=0,location=0,toolbar=0,scrollbars=0,status=0,resizable=0,width='+w+',height='+h+',top='+t+',left=0');
d.focus();
d.document.open();
d.document.writeln('<html><head><title>'+Alt+'</title></head>');
d.document.writeln('<body topmargin=0 marginheight=0 marginwidth=0 bottommargin=0 rightmargin=0 leftmargin=0 onselectstart="return false" background='+Host+'img/load.gif style="background-position:center;background-repeat:no-repeat;">');
d.document.writeln('<img src='+Host+Img+' alt="'+Alt+'" border=0 width='+w+' height='+h+'>');
d.document.writeln('</body></html>');
d.document.close(); 
}


function isEmpty(Set) {
if (Set.value.length <= isEmpty.arguments[1]) return true;
else return false;
 }

function EmptyDef(Set) {
if (Set.value.length > 0)  return true;
else return false;
 }
 
function isBig(Set) {
if (Set.value.length >= isBig.arguments[1]) return true;
else return false;
 }
 
 

function _img(Img, w, h) {
alt = window.document.title;
t=parseInt((screen.height-h)/5); 
l=parseInt((self.screen.width-w)*9/10);
d = open('',h,'menubar=0,directories=0,location=0,toolbar=0,scrollbars=0,status=0,resizable=0,width='+w+',height='+h+',top='+t+',left='+l);
with(d.document){
focus();
open();
write('<html><head><title>'+alt+'</title></head>');
write('<body topmargin=0 marginheight=0 marginwidth=0 bottommargin=0 rightmargin=0 leftmargin=0 onselectstart="return false;" background="/img/load.gif" style="background-color:#120D0A;background-position:center;background-repeat:no-repeat;">');
write('<img src='+Host+Img+' width='+w+' height='+h+' border=0 alt="'+alt+'" disabled="return false;">');
write('</body></html>');
close(); 
   }
}