function openWindow(url) {
	adviceWin = window.open(url,'advice','status=no,width=580,height=500,menubar=no,scrollbars=yes');
	adviceWin.focus(true);
	}

function zoom (url) {
	z = window.open('','zoom_popUp','status=0,directories=0,toolbar=0,menubar=0,resizable=1,scrollbars=1,location=0');
	z.document.write('<html>\n<head>\n<title>Picture Zoom</title>\n</head>\n<body>\n<div align="center">\n<img src="' + url + '"><br>\n<form><input type="button" value="Close Window" onClick="self.close(true)"></form>\n</div>\n</body>\n</html>\n');
	z.document.close();
	z.focus(true);
	}
	

function clearText(thefield)	{
	if (thefield.defaultValue == thefield.value)
		thefield.value = "";
	}
	



MagicZoomPlus.options = {
  'background-color':'#000000',
  'background-opacity':'50',
  'opacity-reverse':'true',
  'selectors-mouseover-delay':'0'
 }

//'click-to-initialize':'true',
MagicThumb.options = {'buttons-display':'close'}




/*
used for the third party newsletter subscription tool he's using

this code was neither written no supported by Zoovy

*/
function change()
{
	name = document.getElementById('fullname').value;
	name = name.replace(/^([dmjs]rs?.?|miss.?)\s*/i,"");
	name = name.replace(/^\s+|\s+$/g,"");
	
	document.getElementById('Contact0FirstName').value = '';
	document.getElementById('firstname').value = '';
	document.getElementById('Contact0LastName').value = '';
	document.getElementById('lastname').value = '';
	
	sp = name.indexOf(' ');
	ln = name.lastIndexOf(' ');
	
	if(sp > 0)
	{
		document.getElementById('Contact0FirstName').value =
name.substr(0, (sp));
		document.getElementById('firstname').value =
name.substr(0, (sp));
		document.getElementById('Contact0LastName').value =
name.substr(ln + 1, (name.length));
		document.getElementById('lastname').value =
name.substr(ln + 1, (name.length));
	}
	else
	{
		document.getElementById('Contact0FirstName').value =
name.substr(sp + 1, (name.length));
		document.getElementById('firstname').value =
name.substr(sp + 1, (name.length));
	}
}
