Image1= new Image(10,12);
Image1.src = "http://www.onlinebuttonsecrets.com/covers/abv3Down.gif";
Image2= new Image(10,12);
Image2.src = "http://www.onlinebuttonsecrets.com/covers/abv3Over.gif";
Image3= new Image(10,12);
Image3.src = "http://www.onlinebuttonsecrets.com/covers/abv3Up.gif";

function alexButton(state, ID)
{
	switch(state)
	{
		case "press":
			document.getElementById(ID).style.backgroundImage='url(http://www.onlinebuttonsecrets.com/covers/abv3Down.gif)';
			document.getElementById(ID).style.backgroundPosition='top';
			break;
		case "over":
			document.getElementById(ID).style.backgroundPosition='top';
			document.getElementById(ID).style.backgroundImage='url(http://www.onlinebuttonsecrets.com/covers/abv3Over.gif)';
			break;
		case "up":
		default:
		// Up	
			document.getElementById(ID).style.backgroundPosition='bottom';
			document.getElementById(ID).style.backgroundImage='url(http://www.onlinebuttonsecrets.com/covers/abv3Up.gif)';
			break;
	}
}

function linkify(URL,target, config)
{
	if(target != '')
	{
		// Open in a new window
		window.open(URL, target, config);
	}
	else
	{
		location.href=URL;
	}
}

function valbutton(thisform) 
{
	// place any other field validations that you require here
	// validate myradiobuttons
	myOption = -1;
	for (i=document.forms[thisform].interest_level.length-1; i > -1; i--) 
	{
		if (document.forms[thisform].interest_level[i].checked) 
		{
		myOption = i;
		}
	}

	if (myOption == -1) 
	{
		alert("Please select an option");
		return false;
	}
	
	// place any other field validations that you require here
	if(document.form1.interest_level[3].checked == false)
	{
		MM_validateForm('Primary Contact Name','','R','Primary Contact Email','','RisEmail');
	}
	
	if(document.MM_returnValue || document.form1.interest_level[3].checked == true)
	{
		document.forms[thisform].submit(); // this line submits the form after validation
	}
	else
	{
		return false;
	}
}