javascript code (JAVA) not working in mozilla
In the below code alert in the first line is running fine (left menu gets visible) but alert in the last line is not running fine and left menu is getting invisible.

Pls help to sort out the prblm.

Thanks
Rakesh

                //alert("-Layer Id -"+layerId);
		//Pramod : 18/05/2009 : added for open main pages on clicking on mail menu
		var candidateRoleOnHeader2 = '<%=candidateRoleOnHeader%>';
		var contactPerRoleOnHeader2 = '<%=contactPerRoleOnHeader%>';
		//alert("-candidateRoleOnHeader2-:"+candidateRoleOnHeader2);
		//alert("-contactPerRoleOnHeader2-:"+contactPerRoleOnHeader2);
		//alert("-menuTxt-:"+menuTxt);
		    if(menuTxt != null && menuTxt != '' && menuTxt == 'candidatecall')
			 {
			 	document.location.href="/admin/candidatecall.do";	
			 }
			else if(menuTxt != null && menuTxt != '' && menuTxt == 'Requisition')
			 {
			 //alert("-candidateRoleOnHeader2-:"+candidateRoleOnHeader2);
			 	 if(candidateRoleOnHeader2 == 'true')
  			 	     document.location.href="/admin/jobPosting.do?login=candidate";
			 	 else if(contactPerRoleOnHeader2 == 'true')
			 	 	 document.location.href="/admin/jobPosting.do?login=cperson";
			 	 else
				 	 document.location.href="/admin/jobPosting.do";
			 }	
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Screening')
			 {	
				if(candidateRoleOnHeader2 == 'true')
					document.location.href="/admin/screeningmain.do?login=candidate";
				else if(contactPerRoleOnHeader2 == 'true')
			 	 	 document.location.href="/admin/screeningmain.do?login=cperson";	
				else 	
				    document.location.href="/admin/screeningmain.do";
		     }		
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Resume')	
			  {
				if(candidateRoleOnHeader2 == 'true')
				   document.location.href="/admin/resumemain.do?login=candidate";
				else if(contactPerRoleOnHeader2 == 'true')
			 	 	 document.location.href="/admin/resumemain.do?login=cperson"; 
				else
				    document.location.href="/admin/resumemain.do"; 
			  }	
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Client')	
				document.location.href="/admin/clientmain.do";
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Search')	
				document.location.href="/admin/searchmain.do";
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Billing')	
				document.location.href="/admin/billingmain.do";
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Reports')	
				document.location.href="/admin/reportsmain.do";
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Utilities')	
				document.location.href="/admin/utilitymain.do";
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'My RD')	
			  {
			    if(candidateRoleOnHeader2 == 'true')
 					document.location.href="/admin/myrdmain.do?login=candidate";
 				else if(contactPerRoleOnHeader2 == 'true')
			 	 	 document.location.href="/admin/myrdmain.do?login=cperson"; 	
 			    else
 			     document.location.href="/admin/myrdmain.do";		
			  }	
			  else if(menuTxt != null && menuTxt != '' && menuTxt == 'Settings')	
			  {
			     document.location.href="/admin/myrdmain.do";		
			  }	
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'User Management')	
				document.location.href="/admin/usermanagementmain.do";
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Users')	
				document.location.href="/admin/usermgtmain.do";	
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Configuration')	
				document.location.href="/admin/configurationmain.do";
			else if(menuTxt != null && menuTxt != '' && menuTxt == 'Online Testing')	
				document.location.href="/admin/onlinetestingmain.do";	
			else if(menuTxt != null && menuTxt != '' && menuTxt == 'Certification')	
				document.location.href="/admin/certificationmain.do";
			else if(menuTxt != null && menuTxt != '' && menuTxt == 'Interview')	
				document.location.href="/admin/otinterviewmain.do";		
			else
				document.location.href="/admin/rdmain.do";	
			
			alert("-Layer Id -"+layerId);
javascript code (JAVA) not working in mozilla
===

