// JavaScript Document
//
// Vacations In Rhode Island
//
// Global Scripts
<!--
	function textCounter(field,idSpan,maxlimit) {
	// Count max chars of field.
		if (field.value.length > maxlimit) {// if too long...trim it!
			field.value = field.value.substring(0, maxlimit);
			// otherwise, update 'characters left' counter
		} else {
			ele = $(idSpan);
			ele.innerHTML = maxlimit - field.value.length;
		}
	}
	
	function displayProgressBar(id)
	{
		//DISPLAYS THE PROGRESS BAR WHEN THE SUBMIT BUTTON IS CLICKED.
		//
		var ele = $("progressbar_"+id);
		ele.style.display = "block";
	}
	
	function popUpAdvertisersList(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=620,height=400,left=0,top=0');");
	}
	
	function popUpAdBannerPriceChart(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=510,height=400,left=0,top=0');");
	}


//-->