function check(URL,altURL)
{ //v4.0
//alert(URL);
//alert(altURL);
  var newURL='', verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
//alert('verStr: '+verStr);
//alert('app: '+app);
//alert('version: '+version)

var cols=verStr.split(";");

if (app.indexOf('Netscape') != -1)               //Netscape
	{	if (version < 5)
			{
			 window.location =unescape(altURL); 
			}
		else
			{
			window.location =unescape(URL);
			}
	}


else if (app.indexOf('Microsoft') != -1)         //MSIE
	{	
	
		var info=cols[1].split(" ");
	
		if ((info[1]=="MSIE"))
			{
				//document.write('<DIV id=testOpera style="display:none">TestIfOpera5</DIV>');
				if (document.all['testOpera'].style.clip=='rect()')  //Opera
					{
						window.location=unescape(altURL);
					}
				else
					{
						if ((parseFloat(info[2])<5))
							{window.location=unescape(altURL); }
						//else
						//	{window.location=unescape(URL); }	
						
					}	
			}
	}
		
	
	
}
	
//function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) {

  //if (app.indexOf('Netscape') != -1) {alert('Netscape');
  //  if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?URL:altURL;}
  //  else {if (NSnoPass>0) newURL=(NSnoPass==1)?URL:altURL;}
  //}
  
   //else if (app.indexOf('Microsoft') != -1) {
    //if (version >= IEvers || verStr.indexOf(IEvers) != -1)
     //{if (IEpass>0) newURL=(IEpass==1)?URL:altURL;}
    //else {if (IEnoPass>0) newURL=(IEnoPass==1)?URL:altURL;}
  //}
  
   //else if (OBpass>0) newURL=(OBpass==1)?URL:altURL;
  //if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
//}
