function addToFavourite(uid, fid){
	systemForm.setApp("popup");
    systemForm.setAct("addFavourite");
    systemForm.setValue('fid', fid);
    systemForm.setValue('uid', uid);
	systemForm.doAjax(function(result){
		alert(result);
	});
}

function tellAFriend(fid, url){
	var fromName = $("input#fromNameTell").val();  
	var fromMail = $("input#fromMailTell").val();  
	var toName = $("input#toNameTell").val();  
	var toMail = $("input#toMailTell").val();  
	var content = $("textarea#contentTell").val();  
	systemForm.setApp("popup");
    systemForm.setAct("tellAFriend");
	systemForm.setValue('fromName', fromName);
	systemForm.setValue('fromMail', fromMail);
	systemForm.setValue('toName', toName);
	systemForm.setValue('toMail', toMail);
	systemForm.setValue('content', content);
	systemForm.setValue('fid', fid);
	systemForm.setValue('url', url);
	systemForm.doAjax(function(result){
		alert(result);
	});
}

function badComment(fid, url){
	var name = $("input#nameBadComment").val();  
	var mail = $("input#mailBadComment").val();  
	var content = $("textarea#contentBadComment").val();  
	systemForm.setApp("popup");
    systemForm.setAct("badComment");
	systemForm.setValue('name', name);
	systemForm.setValue('mail', mail);
	systemForm.setValue('content', content);
	systemForm.setValue('fid', fid);
	systemForm.setValue('url', url);
	systemForm.doAjax(function(result){
		alert(result);
	});
}

function brokenLink(fid, url){
	var name = $("input#namebrokenLink").val();  
	var mail = $("input#mailbrokenLink").val();  
	var content = $("textarea#contentbrokenLink").val();  
	systemForm.setApp("popup");
    systemForm.setAct("brokenLink");
	systemForm.setValue('name', name);
	systemForm.setValue('mail', mail);
	systemForm.setValue('content', content);
	systemForm.setValue('fid', fid);
	systemForm.setValue('url', url);
	systemForm.doAjax(function(result){
		alert(result);
	});
}

function feedBack(){
	var name = $("input#nameFeedback").val();  
	var mail = $("input#mailFeedback").val();  
	var content = $("textarea#contentFeedback").val();  
	systemForm.setApp("popup");
    systemForm.setAct("feedBack");
	systemForm.setValue('name', name);
	systemForm.setValue('mail', mail);
	systemForm.setValue('content', content);
	systemForm.doAjax(function(result){
		alert(result);
	});
}