In the below code alert in the first line is running fine (left menu gets visible) but alert in the last line is not running fine and left menu is getting invisible.

Pls help to sort out the prblm.

Thanks
Rakesh

                //alert("-Layer Id -"+layerId);
		//Pramod : 18/05/2009 : added for open main pages on clicking on mail menu
		var candidateRoleOnHeader2 = '<%=candidateRoleOnHeader%>';
		var contactPerRoleOnHeader2 = '<%=contactPerRoleOnHeader%>';
		//alert("-candidateRoleOnHeader2-:"+candidateRoleOnHeader2);
		//alert("-contactPerRoleOnHeader2-:"+contactPerRoleOnHeader2);
		//alert("-menuTxt-:"+menuTxt);
		    if(menuTxt != null && menuTxt != '' && menuTxt == 'candidatecall')
			 {
			 	document.location.href="/admin/candidatecall.do";	
			 }
			else if(menuTxt != null && menuTxt != '' && menuTxt == 'Requisition')
			 {
			 //alert("-candidateRoleOnHeader2-:"+candidateRoleOnHeader2);
			 	 if(candidateRoleOnHeader2 == 'true')
  			 	     document.location.href="/admin/jobPosting.do?login=candidate";
			 	 else if(contactPerRoleOnHeader2 == 'true')
			 	 	 document.location.href="/admin/jobPosting.do?login=cperson";
			 	 else
				 	 document.location.href="/admin/jobPosting.do";
			 }	
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Screening')
			 {	
				if(candidateRoleOnHeader2 == 'true')
					document.location.href="/admin/screeningmain.do?login=candidate";
				else if(contactPerRoleOnHeader2 == 'true')
			 	 	 document.location.href="/admin/screeningmain.do?login=cperson";	
				else 	
				    document.location.href="/admin/screeningmain.do";
		     }		
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Resume')	
			  {
				if(candidateRoleOnHeader2 == 'true')
				   document.location.href="/admin/resumemain.do?login=candidate";
				else if(contactPerRoleOnHeader2 == 'true')
			 	 	 document.location.href="/admin/resumemain.do?login=cperson"; 
				else
				    document.location.href="/admin/resumemain.do"; 
			  }	
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Client')	
				document.location.href="/admin/clientmain.do";
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Search')	
				document.location.href="/admin/searchmain.do";
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Billing')	
				document.location.href="/admin/billingmain.do";
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Reports')	
				document.location.href="/admin/reportsmain.do";
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Utilities')	
				document.location.href="/admin/utilitymain.do";
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'My RD')	
			  {
			    if(candidateRoleOnHeader2 == 'true')
 					document.location.href="/admin/myrdmain.do?login=candidate";
 				else if(contactPerRoleOnHeader2 == 'true')
			 	 	 document.location.href="/admin/myrdmain.do?login=cperson"; 	
 			    else
 			     document.location.href="/admin/myrdmain.do";		
			  }	
			  else if(menuTxt != null && menuTxt != '' && menuTxt == 'Settings')	
			  {
			     document.location.href="/admin/myrdmain.do";		
			  }	
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'User Management')	
				document.location.href="/admin/usermanagementmain.do";
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Users')	
				document.location.href="/admin/usermgtmain.do";	
			 else if(menuTxt != null && menuTxt != '' && menuTxt == 'Configuration')	
				document.location.href="/admin/configurationmain.do";
			else if(menuTxt != null && menuTxt != '' && menuTxt == 'Online Testing')	
				document.location.href="/admin/onlinetestingmain.do";	
			else if(menuTxt != null && menuTxt != '' && menuTxt == 'Certification')	
				document.location.href="/admin/certificationmain.do";
			else if(menuTxt != null && menuTxt != '' && menuTxt == 'Interview')	
				document.location.href="/admin/otinterviewmain.do";		
			else
				document.location.href="/admin/rdmain.do";	
			
			alert("-Layer Id -"+layerId);