var mmsg = new Array();
mmsg[0] = '&nbsp;';
mmsg[1] = '&nbsp;<strong>Discover the benefits of selling musician-for-hire services through StudioTraxx</strong>';
mmsg[2] = '&nbsp;<strong>Learn how artists, labels, and film companies are using StudioTraxx to work with musicians</strong>';
mmsg[3] = '&nbsp;<strong>Get answers to frequently asked StudioTraxx questions</strong>';
mmsg[4] = '&nbsp;<strong>Read what people are saying about StudioTraxx</strong>';
mmsg[5] = '&nbsp;<strong>StudioTraxx company background & recent news</strong>';
mmsg[6] = '&nbsp;<strong>Send us your comments and questions</strong>';

function updateMessage(whichcontent,id) {
	document.getElementById(id).innerHTML = whichcontent;
}

function validate_login(thisform) {
  	field = '';
    msg = '';
        for (i = 0; i < thisform.elements.length; i++) {
		    if (thisform.elements[i].value == '') {
			 	if (i == 0) {
                                        msg = '- Username\n'; 
					if (!field) { field = 1; }
				} else if (i == 1) {
                                        msg += '- Password\n';
					if (!field) { field = 2; }
				} 		
		     }
         }
	
         if (field) {
				alert ('Please enter your:\n\n'+msg);
			 	thisform.elements[field-1].focus();
		    	return false; 
         } else {
				return true;
	 }
}