function OKCancel(question) {
	if (confirm(question)) {
		return true;
	} else {
		return false;
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function addBookmark() {
bookmarkURL = "http://www.newhols.com"
bookmarkTitle = "Newmans Holiday Homes"

if (document.all) {
	window.external.AddFavorite(bookmarkURL,bookmarkTitle)
	}
}

function buildeDC(x, linkwords, classname) {
	var e, dom, td;
	dom = 'newhols';
	td = 'com';
	e = x + '@' + dom + '.' + td;
	if (linkwords != '') {
		document.write('<a href="mailto:' + e + '?subject=Enquiry from Newhols Website" class="' + classname + '">' + linkwords + '</a>');
	} else {
		document.write('<a href="mailto:' + e + '?subject=Enquiry from Newhols Website" class="' + classname + '">' + e + '</a>');
	}
}

function buildeBS(x, linkwords, classname) {
	var e, dom, td;
	dom = 'breansandscaravans';
	td = 'com';
	e = x + '@' + dom + '.' + td;
	if (linkwords != '') {
		document.write('<a href="mailto:' + e + '?subject=Enquiry from Brean Sands Caravans Website" class="' + classname + '">' + linkwords + '</a>');
	} else {
		document.write('<a href="mailto:' + e + '?subject=Enquiry from Brean Sands Caravans Website" class="' + classname + '">' + e + '</a>');
	}
}

function textCounter(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
//cntfield.value = 'Fred'
cntfield.value = maxlimit - field.value.length;
//document.getElementById('PropertyDescShortCounter').value = maxlimit - field.value.length;
}

function textCounterId(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
cntfield.value = maxlimit - field.value.length;
//document.getElementById('PropertyDescShortCounter').value = maxlimit - field.value.length;
}

function UpdateDeposit() {
	document.frmBook1.DepositChanged.value = '1';
//	document.frmBook1.action = 'book-1.asp';
	document.frmBook1.submit();
}

function DiscountShowAll() {
	document.frmDiscountBrowse.submit();
}

function confirmThis(i, gotoPage) {
	var message=new Array();
	message[0]="Are you sure you want to delete this record?";

	var r=confirm(message[i]);
	if (r==true) {
		window.location = gotoPage;
	} else {
		return false;
	}
}
