function cngimg(n){
	var imgsrc = n.src;
	if(imgsrc.indexOf("_f2") <= 0){
		n.src=imgsrc.substring(0,imgsrc.length-4) +"_f2.gif";
	}
	else{
		n.src=imgsrc.substring(0,imgsrc.length-7) +".gif";
	}
}

function cngjpg(n){
	var imgsrc = n.src;
	if(imgsrc.indexOf("_f2") <= 0){
		n.src=imgsrc.substring(0,imgsrc.length-4) +"_f2.jpg";
	}
	else{
		n.src=imgsrc.substring(0,imgsrc.length-7) +".jpg";
	}
}

function winClose(){
this.window.close();
}

function pr(){
print();
}

function winOpen(win_url,win_name,win_toolbar,win_width,win_height,win_top,win_left){
win_left = 0;
if(win_top > 0){
	if(eval(win_top)+eval(win_height) > screen.height){
	n = eval(win_top)+eval(win_height)-screen.height;
	win_top = eval(win_top)-n;
	}
}
	var win_data = "toolbar=" + win_toolbar + ",location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=" + win_width + ",height=" + win_height + ",left=" + win_left + ",top=" + win_top;
	nw = window.open(win_url,win_name,win_data);
}

function fullscreen(){
this.window.moveTo(0,0);
this.window.resizeTo(screen.availWidth,screen.availHeight);
}

function cngdisp01(lid){
	var maxNum = 17;
	for(var i=1; i<=maxNum; i++){
		document.getElementById("pf"+i).style.display='none';
	}
	document.getElementById(lid).style.display='block';
}

function cngdisp02(lid){
	var maxNum = 14;
	for(var i=1; i<=maxNum; i++){
		document.getElementById("pf"+i).style.display='none';
	}
	document.getElementById(lid).style.display='block';
}
