<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

//-->

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

//-->



<!--
function open_popup(pageToLoad,winName,width,height) {
  args = "width=" + width + "," + "height=" + height; 
    window.open(pageToLoad,winName,args);
}
// canManipulateImages - check if the browser we're using can do'
// clever stuff with document images.

function canManipulateImages() {
	if (document.images)
		return true;
	else
		return false;
}

// loadPosterImage

function loadPosterImage(imageURL) {
	if (gImageCapableBrowser) {
		document.imagePoster.src = imageURL;
		return false;
	}
	else {
		return true;
	}
}

// gImageCapableBrowser - is this browser hip to images? Set up
// a global variable so that we don't have to keep calling a function'
// (useful if the function becomes costly to compute).

gImageCapableBrowser = canManipulateImages();
//-->

  var viewMode = 1; // WYSIWYG 

  function Init() 
  { 
    iView.document.designMode = 'On'; 
  } 
  
function nullSrc() {
  return '<html><body>fxxk</body></html>';
}
  function selOn(ctrl) 
  { 
   ctrl.style.borderColor = '#000000'; 
   ctrl.style.backgroundColor = '#B5BED6'; 
   ctrl.style.cursor = 'hand';    
  } 
  
  function selOff(ctrl) 
  { 
   ctrl.style.borderColor = '#D6D3CE';  
   ctrl.style.backgroundColor = '#D6D3CE'; 
  } 
  
  function selDown(ctrl) 
  { 
   ctrl.style.backgroundColor = '#8492B5'; 
  } 
  
  function selUp(ctrl) 
  { 
    ctrl.style.backgroundColor = '#B5BED6'; 
  } 

  function doBold() 
  { 
   iView.document.execCommand('bold', false, null); 
  } 

  function doItalic() 
  { 
   iView.document.execCommand('italic', false, null); 
  } 

  function doUnderline() 
  { 
   iView.document.execCommand('underline', false, null); 
  } 
  
  function doLeft() 
  { 
    iView.document.execCommand('justifyleft', false, null); 
  } 

  function doCenter() 
  { 
    iView.document.execCommand('justifycenter', false, null); 
  } 

  function doRight() 
  { 
    iView.document.execCommand('justifyright', false, null); 
  } 

  function doOrdList() 
  { 
    iView.document.execCommand('insertorderedlist', false, null); 
  } 

  function doBulList() 
  { 
    iView.document.execCommand('insertunorderedlist', false, null); 
  } 
  
  function doForeCol() 
  { 
    var fCol = prompt('Enter foreground color', ''); 
    
    if(fCol != null) 
      iView.document.execCommand('forecolor', false, fCol); 
  } 

  function doBackCol() 
  { 
    var bCol = prompt('Enter background color', ''); 
    
    if(bCol != null) 
      iView.document.execCommand('backcolor', false, bCol); 
  } 

  function doLink() 
  { 
    iView.document.execCommand('createlink'); 
  } 
  
  function doImage() 
  { 
    var imgSrc = prompt('Enter image location', ''); 
    
    if(imgSrc != null)    
     iView.document.execCommand('insertimage', false, imgSrc); 
  } 
  
  function doRule() 
  { 
    iView.document.execCommand('inserthorizontalrule', false, null); 
  } 
  
  function doFont(fName) 
  { 
    if(fName != '') 
      iView.document.execCommand('fontname', false, fName); 
  } 
  
  function doSize(fSize) 
  { 
    if(fSize != '') 
      iView.document.execCommand('fontsize', false, fSize); 
  } 
  
  function doHead(hType) 
  { 
    if(hType != '') 
    { 
      iView.document.execCommand('formatblock', false, hType);  
      doFont(selFont.options[selFont.selectedIndex].value); 
    } 
  } 
  
  function doToggleView() 
  {  
    if(viewMode == 1) 
    { 
      iHTML = iView.document.body.innerHTML; 
      iView.document.body.innerText = iHTML; 
      
      // Hide all controls 
      tblCtrls.style.display = 'none'; 
//      selFont.style.display = 'none'; 
//      selSize.style.display = 'none'; 
//      selHeading.style.display = 'none'; 
      iView.focus(); 
      
      viewMode = 2; // Code 
    } 
    else 
    { 
      iText = iView.document.body.innerText; 
      iView.document.body.innerHTML = iText; 
      
      // Show all controls 
      tblCtrls.style.display = 'inline'; 
//      selFont.style.display = 'inline'; 
//      selSize.style.display = 'inline'; 
//      selHeading.style.display = 'inline'; 
      iView.focus(); 
      
      viewMode = 1; // WYSIWYG 
    } 
  } 



  function copyValue(f) { 
  f.elements.product_desc.value = "" + iView.document.body.innerHTML + ""; 
  } 
  function pasteValue(f) { 
  iView.document.body.innerHTML = document.form2.product_desc.value; 
  } 
  frames.iView.document.designMode = "On" 

 


