function verifyvals()
{
	

if(document.getElementById("textfield2").value=='')

{

alert("Please enter email id");

document.getElementById("textfield2").focus();

return false;
}
}
var testresults

function checkemail(email){

var str=document.getElementById(email).value

var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

if (filter.test(str)) testresults=true

else{

	alert("Please input a valid email address!")

	testresults=false

	document.getElementById(email).focus()

	}

return (testresults)

}

function textclear(a,b)
{
if(document.getElementById(a).value==b)
	document.getElementById(a).value="";
}

function textchange(a,b)
{
if(document.getElementById(a).value=="")
{
document.getElementById(a).value=b;

}

}

function gotopage(a)
{
	window.location="content_page.php?pid="+a;
	
	}
function swapmenu(a)
{
document.getElementById(a).style.backgroundImage="url(images/menu_bg.jpg)";
document.getElementById(a).style.color="#ff4e00";
}

function swapmenu1(a)
{
document.getElementById(a).style.backgroundImage="url(images/menu_bg1.jpg)";
document.getElementById(a).style.color="#FFF";
}
