/* XHR for Free Download *//*YAHOO.namespace("view.free");var fieldJSON = {	"FirstName" : ["First Name", /\w/i],	"LastName" : ["Last Name", /\w/i],	"Company" : ["Company Name", /\w/i],	"emailAddress" : ["E-mail Address", /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i]}function submitFree() {	f = document.forms['_FreeDownload'];	var email = f.emailAddress.value;	var order = f.orderName.value;	var fname = f.FirstName.value;	var lname = f.LastName.value;	var comp = f.Company.value;	valid = true;	for(fld in fieldJSON) {		if(!fieldJSON[fld][1].test(f.elements[fld].value)) {			str = "Please fill in all fields, using a valid e-mail address.";			createFreeButtonDialog(str);			YAHOO.view.free.simpledialog1.show();						valid = false;			return;		}	}	//assemble the loading panel	createDownloadDialog();	var download = false;	// Define the callback object for Connection Manager that will set the body of our content area when the content has loaded	var callback = {		success : function(o) {					var rC = o.responseText;		YAHOO.view.free.wait.hide();		if(rC.indexOf("success") > -1) {			//create a cookie to store the user's emaail address for quick viewing			str = "Thank you for your submission. Press OK to view and download the special report.";			createFreeButtonDialog(str, true);			YAHOO.view.free.simpledialog1.show();					} else {			str = "There was a problem submitting your e-mail address.";			createFreeButtonDialog(str, false);			YAHOO.view.free.simpledialog1.show();		}	}}		// Show the loading panel		YAHOO.view.free.wait.show();		// Connect to our data source and load the data		connUrl = "/eview/VOLR6.nsf/freeDownload?openAgent";		hash = hex_sha1(email + order);		WM_setCookie (order, hash, 2400, "/", "198.6.84.24", false);		var postData = "&data=" + email + "&data=" + order + "&data=" + fname + "&data=" + lname + "&data=" + comp; 		var conn = YAHOO.util.Connect.asyncRequest("POST", connUrl, callback, postData);}	var createDownloadDialog = function() {	var content = document.getElementById("content");	content.innerHTML = "";	if (!YAHOO.view.free.wait) {		// Initialize the temporary Panel to display while waiting for external content to load		YAHOO.view.free.wait = 			new YAHOO.widget.Panel("wait",  			{ 					width: "275px", 				fixedcenter: true, 				close: true, 				draggable: false, 				zindex: 4,				modal: true,				visible: false			} 		);		YAHOO.view.free.wait.setHeader("Please wait...");		YAHOO.view.free.wait.setBody("<img src=\"" + dbPath + "/rel_interstitial_loading.gif?openImageResource\"/>");		YAHOO.view.free.wait.render(document.body);	}}	YAHOO.namespace("view.free");function createFreeButtonDialog(msg, d) {	// Define various event handlers for Dialog	var handleYes = function() {	this.hide();	document.forms['_FreeDownload'].emailAddress.focus();	if(d == true) {	document.forms['_FreeDownload'].emailAddress.value = "";	document.forms['_FreeDownload'].FirstName.value = "";	document.forms['_FreeDownload'].LastName.value = "";	document.forms['_FreeDownload'].Company.value = "";		hWin = window.open(dbPath + "/viewSpecialReport.pdf", "pdfWin");			download = false;	}};var handleNo = function() {	this.hide();};// Instantiate the DialogYAHOO.view.free.simpledialog1 = new YAHOO.widget.SimpleDialog("simpledialog1", { 	width: "400px",	fixedcenter: true,	visible: false,	draggable: true,	close: true,	text: msg,	icon: YAHOO.widget.SimpleDialog.ICON_INFO,	constraintoviewport: true,	buttons: [ { text:"OK", handler:handleYes, isDefault:true }]	});	YAHOO.view.free.simpledialog1.setHeader("THE VIEW Free Download");		// Render the Dialog	YAHOO.view.free.simpledialog1.render("container");}*/