function bookmarksite(title,url) {
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

var id = 2;

function addFormField() {
	//var id = document.getElementById("ClientList").value;
	$("#ClientList").append("<fieldset id='row" + id + "' class='submit-added' style='display:none;'>"
	   + "<legend>Additional client details</legend>"
	   + "<label for='clientname" + id + "' >Client name</label> <input type='text' size='30' name='clientname" + id + "' id='clientname" + id + "'/>"
	   + "<label for='clientcompany" + id + "'>Client company</label> <input type='text' size='30' name='clientcompany" + id + "' id='clientcompany" + id + "'/>"
	   + "<label for='clientbusiness" + id + "'>Type of business</label> <input type='text' size='30' name='clientbusiness" + id + "' id='clientbusiness" + id + "'/>"
	   + "<label for='clientaddress" + id + "'>Address</label> <textarea cols='30' rows='4' name='clientbusiness" + id + "' id='clientbusiness" + id + "'></textarea>"
	   + "<label for='clientpostcode" + id + "'>Postcode</label> <input type='text' size='30' name='clientpostcode" + id + "' id='clientpostcode" + id + "'/>"
	   + "<label for='clientphone" + id + "'>Telephone</label> <input type='text' size='30' name='clientphone" + id + "' id='clientphone" + id + "'/>"
	   + "<label for='clientemail" + id + "'>Email</label> <input type='text' size='30' name='clientemail" + id + "' id='clientemail" + id + "'>"
	   + "<input type='button' name='remove' value='Remove this client' id='remove' onClick='removeFormField(\"#row" + id + "\"); return false;' class='remove' /></fieldset>");
		
		$('#row' + id).animate({height: 'show', opacity: 'show'}, 'slow'); 
		id++; 
		//id = (id - 1) + 2;
		//document.getElementById("ClientList").value = id;
}
		
function removeFormField(id) {
	$(id).animate({height: 'hide', opacity: 'hide'}, 'fast'); 
	
	// wait 1.5 second then continue
	$(this).delay(1500,function(){
		$(id).remove();
    });
}

/*function gocurvy() {
    settings = {
      tl: { radius: 15 },
      tr: { radius: 15 },
      bl: { radius: 15 },
      br: { radius: 15 },
      antiAlias: true,
      autoPad: false
    }

    var cornersObj = new curvyCorners(settings, "right-section");
    cornersObj.applyCornersToAll();
  }*/
  
 // execute your scripts when DOM is ready. this is a good habit 
$(function() {                  
    // assign a click event to the exposed element. normal jQuery coding 
    $("#signin").click(function() { 
       // this simple call performs exposing 
       $(this).expose({ 
            // use a custom background color 
            color: '#999', 
            opacity: 0.5,
            loadSpeed:	'slow',
            closeSpeed:	'fast'
            
        });  
    });        
}); 

 /* addLoadEvent(gocurvy);*/
