// Go Item
ngi = new Image(); ngi.src = "/img/icons/ngi.gif";
sgi = new Image(); sgi.src = "/img/icons/sgi.gif";
// Go Left
ngl = new Image(); ngl.src = "/img/icons/ngl.gif";
sgl = new Image(); sgl.src = "/img/icons/sgl.gif"; 
// Go Right
ngr = new Image(); ngr.src = "/img/icons/ngr.gif";
sgr = new Image(); sgr.src = "/img/icons/sgr.gif"; 
// Go Up
ngu = new Image(); ngu.src = "/img/icons/ngu.gif";
sgu = new Image(); sgu.src = "/img/icons/sgu.gif"; 
// Go Down
ngd = new Image(); ngd.src = "/img/icons/ngd.gif";
sgd = new Image(); sgd.src = "/img/icons/sgd.gif"; 
// Go Back
ngb = new Image(); ngb.src = "/img/icons/ngb.gif";
sgb = new Image(); sgb.src = "/img/icons/sgb.gif"; 
//
// Swap Image
//
function swap(Name,Img) {

var image = eval(Img+".src");
document.images[Name].src = image; 

}
//
// Jump Menu
//
function menu(Opt) { 

eval("window.location='"+Opt.options[Opt.selectedIndex].value+"'");

}
//
// CSIC
//
var left=200;

function csic()  { 

if (left>10) { 
left-=1; 
document.getElementById("scsic").style.left=left+"px"; 
document.getElementById("scsic").style.top=92+"px"; 
setTimeout("csic()",2); 
} 

} 
//
// Form Text Area
//
function checkInput (textarea,maxLines,maxChar) {

var lines=textarea.value.replace(/\r/g,'').split('\n');

if (lines.length > maxLines) {
lines=lines.slice(0,maxLines);
return textarea.value=lines.join('\n');
}

var i=lines.length;

while (i-- > 0) if (lines[i].length > maxChar) {
lines[i]=lines[i].slice(0,maxChar);
return textarea.value=lines.join('\n');
}

}
