function autoTabOut(t){	
	if ((event.keyCode != 9) && (event.keyCode != 16)) {		
		if (t.autoTab == "True"){										
			if (t.value.length == t.maxLength){						
				tabToNext(t);
			}
		}
	}
}
			
function tabToNext(t){				
	for (i = 0; i < t.form.elements.length; i++)
		if (t.form.elements[i].tabIndex == t.tabIndex+1) {
			t.form.elements[i].focus();
		if (t.form.elements[i].type == "text")
			t.form.elements[i].select();
		break;
	}
}

var privacyLocation = "http://www.privacyaffiliates.com/ps/ps0405082422.html";
var popup = null;

function loadPrivacy() {
	    window.open(privacyLocation, "amigoPrivacy", 'toolbar=0, scrollbars=1, location=0, status=0, menubar=0, resizable=1, width=650, height=510, left = 10, top = 10');
}


function whatsThis(q){
    window.open('http://www.amigoenergy.com/web/whatsthis.aspx?q=' + q, '', 'toolbar=0, scrollbars=1, width=300, height=400, top=100, left=300');
}


function clickclear(thisfield, defaulttext) 
{
    if (thisfield.value == defaulttext) 
    {
        thisfield.value = "";
    }
}

function clickrecall(thisfield, defaulttext) 
{
    if (thisfield.value == "") 
    {
        thisfield.value = defaulttext;
    }
}