function bookmark(){
var title=document.title
var url=document.location.href
if (window.sidebar) window.sidebar.addPanel(title, url,"");
else if( window.opera && window.print ){
var mbm = document.createElement('a');
mbm.setAttribute('rel','sidebar');
mbm.setAttribute('href',url);
mbm.setAttribute('title',title);
mbm.click();}
else if( document.all ) window.external.AddFavorite( url, title);
}

function popWindow(url){
		var windowWidth=495;
		var windowHeight=290;
		var top=(screen.height-windowHeight)/2;
		var left=(screen.width-windowWidth)/2;
		window.open(url,'','height='+windowHeight+',width='+windowWidth+',top='+top+',left='+left+',titlebar=no,toolbar=no,menubar=no');
	}

function popWindow1(url){
		var windowWidth=600;
		var windowHeight=350;
		var top=(screen.height-windowHeight)/2;
		var left=(screen.width-windowWidth)/2;
		window.open(url,'','height='+windowHeight+',width='+windowWidth+',top='+top+',left='+left+',titlebar=no,toolbar=no,menubar=no');
	}

function refreshImg(){
	document.all.validateImg.src="/caii/authimg";
}
/*
if(window.Event)
{
	document.captureEvents(Event.MOUSEUP);
}

function nocontextmenu(){
	event.canclelBubble=true;
	event.returnValue= false;
	return false;
}

function norightclick(e){
	if(window.Event){
		if(e.whitch==2 || e.which ==3){
			return false;
		}
	}else if(event.button==2 || event.button==3){
		event.cancelBubble=true;
		event.returnValue=false;
		return false;
	}
}

document.oncontextmenu=nocontextmenu;
document.onmousedown=norightclick;
*/