/*
 * passport lib
 * @author: zhang.xiaoye@gmail.com
 * @version: $Id$
 */
function _GotoRegister()
{
	Element.hide('registerinfo');
	Element.show('registerentry');
}
function _ChangeRegInfo(value)
{
	switch(value)
	{
		case '1':
			Element.update('college_t', '* '+reginfo1[0]);
			Element.update('academy_t', reginfo1[1]);
			//Element.update('education_t', reginfo1[2]);
			//Element.update('enrolltime_t', '* '+reginfo1[3]);
			Element.update('college_m', reginfo3[2]);
			break;
		case '2':
			Element.update('college_t', '* '+reginfo1[0]);
			Element.update('academy_t', reginfo1[1]);
			//Element.update('education_t', reginfo1[2]);
			//Element.update('enrolltime_t', '* '+reginfo1[3]);	
			Element.update('college_m', reginfo3[2]);	
			break;
		case '3':
			Element.update('college_t', '* '+reginfo1[0]);
			Element.update('academy_t', reginfo1[1]);
			//Element.update('education_t', reginfo1[2]);
			//Element.update('enrolltime_t', '* '+reginfo1[3]);	
			Element.update('college_m', reginfo3[2]);	
			break;
		case '4':
			Element.update('college_t', '* '+reginfo2[0]);
			Element.update('academy_t', reginfo2[1]);
			//Element.update('education_t', reginfo2[2]);
			//Element.update('enrolltime_t', '* '+reginfo2[3]);
			Element.update('college_m', reginfo3[3]);
			Element.update('college_s', firm);		
			break;
		case '5':
		    Element.update('college_t', '* '+reginfo3[0]);
			Element.update('academy_t', reginfo3[1]);
			//Element.update('education_t', reginfo2[2]);
			//Element.update('enrolltime_t', '* '+reginfo2[3]);
			Element.update('college_m', reginfo3[4]);
			
			break;
		default:
			Element.hide('mytest');
			Element.update('college_t', reginfo1[0]);
			Element.update('academy_t', reginfo1[1]);
			//Element.update('education_t', reginfo1[2]);
			//Element.update('enrolltime_t', reginfo1[3]);	
			Element.update('college_m', reginfo3[2]);	
			break;
	}
}

function _ReloadPage()
{
	window.location.reload();
}
function _DeleteAvatar()
{
	_log('here');
}
function _UploadAvatar()
{
	var url='/user/uploadAvatar'
	newWindow(url, '', 350, 100, false, false, '');
}

var reginfo1=['\u5b66\u6821', '\u9662\u7cfb\u4e13\u4e1a\u7814\u7a76\u5ba4', '\u5728\u5b66\u8eab\u4efd', '\u5165\u5b66\u65f6\u95f4'];
var reginfo2=['\u5c31\u804c\u5355\u4f4d', '\u90e8\u95e8', '\u804c\u4f4d', '\u5165\u804c\u65f6\u95f4'];
var reginfo3=['\u540c\u4e61\u4f1a', '\u90e8\u95e8','\u5982\u679c\u60a8\u6240\u5728\u7684\u5b66\u6821\u672a\u5305\u542b\u5728\u4ee5\u4e0a\u5217\u8868\u4e2d\uff0c\u8bf7\u5c06\u5b66\u6821\u540d\u79f0\u586b\u5165\u4e0b\u680f','\u5982\u679c\u60a8\u6240\u5728\u7684\u516c\u53f8\u672a\u5305\u542b\u5728\u4ee5\u4e0a\u5217\u8868\u4e2d\uff0c\u8bf7\u5c06\u516c\u53f8\u540d\u79f0\u586b\u5165\u4e0b\u680f','\u5982\u679c\u540c\u4e61\u4f1a\u4e0d\u5b58\u5728\uff0c\u8bf7\u586b\u5199\u540c\u4e61\u4f1a\u540d\u79f0'];

var firm="<select><option>Sony</option><option>NEC</option><option>NTT</option></select>";

