function checkInput(userForm) {

	var myForm = userForm;
	var validated = true;
	var errMsg = "Please correct the following error(s):\n";

	for(i = 0; i < myForm.length; i++) {

		var element = myForm.elements[i];

		//Add req_ to the id of a form element if you want to make it required.
		if (element.id.indexOf("req_") > -1) {
			if (element.value == "") {
				errMsg += element.name + " is required.\n";
				validated = false;
			}
		}
	}

	if(!validated)alert(errMsg);

	return validated;
}

function writeFeedback() {
	var coll = document.all.tags("meta");
	var attributed_channel = "";

	if (coll != null) {
		for (i = 0; i < coll.length; i++) {
			if (coll[i].name == "WT.mc_n\=CS_attributed_channel") {
				attributed_channel = coll[i].attributes["content"].value;
			}
		}
	}

	document.write("<a href=\"");
	if (attributed_channel == "" || attributed_channel == "featuredreports") { document.write("/feedback"); }
	else { document.write("/feedback/?channel\=" + attributed_channel); }
	document.write ("\">Tell us</a> what you think about this article.");

}

function getProduct(productID) {
	var productDesc = "";

	switch(productID) {
		case(0): // None -- should never get here
			break;
		case(1): // Teams -- uses GetBoard(). should never get here
			break;
		case(2): // Resume Writing
			productDesc = "Let Monster <a href=\"http://resume.monster.com/writingservices/index.asp?msource=0002-M\">Resume Writing Services</a> craft you a job-winning resume.";
			break;
		case(3): // Personal Salary Report
			productDesc = "Find out what you’re worth with a <a href=\"https://secure.salary.com/salaryreport/layoutscripts/srpl_overview.asp?r=monster&p=MNSTR42\">Personal Salary Report</a>.";
			break;
		case(4): // Interview Mastery
			productDesc = "Ace the interview and get the job with <a href=\"http://www.interviewmastery.com/index.cfm?affiliate=monster-ic\">Interview Mastery</a>.";
			break;
		case(5): // My Monster Premium
			productDesc = "Get your resume noticed with <a href=\"http://my.lycos.monster.com/member/member_login_sell.asp?from=banner&ECOMAD=contentMain\">My Monster Premium</a>.";
			break;
		case(6): // Career Coaching
			productDesc = "Discover the right career for you with the help of a <a href=\"http://monster.dreamsheet.com/cgi-bin/tspage0.pl?partnercode=monster&Subcode=textlink\">personal coach</a>.";
			break;
		case(7): // Goals Guy
			productDesc = "Achieve focus and reach your career goals with <a href=\"http://www.goalsguy.com/Monster/index.php?monster=content\">The GoalsGuy Monster Collections</a>.";
			break;
		case(8): // Executive Agent
			productDesc = "Get your resume in front of hundreds of top recruiters and employers with <a href=\"http://www.execagent.com/cgi-bin/partner.cgi?monsterresources\">Executive Agent</a>.";
			break;
	}

	return productDesc;
}

    // --- START MESSAGE BOARD SECTION

