// JavaScript Document

<!--

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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_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 RM_hideLayers() { //v1.1	
	MM_showHideLayers('hotelpop_baron','','hide');
	MM_showHideLayers('hotelpop_avant','','hide');
	MM_showHideLayers('hotelpop_belford','','hide');
	MM_showHideLayers('hotelpop_cambridge','','hide');
	MM_showHideLayers('hotelpop_carlton','','hide');
	MM_showHideLayers('hotelpop_eastcliff','','hide');
	MM_showHideLayers('hotelpop_flitwick','','hide');
	MM_showHideLayers('hotelpop_leofric','','hide');
	MM_showHideLayers('hotelpop_glasgow','','hide');
	MM_showHideLayers('hotelpop_mickleover','','hide');
	MM_showHideLayers('hotelpop_princeregent','','hide');
	MM_showHideLayers('hotelpop_silverlink','','hide');
	MM_showHideLayers('hotelpop_stourport','','hide');
	MM_showHideLayers('hotelpop_waterside','','hide');
	MM_showHideLayers('hotelpop_welcombe','','hide');
	MM_showHideLayers('hotelpop_aberdeen','','hide');
	MM_showHideLayers('hotelpop_strathmore','','hide');
	MM_showHideLayers('hotelpop_chequers','','hide');
	MM_showHideLayers('hotelpop_pinewood','','hide');
	MM_showHideLayers('hotelpop_irvine','','hide');
	MM_showHideLayers('hotelpop_swindon','','hide');
	MM_showHideLayers('hotelpop_strathallan','','hide');
	MM_showHideLayers('hotelpop_blakemore','','hide');
	
}

function clearField(txt,elm){
	//alert('elm.value= ['+elm.value+'].');
	if (elm.value == txt){
		//Reset the field to empty.
		elm.value = '';
	}
}

function resetField(txt,elm){
	//alert('elm.value= ['+elm.value+'].');
	if (elm.value == ''){
		//Reset the field to it's txt.
		elm.value = txt;
	}
}

//-->