onerror = handle_err
function handle_err (msg,url,line) {
	alert ("There was an error on this page.\n\n" +
		"Error: " + msg + "\n" +
		"URL: " + url + "\n" +
		"Line: " + line + "\n\n" +
		"Click OK to continue.\n\n")
	return true
}

//	NEW VISIONS website
//	Last revision: 2009-06-15

// This script selects a Contractor's Corner at random from those in the array.

var i = 0
var introtext = new Array()
var cornerlink = new Array()


// Beginning text

introtext[i] = "With the current economic crunch, you might wonder if contractors find themselves less busy. Well, the answer most certainly is <strong><em>no</em></strong>. This contractor (I'm sure like many others) is quoting jobs like crazy. However, actually <em>doing</em> jobs... well, that's another story."
cornerlink[i++] = "window"

introtext[i] = "When considering building a custom home or addition, the most common pitfall I've encountered as a builder is when designers and architects are not in sync with today's construction costs. The single most important suggestion I can make when planning a substantial project is to collaborate with a builder you're confident with while in the planning stages of design."
cornerlink[i++] = "howmuch"

introtext[i] = "As we are continuously &quot;educated&quot; with information about all the latest innovative construction methods, these fiberglass wall systems being pushed for basement remodeling really intrigue me. Sometimes it seems we overlook practicality, just in order to be hip to the &quot;cutting edge.&quot;"
cornerlink[i++] = "cubicles"

introtext[i] = "If I had a dollar for every contractor horror story I've heard over the past twenty years, I could probably treat the family to a nice vacation this year. Instead, I find myself constantly confronted by potential customers stricken with paranoia about hiring a contractor &mdash; a situation, quite frankly, I'm sick of. But the reality is that their stories are real."
cornerlink[i++] = "hair"

introtext[i] = "I once installed a kitchen for a gentleman who, the entire time, ran a shop vac twelve inches away from whatever task I was involved in, for the course of the entire project. For example, if I was screwing down a piece of plywood, every pull of my screw gun trigger would immediately be followed by the click of his vacuum's power switch, followed by a massive roar as the tip of his shop vac nozzle was kept a consistent eight to twelve inches from each screw being inserted, in the event that a loose particle of plywood might break away into the atmosphere."
cornerlink[i++] = "clean"

introtext[i] = "When it comes to clogged rain gutters and downspouts, every homeowner gets a little jammed up. After all, who wants to deal with dragging out the old ladder from the garage, journeying up to the roof's edge, and scooping out that wonderful great-smelling muck that has clogged up your downspouts and gutters?  And on your day off yet!"
cornerlink[i++] = "flow"

introtext[i] = "More and more often I'm approached by families who are considering the idea of creating more living space to allow for siblings to reside with their senior family members on the same property. This can happen in a number of different ways. A detached garage can be converted easily. Attached garages <em>often</em> can be utilized for space. And of course, adding on is usually an option. This, to me, is a wonderful &quot;no brainer.&quot;"
cornerlink[i++] = "suite"


// Grab a random number within the array bounds, then write the HTML to display the text and link.

var num = Math.floor(Math.random() * introtext.length)

document.write (
	'<p>' + introtext[num] + '</p>' +
	'<p><a href=corner_' + cornerlink[num] + '.html>Continue...</a></p>'
)