function ChangeValiCode()
{
 var randomnum = Math.random();
 var valiCode = document.getElementById("ValiCodeCtl");
 valiCode.src = "/inc/ValiCode.aspx?" + randomnum;
}
function CheckValiCodeIsNotLost()
{
    return AjaxMethod.ValiCodeIsNotLost().value;
}
function CheckValiCodeIsEqual(vobj)
{
    if(vobj == AjaxMethod.ValiCodeIsEqual().value)
       return true;
    else
       return false;
}
function setFloatMenuValue(showId,showText,valueId,valueText)
{
   document.getElementById(showId).value = showText;
   //alert(document.getElementById(showId).value);
   document.getElementById(valueId).value = valueText;
}
function ConvertNum(str,ctl)
{
   ctl.value = ChangeNum(str);
}
function checkAll(str){
var obj = document.getElementsByName(str);
		    for(var k = 0;k<obj.length;k++){
		        obj[k].checked = window.event.srcElement.checked;
		    }
		  }

function ShowFriendTips(msg,moveobj,showobj,height)
{
	showobj.innerText = msg;
	moveobj.style.top = height;
}
