? Like the subject line says, the second fuction is not working… First are just the functions it’s pulling from – at the bottom is the onload… The first one is fine, it’s just the second that won’t work. I’ve already tried removing the semicolon after the second function but it only produces more erros… Here’s the script:
function P7_getWD(tDim){ //v2.4 by PVII
var sh=0,sw=0,rt=0;if(window.innerWidth){sh=window.innerHeight;sw=window.innerWidth;
}else if(document.body){sh=document.body.clientHeight;sw=document.body.clientWidth;
if(document.body.offsetHeight==sh&&document.documentElement&&document.documentElement.clientHeight){
sh=document.documentElement.clientHeight;}
if(document.body.offsetWidth==sw&&document.documentElement&&document.documentElement.clientWidth) {
sw=document.documentElement.clientWidth;}}rt=(tDim==”width”)?sw:sh;return rt;
}
function P7_getLDims(el) { //v2.4 by PVII
var x,ll=0,tl=0,hh=0,ww=0,wx,g,gg;
if((g=MM_findObj(el))!=null){gg=(document.layers)?g:g.style;ll=parseInt(gg.left);tt=parseInt(gg.top);
if(isNaN(ll)){if(g.currentStyle){ll=parseInt(g.currentStyle.left);}else if(document.defaultView){
ll=parseInt(document.defaultView.getComputedStyle(g,””).getPropertyValue(“left”));}if(isNaN(ll)){ll=0;}}
if(isNaN(tt)){if(g.currentStyle){tt=parseInt(g.currentStyle.top);}else if(document.defaultView){
tt=parseInt(document.defaultView.getComputedStyle(g,””).getPropertyValue(“top”));}if(isNaN(ll)){tt=0;}}
if(document.all||document.getElementById){ww=parseInt(g.offsetWidth);hh=parseInt(g.offsetHeight);
if(!ww){ww=parseInt(g.style.pixelWidth);if(!ww){ww=parseInt(g.style.width);}}if(!hh){
hh=parseInt(g.style.pixelHeight);}if(g.hasChildNodes){for(x=0;x<g.childNodes.length;x++){
wx=parseInt(g.childNodes[x].offsetWidth);if(wx>ww){ww=wx;}}}}else if(document.layers){
ww=parseInt(g.clip.width);hh=parseInt(g.clip.height);}}var aR=[ll,tt,hh,ww];return aR;
}
function P7_alignRR() { //v2.4 by PVII
var i;if(!document.p7alignRR) {return;}if(document.layers){
if(innerWidth!=document.p7RRiw || innerHeight!=document.p7RRih){location.reload();}
}else{document.p7RR=1;for(i=0;i<p7aRR.length;i++){eval(p7aRR[i]);}document.p7RR=0;}
}
function P7_alignWD2() { //v2.4 by PVII
var g,gg,lp=0,tp=0,aL,lh,lw,ww,wh,pa=’px’,args=P7_alignWD2.arguments;if(document.layers||window.opera){pa=”;}
for(var i=0;i<args.length;i+=4){if((g=MM_findObj(args[i]))!=null){gg=(document.layers)?g:g.style;
mm=parseInt(args[i+1]);mr=parseInt(args[i+2]);ml=parseInt(args[i+3]);ww=parseInt(P7_getWD(‘width’));
wh=parseInt(P7_getWD(‘height’));aL=P7_getLDims(args[i]);lh=aL[2];lw=aL[3];tp=aL[1];lp=aL[0];
if(mm==1){lp=mr;}if(mm==2){lp=parseInt((ww-lw-mr)/2);if(lp<0){lp=0;}}if(mm==3){lp=ww-lw-mr;if(lp<ml){lp=ml;}}
if(mm==4){tp=parseInt((wh-lh-mr)/2);if(tp<0){tp=0;}}if(mm==5){tp=parseInt((wh-lh)/2);lp=parseInt((ww-lw)/2);
if((lp-mr)<=0){lp=mr;}if((tp-ml)<=0){tp=ml;}}if(mm==6){tp=wh-lh-mr;}gg.top=tp+pa;gg.left=lp+pa;
if(!document.p7alignRR){p7aRR=new Array();document.p7alignRR=true;document.p7RR=0;
if(document.layers){document.p7RRiw=innerWidth;document.p7RRih=innerHeight;}onresize=P7_alignRR;}
if(document.p7RR==0){p7aRR[p7aRR.length]=”P7_alignWD2(‘”+args[i]+”‘,”+mm+”,”+mr+”,”+ml+”)”;}}}
}
function P7_autoLayers() { //v1.2 by PVII
var g,b,k,f,args=P7_autoLayers.arguments;
var a = parseInt(args[0]);if(isNaN(a))a=0;
if(!document.p7setc) {p7c=new Array();document.p7setc=true;
for (var u=0;u<10;u++) {p7c[u] = new Array();}}
for(k=0; k<p7c[a].length; k++) {
if((g=MM_findObj(p7c[a][k]))!=null) {
b=(document.layers)?g:g.style;b.visibility=”hidden”;}}
for(k=1; k<args.length; k++) {
if((g=MM_findObj(args[k])) != null) {
b=(document.layers)?g:g.style;b.visibility=”visible”;f=false;
for(j=0;j<p7c[a].length;j++) {
if(args[k]==p7c[a][j]) {f=true;}}
if(!f) {p7c[a][p7c[a].length++]=args[k];}}}
}
function P7_hideDiv(evt) { //v1.3 by PVII
var b,relT,mT=false;
if(document.layers){b=evt.target;if(b.p7aHide){
b.visibility=”hidden”;}else{routeEvent(evt);}
}else if(document.all&&!window.opera){b=event.srcElement;
while(b!=null){if(b.tagName==”DIV” && b.p7ahD){mT=true;break;}b=b.parentElement;}
if(!b.contains(event.toElement)){b.style.visibility=”hidden”;}
}else if(document.getElementById){b=evt.currentTarget;relT=evt.relatedTarget;
while(relT!=null){if(b==relT){mT=true;break;}
relT=relT.parentNode;}if(!mT){b.style.visibility=”hidden”;}}
}
function P7_autoHide() { //v1.3 by PVII
var i,g,args=P7_autoHide.arguments;
for(i=0;i<args.length;i++){if((g=MM_findObj(args[i]))!=null){
g.p7aHide=true;if(document.layers){
g.captureEvents(Event.MOUSEOUT);}g.onmouseout=P7_hideDiv;g.p7ahD=true;}}
}
//–>
</script>
<!– //BEGIN HEADER AREA TABLE// –>
[COLOR=Red]<body onLoad=”MM_openBrWindow(‘warning.htm’,’Warning’,’width=800,height=200′);P7_alignWD2(‘Contact’,2,0,0);”>