function UserSettings(script,id){
    
    //document.write('<sc'+'ript language="javascript" type="text/javascript" src="js/confirm_patterns.js"></script>');
    
    var detect = navigator.userAgent.toLowerCase();
    var OS,browser,version,total,thestring;
    
    if (checkIt('konqueror'))
    {
    	browser = "Konqueror";
    	OS = "Linux";
    }
    else if (checkIt('firefox')){
       browser = "Firefox"
       version = detect.substr(place + thestring.length,20);
    }
    else if (checkIt('safari')){
       browser = "Safari"
    }
    else if (checkIt('omniweb')){
       browser = "OmniWeb"
    }
    else if (checkIt('opera')){
       browser = "Opera"
       version = detect.substr(place + thestring.length,20);
    }
    else if (checkIt('webtv')){
       browser = "WebTV";
    }
    else if (checkIt('icab')){
       browser = "iCab"
    }
    else if (checkIt('msie')){
       browser = "Internet Explorer"
       version = detect.match(/msie\s?([0-9\.]+)/);
       version = version[1] ? version[1] : null;
    }
    else if (checkIt('mozilla')){
       browser = "Mozilla"
       version = detect.match(/rv:([0-9\.]+)/);
       version = version[1] ? version[1] : null;
    }
    else if (!checkIt('compatible'))
    {
    	browser = "Netscape Navigator"
    	version = detect.charAt(8);
    }
    else browser = "An unknown browser";
    
    
    if (!version) version = detect.charAt(place + thestring.length);
    
    if (!OS)
    {
    	if (checkIt('linux')) OS = "Linux";
    	else if (checkIt('x11')) OS = "Unix";
    	else if (checkIt('mac')) OS = "Mac";
    	else if (checkIt('win')) OS = "Windows";
    	else OS = "an unknown operating system";
    }
    
    function checkIt(string)
    {
    	place = detect.indexOf(string) + 1;
    	thestring = string;
    	return place;
    }
    
       
    var WinWidth = typeof(document.width)!='undefined' ? document.width : document.body.offsetWidth;
    var WinHeight = typeof(document.height)!='undefined' ? window.innerHeight : document.body.offsetHeight;
    var resolution  = screen.width + "/" + screen.height;
    var screen_size = WinWidth + "/" + WinHeight;
    
    window.open(script + "?id=" + id + "&data[os]=" + OS + "&data[browser]=" + browser + version + "&data[resolution]=" + resolution + "&data[screen_size]=" + screen_size);
    return false;
    
    
}