﻿function checkQuestion(){

	a = document.communication;
	if(checkString(a.customerId,"Customer ID") &&
	checkString(a.contact,"Name") &&
	checkEmail(a.email,"e-Mail") &&
	checkString(a.subject,"Subject")&&
	checkString(a.question,"Comments")){return true;}
	else{return false;}
}

function checkAnswerForm(){

	a = document.communication;
	if(checkString(a.customerId,"Customer ID") &&
	checkString(a.contact,"Name") &&
	checkString(a.question,"Comments")){return true;}
	else{return false;}
}

function closeQuestion(questionId){
	if(confirm("Are you sure you want to finish this request ?")){document.location = "closeQuestion.asp?questionId=" + questionId;}
}
