// JavaScript Document
function reloadVerify(APP){
    var verify=document.getElementById('verify');
    verify.setAttribute('src',APP + '/global/verify/' +Math.random());
}

function redirect(url)
{
	var js;
	if(url.length>0)
	{
		if('back'==url)
		window.setTimeout("history.back()",2000);
		else
		{
			js = "location.href = '"+url+"'";		
			window.setTimeout(js,2000);		
		}
	}
}


function showContent(pre,id,total,cname)
{
	document.getElementById(pre+id).style.display = 'block';
	if(cname)
	document.getElementById(pre+'menu_'+id).className = cname;
	
	for(i=0;i<total;i++)
	{
		if(i!=id)
		{
			document.getElementById(pre+i).style.display = 'none';
			if(cname)
			document.getElementById(pre+'menu_'+i).className = '';
		}
	}
}
