if (document.images) {

/*	

	n1on = new Image();    n1on.src = "images/nav-home-on.gif";

	n2on = new Image();    n2on.src = "images/nav-about-on.gif";

	n3on = new Image();    n3on.src = "images/nav-products-on.gif";

	n4on = new Image();    n4on.src = "images/nav-contact-on.gif";

	n5on = new Image();    n5on.src = "images/nav-testimonials-on.gif";

*/

	//map preload

	m1 = new Image(); m1.src = "images/map1.jpg";

	m2 = new Image(); m2.src = "images/map2.jpg";

	m3 = new Image(); m3.src = "images/map3.jpg";

}



function imgOn(imgName) {

	if (document.images) {

		oSrc=document[imgName].src;

		document[imgName].src = eval(imgName + "on.src");

	}

}



function imgOff(imgName) {

	if(oSrc){

		document[imgName].src = oSrc;

	}

}



function echoEMailLink(user,domain,linkText,additionalHTML){

	var email = user + '@' + domain;

	if(!linkText) linkText = email;

	if(!additionalHTML) additionalHTML = '';

	document.write('<a href="mailto:' + email + '" ' + additionalHTML + '>' + linkText + '<\/a>');

}



function echoEMail(user,domain) {

	document.write(user + '@' + domain);

}



function set_return_url(form_name,link) {

	var f = window.document.forms[form_name];

	f.attributes['action'].value = link.attributes['href'].value;

	//alert(f.attributes['action'].value);

	f.submit();

}



function set_form_element(form_name,element_name,element_value) {

  var f = document.forms[form_name];

  f.elements[element_name].value = element_value;

  f.submit();

}



function archivedPopup() {

	window.open('archived-report.html','_blank','width=320,height=100, scrollbars = yes, resizable = yes ');

	return false;

}



function submitSEOForm(formName,link,page,action) {

	var f = document.forms[formName];

	

	if(link.attributes['href'].value && link.attributes['href'].value != '#')

		f.attributes['action'].value = link.attributes['href'].value;

	if(page)

		f.elements['data[page]'].value = page;

	if(action)

		f.elements['action'].value = action;

	f.submit();

	return false;

}