/**
 * @author abraham.cheng
 */
function	JoinTeam( objForm )
{
	with( objForm )
	{
		mode.value = "JoinTeam";
		action = "process.php";
		method = "post";
		submit();
	}
}

function	ForgetPassword( objForm )
{
	with( objForm )
	{
		mode.value = "ForgetPass";
		action = "forget_password.php";
		method = "post";
		submit();
	}
}

function	GetPassword( objForm )
{
	with( objForm )
	{
		mode.value = "ForgetPass";
		action = "process.php";
		method = "post";
		submit();
	}
}

function	ChangeMainPic( sTdId , sMain , iOrder , sFile , iWidth , iHeight )
{
	var	oTd = window.document.getElementById( sTdId );
	oTd.innerHTML = '<a href="#" onclick="PopPic( \'' + sFile + '\' , \'' + iWidth + '\' , \'' + iHeight + '\' );return false;"><img src="works/' + sMain + '-222-' + iOrder + '.jpg" width="222" height="298" border="0" /></a>';
	//window.alert( oTd.innerHTML );
	return	true;
}

function	PopPic( sFile , iWidth , iHeight )
{
	strProperty = 'resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,dependent=1,titlebar=0,width=' + ( eval(iWidth) + 10 ) + ',height=' + ( eval(iHeight) + 10 );
	newWin = window.open( 'works/' + sFile , 'NewWindow' , strProperty );
	newWin.focus();
	return	true;
}

function	DoVote( objForm )
{
	with( objForm )
	{
		mode.value = "DoVote";
		action = "process.php";
		method = "post";
		submit();
	}
}
function	DoVote1( objForm )
{
	with( objForm )
	{
		mode.value = "DoVote1";
		action = "process.php";
		method = "post";
		submit();
	}
}