//
function swapSee(div1,div2,div3,div4){ 
var seeUm=document.getElementById(div1); 
var noSee=document.getElementById(div2); 
var newcolor=document.getElementById(div3); 
var oldcolor=document.getElementById(div4); 
seeUm.style.visibility="hidden"; 
seeUm.style.display="none"; 
noSee.style.visibility="visible"; 
noSee.style.display="inline"; 
newcolor.style.background="#ffffff"; 
oldcolor.style.background="#ccCCcc"; 
}
//
//
function formsubmit(strform)
{
	document.forms[strform].submit();
}
//

function initcd(totsecs, imgid1, newsrc1) {
	imgID = imgid1;
	newsrc = newsrc1;
	remsecs = totsecs;
 	ratio1 = 1 / totsecs;
 	ratio2 = 100 / totsecs;
 	opacity1 = 1;
 	alpha2 = 100;
 	t = setTimeout("redo()",1000);
}

function redo() {
	remsecs--;
	opacity1 = opacity1 - ratio1;
 	alpha2 = alpha2 - ratio2;
 	varalpha2 = "alpha(opacity="+alpha2+")";
 	document.getElementById(imgID).style.opacity = opacity1;
	document.getElementById(imgID).style.filter = varalpha2;
	
 	if(remsecs == 0) {
 		document.getElementById(imgID).src = newsrc ;
  	document.getElementById(imgID).style.opacity = 1;
		document.getElementById(imgID).style.filter = "alpha(opacity=100)";
 		clearTimeout(t);
 	} else {
 		t = setTimeout("redo()",1000);
 	}
}
//