function ajaxUpdateUserTimeLine(page,screen_name){

	//alert(page+" "+screen_name)
	divUserPage = page;
	moreUserLink = document.getElementById("moreLink");			
	npage = page + 1;	
	moreUserLink.innerHTML = "<p style='height: 38px;'><img src='/images/public/twt_loading.gif'></p>";

//	if(screen_name.length > 0){
		new Ajax.Request('/onAcademy/studyinfo/twt_more.asp?page='+ page +'&spc_idx_pk='+screen_name, {onSuccess:getResAjaxUserTimeLine});
//	}else{
//		new Ajax.Request('/onAcademy/studyinfo/twt_more.asp?page='+ page +'&spc_idx_pk='+screen_name, {onSuccess:getResAjaxMessage});
//	}
}


function getResAjaxUserTimeLine(res)
{
	var retstr = res.responseText;
	var divName = 'addTimeLine_'+(divUserPage-1);

	var addTimeLine = document.getElementById(divName);
	addTimeLine.innerHTML = retstr;
	moreUserLink.style.display = "none";
	autoScrollCheck = false; 
}


//ÇÃ·¹½Ã ¸µÅ©
function swf(src,w,h){
	 html = '';
	 html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	 html += '<param name="movie" value="'+src+'">';
	 html += '<param name="quality" value="high">';
	 html += '<param name="bgcolor" value="#ffffff">';
	 html += '<param name="menu" value="false">';
	 html += '<param name=wmode value="transparent">';
	 html += '<param name="swliveconnect" value="true">';
	 html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
	 html += '</object>';
	 document.write(html);
}


// XML ActiveXObject »ý¼º
function createXMLHttpRequest() {

	var regDate;
    if (window.ActiveXObject) {		
        regDate = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest) {
        regDate = new XMLHttpRequest();
    }
	
	return regDate;
}



function changecss(theClass,element,value) {
//Last Updated on May 21, 2008
//documentation for this script at
//http://www.shawnolson.net/a/503/altering-css-class-attributes-with-javascript.html

var cssRules;
if (document.all) 
{
cssRules = 'rules';
}
else if (document.getElementById) 
{
cssRules = 'cssRules';
}
var added = false;
for (var S = 0; S < document.styleSheets.length; S++)
{
for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) 
{
if (document.styleSheets[S][cssRules][R].selectorText == theClass) 
{
if(document.styleSheets[S][cssRules][R].style[element])
{
document.styleSheets[S][cssRules][R].style[element] = value;
added=true;
break;
}
}
}
if(!added)
{
if(document.styleSheets[S].insertRule)
{
document.styleSheets[S].insertRule(theClass+' { '+element+': '+value+';}',document.styleSheets[S][cssRules].length); 
}
else if (document.styleSheets[S].addRule) 
{
document.styleSheets[S].addRule(theClass,element+': '+value+';'); 
}
}
}
}


function divLayerPopup(lynm){
	var lnm = document.getElementById(lynm)

	if (lnm.style.display == "none"){
		lnm.style.display = "block";
	}else{
		lnm.style.display = "none";
	}

}
