function validate_patchMgt(frm){
	
	//First Name
	if(!wordCount(frm.first_name.value)){
		alert('First Name is required.');
		frm.first_name.focus();
		return false;
	}	
	
	//Last Name
	if(!wordCount(frm.last_name.value)){
		alert('Last Name is required.');
		frm.last_name.focus();
		return false;
	}
	
	//Title
	if(!wordCount(frm.title.value)){
		alert('Title is required.');
		frm.title.focus();
		return false;
	}
	
	//Company 
	if(!wordCount(frm.company.value)){
		alert('Company is required.');
		frm.company.focus();
		return false;
	}
		
	//Email - Phone
	if(!wordCount(frm.email.value) && !wordCount(frm.phone.value)){
		alert('Either Email or Phone is required.');
		frm.email.focus();
		return false;
	}		
	if( (wordCount(frm.email.value) && !isEmail(frm.email.value)) ){
		alert('Email address provided is invalid.');
		frm.email.focus();
		return false;
	}
		
	//State
	if(!wordCount(frm.state.value)){
		alert('State is required.');
		frm.state.focus();
		return false;
	}
		
	//Industry
	if(0 == frm.industry.selectedIndex){
		alert('Industry is required.');
		frm.industry.focus();
		return false;
	}	

	//Desktop Operating System
	elm = document.frmPatchMgt.cbDesktopOS
	srvOSlen = elm.length;
	arrOS = new Array();
	for(i=0;i<srvOSlen;i++){
		nIdx = elm[i]
		if(nIdx.checked){
			arrOS.push( nIdx.value);
		}	
	}document.frmPatchMgt["00N00000006onow"].value = arrOS.join(",");
		
	//Server Operating System
	elm = document.frmPatchMgt.cbServerOS
	srvOSlen = elm.length;
	arrOS = new Array();
	for(i=0;i<srvOSlen;i++){
		nIdx = elm[i]
		if(nIdx.checked){
			arrOS.push( nIdx.value);
		}	
	}document.frmPatchMgt["00N00000006onox"].value = arrOS.join(",");
	

return true;	
}


//*****************************************************
//VALIDATORS
//*****************************************************

	//pass any string in, it will validate if it follows: [string]@[string].[string]
	function isEmail(addy){
	  emailExp = /\w@\w.\w/;
		if(!addy.match(emailExp)){
			return false;
		}
	return true;
	}
	
	//pass any string in, it will validate if it follows: ###-###-#### 
	function isPhone(phn){
	  phnExp = /\d{3}-\d{3}-\d{4}/;
		if(!phn.match(phnExp)){
			return false;
		}
	return true;	
	}
	
	//pass any string into this and it will return how many words are in the string.
	function wordCount(obj){
	  	if(obj.length == 0){
			wordTotal = 0;
	   	}else{
			regSpace = /\s/g;
	  		aWords = obj.split(regSpace);
	  		wordTotal = aWords.length;
		}	
	return wordTotal;	
	}
