	browserversion="0";
	isMac = (navigator.appVersion.indexOf("Mac")!=-1)?true:false;
	isValid = false;
	
	//alert("App name: " + navigator.appName);
	
	//alert("User agent: " + navigator.userAgent);

	if(navigator.appName=="Microsoft Internet Explorer")
	{
		if(!isMac)
		{
			isValid = true;
			
		}
	   	
	} else if(navigator.appName=="Netscape") 
	{	
	
		if(isMac){
			if ((navigator.userAgent.indexOf("Netscape")!=-1))
			{
		    	isValid = true;
			}
			
			
			
			if ((navigator.userAgent.indexOf("Firefox")!=-1))
			{
		    	isValid = true;
			}
	
			if ((navigator.userAgent.indexOf("Safari")!=-1))
			{
		    	isValid = true;
		    	//alert("Safari on Mac")
			}
			
		} else 
		{
			if ((navigator.userAgent.indexOf("Netscape")!=-1))
			{
		    	isValid = true;
			}
			
			if ((navigator.userAgent.indexOf("Chrome")!=-1))
			{
		    	isValid = true;
			}
			
			if ((navigator.userAgent.indexOf("Firefox")!=-1))
			{
		    	isValid = true;
			}
	
			if ((navigator.userAgent.indexOf("Safari")!=-1))
			{
		    	isValid = true;
			}
		
		}
		
	}
	
	
	if(!isValid) 
	{	
		var features = 'scrollbars=yes,width=400,height=400,screenX=200,screenY=150,left=200,top=150';	
		var windowbrowser = window.open('popup/browser.html','browser',features);
		if(windowbrowser){
			history.back();
		}
  		else{
			window.location.href= "browser.do";
		}
	}
