<!-- Copyright 2001-2007 Adobe Systems Incorporated.  All rights reserved. -->
<!DOCTYPE HTML SYSTEM "-//Macromedia//DWExtension layout-engine 5.0//dialog">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
<head>
	<title><MMString:loadString id="TagLibraries/CFML/cfdocument/title" /></title>
<script src="../../Shared/Common/Scripts/dwscripts.js"></script>
<script src="../../Shared/Common/Scripts/tagDialogsCmn.js"></script>
<script src="../../Shared/Common/Scripts/ListControlClass.js"></script>
<script src="loc_strings.js"></script>
<script src="strings.js"></script>
<script>

/************************* GLOBAL VARS **************************/
var types = new Array("custom")
var PAGETYPELIST; 
var FORMATLIST;
var MIMETYPELIST;
var PERMISSIONSLIST;
var ORIENTATIONLIST;
var UNITSLIST;
var ENCRYPTIONLIST;
var theUIObjects; 
var applyType = "dynamic"; 

/****************************************************************/

function inspectTag(tagNodeObj)
{
  tagDialog.inspectTagCommon(tagNodeObj, theUIObjects); 
}

function applyTag(tagNodeObj)
{
  tagDialog.applyTagCommon(tagNodeObj, theUIObjects); 
}

function isValueInList(theValue, theArray) {
	for (var i=0; i<theArray.length; i++) {
		if (theValue == theArray[i]) {
			return true;
		}
	}
	return false;
}

/*
function inspectTag(tagNodeObj) {
	var curValue = PAGETYPELIST.getValue();
	var theAttr = PAGETYPELIST.object.getAttribute("attname");
	var activeDisplayNode = dwscripts.findDOMObject("the" + curValue);

	if (isValueInList(tagNodeObj.getAttribute(theAttr), types)) {
		tagDialog.inspectTagCommon(tagNodeObj, theUIObjects, applyType, activeDisplayNode, PAGETYPELIST);
	} else {
		updateUI();
	}
}
*/

/*
function applyTag(tagNodeObj) {
	var curValue = PAGETYPELIST.getValue(); 
	var activeDisplayNode = dwscripts.findDOMObject("the" + curValue);
	tagDialog.applyTagCommon(tagNodeObj, theUIObjects, applyType, activeDisplayNode); 
}
*/


function updateUI()
{
  var curDiv = PAGETYPELIST.getValue(); 

	tagDialog.showOnlyThisLayer(curDiv, document.layers[0]); 
  //var curDiv = PAGETYPELIST.getValue().toString(); 
  //tagDialog.showOnlyThisLayer(curDiv);
  
  //if (curDiv == "custom") {
  //object.getAttribute("attname")
  //alert(document.General.height);
  //document.General.height.disabled=false;
  //} 
}


function initializeUI()
{
  FORMATLIST = new ListControl("theformat"); 
  PAGETYPELIST = new ListControl("thepagetype");
  PERMISSIONSLIST = new ListControl("thepermissions"); 
  ORIENTATIONLIST = new ListControl("theorientation"); 
  UNITLIST = new ListControl("theunit");
  ENCRYPTIONLIST = new ListControl("theencryption");
  MIMETYPELIST = new ListControl("themimetype");
  
  tagDialog.populateDropDownList(FORMATLIST, theDocumentFormatCap, theDocumentFormatVal, 1);
  tagDialog.populateDropDownList(PAGETYPELIST, theDocumentPageTypeCap, theDocumentPageTypeVal, 1);
  tagDialog.populateDropDownList(PERMISSIONSLIST, theDocumentPermissionsCap, theDocumentPermissionsVal, 1);
  tagDialog.populateDropDownList(ORIENTATIONLIST, theDocumentOrientationCap, theDocumentOrientationVal, 1); 
  tagDialog.populateDropDownList(UNITLIST, theDocumentUnitsCap, theDocumentUnitsVal, 1);
  tagDialog.populateDropDownList(ENCRYPTIONLIST, theDocumentEncryptionCap, theDocumentEncryptionVal, 1);
  tagDialog.populateDropDownList(MIMETYPELIST, theTypesContentCap, theTypesContentVar, 1)
  
  
  theUIObjects  = new Array(FORMATLIST,PAGETYPELIST,PERMISSIONSLIST,ORIENTATIONLIST,UNITLIST,ENCRYPTIONLIST,PAGETYPELIST,MIMETYPELIST); 
   
 }
 
 function isCustom(){
 	 if (PAGETYPELIST.getValue() == "custom") {
		dwscripts.findDOMObject('thepageheight').disabled = false;
		dwscripts.findDOMObject('thepagewidth').disabled = false;
		} else {
		dwscripts.findDOMObject('thepageheight').disabled = true;
		dwscripts.findDOMObject('thepagewidth').disabled = true;
		}
 }

</script>
<link href="../../fields.css" rel="stylesheet" type="text/css">
<link href="../../Styles/cfdocument.css" rel="stylesheet" type="text/css" />
</head>
<body onLoad="initializeUI();">

