// JavaScript Document

function clearuserid()
{
if (document.form.userid.value == "User ID" )
	{
		document.form.userid.style.color="#000000";
		document.form.userid.style.backgroundColor="#FFFFFF";
		document.form.userid.value="";
	}
}

function clearpassword()
{
if (document.form.password.value == "Password" )
	{
		document.form.password.style.color="#000000";
		document.form.password.value="";
    	document.form.password.style.backgroundColor="#FFFFFF";
		document.form.password.type="password";
	}
}


function resetform()
{
if (document.form.userid.value == "" )
	{
		document.form.userid.style.color="#CCCCCC";
		document.form.userid.style.backgroundColor="#FFFFDD";
		document.form.userid.value="User ID";
	}
	
if (document.form.password.value == "") 
	{
		document.form.password.style.color="#CCCCCC";
		document.form.password.style.backgroundColor="#FFFFDD";
		document.form.password.value="Password";
    	document.form.password.type="text";
	}
	
if (document.form.password2.value == "") 
	{
		document.form.password2.style.color="#CCCCCC";
		document.form.password2.style.backgroundColor="#FFFFDD";
		document.form.password2.value="Re-enter Password";
    	document.form.password2.type="text";
	}

if (document.form.from.value == "" )
	{
		document.form.from.style.color="#CCCCCC";
		document.form.from.style.backgroundColor="#FFFFDD";
		document.form.from.value="Best Email";
	}
	
if (document.form.firstname.value == "" )
	{
		document.form.firstname.style.color="#CCCCCC";
		document.form.firstname.style.backgroundColor="#FFFFDD";
		document.form.firstname.value="First Name";
	}
}

function clearpassword2()
{
if (document.form.password2.value == "Re-enter Password" )
	{
		document.form.password2.style.color="#000000";
    	document.form.password2.style.backgroundColor="#FFFFFF";
		document.form.password2.value="";
		document.form.password2.type="password";
	}
}

function clearemail()
{
if (document.form.from.value == "Best Email" )
	{
		document.form.from.style.color="#000000";
    	document.form.from.style.backgroundColor="#FFFFFF";
		document.form.from.value="";
	}
}

function clearname()
{
if (document.form.firstname.value == "First Name" )
	{
		document.form.firstname.style.color="#000000";
    	document.form.firstname.style.backgroundColor="#FFFFFF";
		document.form.firstname.value="";
	}
}


//
// Email Subscription
//

function clearbestemail()
{
if (document.form.from.value == "Best Email" )
	{
		document.form.from.style.color="#000000";
    	document.form.from.style.backgroundColor="#FFFFFF";
		document.form.from.value="";
	}
}

function clearfirstname()
{
if (document.form.firstname.value == "First Name" )
	{
		document.form.firstname.style.color="#000000";
    	document.form.firstname.style.backgroundColor="#FFFFFF";
		document.form.firstname.value="";
	}
}

function resetsubscribeform()
{
// Best Email
if (document.form.from.value == "" )
	{
		document.form.from.style.color="#CCCCCC";
		document.form.from.style.backgroundColor="#FFFFDD";
		document.form.from.value="Best Email";
	}

// First Name
if (document.form.firstname.value == "" )
	{
		document.form.firstname.style.color="#CCCCCC";
		document.form.firstname.style.backgroundColor="#FFFFDD";
		document.form.firstname.value="First Name";
	}
}


function clearforgotemail()
{
if (document.form.email.value == "Email Address" )
	{
		document.form.email.style.color="#000000";
    	document.form.email.style.backgroundColor="#FFFFFF";
		document.form.email.value="";
	}
}

function resetforgotemailform()
{
// Best Email
if (document.form.email.value == "" )
	{
		document.form.email.style.color="#CCCCCC";
		document.form.email.style.backgroundColor="#FFFFDD";
		document.form.email.value="Email Address";
	}
}


// Ask Ed 

function clearasked()
{
if (document.form.question.value == "Ask a question..." )
	{
		document.form.question.style.color="#000000";
		document.form.question.style.backgroundColor="#FFFFFF";
		document.form.question.value="";
	}
}

function resetaskedform()
{

if (document.form.question.value == "" )
	{
		document.form.question.style.color="#999";
		document.form.question.style.backgroundColor="#EAEAFF";
		document.form.question.value="Ask a question...";
	}
}




function copyname()
{
   document.form.name.value = document.form.firstname.value;
	
}