/** Additional Custom JS Functions **/

function addMembershipUser(fieldname, indexint, contentblocktoupdate, increamenterformid){
//////////////////////////////////////////////////////
// Return HTML block code for another file upload //
// input box - name determined by parameters passed.//
//////////////////////////////////////////////////////

var myHTML = "";
var contentBlock = document.getElementById(contentblocktoupdate);
var oldHTML = "";
if (indexint == ""){
    indexint = 2;
}
myHTML = "<li>User Email:<input type='text' name='"+fieldname+"_"+indexint+"' size='25'></li>";
oldHTML = contentBlock.innerHTML;
contentBlock.innerHTML = oldHTML + myHTML;
document.getElementById(increamenterformid).value ++;

} 
