/*function $(id){	return document.getElementById(id);}*/function newsBoxLoad(nid, lang){	ao = new AjaxObject101();	ao.funcError = function e(errorText){if(errorText) alert(errorText);showNewsLoadingDiv(false);}	ao.funcWait = function f(){showNewsLoadingDiv(true);}	ao.funcDone = function f(responseArray){		showNewsLoadingDiv(false);		var news_text = responseArray.message;		var imgsrc = responseArray.imgsrc;		var txtlen = news_text.length;				news_text = news_text.substring(0, 200);				if(txtlen > 200) news_text += "...";                if(imgsrc){                    $("#news_picture").attr("src", imgsrc);                    $("#news_picture").bind('load', function(){                        $("#news_box_content").html(news_text);                    })                } else {                    $("#news_picture").attr("src","");                    $("#news_box_content").html(' ');                }                $("#lnk_more_news").attr("href", varLinkNewsHref+"#p"+nid);                	}			ao.sndReq("get","include/shownews.php", "nid="+nid+"&lang="+lang);	}function showNewsLoadingDiv(show){	document.getElementById("news_loading").style.display = show ? "block" : "none";}// SENDING MAILfunction frmContact_Validate(){	var frmContact = document.forms.frmContact;	var empty = frmContact.namesurname.value.length && frmContact.company.value.length && frmContact.email.value.length && frmContact.message.value.length;	return empty == 0 ? false : true;}function DisableFrmContact(disable){	if(disable) {		$("#btnSendMail").attr("disabled","disabled");		$("#message").attr("disabled","disabled");	}	else {		$("#btnSendMail").attr("disabled", "");		$("#message").attr("disabled", "");	}}function frmContact_OnSubmit(){	try {				if(frmContact_Validate() == false) {			alert("Please fill in all form data!");			return false;		}		ao = new AjaxObject101();		ao.funcError = function e(errorText){if(errorText) alert(errorText); DisableFrmContact(false);}		ao.funcWait = function f(){}		ao.funcDone = function f(responseArray){			DisableFrmContact(false);			alert(responseArray.message);			// Your message has benn sent. enable form...				}		var frmContact = document.forms.frmContact;		var namesurname = frmContact.namesurname.value;		var company = frmContact.company.value;		var email = frmContact.email.value;		var message = frmContact.message.value;		var params = "namesurname="+namesurname+"&company="+company+"&email="+email+"&message="+message;		DisableFrmContact(true);		ao.sndReq("post","include/sendmail.php", params);			} catch(e){		alert(e.message);	}	return false;	}// download documentsfunction downloadDocument(src){	$("#frmDownload").attr("src", src);}