function ValidateForm(strForm)
{
	var x;
	var alertmsg;
	x=0;
	alertmsg = "The following fields are required: \n";
	if(strForm=="contactform")
	{
		if (document.getElementById("ename").value==""){alertmsg = alertmsg + "\nName";x = x + 1;}
		if (document.getElementById("eemail").value==""){alertmsg = alertmsg + "\nEmail";x = x + 1;}
		if (document.getElementById("esubject").value==""){alertmsg = alertmsg + "\nSubject";x = x + 1;}
		if (document.getElementById("ebody").value==""){alertmsg = alertmsg + "\nBody";x = x + 1;}
	}
	if(strForm=="promoform")
	{
		if (document.getElementById("name").value==""){alertmsg = alertmsg + "\nName";x = x + 1;}
		if (document.getElementById("email").value==""){alertmsg = alertmsg + "\nEmail";x = x + 1;}
		if (document.getElementById("address").value==""){alertmsg = alertmsg + "\nAddress";x = x + 1;}
		if (document.getElementById("city").value==""){alertmsg = alertmsg + "\nCity";x = x + 1;}
		if (document.getElementById("state").value==""){alertmsg = alertmsg + "\nState";x = x + 1;}
		if (document.getElementById("zip").value==""){alertmsg = alertmsg + "\nZip";x = x + 1;}
		if (document.getElementById("home").value==""){alertmsg = alertmsg + "\nHome #";x = x + 1;}
		if (document.getElementById("cell").value==""){alertmsg = alertmsg + "\nCell #";x = x + 1;}
		if (document.getElementById("birthdate").value==""){alertmsg = alertmsg + "\nBirthdate";x = x + 1;}
	}
	if(strForm=="requestform")
	{
		if (document.getElementById("first").value==""){alertmsg = alertmsg + "\nFirst";x = x + 1;}
		if (document.getElementById("last").value==""){alertmsg = alertmsg + "\nLast";x = x + 1;}
		if (document.getElementById("address1").value==""){alertmsg = alertmsg + "\nAddress 1";x = x + 1;}
		if (document.getElementById("city").value==""){alertmsg = alertmsg + "\nCity";x = x + 1;}
		if (document.getElementById("state").value==""){alertmsg = alertmsg + "\nState";x = x + 1;}
		if (document.getElementById("zip").value==""){alertmsg = alertmsg + "\nZip";x = x + 1;}
		if (document.getElementById("phone").value==""){alertmsg = alertmsg + "\nPhone";x = x + 1;}
		if (document.getElementById("email").value==""){alertmsg = alertmsg + "\nEmail";x = x + 1;}
		if (document.getElementById("age").value==""){alertmsg = alertmsg + "\nAge";x = x + 1;}
		if (document.getElementById("song").value==""){alertmsg = alertmsg + "\nSong";x = x + 1;}
	}
	if(strForm=="listenerform")
	{
		if (document.getElementById("first").value==""){alertmsg = alertmsg + "\nFirst";x = x + 1;}
		if (document.getElementById("last").value==""){alertmsg = alertmsg + "\nLast";x = x + 1;}
		if (document.getElementById("address1").value==""){alertmsg = alertmsg + "\nAddress 1";x = x + 1;}
		if (document.getElementById("city").value==""){alertmsg = alertmsg + "\nCity";x = x + 1;}
		if (document.getElementById("state").value==""){alertmsg = alertmsg + "\nState";x = x + 1;}
		if (document.getElementById("zip").value==""){alertmsg = alertmsg + "\nZip";x = x + 1;}
		if (document.getElementById("phone").value==""){alertmsg = alertmsg + "\nPhone";x = x + 1;}
		if (document.getElementById("email").value==""){alertmsg = alertmsg + "\nEmail";x = x + 1;}
		if (document.getElementById("age").value==""){alertmsg = alertmsg + "\nAge";x = x + 1;}
	}
	if(x!=0){alert(alertmsg);return false;}
}

function SwapImage(objImg,strImg) 
{
	if (document.images) 
	{
		objImg.src = "images/" + strImg;
	}
	else if (document.getElementById)
	{
		document.getElementById(objImg).src = "images/" + strImg;
	}
}

function PreloadImages(arrImg)
{
	imgObj = new Image();
	var i = 0;
	for(i=0;i<=arrImg.length;i++)
	{ 
		imgObj.src = arrImg[i];
	}	
}

function LogAd(strId)
{

}

arrImages = new Array();
arrImages[0] = "images/btn_home_2.jpg";
arrImages[1] = "images/btn_staff_2.jpg";
arrImages[2] = "images/btn_photos_2.jpg";
arrImages[3] = "images/btn_request_2.jpg";
arrImages[4] = "images/btn_road_2.jpg";
arrImages[5] = "images/btn_contests_2.jpg";
arrImages[6] = "images/btn_news_2.jpg";
arrImages[7] = "images/btn_contact_2.jpg";

PreloadImages(arrImages);