Function insert (sprompt, i) {var surl = prompt (sprompt, ""); if (surl) {document.forms [i] .picurl.value = surl} return;} function disabledKeyInput () {Event.ReturnValue = FALSE } function checklogoradio (i) {// var i = 0; if (Document.Forms [i] .radiow [0] .checked) {document.forms [i] .button1.disabled = false; Document.Forms [i ] .Button2.disabled = true;} else if (Document.Forms [i] .radiow [1] .checked) {document.forms [i] .button1.disabled = true; document.forms [i] .button2.disabled = false;}} // zhf // ------------------------------- var img = null; function s n) {i = n; if (img) img.removenode (true); img = document.createElement ("img"); img.attachevent ("OnReadyStateChange", ORSC); IMG.Attachevent ("OneRror", OE) Img.src = document.forms [i] .upfile.value;} function OE () {Alert ("Upload Image Type: GIF, JPEG / JPG, BMP"); Document.Forms [i] .button1.disabled = true;} function} {nlimfilesize = document.Forms [i] .picsize.value; nlimwidth = document.forms [i] .picwidth.value; nlimHeight = document.forms [i] .picHeight.Value;
IF (img.readystate! = "completion") {return false;} else if (img.width> nlimwidth || img.height> nlimHeight) {alert ("The picture is too large, please limit" NLIMWIDTH "X" NLimHeight "Size!"); Document.Forms [i] .Button1.disabled = true;} else {document.forms [i] .button1.disabled = false;}}