<div id="General" MMString:name="TagLibraries/CFML/cfdocument/div/name/General"> 
  <table border="0">
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Name" /> </td>
      <td colspan="4" nowrap="nowrap"><input name="thename" type="text" class="largeTField" id="attr:cfdocument:name" attname="name" />

      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Filename" /> </td>
      <td colspan="4" nowrap="nowrap"><input name="thefilename" type="text" class="largeTField" id="attr:cfdocument:filename" attname="filename"  />

      </td>
    </tr>
	<tr>
        <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Source" /> </td>
        <td colspan="4" nowrap="nowrap">
	        <input type="text" id="attr:input:src" name="attr:cfdocument:src" attname="src" class="cls_cfdocument_input_attrinputsrc" />
      &nbsp;
	        <input type="button" name="browseBtn" MMString:value="TagLibraries/CFML/cfdocument/button/browseBtn/Browse" onClick="tagDialog.browseFile('attr:input:src');focus(this)" />
	      </td>
      </tr>
	  <tr>
        <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Source_1" /> </td>
        <td colspan="4" nowrap="nowrap">
	        <input type="text" id="attr:input:srcfile" name="attr:cfdocument:srcfile" attname="srcfile" class="cls_cfdocument_input_attrinputsrcfile" />
      &nbsp;
	        <input type="button" name="browseBtn" MMString:value="TagLibraries/CFML/cfdocument/button/browseBtn/Browse" onClick="tagDialog.browseFile('attr:input:srcfile');focus(this)" />
	      </td>
      </tr>
    <tr>
	<tr valign="baseline">
      <td align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/MIME" /> </td>
      <td colspan="4" nowrap="nowrap">
        <select name="themimetype" class="mimeTypesList" id="attr:cfdocument:mimetype" attname="mimetype" editable="true" >
        </select>
      </td>
    </tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Format" /> </td>
      <td colspan="4" nowrap="nowrap"><select name="theformat" class="dataTypeList" id="attr:cfdocument:format" attname="format" editable="true">
      </select>
      </td>
    </tr>
	<tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Page" /> </td>
      <td colspan="4" nowrap="nowrap"><select name="thepagetype" class="dataTypeList" id="attr:cfdocument:pagetype" attname="pagetype" editable="true" onChange="isCustom();">
        </select>
      </td>
    </tr>

	<tr>
      <td align="right" valign="baseline" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Page_1" /></td>
      <td><input name="thepageheight" type="text" class="xsmallTField" id="attr:cfdocument:pageheight" attname="pageheight" disabled /></td>
	  <td align="right" valign="baseline" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Page_2" /></td>
      <td><input name="thepagewidth" type="text" class="xsmallTField" id="attr:cfdocument:pagewidth" attname="pagewidth" disabled  /></td>
	  <td>&nbsp;</td>
	</tr>
	
	<tr>
      <td nowrap="nowrap" valign="baseline" align="right"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Margin" /></td>
      <td><input name="themargintop" type="text" class="xsmallTField" id="attr:cfdocument:margintop" attname="margintop" /></td>
      <td nowrap="nowrap valign="baseline" align="right""><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Margin_1" /></td>
      <td><input name="themarginbottom" type="text" class="xsmallTField" id="attr:cfdocument:marginbottom" attname="marginbottom" /></td>
	  <td>&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap" valign="baseline" align="right"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Margin_2" /></td>
      <td><input name="themarginleft" type="text" class="xsmallTField" id="attr:cfdocument:marginleft" attname="marginleft" /></td>
      <td nowrap="nowrap" valign="baseline" align="right"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Margin_3" /></td>
      <td><input name="themarginright" type="text" class="xsmallTField" id="attr:cfdocument:marginright" attname="marginright" /></td>
	  <td>&nbsp;</td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Orientation" /></td>
      <td>
        
          <select name="theorientation" id="attr:cfdocument:orientation" attname="orientation" editable="true">
          </select>
      </td>
	  <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Unit" /></td>
      <td nowrap="nowrap">
        <select name="theunit" id="attr:cfdocument:unit" attname="unit" editable="true" class="unitList">
        </select>
      </td>
	  <td nowrap="nowrap">&nbsp;</td>
    </tr> 
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Encryption" /></td>
      <td colspan="4" nowrap="nowrap"><select name="theencryption" class="dataTypeList" id="attr:cfdocument:encryption" attname="encryption" editable="true">
      </select></td>
    </tr>
    <tr>
      <td valign="baseline" nowrap="nowrap" align="right"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Permissions" /></td>
      <td colspan="4" nowrap="nowrap"><select name="thepermissions" class="dataTypeList" id="attr:cfdocument:permissions" attname="permissions" editable="true">
                        </select></td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Owner" /> </td>
      <td colspan="4" nowrap="nowrap"><input name="theownerpassword" type="text" class="dataTypeList" id="attr:cfdocument:ownerpassword" attname="ownerpassword" /></td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/User" /> </td>
      <td colspan="4" nowrap="nowrap"><input name="theuserpassword" type="text" class="dataTypeList" id="attr:cfdocument:userpassword" attname="userpassword" /></td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/CFML/cfdocument/text/Scale" /></td>
      <td colspan="4" nowrap="nowrap"><input name="thescale" type="text" class="dataTypeList" id="attr:cfdocument:scale" attname="scale" /></td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap">&nbsp;</td>
      <td nowrap="nowrap"><input type="checkbox" id="attr:cfdocument:backgroundvisible" name="thebackgroundvisible" attname="backgroundvisible" truevalue="yes" />
      <MMString:loadString id="TagLibraries/CFML/cfdocument/checkbox/thebackgroundvisible/Background" /> </td>
      <td nowrap="nowrap"><input type="checkbox" id="attr:cfdocument:overwrite" name="theoverwrite" attname="overwrite" truevalue="yes" />
      <MMString:loadString id="TagLibraries/CFML/cfdocument/checkbox/theoverwrite/Overwrite" /></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap">&nbsp;</td>
      <td colspan="4" nowrap="nowrap"><input type="checkbox" id="attr:cfdocument:fontembed" name="thefontembed" attname="fontembed" falsevalue="no" checked />
      <MMString:loadString id="TagLibraries/CFML/cfdocument/checkbox/thefontembed/Font" /></td>
    </tr>
  </table>

</div>

</body>
</html>
