
function styleCheckbox1Click(){
	var oBox1=document.getElementById(this.id1);
	var oBox2=document.getElementById(this.id1+"-repl");
	if(!oBox1.checked){
		oBox1.checked=true;
		oBox2.className+=" "+this.cName1+"-checked";
	}
	else{
		oBox1.checked=false;
		oBox2.className=this.cName1+"-repl";
	}
}
function styleCheckbox1Fix(){
	if(this.checked){
		document.getElementById(this.id+"-repl").className+=" "+this.cName1+"-checked";
	}
}
function styleCheckbox1(cName){
	this.style.visibility="hidden";
	this.className+=" "+this.id+"-change";
	this.cName1=cName;
	var checkParent=this.parentNode;
	checkParent.style.position="relative";

	var tmp1=document.createElement("div");
	tmp1.id1=this.id;
	tmp1.cName1=cName;
	tmp1.id=this.id+"-repl";
	tmp1.className=cName+"-repl";
	checkParent.appendChild(tmp1);
	var checkRepl=document.getElementById(this.id+"-repl");
	checkRepl.style.visibility="visible";
	checkRepl.tabIndex=0;

	if(document.getElementById(this.id+"-label")){
		var checkLabel=document.getElementById(this.id+"-label");
		checkLabel.id1=this.id;
		checkLabel.cName1=cName;
		checkLabel.onclick=styleCheckbox1Click;
		checkLabel.style.cursor="pointer";
	}
	checkRepl.onclick=styleCheckbox1Click;
	checkRepl.onkeypress=function(event1){
		var vCode;
		if(!event1){
			event1 = window.event;
			vCode = event1.keyCode;
		}
		else vCode=event1.which;
		if(vCode==13){
			this.onclick();
			return false;
		}
	}

	this.cFix1=styleCheckbox1Fix;
	setTimeout("document.getElementById('"+this.id+"').cFix1()",1);
}
lteIE71=false;
eIE1=false;
function lteIE7check(){
	function lteIE7check2(){
		HTMLInputElement.prototype.styleCheckbox1=styleCheckbox1;
		HTMLInputElement.prototype.cFix1=styleCheckbox1Fix;
	}
	var index1=0;
	if(navigator.appVersion.indexOf("MSIE")!=-1){
		index1=navigator.appVersion.indexOf("MSIE")+6;
		eIE1=true;
	}
	if(index1>0){
		if(navigator.appVersion.substring(index1-1,index1)<=7) lteIE71=true;
		else lteIE7check2();
	}
	else lteIE7check2();
}
lteIE7check();

$(document).ready(function(){

if(lteIE71){
	var aItems2=document.getElementsByTagName("input");
	for(i=0;i<aItems2.length;i++){
		aItems2[i].styleCheckbox1=styleCheckbox1;
		aItems2[i].cFix1=styleCheckbox1Fix;
	}
}

});
