/*TermProject,Group3,JavaScriptFile*/

function clearComments(textVar){
	textVar.value="";
}

function flagPost(){
	alert("This post has been flagged,thank you for your input.");
	document.getElementsByClassName("flag").style.color = "#ff0000";
}

function addingtextbackin(textVar){
	if(textVar.value=="")
		textVar.value="...";
}
	


@@ -343,10 +343,1368 @@
 %0D%0A%7D%0D%0A%09%0D%0A
+function saveUserInfo()%0D%0A%7B%0D%0A%0D%0A%09var url = %22submitcomment.php%22;%0D%0A%0D%0A%0D%0A%09var comments = document.getElementById(%22comments%22).value;%0D%0A%09//var tags = document.getElementById(%22tag%22).value;%0D%0A%09%0D%0A%09var postStr   = %22comments=%22+ comments;%0D%0A%0D%0A%09//var ajax = InitAjax();%0D%0A%0D%0A%09var ajax = false;%0D%0A%09// init XMLHttpRequest object%0D%0A    if(window.XMLHttpRequest) %0D%0A%09%7B %09//Mozilla %0D%0A        ajax = new XMLHttpRequest();%0D%0A    %09if (ajax.overrideMimeType) %0D%0A%09%09%7B%09%0D%0A            ajax.overrideMimeType(%22text/xml%22);%0D%0A   %09%09%7D%0D%0A %09%7D%0D%0A    else if (window.ActiveXObject) %0D%0A%09%7B %09// IE%0D%0A        try %0D%0A%09%09%7B%0D%0A        %09ajax = new ActiveXObject(%22Msxml2.XMLHTTP%22);%0D%0A        %7D %0D%0A%09%09catch (e) %0D%0A%09%09%7B%0D%0A        %09try %0D%0A%09%09%09%7B%0D%0A            %09ajax = new ActiveXObject(%22Microsoft.XMLHTTP%22);%0D%0A            %7D %0D%0A%09%09%09catch (e) %7B%7D%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A    if (!ajax) %0D%0A%09%7B %09// exceptions%0D%0A        window.alert(%22Initialize XMLHttpRequest object instance failed.%22);%0D%0A        return false;%0D%0A%09%7D%0D%0A                %0D%0A%09ajax.open(%22POST%22, url, false);%0D%0A%09ajax.setRequestHeader(%22Content-Type%22,%22application/x-www-form-urlencoded%22);%0D%0A%0D%0A%09ajax.send(postStr);%0D%0A%09alert(%22Success!%22);%0D%0A%09//document.getElementById('comments').innerHTML='';%0D%0A%09//document.getElementById(%22myForm%22).reset(); %0D%0A%0D%0A%09ajax.onreadystatechange = function() %0D%0A%09%7B %0D%0A   %09%09if (ajax.readyState == 4 && ajax.status == 200) %0D%0A%09%09%7B %0D%0A    %09%09%0D%0A%09%09%09msg.innerHTML = ajax.responseText; %0D%0A   %09%09%7D %0D%0A%09%7D %0D%0A%09%0D%0A%7D
 %0D%0A

Update termProject.js