// JavaScript Document

var MyInterval;
function cutLock()
{
	clearInterval(MyInterval);
}
function logout()
{
	if(confirm("Are you sure?"))
	{
		clearInterval(MyInterval);
		window.location = "logout.cfm";
	}
}
function lockLogin()
{
	cutLock();
	$.ajax
	({
	type: 'POST',
	dataType: 'html',
	timeout: 100000,
	url:"lockLogin.cfm",data:"",
	success:function (data, status)
	{
		
	},
	error:function (data, status,e)
	{
	}
	});
	
	MyInterval=setInterval("lockLogin()",60000);
	
}
$(document).ready(function(){
	lockLogin();
});

function get_text_ajax(vid,flage,tag){
	$.get("getText.cfm", {vid: vid,flage:flage} , function(data){
		alert(data);
	}, 'html');
		
}

function showLogin(){
	tb_show(null,"#TB_inline?height=400&width=697&inlineId=loginBox&modal=true", false);		
}

function showTab(pram1,pram2,s,t){
 for(i=1;i<=t;i++){
  if(i == s){
   document.getElementById(pram1+i).style.display="";
   document.getElementById(pram2+i).className="current";
  }else{
   document.getElementById(pram1+i).style.display="none";
   document.getElementById(pram2+i).className="";
  }
 }
}
