function ZZ(STA,IDV,D){
R=STA.value;
if(R.length>D){
NR=R.substring(0,D);
STA.value=NR;
document.getElementById(IDV).className="fc";
}
else{
NR=R;
document.getElementById(IDV).className="fz";
}
document.getElementById(IDV).innerHTML=(D-NR.length);
}
sfHover = function() {
if (document.getElementById("im") != null) {
var sfEls = document.getElementById("im").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
function Pop(URL) {
window.open(URL,'Foto','height=640,width=640,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=40,top=40')
}



/* select box menu */
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
