// JavaScript Document
function ShoHide (DivID0,DivID1)
{
		document.getElementById(DivID0).style.display="none";
		document.getElementById(DivID1).style.display="block";
}

function ShoHideWithText (DivID0,DivID1,TextDiv0,TextDiv1)
{
		document.getElementById(DivID0).style.display="none";
		document.getElementById(DivID1).style.display="block";
		document.getElementById(TextDiv0).style.display="none";
		document.getElementById(TextDiv1).style.display="block";		
}

function validate_form ( )
{
    valid = true;

    if ( document.contact.Name.value == "" )
    {
        alert ( "Please fill in the 'Name' box." );
        valid = false;
    }
    if ( document.contact.CompanyName.value == "" )
    {
        alert ( "Please fill in the 'Company Name' box." );
        valid = false;
    }
    if ( document.contact.Address.value == "" )
    {
        alert ( "Please fill in the 'Address' box." );
        valid = false;
    }	
    if ( document.contact.City.value == "" )
    {
        alert ( "Please fill in the 'City' box." );
        valid = false;
    }
    if ( document.contact.Zip.value == "" )
    {
        alert ( "Please fill in the 'Zip' box." );
        valid = false;
    }
    if ( document.contact.State.value == "" )
    {
        alert ( "Please fill in the 'State' box." );
        valid = false;
    }
    if ( document.contact.Phone.value == "" )
    {
        alert ( "Please fill in the 'Phone' box." );
        valid = false;
    }
    if ( document.contact.Email.value == "" )
    {
        alert ( "Please fill in the 'Email' box." );
        valid = false;
    }	

    return valid;
}

function validatecv_form ( )
{
    valid = true;

    if ( document.cv.FirstName.value == "" )
    {
        alert ( "Please fill in the 'First Name' box." );
        valid = false;
    }
    if ( document.cv.LastName.value == "" )
    {
        alert ( "Please fill in the 'Last Name' box." );
        valid = false;
    }
    if ( document.cv.PersonalEmail.value == "" )
    {
        alert ( "Please fill in the 'Personal email id' box." );
        valid = false;
    }	

    return valid;
}