function doRedirect(where)
{
	window.location.href = where;
}
function textCounter(field,cntfield,maxlimit)
{
	if (field.value.length > maxlimit) // if too long...trim it!
	{
		field.value = field.value.substring(0, maxlimit);
	}
	// otherwise, update 'characters left' counter
	else
	{
		cntfield.value = maxlimit - field.value.length;
	}
}
function doSearch()
{
	alert("This feature is currently unavailable");
	return false;
}
function MM_openBrWindow(theURL,winName,features)
{ //v2.0
	window.open(theURL,winName,features);
}
function show(whichOne, state)
{
	tmpT = document.getElementById("Total");
	Total = 5;//tmpT.value;
	Rol = state+whichOne;
	lastAction = document.getElementById("lastAction");
	tmpV = lastAction.value;
	var defs = new Array();
	//Get the default Elements
	for (i = 1; i <= Total; i++)
	{
		if(i == whichOne)
		{
			tDiv = "Def"+i;
			if($(tDiv).fx){$(tDiv).fx.stop();}
			$(tDiv).fx = $(tDiv).effect('opacity', {duration: 1000}).start(0);
		}
	}
	//Rol back the default image from the last rollover
	if (lastAction.value != "" && lastAction.value != Rol)
	{
		tmpStr	= tmpV.substring(0,3);
		tmpID	= tmpV.substring(3,4);
		if(tmpStr == "Rol")
		{
			tDiv= tmpStr+tmpID;
			vDiv = "Def"+tmpID;
			
			if($(tDiv).fx){$(tDiv).fx.stop();}
			if($(vDiv).fx){$(vDiv).fx.stop();}
			$(tDiv).fx = $(tDiv).effect('opacity', {duration: 1000}).start(0);
			$(vDiv).fx = $(vDiv).effect('opacity', {duration: 1000}).start(1);				
		}
	}
	vDiv = Rol;
	if($(vDiv).fx){$(vDiv).fx.stop();}
	$(vDiv).fx = $(vDiv).effect('opacity', {duration: 1000}).start(1);
	
	lastAction.value = Rol;
}
function bookmark_us(url, title){

if (window.sidebar) // firefox
    window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
    var elem = document.createElement('a');
    elem.setAttribute('href',url);
    elem.setAttribute('title',title);
    elem.setAttribute('rel','sidebar');
    elem.click();
} 
else if(document.all)// ie
    window.external.AddFavorite(url, title);
}
function PopupBlocked() {
var PUtest = window.open(null,"","width=10,height=10");
try { PUtest.close(); return false; }
catch(e) { return true; }
}
function submitSignup()
{

    tmpName    = document.getElementById("regname");
    tmpEmail   = document.getElementById("regemail");
    
       if(PopupBlocked())
    {
	    alert('Please enable pop-ups to complete the signup process.');
	}
	else
	{
	    window.open('websignup.asp?name=' + tmpName.value + '&email=' + tmpEmail.value,'NewsSignup','height=300px,width=640px,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes');
	}
}