function ClearInput(value, id) {
var input = document.getElementById(id);
	//input.style.borderColor = '#074b8f';
	if(value == input.value){
	if (id == 'form_select') {
		input.value = '0';
	}
	else {
		input.value = '';
	}
	//input.style.color = '#000';
	}else{
	input.value = input.value;
	}
}
function FillInput(value, id) {
var input = document.getElementById(id);
	if(value == input.value || input.value == ''){
	input.value = value;
	//input.style.color = '#aaa';
	//input.style.borderColor = '#c1d1e3';
	}
	if (id == 'form_email') {
		var str = input.value;
		var a = (str.lastIndexOf(".") > 2) && (str.indexOf("@") > 0) && (str.lastIndexOf(".") > (str.indexOf("@")+1)) && (str.indexOf("@") == str.lastIndexOf("@"));
		if (a) {
			//input.style.borderColor = '#074b8f';
			//input.style.color = '#000';
		}
		else {
			//input.style.color = '#aaa';
			//input.style.borderColor = '#c1d1e3';
			input.value = value;
		}
	}
}
