		var newWin = null;
		var submitted = false;

		function dofocus() {
			document.form1.txtSendTo1.focus();
		}

		function doSubmit() {
			if (!submitted) {
				if (validateinput()) {
					submitted = true;
					ProgressImg = document.getElementById('inprogress_img');
					document.getElementById("inprogress").style.visibility = "visible";
					setTimeout("ProgressImg.src = ProgressImg.src",100);
					return true;
				} else
					return false;
			} else {
				submitted = false;
				return false;
			}
		}
		
		function validateinput() {
			var ie4 = false;
			if(document.all) {
				ie4 = true;
			}
			if (ie4) {
				var str;
				str = document.getElementById("File1").value;
				if (str.indexOf("/")<0&&str.indexOf("\\")<0) {
					alert("Please use Browse button to select file");
					return false;
				}
			}
			return true;
		}
		
		function popUp(strURL, strType, strHeight, strWidth) {
		 if (newWin != null && !newWin.closed)
		   newWin.close();
		 var strOptions="";
		 if (strType=="console")
		   strOptions="resizable,height="+
			 strHeight+",width="+strWidth;
		 if (strType=="fixed")
		   strOptions="status,height="+
			 strHeight+",width="+strWidth;
		 if (strType=="elastic")
		   strOptions="toolbar,menubar,scrollbars,"+
			 "resizable,location,height="+
			 strHeight+",width="+strWidth;
		 newWin = window.open(strURL, 'newWin', strOptions);
		 newWin.focus();
		}
		 function addBookmark(title,url) {
		  if (window.sidebar) {
			window.sidebar.addPanel(title, url,"");
		  } else if( document.all ) {
				window.external.AddFavorite( url, title);
			} else {
				return true;
			}
		  }

		var ie4 = false;
		if(document.all) {
			ie4 = true;
		}
		function getObject(id) {
			if (ie4) {
				return document.all[id]; 
			} else { 
				return document.getElementById(id); 
			} 
		}
		function toggle(image,link, divId, from) {
			var lText = link.innerHTML;
			var d = getObject(divId);
			if (lText.indexOf("More ")>=0||from!='') {
				link.innerHTML = '<b>Less Options &laquo;</b>'; d.style.display = 'block'; 
				image.src = "images/minus.gif"
			} else { 
				link.innerHTML = '<b>More Options &raquo;</b>'; d.style.display = 'none'; 
				image.src = "images/plus.gif"
				var item_from = getObject("txtFrom");
				item_from.value = '';
			} 
		}

