
//rollovers
function swapIt(id,imgSrc){
	document.getElementById(id).src = imgSrc;
}

function viewProject(sURL)
{
	newWin = window.open(sURL, "Project", "width=500,height=500,top=0,left=0,resizable=yes,scrollbars=yes");
}

function checkUser(myObj)
{
	if(myObj.value == 'username')
	{
		myObj.value='';
	}	
}

function checkPass(myObj)
{
	if(myObj.value == 'password')
	{
		myObj.value='';
	}	
}

//legal notice
function warnOut()
{
	if (confirm("You are now leaving the Elmer's Products, Inc. website and going to a site not controlled by or affiliated with Elmer's Product's, Inc."))
	{
		return true;
	}
	else
	{
		return false;
	}
}

//submission rules
function displayCTRules() 
{
    window.open("prizeRules.html", "Rules", "height=600,width=545,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes");
}

//taf rules
function displayRules(ruleFile) {
    window.open(ruleFile, "Rules", "height=600,width=545,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes");
}