var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
//show and hide function 	
function toggle( targetId, targetId1, targetId2, targetId3, targetId4)
{
if (document.getElementById)
{
target = document.getElementById( targetId );
target1= document.getElementById( targetId1 );
target2= document.getElementById( targetId2 );
target3= document.getElementById( targetId3 );
target4= document.getElementById( targetId4 );


if (target.style.display == "none")
{
target.style.display = "";

}
else
{
target.style.display = "none";
}
target1.style.display = "none";
target2.style.display = "none";
target3.style.display = "none";
target4.style.display = "none";

}
}
function hideAll( targetId, targetId1, targetId2  )
{
if (document.getElementById)
{
target = document.getElementById( targetId );
target1= document.getElementById( targetId1 );
target2= document.getElementById( targetId2 );

target.style.display="none";
target1.style.display = "none";
target2.style.display = "none";

}
}

function toggleMenu( targetId, targetId1, targetId2 )
{
if (document.getElementById)
{
target = document.getElementById( targetId );
target1= document.getElementById( targetId1 );
target2= document.getElementById( targetId2 );

if (target.style.display == "none")
{
target.style.display = "";

}
else
{
//target.style.display = "none";
}
target1.style.display = "none";
target2.style.display = "none";

}
}
function validateEmail()
	{
	if(document.getElementById('fld_email').value=="")
		{
			alert("Please enter the email address");
			document.getElementById('fld_email').focus();
			return false;
			}
			
	else if(!document.getElementById('fld_email').value.match(emailExp))
		{
			alert("Please enter the valid email address");
		document.getElementById('fld_email').focus();
		return false;
			}
		return true;
		}
	
