
//-- 首页滚动 文字-- Begion
var startmarquee=function(targetId,lh,speed,delay){var t;var p=false;var o=document.getElementById(targetId);o.style.overflow="hidden";var html=o.innerHTML;o.innerHTML+=html;o.innerHTML+=html;o.onmouseover=function(){p=true};o.onmouseout=function(){p=false};o.scrollTop=0;function start(){try{t=setInterval(scrolling,speed);if(!p)o.scrollTop=parseInt(o.scrollTop)+1;}catch(e){clearInterval(t);}}
function scrolling(){if(typeof o=="undefined"){return;}
if(o.scrollTop%lh!=0){o.scrollTop+=1;if(o.scrollTop>=o.scrollHeight/3)o.scrollTop=0;}else{clearInterval(t);setTimeout(start,delay);}}
setTimeout(start,delay);}
//-- 首页滚动 文字-- END


//-- 验证码 --Begion
function addCheckCodeToggle11(idx){
var checkcodeLabel = document.getElementById("checkcode_label_td");	
var chkCodeInput = document.getElementById("txt_textfield3");	
var checkimg = document.getElementById("checkimg");		
            if(idx==1||document.getElementById("Rbt_Company").checked==true)
            {
                checkcodeLabel.style.color = "#000";
			    checkimg.src = "/Include/Check_Num.aspx";	
	            chkCodeInput.style.borderColor = "#7AAECF";
			    chkCodeInput.disabled ="";
			    chkCodeInput.style.background = "url()";
		 	    chkCodeInput.style.backgroundColor = "#FFF";
			    chkCodeInput.value = '';
			   
			    document.getElementById("dl_person").className="";
			    document.getElementById("dl_company").className="downli2";
			}
			else
			{
			    chkCodeInput.value = '';
			    checkimg.src = "/Images/Check_Num_default.gif";	
			    checkcodeLabel.style.color = "#CCC";
			    chkCodeInput.style.borderColor = "#eee";
			    chkCodeInput.style.background = "url(/Images/chkCode_d.gif)";		
			    chkCodeInput.disabled = "disabled";
			    
			    document.getElementById("dl_person").className="downli2";
			    document.getElementById("dl_company").className="";
			}
}

function addEventHandler (oTarget, sEventType, fnHandler) {
    if (oTarget.addEventListener) {
        oTarget.addEventListener(sEventType, fnHandler, false);
    } else if (oTarget.attachEvent) {
        oTarget.attachEvent("on" + sEventType, fnHandler);
    } else {
        oTarget["on" + sEventType] = fnHandler;
    }
}
 
//-- 验证码 -- END

