//////////////////////////
///----SEARCH FORM----///
////////////////////////

//this fuction set submit btn

	function setSubmitBtn(){
		var searchBtn=document.getElementById("search_btn");
		searchBtn.onclick=submitSearchForm;
		searchBtn.onmouseover=setBtnOnRolloverStyle;
		searchBtn.onmouseout=setBtnOnRolloutStyle;
	}


//this function Submit search form

	function submitSearchForm(){
		var searchForm=document.SearchForm;
		searchForm.submit();
	}


//this function set cursor style to "hand"

	function setBtnOnRolloverStyle(){
		var searchBtn=document.getElementById("search_btn").childNodes[0];
		searchBtn.style.cursor="pointer";
		searchBtn.style.color="#f1da1a";
	}

//this function set onrollout effect of the btn

	function setBtnOnRolloutStyle(){
		var searchBtn=document.getElementById("search_btn").childNodes[0];
		searchBtn.style.color="#ffffff";
	}


//////////////////////////////////////////
///----COMMENTS AND CONTACT'S FORM----///
////////////////////////////////////////

//this fuction set submit btn

	function setFormButtons(){
		var sbmBtn=document.getElementById("btn_submit");
		// Check it the button exists on the page, otherwise we get runtime error in IE
		if (sbmBtn!=null){
			sbmBtn.onclick=submitForm;
			sbmBtn.onmouseover=setBtnSbmOnRollover;
			sbmBtn.onmouseout=setBtnSbmOnRollout;
		}
		
		var rstBtn=document.getElementById("btn_reset");
		// Check it the button exists on the page, otherwise we get runtime error in IE
		if (rstBtn!=null){
			rstBtn.onclick=resetForm;
			rstBtn.onmouseover=setBtnRstOnRollover;
			rstBtn.onmouseout=setBtnRstOnRollout;
		}
	}
	
	

//this function Submit form

	function submitForm(){
		var cForm=document.CommentForm;
		cForm.submit();
	}
	
	
//this function Reset form

	function resetForm(){
		var cForm=document.CommentForm;
		cForm.reset();
	}
	
	
//this function set cursor style to "hand"

	function setBtnSbmOnRollover(){
		var sbmBtn=document.getElementById("btn_submit").childNodes[0];
		sbmBtn.style.cursor="pointer";
		sbmBtn.style.color="#f1da1a";
	
	}
	
//this function set onrollout effect of the btn

	function setBtnSbmOnRollout(){
		var sbmBtn=document.getElementById("btn_submit").childNodes[0];
		sbmBtn.style.color="#ffffff";
	}
	

//this function set cursor style to "hand"

	function setBtnRstOnRollover(){
		var rstBtn=document.getElementById("btn_reset").childNodes[0];
		rstBtn.style.cursor="pointer";
		rstBtn.style.color="#f1da1a";
	}
	

//this function set onrollout effect of the btn

	function setBtnRstOnRollout(){
		var rstBtn=document.getElementById("btn_reset").childNodes[0];
		rstBtn.style.color="#ffffff";
	}
	
	