function checkContactForm() {
 
	var errorMsg = "";
	var errorMsgLong = "";
 
	if (document.getElementById('adiniz').value == ""){
		errorMsg += "\n\t- Enter your name";}
 
	if (document.getElementById('soyadiniz').value == ""){
		errorMsg += "\n\t- Enter your surname";}

	if (document.getElementById('telefonunuz').value == ""){
		errorMsg += "\n\t- Enter your telephone number"; }

	if (document.getElementById('mesajiniz').value == ""){
		errorMsg += "\n\t- Enter your message";}

	if (document.getElementById('gkod').value == ""){
		errorMsg += "\n\t- Enter your security code";}
	
 
	if ((errorMsg != "")||(errorMsgLong != "")){
		msg = "The form has not been submitted because there are problem(s) with the form.\n";
		msg += "Please correct the problem(s) and re-submit the form.\n";
		msg += "__________________________________________\n\n";
		msg += "The following field(s) need to be corrected: -\n";
		
		errorMsg += alert(msg + errorMsg + "\n" + errorMsgLong);
		return false;
	}
	
	return true;
}

function FormuTemizle() {
	var US = document.getElementById('username');
	var PW = document.getElementById('password');

	US.value = '';
	PW.value = '';
}

function insiteCheck() {
 
	var errorMsg = "";
 
	if (document.getElementById('username').value == ""){
		errorMsg += "\n\t- Enter your username"; }

	if (document.getElementById('password').value == ""){
		errorMsg += "\n\t- Enter your password"; }

	if (errorMsg != ""){
		msg = "The form has not been submitted because there are problem(s) with the form.\n";
		msg += "Please correct the problem(s) and re-submit the form.\n";
		msg += "__________________________________________\n\n";
		msg += "The following field(s) need to be corrected: -\n";
		
		errorMsg += alert(msg + errorMsg);
		return false;
	}
	document.getElementById('insite').submit();
	FormuTemizle();
}
