function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function MM_openBrWindow2(theURL,winName,features) {
  var docF=document.vote;
  var c = 3;
  if(docF.vcheck[0].checked) c=docF.vcheck[0].value;
  else if(docF.vcheck[1].checked) c=docF.vcheck[1].value;
  else if(docF.vcheck[2].checked) c=docF.vcheck[2].value;  
  window.open(theURL + "&check=" + c,winName,features);
}
    function validate() {

    if (document.jobsearch.indtype.selectedIndex == '0' && trim(document.jobsearch.keyword.value) =="")
	    {
    		alert("Please specify either Functional Area or keyword to search job");
		    return false;
	    }
	    return true;
    }

	function trim(strText) {
    // this will get rid of leading spaces
    while (strText.substring(0,1) == ' ')
        strText = strText.substring(1, strText.length);

    // this will get rid of trailing spaces
    while (strText.substring(strText.length-1,strText.length) == ' ' )
        strText = strText.substring(0, strText.length-1);

	  return strText;
	}

