Can not view html with script dialog box

G

Guest

Starting a week ago, I can no more see html dialog box in windows vista
ultimate 32 bit.
The windows sidebar does not show correctly, I can see only the ghost of the
gadgets.
I have installed google updater. If I open the preference dialog box I see
it all blank without a single command.
I have installed the trial version of autocad, when it start you can choose
between "run the product" or "activate the product".
If I choose to activate I see a blank dialog box with two circle in it and
nothing more.
The file opened by autodesk dialog box can be save using right click or
opening it in autocad directory.
The file is RTBeginReg.html and I can open it and see it correctly in both
explorer and firefox.
Only when it is opened in autocad you can not see it.
Here is the file:

<!-- (C) Copyright 2004 by Autodesk, Inc. All rights reserved. -->
<html>
<head>
<script src="RTTempPath.js"></script>
<script><!--
document.writeln('<script
src=\"'+userTempPath+'rteregconfdata.js\"></script>');
// -->
</script>
<script src="RTResource.js"></script>
<script src="RTResStrings.js"></script>
<script src="RTCountry.js"></script>
<script src="RTVersion.js"></script>
<script><!--
document.writeln('<title>'+xmsgRTBeginReg+'</title>');// -->
// -->
</script>
<link rel="stylesheet" href="main.css" type="text/css">
<link rel="stylesheet" href="regOnce.css" type="text/css">
<STYLE TYPE="text/css" MEDIA="screen">
A {cursor:hand;}
</STYLE>
<script><!--
var filler = 50;

var maxTextFields = 16;
var maxBufferFields = 38;
var digitPerField = 4;
var fieldsPerRow = 4;
var totalTextFields = 16;
var fieldValues = new Array (maxBufferFields);

var sNewString=""; // for paste only

var focusFlag = false;
var curSelRadio = 0;
var curSelAuthRadio = 0;

function setfocus() {
formObj = document.RTForm;
if (rtbuymode == "n" && sernum == "000-00000000") {
formObj.nsernum[0].focus();
}

// Initialization
if (reqtype ==1) {
initialTextBuffer();
if (document.RTForm.auth.value != "") {
sNewString = document.RTForm.auth.value;
fillInitTextBuffer();
}
if (document.RTForm.selradio[0].checked) {
curSelRadio = 0;
sNewString = getFormattedAuthCodeFromInitBuffers();
createAuthCodeArea();
} else {
curSelRadio = 1;
createAuthCodeFields();
}
}

// alpha support - disable "Get an activation code"
//document.RTForm.selAuthRadio[0].checked = false;
//document.RTForm.selAuthRadio[1].checked = true;
//document.RTForm.selAuthRadio[0].disabled = true;
//disableGetAuthCodeText();

if (document.RTForm.selAuthRadio[0].checked) {
curSelAuthRadio = 0;
changeSelRadioStatus(0);
} else {
curSelAuthRadio = 1;
changeSelRadioStatus(1);
}
if (validationstatus == "1") {
doSubmission();
return;
}
}

function resetContactInfo() {
// construct "auth" field
if (reqtype ==1) {
if (document.RTForm.selradio[0].checked) {
document.RTForm.auth.value =
reformatAuthCodeFromPasteBox(document.RTForm.testarea.value);
} else {
document.RTForm.auth.value = getFullAuthCode();
}
}

location.href="RTAuthConfirmed.html" + "?p=" + escape(userTempPath);
}

function getFullAuthCode() {
var sAuthCode = "";
var lastFieldWithContent = 0;

if (totalTextFields == 1) {
sAuthCode += document.RTForm.test.value;
} else {
for (i = totalTextFields-1; i >= 0; i--) {
if (document.RTForm.test.value != "") {
break;
}
}
lastFieldWithContent = i+1;

for (i = 0; i < lastFieldWithContent; i++) {
sAuthCode += document.RTForm.test.value;
if (document.RTForm.test.value.length < digitPerField) {
j = digitPerField - document.RTForm.test.value.length;
for (; j > 0; j--) {
sAuthCode += ' ';
}
}
}
}
return sAuthCode;
}

function getFormattedAuthCodeFromInitBuffers() {
var sAuthCode = "";
var count = 0;
var lastFieldWithContent = 0;

if (totalTextFields == 1) {
sAuthCode += fieldValues[0];
} else {
for (i = totalTextFields-1; i >= 0; i--) {
if (fieldValues != "") {
break;
}
}
lastFieldWithContent = i+1;

for (i = 0; i < lastFieldWithContent; i++) {
count++;
if (count > 1) {
if (count > 4) {
count = 1;
sAuthCode += '\n';
} else {
sAuthCode += ' ';
}
}
if (fieldValues == "") {
sAuthCode += " ";
} else {
sAuthCode += fieldValues;
}
}
}
return sAuthCode;
}

function getFormattedAuthCode() {
var sAuthCode = "";
var count = 0;
var lastFieldWithContent = 0;

if (totalTextFields == 1) {
sAuthCode += document.RTForm.test.value;
} else {
for (i = totalTextFields-1; i >= 0; i--) {
if (document.RTForm.test.value != "") {
break;
}
}
lastFieldWithContent = i+1;

for (i = 0; i < lastFieldWithContent; i++) {
count++;
if (count > 1) {
if (count > 4) {
count = 1;
sAuthCode += '\n';
} else {
sAuthCode += ' ';
}
}
if (document.RTForm.test.value == "") {
sAuthCode += " ";
} else {
sAuthCode += document.RTForm.test.value;
}
}
}
return sAuthCode;
}

function reformatAuthCodeFromPasteBox(curAuthCode) {
var sAuthCode = "";
var count = 0;
var curposition = 0;
var fillFlag = 0, skipFlag = 0;
var nextvalue = 0;
var i;

while (curposition < curAuthCode.length) {
fillFlag = 0;
skipFlag = 0;
// newline should be treated as field seperators
if (curAuthCode.charCodeAt(curposition) == 13 ||
curAuthCode.charCodeAt(curposition) == 10 ||
curAuthCode.charCodeAt(curposition) == 9 ||
curAuthCode.charCodeAt(curposition) == 160) {
if (count == 0) { // linefeed after the field seperators is
skipped
curposition++;
continue;
} else {
fillFlag = 1; // any linefeed between characters are
considered as field seperators
}
} else {
i = curposition + 1;
// whether next character is field seperator or not
if (i < curAuthCode.length &&
(curAuthCode.charCodeAt(curposition) != 32) &&
(curAuthCode.charCodeAt(i) == 32 ||
curAuthCode.charCodeAt(i) == 13 ||
curAuthCode.charCodeAt(i) == 10 ||
curAuthCode.charCodeAt(i) == 9 ||
curAuthCode.charCodeAt(i) == 160)) {
if (count >= 3) {
skipFlag = 1;
} else {
sAuthCode += curAuthCode.charAt(curposition);
count++;
curposition++;
fillFlag = 1;
}
}
}
if (fillFlag != 0) {
for (i = 4; i > count; i--) {
sAuthCode += " ";
}
count = 0;
} else {
sAuthCode += curAuthCode.charAt(curposition);
if (count >= 3) {
count = 0;
i = curposition + 1;
if (curAuthCode.charCodeAt(i) == 32 ||
curAuthCode.charCodeAt(i) == 13 ||
curAuthCode.charCodeAt(i) == 10 ||
curAuthCode.charCodeAt(i) == 9 ||
curAuthCode.charCodeAt(i) == 160) {
skipFlag = 1;
}
} else {
count++;
}
}
curposition++;
if (skipFlag == 1) {
curposition++;
}
}
return sAuthCode;
}

function enableTextFields() {
for (i = 1; i < maxTextFields; i++) {
document.RTForm.test.disabled = false;
}
}

function fillInitTextBuffer() {
// Assign value to the text buffer
totalTextFields = 0;
var curLength = 0;
var curString;
while (curLength < sNewString.length) {
if ((curLength+digitPerField) < sNewString.length) {
curString = sNewString.substr(curLength, digitPerField);
curLength += digitPerField;
} else {
curString = sNewString.substr(curLength);
curLength = sNewString.length;
}
if (curString == " ") {
fieldValues[totalTextFields] = "";
} else {
for (i = curString.length-1; i >= 0; i--) {
if (curString.charCodeAt(i) != 32) {
break;
}
}
i++;
if (i != digitPerField) {
fieldValues[totalTextFields] = curString.substr(0, i);
} else {
fieldValues[totalTextFields] = curString;
}
}
totalTextFields++;
if (totalTextFields >= maxBufferFields) {
break;
}
}
if (totalTextFields < maxTextFields) {
totalTextFields = maxTextFields;
}
}

function stripSpaces(curString) {
var newString = "";

var curposition = 0;
for (curposition = 0; curposition < curString.length; curposition++) {
// no spaces or new lines
if (curString.charCodeAt(curposition) == 32 ||
curString.charCodeAt(curposition) == 13 ||
curString.charCodeAt(curposition) == 10) {
continue;
}
newString += curString.charAt(curposition);
}
return newString;
}

function fillTextBuffer(index) {
if (index > maxBufferFields) {
// initialization so don't strip spaces
index = 0;
} else {
sNewString = stripSpaces(sNewString);
}

var retvalue = 0;
// Assign value to the text buffer
totalTextFields = index;
var curLength = 0;
while (curLength < sNewString.length) {
if ((curLength+digitPerField) < sNewString.length) {
fieldValues[totalTextFields] = sNewString.substr(curLength,
digitPerField);
curLength += digitPerField;
} else {
fieldValues[totalTextFields] = sNewString.substr(curLength);
curLength = sNewString.length;
}
totalTextFields++;
if (totalTextFields >= maxBufferFields) {
break;
}
}
retvalue = totalTextFields;

if (totalTextFields < maxTextFields) {
totalTextFields = maxTextFields;
}

return retvalue;
}

function onPaste(index) {
// disable default browser behavior
event.returnValue = false;
// Get the data from the clipboard
sNewString = window.clipboardData.getData("text");

backupAuthcodeFields();
var focusIndex = fillTextBuffer(index);
for (i = totalTextFields; i < maxBufferFields; i++) {
if (fieldValues != "") {
totalTextFields = i+1;
}
}

createAuthCodeFields();

if (totalTextFields == 1) {
document.RTForm.test.focus();
} else {
document.RTForm.test[(focusIndex-1)].focus();
}
}

function onTextAreaPaste() {
// disable default browser behavior
event.returnValue = false;
// Get the data from the clipboard
sNewString = window.clipboardData.getData("text");
document.RTForm.testarea.value =
reformatAuthCodeFromPasteBox(sNewString);
sNewString = document.RTForm.testarea.value;
initialTextBuffer();
fillInitTextBuffer();
document.RTForm.testarea.value = getFormattedAuthCodeFromInitBuffers();
}

function setFieldFocus() {
var i;
if (totalTextFields == 1) {
document.RTForm.test.focus();
} else {
for (i = 0; i < totalTextFields; i++) {
if (document.RTForm.test.value == "") {
document.RTForm.test.focus();
break;
}
}
}
}

function setKeyUpFocus(index) {
if (focusFlag == true) {
document.RTForm.test[(index+1)].select();
focusFlag = false;
}
}

function onKeyUp(index) {
focusFlag = false;

switch (event.keyCode) {
case 8: // backspace
case 9: // tab
case 37: // left
case 39: // right
return;

case 65: // A ctrl+a <-- select all
case 67: // C ctrl+c <-- copy
case 86: // v ctrl+p <-- paste
if (event.ctrlKey == true) {
return;
}
break;

case 89: // Y ctrl+y <-- redo
case 90: // Z ctrl+z <-- undo
if (event.ctrlKey == true) {
resetTotalTextFields();
return;
}
break;

case 88: // X ctrl+x <-- cut
default:
break;
}

// Move cursor to the next field
if ((totalTextFields < maxBufferFields) &&
((totalTextFields == 1 &&
document.RTForm.test.value.length >= digitPerField) ||
(totalTextFields > 1 &&
document.RTForm.test[index].value.length >= digitPerField))) {
// create a new field
if (index >= (totalTextFields-1)) {
backupAuthcodeFields();
totalTextFields++;
createAuthCodeFields();
}
document.RTForm.test[(index+1)].select();
focusFlag = true;
}
}

function initialTextBuffer() {
// Initialization
for (i = 0; i < maxBufferFields; i++) {
fieldValues = "";
}
}

function onFieldFocus(index) {
focusFlag = false;
// remove the last empty box
if (document.RTForm.test[totalTextFields - 1].value == "" &&
document.RTForm.test[totalTextFields - 2].value.length <
digitPerField ) {
totalTextFields--;
createAuthCodeFields();
focusFlag = true;
}
}

function onBlur(index) {
// update current value
fieldValues[index] = document.RTForm.test[index].value;
}

function onReset() {
initialTextBuffer();
document.RTForm.auth.value = "";
totalTextFields = maxTextFields;
createAuthCodeFields();
document.RTForm.test[0].focus();
}

function createAuthCodeFields() {
authCodeLayer.innerHTML = "";

var sTitleHTML="<tr><td> </td>";
var sFieldHTML="<tr><td> </td>";
var sHTML = "<tr><td><p><table class=\"block\" align=left>";
for (i = 0, j = 0; i < totalTextFields; i++, j++) {
if (j == fieldsPerRow) {
sTitleHTML += "</tr>";
sFieldHTML += "</tr>";
sHTML += sTitleHTML;
sHTML += sFieldHTML;
j = 0;
sTitleHTML = "<tr><td> </td>";
sFieldHTML = "<tr><td> </td>";
}
sTitleHTML += "<td align=center><b>"+(i+1)+"</b></td>";
sFieldHTML += "<td align=center><input type=text name=test
maxlength="+digitPerField+
" size="+digitPerField+"
onkeyup=\"onKeyUp("+i+");setKeyUpFocus("+i+");\" onpaste=\"onPaste("+i+
");setFieldFocus();\" onblur=\"onBlur("+i+");\"";
if ((totalTextFields > maxTextFields) &&
i != (totalTextFields-1)) {
sFieldHTML += " onFocus=\"onFieldFocus("+i+");\"";
}
sFieldHTML += " value=\""+fieldValues+"\"></td>";
}

for (; j < fieldsPerRow; j++) {
sTitleHTML += "<td align=center> </td>";
sFieldHTML += "<td align=center> </td>";
}
sTitleHTML += "</tr>";
sFieldHTML += "</tr>";
sHTML += sTitleHTML;
sHTML += sFieldHTML;
sHTML += "</table></p></td></tr>";

authCodeLayer.innerHTML = sHTML;
for (i = totalTextFields; i < maxBufferFields; i++) {
fieldValues = "";
}

sHTML = "<p> <input type=\"button\" class=\"btn_submit\"
name=\"butnReset\" value=\"";
sHTML += xmsgReset;
sHTML += "\" onclick=\"onReset();\"></p>";
authButtonLayer.innerHTML = sHTML;

}

function createAuthCodeArea() {
authCodeLayer.innerHTML = "";
var sHTML="";
sHTML += " <textarea name=\"testarea\" cols=\"25\" rows=\"10\"
onPaste=\"onTextAreaPaste();\"></textarea>";
authCodeLayer.innerHTML = sHTML;

document.RTForm.testarea.value = sNewString;
authButtonLayer.innerHTML = "";
}

function backupAuthcodeFields() {
if (totalTextFields == 1) {
fieldValues[0] = document.RTForm.test.value;
} else {
for (i = 0; i < totalTextFields; i++) {
fieldValues = document.RTForm.test.value;
}
}
}

function resetTotalTextFields() {
totalTextFields = document.RTForm.test.length;
}

function selectRadio (curRadio) {
// don't do anything if this field is disabled
if (document.RTForm.selradio[curRadio].disabled) {
return;
}

for (i=0; i<document.RTForm.selradio.length; i++) {
if (i == curRadio) {
// don't do anything if current radio is already selected
if (curSelRadio == i &&
document.RTForm.selradio.checked) {
return;
}
document.RTForm.selradio.checked = true;
if (curRadio == 0) {
document.RTForm.auth.value = getFormattedAuthCode();
sNewString = document.RTForm.auth.value;
createAuthCodeArea();
document.RTForm.testarea.focus();
} else {
document.RTForm.auth.value =
reformatAuthCodeFromPasteBox(document.RTForm.testarea.value);
sNewString = document.RTForm.auth.value;
initialTextBuffer();
fillInitTextBuffer();
createAuthCodeFields();
document.RTForm.test[0].focus();
}
curSelRadio = curRadio;
} else {
document.RTForm.selradio.checked = false;
}
}
}

function disableGetAuthCodeText() {
if (document.getElementsByName)
x = document.getElementsByName('selAuthText');
else if (document.all)
x = document.all.tags('selAuthText');
else {
// doesn't support this
return;
}

x[0].disabled = true;
}

function changeSelTextStatus(s) {
if (document.getElementsByName)
x = document.getElementsByName('selText');
else if (document.all)
x = document.all.tags('selText');
else {
// doesn't support this
return;
}

ss = (s == 0);
for (var i=0;i<x.length;i++)
{
x.disabled = ss;
}
}

function changeSelRadioStatus(s) {
// true - disable, false - enable
ss = (s == 0);
if (reqtype ==1) {
for (i=0; i<document.RTForm.selradio.length; i++) {
document.RTForm.selradio.disabled = ss;
}

changeSelTextStatus(s);

if (document.RTForm.selradio[0].checked) {
document.RTForm.testarea.disabled = ss;
} else {
for (i = 0; i < totalTextFields; i++) {
document.RTForm.test.disabled = ss;
}
document.RTForm.butnReset.disabled = ss;
}
} else {
document.RTForm.auth.disabled = ss;
}
}

function selectAuthRadio(curRadio) {
// don't do anything if this field is disabled
// if (document.RTForm.selAuthRadio[curRadio].disabled) {
// return;
// }

for (i=0; i<document.RTForm.selAuthRadio.length; i++) {
if (i == curRadio) {
// don't do anything if current radio is already selected
if (curSelAuthRadio == i &&
document.RTForm.selAuthRadio.checked) {
return;
}
document.RTForm.selAuthRadio.checked = true;
if (curRadio == 0) {
document.onkeydown = closeRegisterToday;
changeSelRadioStatus(0);
} else {
document.onkeydown = "";
changeSelRadioStatus(1);
}
curSelAuthRadio = curRadio;
} else {
document.RTForm.selAuthRadio.checked = false;
}
}
}

function doSubmission() {
if (typeof(document.RTForm.nsernum) != "undefined") {
document.eRegForm.sernum.value = document.RTForm.nsernum[0].value
+ "-" + document.RTForm.nsernum[1].value;
}
StartAni();
document.eRegForm.submit();
document.RTForm.submitbutn.disabled = true;
}

function onNext() {
if (document.RTForm.selAuthRadio[0].checked) {
// if it's trial serial number, we need to verify it first
if (rtbuymode == "n" && sernum == "000-00000000") {
location.href=gotoVirtualPage("RTVerifySN.html");
} else {
doSubmission();
}
} else {
resetContactInfo();
}
}

// Handle "backspace" key and make "backspace" key behave like "Back"
button
document.onkeydown = closeRegisterToday;

//-->
</script>
<script><!--
document.writeln('<META HTTP-EQUIV="content-type"
CONTENT="text/html; charset='+rtcodepage+'">');// -->
</script>
<meta http-equiv="MSThemeCompatible" CONTENT="yes">
</head>
<body id="nobgrd" onload="setfocus()">
<div id="container">
<script src="RTHeader.js"></script>
<!--Insert Authorization Text Prompts -->
<H2>
<script><!--
document.writeln(xmsgRegAuthInfo);// -->
</script>
</H2>
<script src="RTNavigation.js"></script>
<form name="RTForm">
<!--Insert New Serial Number Text -->
<script><!--
if (rtbuymode == "n" && sernum == "000-00000000") {
document.writeln('<p>'+NewSerialBlock);
document.writeln();
document.writeln('</p>');
filler = 0;
} // -->
</script>
<p>
<script><!--
document.writeln(xmsgPleaseSelect2);
// -->
</script>
<p><input type="radio" value="RTCountryPage.html" name="selAuthRadio"
checked onclick="selectAuthRadio(0);">
<a name="selAuthText" onclick="selectAuthRadio(0);">
<script><!--
document.writeln(xmsgRegAuthInfo2);// -->
</script>
</a>
</p>
<p><input type="radio" value="RTAuthNow.html" name="selAuthRadio"
onclick="selectAuthRadio(1);">
<a name="selAuthText" onclick="selectAuthRadio(1);">
<script><!--
document.writeln(xmsgRegAuthInfo4A);// -->
</script>
</a>
</p>
<script><!--
if (reqtype ==1) {
document.writeln("<p> <input type=\"radio\" name=\"selradio\" checked
onclick=\"selectRadio(0);\">");
document.writeln("<a name=\"selText\" onclick=\"selectRadio(0);\">");
document.writeln(xmsgRegAuthInfo12);
document.writeln("</a></p>");
document.writeln("<p> <input type=\"radio\" name=\"selradio\"
onclick=\"selectRadio(1);\">");
document.writeln("<a name=\"selText\" onclick=\"selectRadio(1);\">");
document.writeln(xmsgRegAuthInfo13);
document.writeln("</a></p>");
}
// -->
</script>
<table class="block">
<tr><td>
<span id="authCodeLayer"></span>
</td></tr>
<tr><td>
<tr><td>
<span id="authButtonLayer"></span>
</td></tr>
<script><!--
if (reqtype ==1) {
document.writeln("<input type=hidden name=\"auth\" />");
} else {
document.writeln("<textarea name=\"auth\" cols=\"64\"
rows=\"5\" ID=\"Textarea1\"></textarea>");
}
// -->
</script></p>
</td></tr>
</table>
<p>
<script><!--
document.writeln(xmsgFormWebData2);// -->
</script>
</p>
<!--Table Footer -->
<script><!--
StartNavigationButtons();

document.writeln('<script src=\"rtanimdots.js\"></script>');

document.writeln('<input type="button" class="btn_submit"
value="'+xmsgBack+'"
onclick=\'location.href=gotoVirtualPage("RTBack.html");\'>');
document.writeln('<input type="button" class="btn_submit"
value="'+xmsgCancel+'"
onclick=\'location.href=gotoVirtualPage("RTcancel.html");\'>');
document.writeln('<input type="button" class="btn_submit"
value="'+xmsgNext+'" name=submitbutn onclick="onNext();">');

// -->
EndNavigationButtons();
</script>
</form>
<script src="RTFooter.js"></script>
<script><!--
document.writeln('<script
src=\"'+userTempPath+'rtthinpackage.js\"></script>');
// -->
</script>
</div>
</body>
</html>

Can someone help me?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top