
    function bookmarkthis(title,url) {
    	
//	    if (navigator.appName == 'Netscape')
//	    {
//		    window.sidebar.addPanel(title, url, "");
//	    }
//	    else if (navigator.appName == 'Microsoft Internet Explorer')
//	    {
//		    window.external.AddFavorite(url, title);
//	    }
    	
	    var ua=navigator.userAgent.toLowerCase();
        var isKonq=(ua.indexOf('konqueror')!=-1);
        var isSafari=(ua.indexOf('webkit')!=-1);
        var isMac=(ua.indexOf('mac')!=-1);
        var buttonStr=isMac?'Command/Cmd':'CTRL';

        if(window.external && (!document.createTextNode ||
          (typeof(window.external.AddFavorite)=='unknown'))) {
            // IE4/Win generates an error when you
            // execute "typeof(window.external.AddFavorite)"
            // In IE7 the page must be from a web server, not directly from a local 
            // file system, otherwise, you will get a permission denied error.
            window.external.AddFavorite(url, title); // IE/Win
        } else if(isKonq) {
          alert('You need to press CTRL + B to bookmark our site.');
        } else if(window.opera) {
            alert('You need to press Command/Cmd + D to bookmark our site.');    
            void(0); // do nothing here (Opera 7+)
        } else if (navigator.appName == 'Netscape') {
            if(window.sidebar != undefined)
		        window.sidebar.addPanel(title, url, "");
		    else
		        alert('You need to press '+buttonStr+' + D to bookmark our site.');
        } else if(window.home || isSafari) { // Firefox, Netscape, Safari, iCab
          alert('You need to press '+buttonStr+' + D to bookmark our site.');
        } else if(!window.print || isMac) { // IE5/Mac and Safari 1.0
          alert('You need to press Command/Cmd + D to bookmark our site.');    
        } else {
          alert('In order to bookmark this site you need to do so manually '+
            'through your browser.');
        }
        
    }


       function validate_radio(frm, radioset) 
       {
            var btn = frm[radioset]
            var valid

            for (var x = 0;x < btn.length; x++)
            {
                valid = btn[x].checked
                if (valid) {break}
            }

            if(!valid)
            {
                alert("Please choose rating: " + radioset)
                return false;
            }
            return true;
        }

        function form_valid(frm)
        {
            var fields = new Array('ReviewTitle', 'ReviewText', 'YourName','YourLocation', 'YourEmail', 
                                   'ValueForMoney', 'Reliability', 'CustomerService',  'TechnicalSupport',
                                   'Features', 'StorageSpace', 'Bandwidth', 'TechResponseTime', 'Easeofuse');
            var flag = true;
            
            for(var i=0; i<fields.length; i++)
            {
                if(document.getElementById(fields[i]).type == "radio")
                {
                    if(!validate_radio(frm, fields[i]))
                    {
                        flag = false;
                        break;
                    }
                }
                else
                {

                    if(!document.getElementById(fields[i]).value) 
                    {
                        alert("Please enter the '" + fields[i] + "' field");
                        flag=false;
                        break;
                    }
                }
            }
            if(!document.getElementById('YourEmail').value.match(/[^@]+@[^@]+\.[\w]+/))
            {
                alert("Please enter valid e-mail address");
                flag=false;
            }
            return flag;
        }
