function FormSubmit(Form,Button) {

      setTimeout("document."+Form+"."+Button+".disabled = true; document."+Form+"."+Button+".value='Please Wait..'", 0); 
      return true;
}


function Confirm(Action,ID) {

	if(Action == "Delete"){
      		var Delete = confirm("Are you sure you wish to delete?")

     		if (Delete){
     			window.location = "delete_msg.php?message="+ID;
     		}
     		else{
     			window.location = "#";
     		}
     		
	}
}


function Remove(Relation,ID) {

		if(Relation == "Friend"){
      			var DeleteFriend = confirm("Are you sure you wish to remove this friend?")

     			if (DeleteFriend){
     				window.location = "relation_update.php?t=friend&m=remove&uid="+ID;
     			}
     			else{
     				window.location = "#";
     			}
     		
		}

		if(Relation == "Foe"){
      			var DeleteFoe = confirm("Are you sure you wish to remove this foe?")

     			if (DeleteFoe){
     				window.location = "relation_update.php?t=foe&m=remove&uid="+ID;
     			}
     			else{
     				window.location = "#";
			}
		}
}