function GetBoard(board)
{

    switch (board)
    {
    // TEAMS BOARDS
    case("- none -"):
    case("-- none --"):
			var returnString = "";
			return returnString;

    case("Study Group"):
        var returnString = "Network with Monster members <a href=\"http://network.monster.com/newentry.aspx?WT.mc_n=ContentArticle\">here</a>.";
        return returnString;

    case("Accounting/Finance - Networking"):
        var returnString = "Join Monster Networking\'s <a href=\"http://network.monster.com/Teams/ShowForum.aspx?ForumID=6\">Accounting/Finance message board</a>.";
        return returnString;

    case("Age Issues - Networking"):
        var returnString = "Join Monster Networking\'s <a href=\"http://network.monster.com/Teams/ShowForum.aspx?ForumID=5\">Age Issues message board</a>.";
        return returnString;

    case("Human/Social Services - Networking"):
	var returnString = "Join Monster Networking\'s <a href=\"http://network.monster.com/Teams/ShowForum.aspx?ForumID=22\">Human/Social Services message board</a>.";
	return returnString;

    case("Sales Careers - Networking"):
        var returnString = "Join Monster Networking\'s <a href=\"http://network.monster.com/Teams/ShowForum.aspx?ForumID=4\">Sales/Marketing message board</a>.";
        return returnString;

    case("Self-Assessment and Your Career - Networking"):
	var returnString = "Join Monster Networking\'s <a href=\"http://network.monster.com/Teams/ShowForum.aspx?ForumID=31\">Self-Assessment message board</a>.";
        return returnString;

    case("Tech Jobs - Networking"):
	var returnString = "Join Monster Networking\'s <a href=\"http://network.monster.com/Teams/ShowForum.aspx?ForumID=2\">Tech Jobs message board</a>.";
        return returnString;

   case("Transition from Military to Civilian Work"):
        var returnString = "Join Monster Networking\'s <a href=\"http://network.monster.com/Teams/ShowForum.aspx?ForumID=16\">Military/Defense Industry message board</a>."
        return returnString;

    case("Women at Work - Networking"):
	var returnString = "Join Monster Networking\'s <a href=\"http://network.monster.com/Teams/ShowForum.aspx?ForumID=32\">Women at Work message board</a>.";
        return returnString;

    // --- END TEAMS BOARDS

    // --- START FREE FORUMS

        case("Admin/Support Careers"):
	var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3548\">Administrative Careers message board</a>.";
        return returnString;

    case("Age Issues"):
	var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3559\">Age Issues message board</a>.";
        return returnString;

    case("Blaze Your Own Career"):
	var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3553\">Blaze Your Own Career message board</a>.";
	return returnString;

    case("Career Planning for College Students"):
    case("Ins and Outs of Internships"):
	var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=959\">Career Planning for College Students message board</a>.";
	return returnString;

    case("Contractor Advisor"):
    case("Contract and Temporary"):
	var returnString = "Talk about this article and get advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=800\">Contract, Temp & Staffing message board</a>.";
	return returnString;

    case("Cover Letter Tips"):
	var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3561\">Cover Letter Tips message board</a>.";
	return returnString;

    case("Diversity at Work"):
    case("Equal Opportunity"):
    case("Racial Diversity"):
    case("Racial and Cultural"):
        var returnString = "Talk about this article and get advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=1896\">Diversity at Work message board</a>.";
        return returnString;

    case("Finance Careers"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3556\">Finance Careers message board</a>.";
        return returnString;

    case("Government"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3507\">Gov\'t/Public Service Careers message board</a>, or visit one of our Hot Topic boards: <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3510\">Break into Government</a>, <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3508\">Federal Resumes</a>, <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3504\">Jobs Outside Washington</a> and <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3509\">Military-to-Civilian Transitions</a>.";
        return returnString;

    case("Healthcare - General"):
    case("Healthcare - Free"):
    case("Human/Social Services"):
    case("Radiology"):
	var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3531\">Healthcare Careers message board</a>.";
	return returnString;

    case("Hourly & Skilled Jobs"):
    case("Retail Careers"):
	var returnString = "Talk about this article and get advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3298\">Hourly & Skilled Careers message board</a>.";
        return returnString;

    case("Human Resources Careers"):
        var returnString = "You asked, and we listened: The free <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3581\">Human Resources Careers message board</a> is back. Read, post and exchange <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3581\">professional and career advice</a> with your peers now.";
        return returnString;

    case("Interview Tips"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=1845\">Interview Tips message board</a>.";
        return returnString;

    case("Job Seeker"):
	var returnString = "Talk about this article and get advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=100\">Job Seeker message board</a>.";
	return returnString;

    case("Graduate School"):
    case("Learning Q&A"):
	var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3554\">Learning & Continuing Education message board</a>.";
        return returnString;

    case("Leadership"):
    case("Management"):
	var returnString = "You asked, and we listened: The <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3520\">Management Careers message board</a> is back, and now with additional Hot Topic boards.  Read, post and get expert <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3520\">career advice</a>.";
	return returnString;

    case("Nursing"):
	var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3533\">Nursing Careers message board</a>.";
	return returnString;

    case("Resume Tips"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=126\">Resume Tips message board</a>."
        return returnString;

    case("Sales Careers"):
        var returnString = "Talk about this article and get advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3557\">Sales Careers message board</a>.";
        return returnString;

    case("Salary and Negotiation Tips"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=107\">Salary & Negotiation Tips message board</a>.";
        return returnString;

    case("Self-Assessment and Your Career"):
	var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3555\">Self-Assessment Tips message board</a>.";
        return returnString;

    case("Internet Careers"):
    case("Tech Jobs"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3558\">Technology Careers message board</a>.";
        return returnString;

    case("Volunteer"):
        var returnString = "Talk about this article and get advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3564\">Volunteering message board</a>.";
        return returnString;

    case("Careers for Women"):
    case("Women at Work"):
	var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3560\">Women at Work message board</a>.";
        return returnString;

    case("Workers with Disabilities"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3353\">Workers with Disabilities message board</a>.";
        return returnString;

    case("International Jobs"):
        var returnString = "You asked, and we listened: The free <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3625\">Work Abroad message board</a> is back. Read, post and exchange information about careers overseas with your peers now.";
        return returnString;

    // --- DEFAULT FOR CLOSED BOARDS

    case("9/11"):
    case("Careers in Law"):
    case("Getting and Giving References"):
    case("Immigration Advisor"):
    case("Work-from-Home"):
	var returnString = "Talk about this article and get advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=100\">Job Seeker message board</a>.";
	return returnString;

    // --- END FREE FORUMS

    // OLD MESSAGE BOARDS -- N O  L O N G E R  U S E D

    case("9/11 - closed"):
	var returnString = "Talk about this article and get advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=2415\">9/11 message board</a>.";
        return returnString;

    case("Careers for Women - closed"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=2962\">Careers for Women message board</a>.";
        return returnString;

    case("Careers in Law - closed"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=2307\">Careers in Law message board</a>.";
        return returnString;

    case("Getting and Giving References - closed"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=919\">Getting and Giving References message board</a>.";
        return returnString;

    case("Graduate School - closed"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=2181\">Graduate School message board</a>.";
        return returnString;

    case("Immigration Advisor - closed"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=120\">Immigration Advisor message board</a>.";
        return returnString;

    case("Ins and Outs of Internships - closed"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=2180\">Ins and Outs of Internships message board</a>.";
        return returnString;

    case("Internet Careers - closed"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=927\">Internet Careers message board</a>.";
        return returnString;

    case("Leadership - closed"):
        var returnString = "Talk about this article and get advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=1269\">Leadership message board</a>.";
        return returnString;

    case("Racial Diversity - closed"):
    case("Racial and Cultural - closed"):
        var returnString = "Talk about this article and get advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=1896\">Diversity at Work</a> message board.";
        return returnString;

    case("Radiology - closed"):
	var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=3535\">Radiology Careers message board</a>.";
	return returnString;

    case("Retail Careers - closed"):
        var returnString = "Talk about this article and get advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=1733\">Retail Careers message board</a>.";
        return returnString;

    case("Work-from-Home - closed"):
        var returnString = "Talk about this article and get expert advice on the <a href=\"http://forums.lycos.monster.com/forum.asp?forum=801\">Work-from-Home message board</a>.";
        return returnString;

	// --- END OLD BOARDS

    default:
	var returnString = "Discuss this article with experts and other Monster members on one of our <a href=\"http://discussion.lycos.monster.com/messageboards\">free message boards</a>.";
        return returnString;
    }

   // --- END MESSAGE BOARD SECTION

}

function HelpWindow()
{
 var helpURL = "http://help.monster.com/index.asp?url=http://content.lycos.monster.com" + window.location.pathname;
 var winhelp = window.open(helpURL,"help","width=575,height=300,scrollbars,resizable");
 winhelp.focus();
}
