well that’s a bummer… thanks for the help. guess i’ll get the zip with curl and put it in scm in case they move again.
here’s the encoded html btw:
<html> <head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
<title></title>
<script type='text/javascript'>function setImageSize() {
var ele1 = document.getElementById('headerimage');
var ele2 = document.getElementById('footerimage');
setHeightWidth(ele1);
setHeightWidth(ele2);
}
function setHeightWidth(ele) {
var h = ele.offsetHeight;
var w = ele.offsetWidth;
if (ele.offsetWidth > 700) {
ele.width = 700;
} else {
ele.width = w;
}
if (ele.offsetHeight > 80) {
ele.height = 80;
} else {
ele.height = h;
}
}</script> </head> <body onload='setImageSize()' leftmargin='0' topmargin='0' marginheight='0' marginwidth='0'> <form name='previewform'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'
style='font-family: Arial,Helvetica,sans-serif;font-size:12px;padding-left: 10px;'>
<tr>
<td align='center'> <br/><img id='headerimage' name='headerimage'
src='http://10.18.84.1:8090/images/customizeimages/default/defpageHeader.gif'
onload='callToSetImageSize(this)' style='visibility:hidden'></img></td>
</tr>
<tr>
<td align='left'><br>
<div id='message'><font class=accessdeniedtextfont><b><BR>Dear </font><font
class=accessdeniedcategoryfont>{user},</font><BR><BR><font class=accessdeniedtextfont>This is a
message from the IT Department. <BR><BR>The web site you are trying to access: <BR></font><font
class=accessdeniedcategoryfont>{url}</font><BR><font class=accessdeniedtextfont>is listed as a
site within the category </font><font class=accessdeniedcategoryfont>{category}</font><BR><BR><font
class=accessdeniedtextfont> Current Internet Access Configuration does not allow you to visit
sites within this category at this time.<BR></font></div>
<br></td>
</tr>
<tr>
<td align='center'><img id='footerimage' name='footerimage'
src='http://10.18.84.1:8090/images/customizeimages/default/defpageFooter.jpg'
onload='callToSetImageSize(this)' style='visibility:hidden'></img></td>
</tr>
</table> </form> </body> <script language="JavaScript"> var heightVar, widthVar, timeoutInterval = 50; function setHeightWidth() {
var diff, reducePer, tempVar;
if (widthVar > 700) {
diff = widthVar - 700;
reducePer = 100 * diff / widthVar;
tempVar = reducePer * widthVar / 100;
widthVar = widthVar - tempVar;
tempVar = reducePer * heightVar / 100;
heightVar = heightVar - tempVar;
}
if (heightVar > 80) {
diff = heightVar - 80;
reducePer = 100 * diff / heightVar;
tempVar = reducePer * heightVar / 100;
heightVar = heightVar - tempVar;
tempVar = reducePer * widthVar / 100;
widthVar = widthVar - tempVar;
} } function setImageSize(imgName) {
if (document.getElementById(imgName) && document.getElementById(imgName).offsetWidth != 0 && document.getElementById(imgName).offsetHeight != 0) {
widthVar = document.getElementById(imgName).offsetWidth;
heightVar = document.getElementById(imgName).offsetHeight;
setHeightWidth();
document.getElementById(imgName).width = widthVar;
document.getElementById(imgName).height = heightVar;
document.getElementById(imgName).style.visibility = '';
} else {
setTimeout('setImageSize()', timeoutInterval);
} } function callToSetImageSize(obj) {
if (navigator.appName.indexOf("Opera") != -1) {
timeoutInterval = 350;
}
setTimeout('setImageSize("' + obj.name + '")', timeoutInterval); } </script> </html>