function validate_reciteNam(thisform)
{
var errorMsg = '';
	with (thisform)
	{
//		if (validate_email(thisform.email.value)==false){
//			thisform.email.focus();return false;
//		}
		if (thisform.tekst.value==''){
			errorMsg += 'Niste upisali tekst!\n';
			thisform.tekst.focus();
		}
//		if(thisform.chpismo.checked){
//			if (thisform.pismo.value==''){
//				errorMsg = 'Niste upisali adresu!\n' + errorMsg;
//				thisform.pismo.focus();
//			}
//		}
//		if(thisform.chmail.checked){
		if(thisform.email.value!=''){
			if (validate_email(thisform.email.value)==false){
				errorMsg = 'Neispravna e-mail adresa!\n' + errorMsg;
				thisform.email.focus();
			}
		}
//		if(thisform.chfaks.checked){
//			if (thisform.faks.value==''){
//				errorMsg = 'Niste upisali broj fax-a!\n' + errorMsg;
//				thisform.faks.focus();
//			}
//		}
//		if(thisform.chtel.checked){
//			if (thisform.tel.value==''){
//				errorMsg = 'Niste upisali broj telefona!\n' + errorMsg;
//				thisform.tel.focus();
//			}
//		}
		if (thisform.ime.value==''){
			errorMsg += 'Molimo, upi\u0161ite ime i prezime!\n';
			thisform.ime.focus();
		}
		if(errorMsg == ''){
			thisform.submit();
			return true;
		}else{
			alert(errorMsg);
			return false;
		}
	}
}
function validate_FAQ(thisform)
{
	var errorMsg = '';
	with (thisform)
	{
		if(!thisform.chmail.checked){
			thisform.email.value = '';
		}
		if (thisform.tekst.value==''){
			errorMsg += 'Niste upisali va\u0161e pitanje!\n';
			thisform.tekst.focus();
		}
		if(thisform.chmail.checked){
			if (validate_email(thisform.email.value)==false){
				errorMsg = 'Not a valid e-mail address!\n' + errorMsg;
				thisform.email.focus();
			}
		}
		if(thisform.chprivatni.checked){
			if(!thisform.chmail.checked){
				errorMsg = 'Odabrali ste privatno pitanje. Morate upisat e-mail adresu.\n' + errorMsg;
				thisform.email.focus();
			}
		}
		if(errorMsg == ''){
			thisform.submit();
			return true;
		}else{
			alert(errorMsg);
			return false;
		}
	}
}

function validate_FAQ_PSS(thisform)
{
	var errorMsg = '';
	with (thisform)
	{

		if (thisform.tekst.value==''){
			errorMsg += 'Niste upisali va\u0161e pitanje!\n';
			thisform.tekst.focus();
		}
	
			if (validate_email(thisform.email.value)==false){
				errorMsg = 'Nepostojeca e-mail adresa!\n' + errorMsg;
				thisform.email.focus();
			}


		}
		if(errorMsg == ''){
			thisform.submit();
			return true;
		}else{
			alert(errorMsg);
			return false;
		}
	}



