<!--
function userpicload(userpic){
	//alert(userpic.width);
	if(userpic.width>160){
	userpic.width=160;
	}
	if(userpic.style.width>160){
	userpic.style.width=160;
	}
	if(userpic.height>120){
	userpic.height=120;
	}
	if(userpic.style.height>120){
	userpic.style.height=120;
	}
	/*alert(userpic.height);
	alert(userpic.width);*/

	//if(this.width>186||this.style.width>186){this.width=186;this.style.width=186;}
}

function changePage(o,i){
	switch(i){
	case 0 :
		o.form.iPageNo.value = o.form.gotoPage.value;
		if (parseInt(o.form.PageCount.value)>0)
			if (parseInt(o.form.gotoPage.value) > parseInt(o.form.PageCount.value))
				o.form.iPageNo.value = o.form.PageCount.value
		o.form.submit();
		break;
	case 1 :
		o.form.iPageNo.value = 1;
		o.form.submit();
		break;
	case 2 :
		o.form.iPageNo.value = parseInt(o.form.iPageNo.value)-1;
		o.form.submit();
		break;
	case 3 :
		o.form.iPageNo.value = parseInt(o.form.iPageNo.value)+1;
		o.form.submit();
		break;
	case 4 :
		o.form.iPageNo.value = 9999;
		o.form.submit();
		break;
	}
}

function printit(){
	//t=newActiveXObject("WScript.Shell"); 
	//t.RegWrite("HKCU\\Software\\Microsoft\\InternetExplorer\\PageSetup\\header",""); 
	//t.RegWrite("HKCU\\Software\\Microsoft\\InternetExplorer\\PageSetup\\footer","");
	Item=printdiv.innerHTML;
	status='fullscreen';
	//status="width=0,height=0";
	MsgBox=window.open("","print",status);
	MsgBox.document.write   ("<html><head><title></title></head><body><div   align=center   width=100%>");
	MsgBox.document.write   ("   "+Item+"");
	MsgBox.document.write   ("</div></body></html>");
	MsgBox.document.close();
	MsgBox.print();
	MsgBox.close();
}

function fontZoomA(){
	document.getElementById('fontzoom').style.fontSize='12px';
	document.getElementById('fontzoom').style.lineHeight='20px';
}
function fontZoomB(){
	document.getElementById('fontzoom').style.fontSize='14px';
	document.getElementById('fontzoom').style.lineHeight='24px';
}
function fontZoomC(){
	document.getElementById('fontzoom').style.fontSize='16px';
	document.getElementById('fontzoom').style.lineHeight='28px';
}



function check(o)
{

	if (o==1)
		document.searchform.action="affair.aspx";
	else if(o==2)
		document.searchform.action="fee.aspx";
	else if(o==3)
		document.searchform.action="table.aspx";
	else if(o==4)
		document.searchform.action="news.aspx";
	else if(o==5)
		document.searchform.action="qa.aspx";
	else if(o==6)
		document.searchform.action="paper.aspx?classid=0";
	else
		document.searchform.action="paper.aspx?classid=1";	
	document.searchform.submit();
}

function search(val)
{
	window.open("search.aspx?val="+val,"search","width=400,height=150,top=0,left=0");
}


function jumpMenu(){
		document.money_change.submit();
}
function gotopage(){
		document.cbody.action="productsbuy.aspx?action=update";
		document.cbody.submit();
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function Selectadd()
{
	if (document.getElementsByName("addp").length==1)
	{
		if (document.details.addp.checked)
		{
				document.details.package[1].checked=true;
		}
		else{
				document.details.package[0].checked=true;
		}
	}
	else
	{
		if (document.details.addp[0].checked)
		{
				document.details.package[1].checked=true;
		}
		else{
				document.details.package[0].checked=true;
		}
	}
}

function getpass(){
	window.open("getpass.aspx","pass","width=400,height=300,left=0,top=0");
}

function editfriend(v)
{
	window.open("friendedit.aspx?fid="+v,"f","width=550,height=450,left=0,top=0");	
}

function editnote(v){
	window.open("noteedit.aspx?nid="+v,"n","width=450,height=250,left=0,top=0");	
}
function doWork(wid) {
	location.href = 'ChangeMoban.aspx?id=' + wid.toString();
}


//-->