how do I put the string “Content” into a safari textbox? I’m using the webhost netfirms to host my web page and I can’t get my auto-update feature to work without being able to auto-fill a ruddy text box. The page will be called up infront of me, and the box, auto selected.
I suspect a simple do Java script looking to see if the named text field exists, if so set text to… would work.
But we need more info,
What calls the page up and selects the text field.
Can we see the relevant html source code/ Form info for the text field
Do you have a partial script already If please post it.
I call up the page for now, here is the html code:
<?xml version="1.0" encoding="iso-8859-1"?> Netfirms Inc. - Control Panel<style type="text/css">
/* font */
.leftnavtitle, .leftnav, .leftnavon, .topframelogo, .navtaboff, .navtabon, .fix, .tooltitle, .tooldescription, .error, .success, .widgettitletext, .widgetlisttext, .widgetbuttontext, .breadcrumbs, .loginline, .copyright, .positioning * {
font-family: arial, "Arial", Helvetica, Sans-serif;
font-size: 13px;
}
.leftcolumn {
position: absolute;
left:10px;
width:160px;
}
.rightcolumn {
margin-left: 175px;
min-width: 715px;
/* IE Dynamic Expression to set the width */
width: expression(document.body.clientWidth < 860 ? "720px" : "100%" );
}
.topframelogo {
background-image: url('../graphics/netfirmslogo.gif');
background-repeat: no-repeat;
background-position: 6px 0px;
padding: 6px 0px 0px 0px;
min-width: 818px;
/* IE Dynamic Expression to set the width */
width: expression(document.body.clientWidth < 860 ? "823px" : "100%" );
}
.loginline {
color: #F2F2F2;
}
.loginline a:link {
color: #66CCFF;
}
.loginline a:visited {
color: #66CCFF;
}
.navframe {
width:640px;
}
.navtaboff {
float: right;
width: 125px;
background: #D6E3E5;
padding: 5px 0px 5px 0px;
margin: 0px 1px 0px 0px;
text-align: center;
background: #D6E3E5 url('../graphics/tab_top_off.gif') no-repeat;
}
.navtabon {
float: right;
width: 125px;
background: #FFFFFF;
padding: 5px 0px 5px 0px;
margin: 0px 1px 0px 0px;
text-align: center;
background: #FFFFFF url('../graphics/tab_top.gif') no-repeat;
}
.leftnavtitle {
font-weight: bold;
padding: 16px 0px 2px 0px;
}
.leftnav {
padding: 0px 0px 2px 10px;
}
.leftnavon {
padding: 0px 0px 2px 10px;
font-weight: bold;
color: #FFFFFF;
background: #FFFFFF url('../graphics/leftback.gif') no-repeat;
/*background: #D6E3E5;*/
}
.fix {
padding: 5px 0px 5px 0px;
}
.icon {
/*
width: 45px;
height: 35px;
*/
margin: 0px 10px 0px 0px;
}
.column, .inv_col_item, .inv_col_desc, .inv_col_term, .inv_col_cost, .inv_col_quantity, .addr_key, .addr_input {
float: left;
width: 200px;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
.widgetbutton, .widgetbuttonover {
float:right;
width:90px;
height:20px;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
background: url('../graphics/button_back.png') 0 0 no-repeat;
}
/* defines boundries for all boxes */
.toolbox {
width: 90%;
}
/* sets up rounded corner dimensions */
.tooltitle_topleft, .tooltitle_bottomleft, .error_topleft, .error_bottomleft, .toolwidget_topleft, .success_topleft, .success_bottomleft {
width: 100%;
height: 6px;
font-size: 6px;
}
.tooltitle_topright, .tooltitle_bottomright, .error_topright, .error_bottomright, .toolwidget_topright, .success_topright, .success_bottomright {
float: right;
width: 6px;
height: 6px;
font-size: 6px;
}
/* rounded corner images */
.tooltitle_topleft {
background: #777777 url('../graphics/title_tl.gif') no-repeat top left;
}
.tooltitle_topright {
background: #777777 url('../graphics/title_tr.gif') no-repeat top right;
}
.tooltitle_bottomleft {
background: url('../graphics/title_bl.gif') no-repeat bottom left;
}
.tooltitle_bottomright {
background: url('../graphics/title_br.gif') no-repeat bottom right ;
}
/* rounded corner images */
.toolwidget_topleft {
background: #C9D5D6 url('../graphics/widget_tl.gif') no-repeat top left;
}
.toolwidget_topright {
background: #C9D5D6 url('../graphics/widget_tr.gif') no-repeat top right;
}
/* rounded corner images */
.error_topleft {
background: url('../graphics/error_tl.gif') no-repeat top left;
}
.error_topright {
background: url('../graphics/error_tr.gif') no-repeat top right;
}
.error_bottomleft {
background: url('../graphics/error_bl.gif') no-repeat bottom left;
}
.error_bottomright {
background: url('../graphics/error_br.gif') no-repeat bottom right;
}
/* rounded corner images */
.success_topleft {
background: url('../graphics/success_tl.gif') no-repeat top left;
}
.success_topright {
background: url('../graphics/success_tr.gif') no-repeat top right;
}
.success_bottomleft {
background: url('../graphics/success_bl.gif') no-repeat bottom left;
}
.success_bottomright {
background: url('../graphics/success_br.gif') no-repeat bottom right;
}
/* styling for tool text fields */
.breadcrumbs {
text-align: right;
width: 90%;
font-size: 12px;
font-weight: bold;
padding: 0px 0px 8px 0px;
}
.tooltitle {
padding: 0px 0px 5px 10px;
background: #777777;
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
}
.tooldescription {
border-style: solid;
border-color: #777777;
border-width: 0px 1px 0px 1px;
padding: 10px 10px 10px 10px;
}
.error {
padding: 3px 0px 2px 10px;
background: #F3E4E4;
border-style: solid;
border-color: #FF0000;
border-width: 0px 1px 0px 1px;
font-weight: bold;
color: #FF0000;
}
.success {
padding: 3px 0px 2px 10px;
background: #E1F5E4;
border-style: solid;
border-color: #3CB34F;
border-width: 0px 1px 0px 1px;
font-weight: bold;
color: #00DD5E;
}
.widgettitlebar {
height: 25px;
padding: 0px 11px 0px 0px;
background: #C9D5D6;
}
.widgettitletext {
float:left;
padding: 0px 0px 5px 10px;
background: #C9D5D6;
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
}
.widgetbuttontext {
width:100%;
padding: 3px 0px 0px 0px;
text-align:center;
font-size: 11px;
color: #343434;
}
.widgetlistbar1 {
border-style: solid;
border-color: #E8EFEF;
border-width: 1px 1px 1px 1px;
padding: 5px 10px 5px 10px;
background: #E8EFEF;
}
.widgetlistbar2 {
border-style: solid;
border-color: #D7E0E0;
border-width: 1px 1px 1px 1px;
padding: 6px 10px 6px 10px;
background: #FFFFFF;
}
.widgetlisttext {
float:left;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
font-size: 13px;
}
.widgetformbar {
padding: 8px 10px 8px 10px;
margin: 0px 0px 1px 0px;
background: #E8EFEF;
}
.check {
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
.text {
padding: 0px 0px 0px 0px;
margin: 2px 0px 2px 0px;
}
.clear { clear: both; margin: 0; padding: 0; }
body {
margin: 0 0 0 0;
padding: 0 0 0 0;
background-color: #FFFFFF;
}
.copyright {
text-align: right;
width: 90%;
padding-top: 1em;
color: #999999;
}
.dirusertable {
width: 100%;
}
ol {
margin: 0px 0px 0px 2em;
}
table.positioning {
border: 0px;
border-collapse: collapse;
margin: 0px;
width: 100%;
}
table.positioning td {
font-family: arial, "Arial", Helvetica, Sans-serif;
font-size: 13px;
padding: 0px;
}
#interm1, #interm2, #cancelbutton {
display: none;
}
</style>
<style type="text/css">
html { min-height: 100%; margin-bottom: 1px; }
/* Things that override first style sheet -------------------- */
form { margin: 0px; }
.toolbox {
margin-bottom: 1em;
}
.severe .widgetlistbar1, .severe .widgetlistbar2 {
background-color: #FF9999;
border: 2px solid red;
}
.severe .widgetlistbar2 {
background-color: #FF9999;
}
/*
.widgetlistbar2 {
border: 2px solid red;
}
*/
/*
.widgetlisttext {
border: 2px solid magenta;
}
*/
.error {
padding: 0px 0px 0px 10px;
}
.success {
padding: 0px 0px 0px 10px;
}
.errortext {
font-weight: bold;
color: #FF0000;
}
.widgetbuttonover {
background-position: 0 -20px;
}
.widgetbutton, .widgetbuttonover {
cursor: pointer;
margin-left: 5px;
}
/* Force inheritance in IE */
.widgetlisttext table {
font-size: 13px;
}
.navtabon, .navtaboff, .leftnav {
cursor: pointer;
}
/* Additions ------------------------------------------------- */
.addressform { width: 100%; }
.addr1 { width: 150px; }
/*.addr2 { width: auto; }*/
.creditcardform { width: 100%; }
.cc1 { width: 25%; }
.cc2 { width: 70%; }
.overview { width: 100%; }
.overview .c1 {
width: 15%;
text-align: right;
padding-right: 1em;
/* minimum-width: 50px; */
}
.overview .c2 { width: 80%; }
.invoice { width: 100%; }
.inv1 { width: 10%; }
.inv2 { width: 40%; }
.inv3 { width: 15%; }
.inv4 { width: 15%; }
.upgrade-details { width: 100%; }
.upgrade-details .c1 { width: 20%; }
.upgrade-details .c2 { width: 60%; }
.announcements { width: 100%; }
.announcements .c1 { width: 15%; }
.announcements .c2 { width: 85%; }
.generate_ssl { width: 100%; }
.generate_ssl .c1 { width: 40%; }
.generate_ssl .c2 { width: 60%; }
.sslcert_list { width: 100%; }
.sslcert_list .c1 { width: 20%; }
.sslcert_list .c2 { width: 40%; }
.sslcert_list .c3 { width: 25%; }
.sslcert_list .c4 { width: 15%; }
.child_list { width: 100%; }
/* .child_list .c1 { width: 25%; } */
/* .child_list .c2 { width: 50%; } */
.child_list .c3 { min-width: 200px; float: right; }
.addr_key { width: 150px; }
.addr_input { width: 300px; }
.inv_col_item { width: 50px; }
.inv_col_desc { width: 250px; }
.inv_col_term { width: 125px; }
.inv_col_cost { width: 100px; }
.inv_col_quantity { width: 100px; }
img.arrow { width: 25px; height: 20px; }
img.tldicon { float: right; width: 17px; height: 16px; vertical-align: middle; border-width: 0px; }
img.domainicon { width: 17px; height: 16px; vertical-align: middle; border-width: 0px; }
.iconbutton { display: inline; cursor: pointer; }
.col_radio { float: left; width: 30px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; }
.col_domaintype { float: left; width: 300px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; }
.dom_listbox { float: left; }
.ciratip
{
font-family: arial;
font-size: 8pt;
border-style: solid;
border-width: 0px;
border-color: #000000;
background-color: #e8efef;
}
.usage, .usage-bar {
border-collapse: collapse;
}
.usage td {
padding: 0.2em 0.5em;
}
.usage-bar td {
padding: 0px;
margin: 0px 0px;
}
.database-users {
margin-left: 3em;
margin-top: 1em;
}
.database-users .widgetbutton {
float: left;
}
.database-users .widgetbuttonover {
float: left;
}
.database-users table {
clear: both;
}
.database-details-title {
float: left;
font-weight: bold;
margin-right: 2em;
margin-bottom: 1em;
}
.clickable {
cursor: pointer;
}
.quicklink {
width: 25%;
vertical-align: middle;
}
/* Force inheritance in IE */
.tooldescription table {
font-family: arial, "Arial", Helvetica, Sans-serif;
font-size: 13px;
}
.section-toolset {
width: 100%;
border-spacing: 0.25em 0px;
}
.section-toolset td {
height: 4.5em;
}
.section-toolset img {
border: 0px;
}
.section-tool-icon {
width: 40px;
margin: 0px;
padding: 0px;
vertical-align: top;
}
.section-tool-desc {
vertical-align: top;
width: 45%;
padding-right: 1em;
text-align: left;
}
.greenbar {
background-color: #009900;
border-left: 1px #000000 solid;
border-top: 1px #000000 solid;
border-bottom: 1px #000000 solid;
}
.yellowbar {
background-color: #FFFF66;
border-left: 1px #000000 solid;
border-top: 1px #000000 solid;
border-bottom: 1px #000000 solid;
}
.redbar {
background-color: #CC0000;
border-left: 1px #000000 solid;
border-top: 1px #000000 solid;
border-bottom: 1px #000000 solid;
}
.blankbar {
background-color: #FFFFFF;
border-top: 1px #000000 solid;
border-bottom: 1px #000000 solid;
border-right: 1px #000000 solid;
}
</style>
<!--[if IE]>
<style type="text/css">
.child_list { width: 95%; }
/*
.child_list .c1 { width: 25%; }
.child_list .c2 { width: 40%; }
.child_list .c3 { width: 200px; }
*/
</style>
<![endif]-->
<!--
<script type="text/JavaScript" src="dhtml/rounded_corners.js"></script>
<script type="text/javascript">
window.onload=function() {
settings = {
tl: { radius: 6 },
tr: { radius: 6 },
bl: false,
br: false,
antiAlias: false,
autoPad: false
}
tab_settings = {
tl: { radius: 3 },
tr: { radius: 3 },
bl: false,
br: false,
antiAlias: false,
autoPad: false
}
var cornersObj1 = new curvyCorners( settings, "widgettitlebar" );
cornersObj1.applyCornersToAll();
}
</script>
-->
<style type="text/css">
a.wbutton {
display: block;
float:right;
width:90px;
height:17px;
padding: 3px 0px 0px 0px;
margin: 0px 0px 0px 0px;
text-decoration: none;
text-align:center;
font-size: 11px;
color: #343434;
background: url('../graphics/button_back.png') 0 0 no-repeat;
}
a.wbutton:hover {
background: url('../graphics/button_back.png') 0 0 no-repeat;
}
div.deletetext { font-family: arial, sans-serif; font-size: 12px; }
div.cp_tooltip { padding: 5px; width: 150px; font-family: arial, sans-serif; font-size: 10px; background-color: #ffffcc; border: 1px #000000 solid; }
</style>
<script type="text/javascript">
function defined( variable ) {
return( typeof variable != "undefined" );
}
function openwindow(url, width, height) {
var win;
var windowName;
var params;
windowName = “features”;
params = “toolbar=1,”;
params += “location=1,”;
params += “directories=0,”;
params += “status=0,”;
params += “menubar=1,”;
params += “scrollbars=1,”;
params += “resizable=1,”;
params += “top=50,”;
params += “left=50,”;
params += “width=”+width+“,”;
params += “height=”+height;
win = window.open(url, windowName, params);
win.focus();
return;
}
function toggle_multiplebox() {
for (i=0;i<toggle_multiplebox.arguments.length;i++) {
if (document.getElementById(toggle_multiplebox.arguments[i])) {
toggle_display(toggle_multiplebox.arguments[i]);
}
}
return;
}
function toggle_display(id) {
var obj = document.getElementById(id);
if (obj.style.display == “block”) { toggle_invisible(id); }
else { toggle_visible(id); }
return;
}
function toggle_visible(id) {
var obj = document.getElementById(id);
obj.style.display = “block”;
return;
}
function toggle_invisible(id) {
var obj = document.getElementById(id);
obj.style.display = “none”;
return;
}
function check_toggle_display(id,buttonref) {
if (buttonref.checked) { toggle_invisible(id); }
else { toggle_visible(id); }
}
function clear_jserror(erroridarray) {
for (i=0;i<erroridarray.length;i++) {
if (document.getElementById(erroridarray[i])) {
document.getElementById(erroridarray[i]).parentNode.removeChild(document.getElementById(erroridarray[i]));
}
}
return;
}
function append_error(parentid,errorid) {
if (!document.getElementById(errorid)) {
var parent = document.getElementById(parentid);
var newelement = document.createElement("div");
newelement.setAttribute("class","errortext");
newelement.setAttribute("id",errorid);
var text = document.createTextNode(jserror[errorid]);
newelement.appendChild(text);
parent.appendChild(newelement); //alert(jserror[errorid]);
}
}
function checkbox_select_all(list) {
for (i=0;i<list.length;i++) {
if (document.getElementById(list[i])) {
document.getElementById(list[i]).checked = true;
}
}
return;
}
function checkbox_deselect_all(list) {
for (i=0;i<list.length;i++) {
if (document.getElementById(list[i])) {
document.getElementById(list[i]).checked = false;
}
}
return;
}
function checkbox_check(list,selector) {
if (selector.checked) { checkbox_select_all(list); }
else {
/*
for(i=0;i<selector.form.elements.length;i++) {
if (selector.form.elements[i].type == “checkbox”) {
selector.form.elements[i].checked = false;
}
}
*/
checkbox_deselect_all(list);
}
return;
}
function checkboxes_checked(formid) {
var formref = document.getElementById(formid);
var counter = 0;
for (i=0;i<formref.elements.length;i++) {
if (formref.elements[i].type == “checkbox”) {
if (formref.elements[i].checked) { counter++; }
}
}
if (counter > 0) { return true; }
return false;
}
function is_empty(testexp) {
if (testexp.length == 0) { return true; }
else { return false; }
}
function is_domain(testexp) {
var re = /^([a-zA-z\d]+)([.-]?[a-zA-z\d]+)*(.[a-zA-z\d]{2,10})+$/;
if (re.test(testexp)) { return true; }
else { return false; }
}
function is_ip(testexp) {
var re = /^(((\d{1,3})(.{1})){3})(\d{1,3})$/;
if (re.test(testexp)) { return true; }
else { return false; }
}
function is_arecord(testexp) {
var re = /^([A-Za-z\d]+)(-?)([A-Za-z\d]+)$/;
if (re.test(testexp)) { return true; }
else if ((testexp.length > 64) || (testexp.length < 1)) { return false; }
else { return false; }
}
function is_companyname(testexp) {
var re = /^(.*)$/;
if (re.test(testexp)) { return true; }
else { return false; }
}
function is_name(testexp) {
var re = /^([A-Za-z-]{2,})\s?([A-Za-z-]*)$/;
if (re.test(testexp)) { return true; }
else { return false; }
}
function is_email(testexp) {
if (is_empty(testexp)) { return false; }
return true;
// too strict
var re = /^\w+([.-]?\w+)@\w+([.-]?\w+)(.\w{2,5})+$/;
if (re.test(testexp)) { return true; }
else { return false;}
}
function is_street(testexp) {
if (testexp.length > 5) { return true; }
else { return false; }
}
function is_city(testexp) {
var re = /^([A-Za-z\s]{2,})$/;
if (re.test(testexp)) { return true; }
else { return false; }
}
function is_statecode(testexp) {
var re = /^([A-Za-z-]{2,3})$/;
if (re.test(testexp)) { return true; }
else { return false; }
}
function is_countrycode(testexp) {
var re = /^([A-Za-z]{2})$/;
if (re.test(testexp)) { return true; }
else { return false; }
}
function is_postalcode(testexp) {
var re = /^(([A-Za-z]\d){3})$/;
if (re.test(testexp)) { return true; }
else { return false; }
}
function is_phonenumber(testexp) {
if (testexp.length > 6) { return true; }
else { return false; }
}
function tip_registrantname(formref,key) {
/*
‘CCT’ => ‘Canadian Citizen’,
‘CCO’ => ‘Corporation (Canada or Canadian province or territory)’,
‘RES’ => ‘Permanent Resident of Canada’,
‘GOV’ => ‘Government or government entity in Canada’,
‘EDU’ => ‘Canadian Educational Institution’,
‘ASS’ => ‘Canadian Unincorporated Association’,
‘HOP’ => ‘Canadian Hospital’,
‘PRT’ => ‘Partnership Registered in Canada’,
‘TDM’ => ‘Trade-mark registered in Canada (by a non-Canadian owner)’,
‘TRD’ => ‘Canadian Trade Union’,
‘PLT’ => ‘Canadian Political Party’,
‘LAM’ => ‘Canadian Library, Archive or Museum’,
‘TRS’ => ‘Trust established in Canada’,
‘ABO’ => ‘Aboriginal Peoples (individuals or groups) indigenous to Canada’,
‘INB’ => ‘Indian Band recognized by the Indian Act of Canada’,
‘LGR’ => ‘Legal Representative of a Canadian Citizen or Permanent Resident’,
‘OMK’ => ‘Official mark registered in Canada’,
‘MAJ’ => ‘Her Majesty the Queen’,
*/
var tip = new Array();
tip[“CCT”] = “Enter the full legal name of the Canadian citizen who will hold the domain name registration.\n”;
tip[“CCT”] += “\nExamples:\n”;
tip[“CCT”] += “John Doe\n”;
tip[“CCT”] += “Fred-Albert Doon PhD\n”;
tip[“CCT”] += “Bernard St-James o/a St-James Services”;
tip[“CCO”] = “Enter the full legal name of the corporation, followed by the jurisdiction of incorporation.\n”;
tip[“CCO”] += “\nExamples:\n”;
tip[“CCO”] += “123745 Canada Inc.\n”;
tip[“CCO”] += “Smith Corp. of Ontario\n”;
tip[“CCO”] += “Smith Ltée. Canada”;
tip[“RES”] = “Enter the full legal name of the permanent resident of Canada who will hold the domain name registration.\n”;
tip[“RES”] += “\nExamples:\n”;
tip[“RES”] += “John Doe\n”;
tip[“RES”] += “Fred-Albert Doon DDS\n”;
tip[“RES”] += “Bernard St-James o/a St-James Services”;
tip[“GOV”] = “Enter the official government name, followed by the name of jurisdiction to which the registrant is related.\n”;
tip[“GOV”] += “\nExamples:\n”;
tip[“GOV”] += “Government of Alberta\n”;
tip[“GOV”] += “Export Development Corporation (EDC) (Canada)\n”;
tip[“GOV”] += “Deposit Insurance Corporation of Ontario (DCIO)\n”;
tip[“GOV”] += “The Corporation of the City of Toronto”;
tip[“EDU”] = “Enter the name of a univeristy, college, post-secondary school, vocational school, secondary school, pre-school or other school or educational institution which is located in Canada, followed by it’s jurisdiction.\n”;
tip[“EDU”] += “\nExamples:\n”;
tip[“EDU”] += “University of British Columbia (UBC)\n”;
tip[“EDU”] += “St-John’s Middle School of Ottawa\n”;
tip[“EDU”] += “Advanced Languages Institute of Ontario (ALI)(Ontario)”;
tip[“ASS”] = “Enter the complete name of the association without any abbreviations.\n”;
tip[“ASS”] += “\nExamples:\n”;
tip[“ASS”] += “St-Alban’s Reformed Church of Victoria\n”;
tip[“ASS”] += “Archdiocese of Montréal\n”;
tip[“ASS”] += “Sun Youth Montréal\n”;
tip[“ASS”] += “Citizens for the Protection of the Red River\n”;
tip[“ASS”] += “Toronto Junior Soccer Association”;
tip[“HOP”] = “Enter the complete official name of the hospital, followed by it’s jurisdiction.\n”;
tip[“HOP”] += “\nExamples:\n”;
tip[“HOP”] += “Royal Victoria Hospital - Québec\n”;
tip[“HOP”] += “Sick Children’s Hospital of Ontario\n”;
tip[“HOP”] += “Veteran’s Hospital Canada, Pointe Claire”;
tip[“PRT”] = “Enter the registered name of the partnership, followed by the jurisdiction of registration.\n”;
tip[“PRT”] += “\nExamples:\n”;
tip[“PRT”] += “Xenon Partnership (Ontario)\n”;
tip[“PRT”] += “Blake, Cassels and Graydon LLP (Ontario)\n”;
tip[“PRT”] += “John Doe Partnership, British Columbia”;
tip[“TDM”] = “Enter the complete legal name of the trade-mark owner (not the trade-mark agent) holding the domain name registration without any abbreviations.\n”;
tip[“TDM”] += “\nExample:\n”;
tip[“TDM”] += “Arcuros SPA - TMA1762466”;
tip[“TRD”] = “Enter the complete official name of the trade union, followed by the jurisdiction in Canada which recognizes it.\n”;
tip[“TRD”] += “\nExamples:\n”;
tip[“TRD”] += “Confédération des syndicats nationaux (CSN) - Québec\n”;
tip[“TRD”] += “Canadian Union of Postal Workers (CUPW)”;
tip[“PLT”] = “Enter the complete official name of the polital party, followed by the jurisdiction in Canada in which it is registered.\n”;
tip[“PLT”] += “\nExamples:\n”;
tip[“PLT”] += “Progressive Conservative Party of Canada (PC)\n”;
tip[“PLT”] += “Union Nationale du Québec\n”;
tip[“PLT”] += “Reform Party - Alberta”;
tip[“LAM”] = “Enter the complete legal name of the institution.\n”;
tip[“LAM”] += “\nExamples:\n”;
tip[“LAM”] += “Royal Ontario Museum\n”;
tip[“LAM”] += “Musé des Beaux Arts de Montréal”;
tip[“TRS”] = “Enter the complete official name of the trust, followed by the total percentage of trustees that are either a Canadian citizen, permanent resident, Canadian corporation or legal representative.\n”;
tip[“TRS”] += “\nExamples:\n”;
tip[“TRS”] += “Marie Daigle Trust - (100%)\n”;
tip[“TRS”] += “Arbeit Trust - (70%)”;
tip[“ABO”] = “Aboriginal Peoples\n\n”;
tip[“ABO”] += “Enter the full legal name of the Aboriginal person.\n”;
tip[“ABO”] += “\nExamples:\n”;
tip[“ABO”] += “John Doe\n”;
tip[“ABO”] += “Fred-Albert Doon DDS\n”;
tip[“ABO”] += “Bernard St-James o/a St-James Services\n\n”;
tip[“ABO”] += “Aboriginal Groups\n\n”;
tip[“ABO”] += “Enter the complete official name of the indigenous people a collectivity of Aboriginal persons or, if there is no official name, the name by which the collectivity is commonly known.\n”;
tip[“ABO”] += “\nExample:\n”;
tip[“ABO”] += “Carrier Sekani Tribal Council”;
tip[“INB”] = “Enter the name of an Indian Band as registered with the Department of Indian and Northern Affairs.\n”;
tip[“INB”] += “\nExample:\n”;
tip[“INB”] += “Lac la Ronge Indian Band”;
tip[“LGR”] = “Enter the full legal name of the Canadian citizen, followed by the full legal name and capacity of at least one of the official representatives.\n”;
tip[“LGR”] += “\nExample:\n”;
tip[“LGR”] += “John Smith (Jayne Smith, executor)”;
tip[“OMK”] = “Enter the complete official name of the entity holding the domain name registration without any abbreviations.\n”;
tip[“OMK”] += “\nExample:\n”;
tip[“OMK”] += “The United Nations Educational, Scientific and Cultural Organization (UNESCO) - 0970388”;
tip[“MAJ”] = “Her Majesty the Queen\n”;
tip[“MAJ”] += “Enter the name of Her Majesty the Queen or, after a succession, the name of her successor.”;
formref.registrantnametip.value = tip[key];
}
function turn_on(imageName) {
if (document.images) {
document[imageName].src = eval(imageName + “on.src”);
}
}
function turn(imageName) {
if (document.images) {
document[imageName].src = eval(imageName + “off.src”);
}
}
function image_on(imgref,key) {
if (document.images) {
imgref.src = img_on[key].src;
}
}
function image_off(imgref,key) {
if (document.images) {
imgref.src = img_off[key].src;
}
}function dom_trigger_error() {
var arg = dom_trigger_error.arguments;
if (arg[0]) { var errorid = arg[0]; }
clear_jserror(jserrorid);
append_error(‘jserror’,errorid);
toggle_visible(‘errorbox’);
}
function dom_append_divtext() {
var arg = dom_append_divtext.arguments;
if (arg[0]) { var parentid = arg[0]; }
if (arg[1]) { var textstring = arg[1]; }
if (arg[2]) { var newid = arg[2]; }
if (arg[3]) { var cssclass = arg[3]; }
var parent = document.getElementById(parentid);
var newelement = document.createElement(“div”);
if (arg[2]) {
newelement.setAttribute(“id”, newid);
}
var textnode = document.createTextNode(textstring);
newelement.appendChild(textnode);
parent.appendChild(newelement);
if (arg[3]) {
document.getElementById(newid).className = cssclass; // fix for IE
}
}
function dom_append_text() {
var arg = dom_append_text.arguments;
if (arg[0]) { var parentid = arg[0]; }
if (arg[1]) { var newid = arg[1]; }
if (arg[2]) { var textstring = arg[2]; }
if (arg[3]) { var cssclass = arg[3]; }
var parent = document.getElementById(parentid);
var newelement = document.createElement(“div”);
newelement.setAttribute(“id”, newid);
newelement.style.display = “inline”;
var textnode = document.createTextNode(textstring);
newelement.appendChild(textnode);
parent.appendChild(newelement);
if (arg[3]) {
document.getElementById(newid).className = cssclass; // fix for IE
}
}
function dom_append_checkbox() {
var arg = dom_append_checkbox.arguments;
if (arg[0]) { var parentid = arg[0]; }
if (arg[1]) { var newid = arg[1]; }
if (arg[2]) { var name = arg[2]; }
if (arg[3]) { var value = arg[3]; }
if (arg[4]) { var checked = arg[4]; }
if (arg[5]) { var cssclass = arg[5]; }
var parentelement = document.getElementById(parentid);
var newelement = document.createElement(“input”);
newelement.setAttribute(“id”, newid);
newelement.setAttribute(“type”, “checkbox”);
newelement.setAttribute(“name”, name);
newelement.setAttribute(“value”, value);
//newelement.setAttribute(“class”, cssclass);
if (checked) { newelement.checked = true; }
else { newelement.checked = false; }
parentelement.appendChild(newelement);
// fix for IE
if (checked) { document.getElementById(newid).checked = true; }
}
function dom_append_clearwidget() {
var arg = dom_append_clearwidget.arguments;
if (arg[0]) { var parentid = arg[0]; }
if (arg[1]) { var newid = arg[1]; }
var newelement = document.createElement(“p”);
newelement.setAttribute(“id”, newid);
document.getElementById(parentid).appendChild(newelement);
document.getElementById(newid).className = “clear”; // fix for IE
}
function dom_remove_children() {
var arg = dom_remove_children.arguments;
if (arg[0]) { var parentid = arg[0]; }
if (arg[1]) { var childnode = arg[1]; } // priority source
if (childnode) { }
else { var childnode = document.getElementById(parentid).childNodes; }
var message = “”;
var counter = 0;
var victim = new Array();
for (i=0;i<childnode.length;i++) {
victim[counter] = childnode[i].id;
counter++;
}
for (i=0;i<victim.length;i++) {
obj = document.getElementById(victim[i]);
if (obj) { obj.parentNode.removeChild(obj); }
}
}
function dom_purge_children() {
var arg = dom_purge_children.arguments;
if (arg[0]) { var parentid = arg[0]; }
if (document.getElementById(parentid)) {
var parent = document.getElementById(parentid);
var child;
if (parent.hasChildNodes()) {
while (parent.childNodes.length > 0) {
child = parent.childNodes[parent.childNodes.length - 1];
parent.removeChild(child);
}
}
}
return;
}
function addLoadListener(fn)
{
if (typeof window.addEventListener != ‘undefined’)
{
window.addEventListener(‘load’, fn, false);
}
else if (typeof document.addEventListener != ‘undefined’)
{
document.addEventListener(‘load’, fn, false);
}
else if (typeof window.attachEvent != ‘undefined’)
{
window.attachEvent(‘onload’, fn);
}
else
{
var oldfn = window.onload;
if (typeof window.onload != ‘function’)
{
window.onload = fn;
}
else
{
window.onload = function()
{
oldfn();
fn();
};
}
}
}
function attachEventListener(target, eventType, functionRef, capture) {
if (typeof target.addEventListener != “undefined”)
{
target.addEventListener(eventType, functionRef, capture);
}
else if (typeof target.attachEvent != “undefined”)
{
target.attachEvent(“on” + eventType, functionRef);
}
else
{
eventType = “on” + eventType;
if (typeof target[eventType] == "function")
{
var oldListener = target[eventType];
target[eventType] = function()
{
oldListener();
return functionRef();
};
}
else
{
target[eventType] = functionRef;
}
}
}
function getEventTarget(event)
{
var targetElement = null;
if (typeof event.target != “undefined”)
{
targetElement = event.target;
}
else
{
targetElement = event.srcElement;
}
while (targetElement.nodeType == 3 && targetElement.parentNode != null)
{
targetElement = targetElement.parentNode;
}
return targetElement;
}
function initTooltips()
{
var tips = getElementsByAttribute(“class”, “hastooltip”);
for (var i=0; i<tips.length;i++)
{
attachEventListener(tips[i], “mouseover”, showTip, false);
attachEventListener(tips[i], “mouseout”, hideTip, false);
}
return true;
}
function showTip(event)
{
if (typeof event == “undefined”)
{
event = window.event;
}
var target = getEventTarget(event);
while (target.className == null || !/(^| )hastooltip( |$)/.test(target.className))
{
target = target.parentNode;
}
var tip = document.createElement(“div”);
var content = target.getAttribute(“title”);
target.tooltip = tip;
target.setAttribute(“title”,“”);
if (target.getAttribute(“id”) != “”)
{
tip.setAttribute(“id”, target.getAttribute(“id”) + “tooltip”);
}
tip.className = “cp_tooltip”;
tip.appendChild(document.createTextNode(content));
var scrollingPosition = getScrollingPosition();
var cursorPosition = [0, 0];
if (typeof event.pageX != “undefined” && typeof event.pageY != “undefined”)
{
cursorPosition[0] = event.pageX;
cursorPosition[1] = event.pageY;
}
else
{
cursorPosition[0] = event.clientX + scrollingPosition[0];
cursorPosition[1] = event.clientY + scrollingPosition[1];
}
tip.style.position = “absolute”;
tip.style.left = cursorPosition[0] + 10 + “px”;
tip.style.top = cursorPosition[1] + 10 + “px”;
tip.style.visibility = “hidden”;
document.getElementsByTagName(“body”)[0].appendChild(tip);
var viewportSize = getViewportSize();
if (cursorPosition[0] - scrollingPosition[0] + 10 + tip.offsetWidth > viewportSize[0] - 25)
{
tip.style.left = scrollingPosition[0] + viewportSize[0] - 25 - tip.offsetWidth + “px”;
}
else
{
tip.style.left = cursorPosition[0] + 10 + “px”;
}
if (cursorPosition[1] - scrollingPosition[1] + 10 + tip.offsetHeight > viewportSize[1] - 25)
{
if (event.clientX > (viewportSize[0] - 25 - tip.offsetWidth))
{
tip.style.top = cursorPosition[1] - tip.offsetHeight - 10 + "px";
}
else
{
tip.style.top = scrollingPosition[1] + viewportSize[1] - 25 - tip.offsetHeight + "px";
}
}
else
{
tip.style.top = cursorPosition[1] + 10 + “px”;
}
tip.style.visibility = “visible”;
return true;
}
function hideTip(event)
{
if (typeof event == “undefined”)
{
event = window.event;
}
var target = getEventTarget(event);
while (target.className == null || !/(^| )hastooltip( |$)/.test(target.className))
{
target = target.parentNode;
}
if (target.tooltip != null)
{
target.setAttribute(“title”,target.tooltip.childNodes[0].nodeValue);
target.tooltip.parentNode.removeChild(target.tooltip);
}
return false;
}
function getElementsByAttribute(attribute, attributeValue)
{
var elementArray = new Array();
var matchedArray = new Array();
if (document.all)
{
elementArray = document.all;
}
else
{
elementArray = document.getElementsByTagName(“*”);
}
for (var i=0; i<elementArray.length; i++) {
if (attribute == "class") {
var pattern = new RegExp("(^| )" + attributeValue + "( |$)");
if (pattern.test(elementArray[i].className))
{
matchedArray[matchedArray.length] = elementArray[i];
}
}
else if (attribute == "for")
{
if (elementArray[i].getAttribute("htmlFor") || elementArray[i].getAttribute("for"))
{
if (elementArray[i].htmlFor == attributeValue)
{
matchedArray[matchedArray.length] = elementArray[i];
}
}
}
else if (elementArray[i].getAttribute(attribute) == attributeValue)
{
matchedArray[matchedArray.length] = elementArray[i];
}
}
return matchedArray;
}
function getScrollingPosition()
{
var position = [0,0];
if (typeof window.pageYOffset != ‘undefined’)
{
position = [window.pageXOffset,window.pageYOffset];
}
else if (typeof document.documentElement.scrollTop != ‘undefined’ && document.documentElement.scrollTop > 0)
{
position = [document.documentElement.scrollLeft,document.documentElement.scrollTop];
}
else if (typeof document.body.scrollTop != ‘undefined’)
{
position = [document.body.scrollLeft, document.body.scrollTop];
}
return position;
}
function getViewportSize()
{
var size = [0,0];
if (typeof window.innerWidth != ‘undefined’)
{
size = [window.innerWidth,window.innerHeight];
}
else if (typeof document.documentElement != ‘undefined’ && typeof document.documentElement.clientWidth != ‘undefined’ && document.documentElement.clientWidth != 0)
{
size = [document.documentElement.clientWidth,document.documentElement.clientHeight];
}
else
{
size = [document.getElementsByTagName(‘body’)[0].clientWidth, document.getElementsByTagName(‘body’)[0].clientHeight,];
}
return size;
}
addLoadListener(initTooltips);
function onBodyLoad() {
// Empty stub function.
// To be overridden in pages that need some on-load Javascript run.
}
function setField( formid, fieldname, fieldvalue ) {
var formref = document.getElementById( formid );
eval( "formref." + fieldname + ".value = fieldvalue" );
}
function setText( tag_id, text ) {
var tag = document.getElementById( tag_id );
if( tag != null ) {
tag.innerHTML = text;
}
}
// Set new_cp_template to an empty string to avoid changing it.
function submitToTarget( formid, new_cp_task, new_cp_template ) {
var formref = document.getElementById( formid );
if( new_cp_task != null && new_cp_task != "" ) {
formref.cp_task.value = new_cp_task;
}
if( new_cp_template != null && new_cp_template != "" ) {
formref.cp_template.value = new_cp_template;
}
formref.submit();
}
function setChecked( formid, fieldname, state ) {
var formref = document.getElementById( formid );
eval( "formref. " + fieldname + ".checked = state" );
}
function changeClass( tag_id, new_class ) {
var tag = document.getElementById( tag_id );
tag.className = new_class;
}
</script>
<!-- start header -->
<table bgcolor="#777777" border="0" width="100%" cellspacing="0" cellpadding="0" class="topframelogo">
<tr>
<td width="175"></td>
<td align="left" valign="bottom">
<table border="0" width="90%" cellspacing="0" cellpadding="0">
<tr>
<td align="right">
<span class="loginline">You are logged in as timsutilities [
<a href="/en-us/cp_logout?NF=ecd3c1260361b8474f8096b66afa5896">Log Out</a>
| <a href="http://support.netfirms.com/" target="support">Customer Support</a>
]</span>
<p />
<div class="navframe">
<div
id="tabaccount"
class="navtaboff"
onmouseover="changeClass( 'tabaccount', 'navtabon' );"
onmouseout="changeClass( 'tabaccount', 'navtaboff' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_section=account';"
>
Account </div>
<div
id="tabemail"
class="navtaboff"
onmouseover="changeClass( 'tabemail', 'navtabon' );"
onmouseout="changeClass( 'tabemail', 'navtaboff' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_section=email&cp_tool=cp_emailaccount';"
>
E-mail </div>
<div
id="tabdomain"
class="navtaboff"
onmouseover="changeClass( 'tabdomain', 'navtabon' );"
onmouseout="changeClass( 'tabdomain', 'navtaboff' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_section=domain&cp_tool=cp_domain';"
>
Domains </div>
<div
id="tabsite"
class="navtabon"
onmouseover="changeClass( 'tabsite', 'navtabon' );"
onmouseout="changeClass( 'tabsite', 'navtabon' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_section=site';"
>
Site Tools </div>
<div
id="tabhome"
class="navtaboff"
onmouseover="changeClass( 'tabhome', 'navtabon' );"
onmouseout="changeClass( 'tabhome', 'navtaboff' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896';"
>
Home
</div>
<div class="fix"> </div>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- end header -->
<br />
<div class="leftcolumn">
<div class="leftnavtitle">Site Tools</div>
<div
class="leftnav" id="leftnavcp_filemanagercp_filemanager"
onmouseover="changeClass( 'leftnavcp_filemanagercp_filemanager', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_filemanagercp_filemanager', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_filemanager&cp_template=cp_filemanager';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_filemanager&cp_template=cp_filemanager">File Manager</a>
</div>
<div
class="leftnav" id="leftnavcp_ftpmanagercp_ftpmanager"
onmouseover="changeClass( 'leftnavcp_ftpmanagercp_ftpmanager', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_ftpmanagercp_ftpmanager', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_ftpmanager&cp_template=cp_ftpmanager';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_ftpmanager&cp_template=cp_ftpmanager">FTP User Manager</a>
</div>
<div
class="leftnav" id="leftnavcp_dirusermanagercp_dirusermanager"
onmouseover="changeClass( 'leftnavcp_dirusermanagercp_dirusermanager', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_dirusermanagercp_dirusermanager', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_dirusermanager&cp_template=cp_dirusermanager';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_dirusermanager&cp_template=cp_dirusermanager">Password Protect</a>
</div>
<div
class="leftnav" id="leftnavcp_frontpagecp_frontpage"
onmouseover="changeClass( 'leftnavcp_frontpagecp_frontpage', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_frontpagecp_frontpage', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_frontpage&cp_template=cp_frontpage';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_frontpage&cp_template=cp_frontpage">FrontPage Extensions</a>
</div>
<div
class="leftnav" id="leftnavcp_dbmanagercp_dbmanager"
onmouseover="changeClass( 'leftnavcp_dbmanagercp_dbmanager', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_dbmanagercp_dbmanager', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_dbmanager&cp_template=cp_dbmanager';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_dbmanager&cp_template=cp_dbmanager">Database Manager</a>
</div>
<div class="leftnavtitle">Applications</div>
<div
class="leftnav" id="leftnavcp_installercp_installer"
onmouseover="changeClass( 'leftnavcp_installercp_installer', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_installercp_installer', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_installer&cp_template=cp_installer';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_installer&cp_template=cp_installer">Joomla!</a>
</div>
<div
class="leftnav" id="leftnavcp_oscommcp_oscomm"
onmouseover="changeClass( 'leftnavcp_oscommcp_oscomm', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_oscommcp_oscomm', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_oscomm&cp_template=cp_oscomm';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_oscomm&cp_template=cp_oscomm">Netfirms Commerce Pro</a>
</div>
<div
class="leftnav" id="leftnavcp_wordpresscp_wordpress"
onmouseover="changeClass( 'leftnavcp_wordpresscp_wordpress', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_wordpresscp_wordpress', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_wordpress&cp_template=cp_wordpress';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_wordpress&cp_template=cp_wordpress">WordPress</a>
</div>
<div
class="leftnav" id="leftnavcp_pictureprocp_picturepro"
onmouseover="changeClass( 'leftnavcp_pictureprocp_picturepro', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_pictureprocp_picturepro', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_picturepro&cp_template=cp_picturepro';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_picturepro&cp_template=cp_picturepro">Netfirms Picture Pro</a>
</div>
<div
class="leftnav" id="leftnavcp_phpbbcp_phpbb"
onmouseover="changeClass( 'leftnavcp_phpbbcp_phpbb', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_phpbbcp_phpbb', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_phpbb&cp_template=cp_phpbb';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_phpbb&cp_template=cp_phpbb">phpBB</a>
</div>
<div
class="leftnav" id="leftnavcp_countercp_counter"
onmouseover="changeClass( 'leftnavcp_countercp_counter', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_countercp_counter', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_counter&cp_template=cp_counter';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_counter&cp_template=cp_counter">Hit Counter</a>
</div>
<div class="leftnavtitle">Advanced</div>
<div
class="leftnav" id="leftnavcp_htaccesscp_htaccess"
onmouseover="changeClass( 'leftnavcp_htaccesscp_htaccess', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_htaccesscp_htaccess', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_htaccess&cp_template=cp_htaccess';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_htaccess&cp_template=cp_htaccess">.htaccess Status</a>
</div>
<div
class="leftnav" id="leftnavcp_sshswitchcp_sshswitch"
onmouseover="changeClass( 'leftnavcp_sshswitchcp_sshswitch', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_sshswitchcp_sshswitch', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_sshswitch&cp_template=cp_sshswitch';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_sshswitch&cp_template=cp_sshswitch">Secure Shell (SSH)</a>
</div>
<div
class="leftnav" id="leftnavcp_phpversioncp_phpversion"
onmouseover="changeClass( 'leftnavcp_phpversioncp_phpversion', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_phpversioncp_phpversion', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_phpversion&cp_template=cp_phpversion';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_phpversion&cp_template=cp_phpversion">PHP</a>
</div>
<div
class="leftnav" id="leftnavcp_environmentcp_environment"
onmouseover="changeClass( 'leftnavcp_environmentcp_environment', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_environmentcp_environment', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_environment&cp_template=cp_environment';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_environment&cp_template=cp_environment">Environment</a>
</div>
<div
class="leftnav" id="leftnavcp_dedicatedipcp_dedicatedip"
onmouseover="changeClass( 'leftnavcp_dedicatedipcp_dedicatedip', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_dedicatedipcp_dedicatedip', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_dedicatedip&cp_template=cp_dedicatedip';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_dedicatedip&cp_template=cp_dedicatedip">Dedicated IP</a>
</div>
<div
class="leftnav" id="leftnavcp_sslcertcp_sslcert"
onmouseover="changeClass( 'leftnavcp_sslcertcp_sslcert', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_sslcertcp_sslcert', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_sslcert&cp_template=cp_sslcert';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_sslcert&cp_template=cp_sslcert">SSL Certificate</a>
</div>
<div
class="leftnav" id="leftnavcp_scheduledtaskcp_scheduledtask"
onmouseover="changeClass( 'leftnavcp_scheduledtaskcp_scheduledtask', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_scheduledtaskcp_scheduledtask', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_scheduledtask&cp_template=cp_scheduledtask';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_scheduledtask&cp_template=cp_scheduledtask">Scheduled Tasks</a>
</div>
<div class="leftnavtitle">Statistics</div>
<div
class="leftnav" id="leftnavcp_weblogcp_weblog"
onmouseover="changeClass( 'leftnavcp_weblogcp_weblog', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_weblogcp_weblog', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_weblog&cp_template=cp_weblog';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_weblog&cp_template=cp_weblog">Log Files</a>
</div>
<div
class="leftnav" id="leftnavcp_webstatscp_webstats"
onmouseover="changeClass( 'leftnavcp_webstatscp_webstats', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_webstatscp_webstats', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_webstats&cp_template=cp_webstats';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_webstats&cp_template=cp_webstats">WebStats</a>
</div>
<div class="leftnavtitle">Microsoft</div>
<div
class="leftnav" id="leftnavcp_dotnetcp_dotnet"
onmouseover="changeClass( 'leftnavcp_dotnetcp_dotnet', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_dotnetcp_dotnet', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_dotnet&cp_template=cp_dotnet';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_dotnet&cp_template=cp_dotnet">.NET</a>
</div>
<div
class="leftnav" id="leftnavcp_mssqlcp_mssql"
onmouseover="changeClass( 'leftnavcp_mssqlcp_mssql', 'leftnavon' );"
onmouseout="changeClass( 'leftnavcp_mssqlcp_mssql', 'leftnav' );"
onclick="window.location = '/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_mssql&cp_template=cp_mssql';"
>
<a href="/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_tool=cp_mssql&cp_template=cp_mssql">MSSQL</a>
</div>
</div>
<div class="rightcolumn">
<div class="breadcrumbs">You are here: <a href='/en-us/?NF=ecd3c1260361b8474f8096b66afa5896'>Home</a> / <a href='/en-us/?NF=ecd3c1260361b8474f8096b66afa5896&cp_section=site'>Site Tools</a> / File Manager</div> <!-- start tool description box -->
<div class="toolbox">
<!--create rounded corners -->
<div class="tooltitle_topleft"><div class="tooltitle_topright"> </div> </div>
<!--toolbox content -->
<div class="tooltitle">File Manager</div>
<div class="tooldescription"><table><tr> <td class='quicklink'>
<img align="left" src="graphics/icon_st_fileman.gif" class="icon" />
The Netfirms File Manager allows you to create and edit your website files directly. This is useful if you do not have an FTP client handy, or if you need to make a quick update from any location.
</td> </tr></table></div>
<!--create rounded corners -->
<div class="tooltitle_bottomleft"><div class="tooltitle_bottomright"> </div> </div>
</div>
<!-- end tool description box -->
.frame
{
border: 0px;
/*
border-left-style: solid;
border-left-color: #7F8283;
border-left-width: 1px;
border-right-style: solid;
border-right-color: #7F8283;
border-right-width: 1px;
border-top-style: solid;
border-top-color: #7F8283;
border-top-width: 1px;
border-bottom-style: solid;
border-bottom-color: #7F8283;
border-bottom-width: 1px;
*/
/* padding: 5px; */
width: 100%;
}
<!-- start list box -->
<div class="toolbox">
<div class="toolwidget_topleft"><div class="toolwidget_topright"> </div> </div> <!-- start widget title bar -->
<div class="widgettitlebar">
<div class="widgettitletext">File Manager</div>
<!--widget buttons --> <p class="clear"></p>
</div>
<!-- end widget title bar --> <!-- start widget listings colour 2 -->
<div class="widgetlistbar2"><div class='widgetlisttext frame'> <iframe src="https://timsutilities.sslpowered.com/cgi/protect/quixplorer/index.php?NF_TMP_AUTH_COOKIE=1165953415:f143cf5dafe0e891ac070c1b83f4a479" width="100%" height="500" scrolling="yes" frameborder="0" name="nf_fileman"></iframe></div> <p class="clear"></p>
</div>
<!-- end widget listings colour 2 --> </div>
<!-- end list box -->
<!-- start list box -->
<div class="toolbox">
<div class="toolwidget_topleft"><div class="toolwidget_topright"> </div> </div>
<!-- start widget title bar -->
<div class="widgettitlebar">
<div class="widgettitletext">Help Documents</div>
<!--widget buttons --> <p class="clear"></p>
</div>
<!-- end widget title bar -->
<!-- start widget listings colour 1 -->
<div class="widgetlistbar1"><div class='widgetlisttext '>1. <a href="javascript: openwindow('http://support.netfirms.com/article.php?id=503',750,500);">How do I use Netfirms File Manager?</a></div> <p class="clear"></p>
</div>
<!-- end widget listings colour 1 --> <!-- start widget listings colour 2 -->
<div class="widgetlistbar2"><div class='widgetlisttext '>2. <a href="javascript: openwindow('http://support.netfirms.com/category.php?id=59',750,500);">Show all File Manager FAQs</a></div> <p class="clear"></p>
</div>
<!-- end widget listings colour 2 -->
</div>
<!-- end list box -->
<div class="copyright">
Copyright © 1998 - 2006 Netfirms, Inc. All Rights Reserved. <a href="javascript:openwindow('https://secure.netfirms.com/features/terms.php',460,380)">Terms of
Service
</div>
<!-- SiteCatalyst code version: H.6.
Copyright 1997-2006 Omniture, Inc. More info available at
http://www.omniture.com -->
<script language="JavaScript" src="https://secure.netfirms.com/omniture/s_code.php"></script>
<script language="JavaScript"><!--
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="File Manager"
s.server=""
s.channel="controlpanel (USD)"
s.pageType=""
/* E-commerce Variables */
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)//--></script>
<script language="JavaScript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.6. -->
Bit big, isn’t it?
This is what I do have:
set safariapp to "Safari"
set txtapp to "TextEdit"
tell application safariapp
open location "https://controlpanel.netfirms.com/"
end tell
tell application "Safari" to activate
delay 15
tell application "System Events"
keystroke tab
delay 0.3
keystroke tab
delay 0.3
keystroke tab
delay 0.3
keystroke tab
delay 0.5
key down return
delay 0.1
key up return
end tell
tell application "Safari"
activate
set DURL to the URL of the front document
set DURL to "https://controlpanel.netfirms.com/en-us/?NF=" & (text (50) thru -1 of DURL) & "&cp_tool=cp_filemanager"
set URL of front document to DURL
end tell
display dialog " Proceed?" buttons {"Cancel", "OK"} default button "OK" with icon 1
tell application txtapp
open alias "Gentfamdisc:Users:Tim:Sites:tick_tock:Blog:Blog(Finished).html"
set Content to the text of the front document
close the front document
quit
end tell
tell application safariapp
set the text of the front document to Content
end tell
But I doubt you will be able to get anything out of this info.
Model: iMac
AppleScript: 2.1.1
Browser: Safari 417.9.3
Operating System: Mac OS X (10.4)
I see what you mean.
Here is an example then.
(*
You need to adjust these three variables to match your login form. You might need a little HTML knowledge to find these. Look for the <form> tag and <input> tags. You're looking
for the name= attribute. This is what you put in the variables.
*)
tell application "Safari"
open location "https://controlpanel.netfirms.com/en-us/cp_login_form"
end tell
delay 2
set theFormName to "loginform" -- form id
set theUserNameInputName to "loginname" -- name of login form
set thePasswordInputName to "password" --name of password form
set theKeyUserID to "yourLoginname"
set theKeyPassword to "yourPassword"
-- this section is if you are using keychain to get info
(* (* Set the next line to match the name of the keychain you created *)
tell application "Keychain Scripting"
set myChain to keychain "scpts.keychain"
set theKeyUserID to the account of key 1 of myChain
set theKeyPassword to the password of key 1 of myChain
end tell
*)
---
tell application "Safari"
activate
do JavaScript "document.forms['" & theFormName & "']['" & theUserNameInputName & "']['value']='" & theKeyUserID & "'" in document 1
do JavaScript "document.forms['" & theFormName & "']['" & thePasswordInputName & "']['value']='" & theKeyPassword & "'" in document 1
end tell
set theKeyUserID to ""
set theKeyPassword to ""
do shell script "sleep 2"
tell application "System Events"
tell application process "Safari"
tell application "System Events" to tell UI element "Login" of group 11 of UI element 1 of scroll area 1 of group 3 of window "Netfirms Inc. - Control Panel" of application process "Safari" to if exists then click
end tell
end tell
(*
UnComment out this part and remove the UI Element click, if you don't have UI Scripting enabled or have a problem with it;
tell application "System Events"
tell process "Safari"
keystroke return
end tell
end tell
*)
Very usefull for my other script, but not quite what I wanted. I’m trying to fill out a html code into a textbox to update my blog, not log in. Autofill does that for me.