      function goback() { history.go(-1)} // End the hiding here.

      function popup(url) {
            var lookup= window.open(url,'lookup','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=490,height=500');
            lookup.focus();
      }

      function popupFaqs(url) {
            var faqs=window.open(url,'Faqs','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=500');
            faqs.focus();
      }	

      function popupHelp(url) {
            var help=window.open(url,'Faqs','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=450');
            help.focus();
      }	

      function openInParent(url) {
            window.opener.location.href=url;
            window.opener.focus();
      }

      function popupTmplAll(url) {
            windowTop=100;
            windowLeft=150;
            var ChangeTemplate=window.open(url,'ChangeTemplate','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600,top='+windowTop+',left='+windowLeft);
            ChangeTemplate.focus();
      }	

      function popupTmpl(url) {
            windowTop=(screen.top);
            windowLeft=screen.width-640;
            var Tmpl = window.open(url,'Tmpl','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=490,height=500,top='+windowTop+',left='+windowLeft);
            Tmpl.focus();
      }

      function popupEnquiry(url) {
            windowTop=(screen.top);
            windowLeft=screen.width-640;
            var Enquiry = window.open(url,'Enquiry','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=430,height=275,top='+windowTop+',left='+windowLeft);
            Enquiry.focus();
      }

      function popupImg(url) {
            var ChangeTemplate=window.open(url,'ChangeTemplate','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=400');
            ChangeTemplate.focus();
      }	

      function closePopup() {
            window.opener.focus();
            window.close();
      }

      function checkTemplate() {
           if (document.frmChooseTmpl.dir.value=='') {
               alert('Please enter the desired url');
               document.frmChooseTmpl.dir.focus();
               return false;
           } else {
               var i;
               var flag;
               flag=0;
               for (i=0;i<document.frmChooseTmpl.tmpl.length;i++) {
                  if (document.frmChooseTmpl.tmpl[i].checked==true) {
                      flag=1;
                  }
               }
               if (flag==0) {
                  alert('Please select a suitable layout for your Business Homepage');
                  return false;
               } else {
                  return true;
               }
           }
        }

