function comment(){
	var alertm = "";
	if (document.F1.commentsOrg.value.length < 1){
		alertm = "Please enter your comments!\n" + alertm;
		document.F1.commentsOrg.focus();
	}	
	if (alertm.length > 1){
		alert ("Christian Republic Notification\n-------------------------------------------------\n" + alertm + "-------------------------------------------------");
		return false;
	}else{
		document.F1.action = "addComment.php";
		document.F1.method = "post";
		document.F1.submit();
	}
}
function commentLink(){
	var alertm = "";
	
	if (document.F1.urlString.value.length < 1 || document.F1.urlString.value == 'http://'){
		alertm = "Please enter the link (eg. http://www.christianrepublic.co.za)!\n" + alertm;
		document.F1.urlString.focus();
	}	
	if (document.F1.urlName.value.length < 1 || document.F1.urlName.value == 'Link Name Here'){
		alertm = "Please enter your Link Name!\n" + alertm;
		document.F1.urlName.focus();
	}	
	if (document.F1.comments.value.length < 1){
		alertm = "Please enter your comments!\n" + alertm;
		document.F1.comments.focus();
	}	
	if (alertm.length > 1){
		alert ("Christian Republic Notification\n-------------------------------------------------\n" + alertm + "-------------------------------------------------");
		return false;
	}else{
		document.F1.action = "addLinkComment.php";
		document.F1.method = "post";
		document.F1.submit();
	}
}
function commentPht(){
	var alertm = "";
	if (document.F1.commentsPht.value.length < 1){
		alertm = "Please enter your comments!\n" + alertm;
		document.F1.commentsPht.focus();
	}	
	if (alertm.length > 1){
		alert ("Christian Republic Notification\n-------------------------------------------------\n" + alertm + "-------------------------------------------------");
		return false;
	}else{
		document.F1.action = "addPhotoComment.php";
		document.F1.method = "post";
		document.F1.submit();
	}
}
function replyCommentPhoto(tokenID, isFriend, wallID){
	var alertm = "";
	
	if (document.F1['photoComm' + wallID].value.length < 1){
		alertm = "Please write something!\n" + alertm;
	}else{
		if (document.F1['photoComm' + wallID].value == "Write your comments here..."){
			alertm = "Please write something!\n" + alertm;
		}
	}
	
	if (alertm.length > 1){
		alert ("Christian Republic Notification\n-------------------------------------------------\n" + alertm + "-------------------------------------------------");
		return false;
	}else{
		document.F1.action = "addPhotoReply.php?tokenID=" + tokenID + "&isFriend=" + isFriend + "&wallID=" + wallID;
		document.F1.method = "post";
		document.F1.submit();
	}
}
function replyCommentMC(tokenID, isFriend, wallID){
	var alertm = "";
	
	if (document.F1['wallComm' + wallID].value.length < 1){
		alertm = "Please write something!\n" + alertm;
	}else{
		if (document.F1['wallComm' + wallID].value == "Write your comments here..."){
			alertm = "Please write something!\n" + alertm;
		}
	}
	
	if (alertm.length > 1){
		alert ("Christian Republic Notification\n-------------------------------------------------\n" + alertm + "-------------------------------------------------");
		return false;
	}else{
		document.F1.action = "addCommentReply.php?tokenID=" + tokenID + "&isFriend=" + isFriend + "&wallID=" + wallID;
		document.F1.method = "post";
		document.F1.submit();
	}
}
function replyCommentFP2(tokenID, isFriend, wallID){
	var alertm = "";
	if (document.F1['wallCommFP' + wallID].value.length < 1){
		alertm = "Please write something!\n" + alertm;
	}else{
		if (document.F1['wallCommFP' + wallID].value == "Write your comments here..."){
			alertm = "Please write something!\n" + alertm;
		}
	}
	
	if (alertm.length > 1){
		alert ("Christian Republic Notification\n-------------------------------------------------\n" + alertm + "-------------------------------------------------");
		return false;
	}else{
		document.F1.action = "addCommentFP2.php?tokenID=" + tokenID + "&isFriend=" + isFriend + "&wallID=" + wallID;
		document.F1.method = "post";
		document.F1.submit();
	}
}
function replyCommentFP(tokenID, isFriend, wallID){
	var alertm = "";
	
	if (document.F1['wallCommFP1' + wallID].value.length < 1){
		alertm = "Please write something!\n" + alertm;
	}else{
		if (document.F1['wallCommFP1' + wallID].value == "Write your comments here..."){
			alertm = "Please write something!\n" + alertm;
		}
	}
	
	if (alertm.length > 1){
		alert ("Christian Republic Notification\n-------------------------------------------------\n" + alertm + "-------------------------------------------------");
		return false;
	}else{
		document.F1.action = "addCommentFP.php?tokenID=" + tokenID + "&isFriend=" + isFriend + "&wallID=" + wallID;
		document.F1.method = "post";
		document.F1.submit();
	}
}
function replyComment(tokenID, isFriend, wallID){
	var alertm = "";
	
	if (document.F1['wallComm' + wallID].value.length < 1){
		alertm = "Please write something!\n" + alertm;
	}else{
		if (document.F1['wallComm' + wallID].value == "Write your comments here..."){
			alertm = "Please write something!\n" + alertm;
		}
	}
	
	if (alertm.length > 1){
		alert ("Christian Republic Notification\n-------------------------------------------------\n" + alertm + "-------------------------------------------------");
		return false;
	}else{
		document.F1.action = "addWallReply.php?tokenID=" + tokenID + "&isFriend=" + isFriend + "&wallID=" + wallID;
		document.F1.method = "post";
		document.F1.submit();
	}
}
	function friendRequest(varN, varM){
		document.F1.friendName.value = varN;
		document.F1.isFriend.value = varM;
		document.getElementById("mypopup").style.display="block";
	}

