function ImgFromFile(img){
  		var a=new Image();
  		a.src=img;
  		return a;
} 

function changeBgImage (image, id) {
	var element = document.getElementById(id);
	element.style.backgroundImage = "url("+image+")";
}

	var tf = true;
	var ta = true;
	function removetftext() {
	   if (tf) {
	      document.form.tf.value="";
	      tf = false;
	   }
	}
	function removetatext() {
	   if (ta) {
	      document.form.ta.value="";
	      ta = false;
	   }  
	}

