
       function doEMailThisPage(myfile) {
        var leftPosition = 200;
        var topPosition = 200;

        var Win = window.open(myfile, 'EMailThisPage', 'scrollbars=1, toolbar=0, statusbar=0, width=640, height=400, left='+leftPosition+', top='+topPosition);
    }

    function doCheckNavMenu(formname, selectname, buttonname) {
	if (document.forms[formname].elements[selectname].value == '')
	    document.forms[formname].elements[buttonname].disabled = true;
	else
	    document.forms[formname].elements[buttonname].disabled = false;
    }

    function doPopUp(iwidth, iheight, filepath) {
	var leftPosition = 100;
	var topPosition = 100;

        var Win = window.open(filepath, 'PopUp', 'scrollbars=1, toolbar=0, statusbar=0, width='+iwidth+', height='+ iheight+', left='+leftPosition+', top='+topPosition);
    }

    function transferEditorContent(to) {
            var htmlCode = iView02.document.body.innerHTML
            var EditorContent = document.getElementById(to);

            EditorContent.value = htmlCode;
            //document.getElementById(to).value=document.getElementById(from);
    }



var min=9;
var max=18;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s = 18;
      }
      p[i].style.fontSize = s+"px"
   }
   var p = document.getElementsByTagName('span');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s = 18;
      }
      p[i].style.fontSize = s+"px"
   }
   var p = document.getElementsByTagName('input');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s = 18;
      }
      p[i].style.fontSize = s+"px"
   }
   var p = document.getElementsByTagName('a');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s = 18;
      }
      p[i].style.fontSize = s+"px"
   }
   var p = document.getElementsByTagName('font');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s = 18;
      }
      p[i].style.fontSize = s+"px"
   }
}

function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s = 9;
      }
      p[i].style.fontSize = s+"px"
   }   
   var p = document.getElementsByTagName('span');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s = 9;
      }
      p[i].style.fontSize = s+"px"
   }
   var p = document.getElementsByTagName('input');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s = 9;
      }
      p[i].style.fontSize = s+"px"
   }
   var p = document.getElementsByTagName('a');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s = 9;
      }
      p[i].style.fontSize = s+"px"
   }
   var p = document.getElementsByTagName('font');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s = 9;
      }
      p[i].style.fontSize = s+"px"
   }
}

function resetFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s = 12;
      }else{
	 s = 12;
      }
      p[i].style.fontSize = s+"px"
   }   
   var p = document.getElementsByTagName('span');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s = 12;
      }else{
	 s = 12;
      }
      p[i].style.fontSize = s+"px"
   }
   var p = document.getElementsByTagName('input');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s = 12;
      }else{
	 s = 12;
      }
      p[i].style.fontSize = s+"px"
   }
   var p = document.getElementsByTagName('a');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s = 12;
      }else{
	 s = 12;
      }
      p[i].style.fontSize = s+"px"
   }
   var p = document.getElementsByTagName('font');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s = 12;
      }else{
	 s = 12;
      }
      p[i].style.fontSize = s+"px"
   }
}
