<%@ Page Language="C#" Inherits="CuteEditor.EditorUtilityPage" %>
<html>
	<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.1)">
	<meta http-equiv="Page-Exit" content="blendTrans(Duration=0.1)">
	<link rel=stylesheet href='Safari_style.css' >
	<script src=Gecko_dialog.js></script><script src=../_shared.js></script>
	<body style="border:0px;padding-top:4px;padding-left:4px;padding-right:4px;;margin:0px;overflow:auto;">
		<table border="0" cellspacing="0" cellpadding="2" style="width:100%;">
			<tr>
				<td valign="top">
					<fieldset>
						<legend>[[DocumentPropertyPage]]</legend>
						<div style="height:12px"></div>
						<table border="0" cellpadding="3" cellspacing="0" style="border-collapse:collapse;" class="normal">
							<tr>
								<td>[[Title]]:</td>
								<td colspan="4">
									<input type="text" id="inp_title" style="width:320px">
								</td>
							</tr>
							<tr>
								<td>DOCTYPE:</td>
								<td colspan="4">
									<input type="text" id="inp_doctype" style="width:320px">
								</td>
							</tr>
							<tr>
								<td>[[Description]]:</td>
								<td colspan="4">
									<textarea id="inp_description" rows="3" style="width:320px"></textarea>
								</td>
							</tr>
							<tr>
								<td>[[Keywords]]:</td>
								<td colspan="4">
									<textarea id="inp_keywords" rows="3" style="width:320px"></textarea>
								</td>
							</tr>
							<tr>
								<td>[[HtmlBase]]:</td>
								<td colspan="4"><input type="text" id="inp_htmlbase" style="width:320px"></td>
							</tr>
							<tr>
								<td nowrap>[[PageLanguage]]:</td>
								<td colspan="4">
									<input type="text" id="PageLanguage" name="PageLanguage" size="15" style="WIDTH:320px">
								</td>
							</tr>
							<tr>
								<td nowrap>[[HTMLEncoding]]:</td>
								<td colspan="4">
									<input type="text" id="HTMLEncoding" name="HTMLEncoding" size="15" style="WIDTH:320px">
								</td>
							</tr>
							<tr>
								<td nowrap>[[Backgroundcolor]]:</td>
								<td>
									<input type="text" id="bgcolor" name="bgcolor" size="7" style="WIDTH:57px">	
									<img id="bgcolor_Preview" src="../images/colorpicker.gif" onclick="SelectColor(1);" align="absMiddle">
												
								</td>
								<td width="5"></td>
								<td nowrap>[[ForeColor]]:</td>
								<td>
									<input type="text" id="fontcolor" name="fontcolor" size="7" style="WIDTH:57px">
									<img id="fontcolor_Preview" src="../images/colorpicker.gif" onclick="SelectColor(2);" align="absMiddle">
								</td>
							</tr>							
							<tr>
								<td nowrap>[[TopMargin]]:</td>
								<td>
									<input type="text" id="TopMargin" name="TopMargin" size="7" style="WIDTH:57px"> Pixels
								</td>
								<td width="5"></td>
								<td nowrap>[[BottomMargin]]:</td>
								<td>
									<input type="text" id="BottomMargin" name="BottomMargin" size="7" style="WIDTH:57px"> Pixels
								</td>
							</tr>
							<tr>
								<td nowrap>[[LeftMargin]]:</td>
								<td>
									<input type="text" id="LeftMargin" name="LeftMargin" size="7" style="WIDTH:57px"> Pixels
								</td>
								<td width="5"></td>
								<td nowrap>[[RightMargin]]:</td>
								<td>
									<input type="text" id="RightMargin" name="RightMargin" size="7" style="WIDTH:57px"> Pixels
								</td>
							</tr>
							<tr>
								<td nowrap>[[MarginWidth]]:</td>
								<td>
									<input type="text" id="MarginWidth" name="MarginWidth" size="7" style="WIDTH:57px"> Pixels
								</td>
								<td width="5"></td>
								<td nowrap>[[MarginHeight]]:</td>
								<td>
									<input type="text" id="MarginHeight" name="MarginHeight" size="7" style="WIDTH:57px"> Pixels
								</td>
							</tr>
						</table>
					</fieldset>
				</td>
			</tr>
		</table>
		
		<p align="center">
			<input class="inputbuttoninsert" type="button" value="[[Ok]]" onclick="btnok_click()"
						id="Button1" NAME="Button1">&nbsp;&nbsp;&nbsp; 
			<input class="inputbuttoncancel" type="button" value="[[Cancel]]" onclick="btncc_click()"
								id="Button2" NAME="Button2">
		</p>
	</body>
	<script>
	
	var OxOed41=["dialogArguments","editor","window","document","DOCTYPE","body","head","backgroundColor","style","color","base","title","innerHTML","","meta","length","name","keywords","content","description","httpEquiv","content-type","content-language","value","inp_doctype","inp_title","inp_description","inp_keywords","fontcolor","fontcolor_Preview","bgcolor","bgcolor_Preview","topMargin","TopMargin","bottomMargin","BottomMargin","leftMargin","LeftMargin","rightMargin","RightMargin","marginWidth","MarginWidth","marginHeight","MarginHeight","PageLanguage","HTMLEncoding","href","inp_htmlbase","[[ValidNumber]]","Please enter a valid color number.","lastChild","META ","=\x22","\x22 CONTENT=\x22","\x22","\x3CBASE href=\x22","\x22 target=_blank\x3E","parentNode","http-equiv","Content-Type","Content-Language","returnValue","../colorpicker.aspx","width=600,height=400,resizable=1,toolbars=0,menubar=0,status=0"]; window.resizeTo(0x1ea,0x203) ;var obj=top[OxOed41[0x0]];var editor=obj[OxOed41[0x1]];var editwin=obj[OxOed41[0x2]];var editdoc=obj[OxOed41[0x3]];var DOCTYPE=obj[OxOed41[0x4]];var body=editdoc.getElementsByTagName(OxOed41[0x5]).item(0x0);var head=obj[OxOed41[0x6]];var body_bgcolor=editdoc[OxOed41[0x5]][OxOed41[0x8]][OxOed41[0x7]];var body_fontcolor=editdoc[OxOed41[0x5]][OxOed41[0x8]][OxOed41[0x9]];var htmlbase=editdoc.getElementsByTagName(OxOed41[0xa]).item(0x0);var str_title=editdoc.getElementsByTagName(OxOed41[0xb])[0x0]; str_title=str_title?str_title[OxOed41[0xc]]:OxOed41[0xd] ;var str_keywords=OxOed41[0xd];var str_description=OxOed41[0xd];var str_HTMLEncoding=OxOed41[0xd];var str_PageLanguage=OxOed41[0xd];var str_BaseHref=OxOed41[0xd];var str_DOCTYPE=OxOed41[0xd];var metas=editdoc.getElementsByTagName(OxOed41[0xe]);for(var m=0x0;m<metas[OxOed41[0xf]];m++){if(metas[m][OxOed41[0x10]].toLowerCase()==OxOed41[0x11]){ str_keywords=metas[m][OxOed41[0x12]] ;} ;if(metas[m][OxOed41[0x10]].toLowerCase()==OxOed41[0x13]){ str_description=metas[m][OxOed41[0x12]] ;} ;if(metas[m][OxOed41[0x14]].toLowerCase()==OxOed41[0x15]){ str_HTMLEncoding=metas[m][OxOed41[0x12]] ;} ;if(metas[m][OxOed41[0x14]].toLowerCase()==OxOed41[0x16]){ str_PageLanguage=metas[m][OxOed41[0x12]] ;} ;} ; document.getElementById(OxOed41[0x18])[OxOed41[0x17]]=obj[OxOed41[0x4]] ; document.getElementById(OxOed41[0x19])[OxOed41[0x17]]=str_title ; document.getElementById(OxOed41[0x1a])[OxOed41[0x17]]=str_description ; document.getElementById(OxOed41[0x1b])[OxOed41[0x17]]=str_keywords ; document.getElementById(OxOed41[0x1c])[OxOed41[0x17]]=body_fontcolor ; document.getElementById(OxOed41[0x1d])[OxOed41[0x8]][OxOed41[0x7]]=body_fontcolor ; document.getElementById(OxOed41[0x1e])[OxOed41[0x17]]=body_bgcolor ; document.getElementById(OxOed41[0x1f])[OxOed41[0x8]][OxOed41[0x7]]=body_bgcolor ;if(body[OxOed41[0x20]]){ document.getElementById(OxOed41[0x21])[OxOed41[0x17]]=body[OxOed41[0x20]] ;} ;if(body[OxOed41[0x22]]){ document.getElementById(OxOed41[0x23])[OxOed41[0x17]]=body[OxOed41[0x22]] ;} ;if(body[OxOed41[0x24]]){ document.getElementById(OxOed41[0x25])[OxOed41[0x17]]=body[OxOed41[0x24]] ;} ;if(body[OxOed41[0x26]]){ document.getElementById(OxOed41[0x27])[OxOed41[0x17]]=body[OxOed41[0x26]] ;} ;if(body[OxOed41[0x28]]){ document.getElementById(OxOed41[0x29])[OxOed41[0x17]]=body[OxOed41[0x28]] ;} ;if(body[OxOed41[0x2a]]){ document.getElementById(OxOed41[0x2b])[OxOed41[0x17]]=body[OxOed41[0x2a]] ;} ; document.getElementById(OxOed41[0x2c])[OxOed41[0x17]]=str_PageLanguage ; document.getElementById(OxOed41[0x2d])[OxOed41[0x17]]=str_HTMLEncoding ;if(htmlbase){ document.getElementById(OxOed41[0x2f])[OxOed41[0x17]]=htmlbase[OxOed41[0x2e]] ;} ; function btnok_click(){try{ body[OxOed41[0x20]]=document.getElementById(OxOed41[0x21])[OxOed41[0x17]] ; body[OxOed41[0x22]]=document.getElementById(OxOed41[0x23])[OxOed41[0x17]] ; body[OxOed41[0x24]]=document.getElementById(OxOed41[0x25])[OxOed41[0x17]] ; body[OxOed41[0x26]]=document.getElementById(OxOed41[0x27])[OxOed41[0x17]] ;if(document.getElementById(OxOed41[0x29])[OxOed41[0x17]]){ body[OxOed41[0x28]]=document.getElementById(OxOed41[0x29])[OxOed41[0x17]] ;} ;if(document.getElementById(OxOed41[0x2b])[OxOed41[0x17]]){ body[OxOed41[0x2a]]=document.getElementById(OxOed41[0x2b])[OxOed41[0x17]] ;} ;} catch(er){ alert(OxOed41[0x30]) ;return ;} ; str_DOCTYPE=document.getElementById(OxOed41[0x18])[OxOed41[0x17]] ; body_fontcolor=document.getElementById(OxOed41[0x1c])[OxOed41[0x17]] ; body_bgcolor=document.getElementById(OxOed41[0x1e])[OxOed41[0x17]] ; str_title=document.getElementById(OxOed41[0x19])[OxOed41[0x17]] ; str_description=document.getElementById(OxOed41[0x1a])[OxOed41[0x17]] ; str_keywords=document.getElementById(OxOed41[0x1b])[OxOed41[0x17]] ; str_PageLanguage=document.getElementById(OxOed41[0x2c])[OxOed41[0x17]] ; str_HTMLEncoding=document.getElementById(OxOed41[0x2d])[OxOed41[0x17]] ; str_BaseHref=document.getElementById(OxOed41[0x2f])[OxOed41[0x17]] ;try{ editdoc[OxOed41[0x5]][OxOed41[0x8]][OxOed41[0x7]]=body_bgcolor ; editdoc[OxOed41[0x5]][OxOed41[0x8]][OxOed41[0x9]]=body_fontcolor ;} catch(er){ alert(OxOed41[0x31]) ;return ;} ;var metas=head.getElementsByTagName(OxOed41[0xe]);var Ox5da=null;var Ox5db=null;var Ox5dc=null;var Ox5dd=null;var Oxb1=head.getElementsByTagName(OxOed41[0xb])[0x0];if(Oxb1){while(node=Oxb1[OxOed41[0x32]]){ Oxb1.removeChild(node) ;} ;} else { Oxb1=editdoc.createElement(OxOed41[0xb]) ; head.appendChild(Oxb1) ;} ; Oxb1.appendChild(editdoc.createTextNode(str_title)) ;if(str_title){ editdoc[OxOed41[0xb]]=str_title ;} else { editdoc[OxOed41[0xb]]=OxOed41[0xd] ;} ;for(var m=0x0;m<metas[OxOed41[0xf]];m++){if(metas[m][OxOed41[0x10]].toLowerCase()==OxOed41[0x11]){ Ox5da=metas[m] ;} ;if(metas[m][OxOed41[0x10]].toLowerCase()==OxOed41[0x13]){ Ox5db=metas[m] ;} ;if(metas[m][OxOed41[0x14]].toLowerCase()==OxOed41[0x15]){ Ox5dc=metas[m] ;} ;if(metas[m][OxOed41[0x14]].toLowerCase()==OxOed41[0x16]){ Ox5dd=metas[m] ;} ;} ; function Ox5de(Oxb6,name,Ox4db){var Ox67b=editdoc.createElement(OxOed41[0x33]+Oxb6+OxOed41[0x34]+name+OxOed41[0x35]+Ox4db+OxOed41[0x36]); head.appendChild(Ox67b) ;}  ;if(htmlbase){try{ head.removeChild(htmlbase) ;} catch(er){ alert(htmlbase.href) ;} ; htmlbase=null ;} ;if(!htmlbase&&str_BaseHref){var Ox359=editdoc.createElement(OxOed41[0x37]+str_BaseHref+OxOed41[0x38]); head.appendChild(Ox359) ;} ;if(Ox5da){ Ox5da[OxOed41[0x39]].removeChild(Ox5da) ; Ox5da=null ;} ;if(!Ox5da&&str_keywords){ Ox5de(OxOed41[0x10],OxOed41[0x11],str_keywords) ;} ;if(Ox5db){ Ox5db[OxOed41[0x39]].removeChild(Ox5db) ; Ox5db=null ;} ;if(!Ox5db&&str_description){ Ox5de(OxOed41[0x10],OxOed41[0x13],str_description) ;} ;if(Ox5dc){ Ox5dc[OxOed41[0x39]].removeChild(Ox5dc) ; Ox5dc=null ;} ;if(!Ox5dc&&str_HTMLEncoding){ Ox5de(OxOed41[0x3a],OxOed41[0x3b],str_HTMLEncoding) ;} ;if(Ox5dd){ Ox5dd[OxOed41[0x39]].removeChild(Ox5dd) ; Ox5dd=null ;} ;if(!Ox5dd&&str_PageLanguage){ Ox5de(OxOed41[0x3a],OxOed41[0x3c],str_PageLanguage) ;} ; top[OxOed41[0x3d]]=str_DOCTYPE ; top.close() ;}  ; function btncc_click(){ top[OxOed41[0x3d]]=false ; top.close() ;}  ; function SelectColor(n){var Ox567=OxOed41[0x3e];if(n==0x1){ showModalDialog(Ox567,null,OxOed41[0x3f],function (Ox2dc,Ox18d){if(Ox18d[OxOed41[0x3d]]){ document.getElementById(OxOed41[0x1e])[OxOed41[0x17]]=Ox18d[OxOed41[0x3d]].toUpperCase() ; document.getElementById(OxOed41[0x1f])[OxOed41[0x8]][OxOed41[0x7]]=Ox18d[OxOed41[0x3d]] ;} ;} ) ;} else { showModalDialog(Ox567,null,OxOed41[0x3f],function (Ox2dc,Ox18d){if(Ox18d[OxOed41[0x3d]]){ document.getElementById(OxOed41[0x1c])[OxOed41[0x17]]=Ox18d[OxOed41[0x3d]].toUpperCase() ; document.getElementById(OxOed41[0x1d])[OxOed41[0x8]][OxOed41[0x7]]=Ox18d[OxOed41[0x3d]] ;} ;} ) ;} ;}  ;
	</script>
</html>
