function popup(page,w,h) {
	window.open(page,'nw','toolbar=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,width='+w+',height='+h);
}

function IsAgree() {
	if (document.getElementById('agree').checked == true) return true;
	else return false;	
}

function ChangeActive(active) {	
	if (active == 1) {
		document.getElementById("l1").className = "active";
		Show('tab1');		
	}
	else {
		document.getElementById("l1").className = "";
		Block('tab1');		
	}	
	
	if (active == 2) {
		document.getElementById("l2").className = "active";
		Show('tab2');	
	} 
	else {
		document.getElementById("l2").className = "";	
		Block('tab2');
	}
	
	if (active == 3) {
		document.getElementById("l3").className = "active";
		Show('tab3');
	} 
	else {
		document.getElementById("l3").className = "";
		Block('tab3');	
	}		
}

function addBookmark(title,url) {
	if (window.sidebar) { 
		window.sidebar.addPanel(title, url,""); 
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) { }
	return true;
}

function Show(id) {   
    document.getElementById(id).style.display = 'block'; 	    
}
function Block(id) {
	document.getElementById(id).style.display = 'none';
}

function Clear(id) {
	document.getElementById(id).value = '';
}
  
  
function NewWindow(url) {
    window = window.open(url,"window");
}