<!--
	//secured page
	function CMISPopUp(url,iWidth,iHeight) {
		var CMISPopUp=window.open(url,'CMISPopUp','width='+iWidth+',height='+iHeight+',status=0,scrollbars=1,resizable=1,left=0,top=0')
		if (CMISPopUp.opener==null)
			CMISPopUp.opener=self
		if (CMISPopUp.focus)
			CMISPopUp.focus()
	}

	function CMISLoginNow(thisForm) {
		if (thisForm.username.value=='') {
			alert ("Please enter your Username.")
			thisForm.username.focus()
			return
		}
		if (thisForm.passwd.value=='') {
			alert ("Please enter your Password.")
			thisForm.passwd.focus()
			return 
		}
		thisForm.TargetPage.value='signon.asp?'+parseInt(Math.random() * 65535)
		thisForm.action='signon.asp?a=login&id='+parseInt(Math.random() * 65535)
		CMISPopUp('',790,530)
		thisForm.target='CMISPopUp'
		setTimeout('document.frmSignon.submit()', 1500)
		setTimeout('document.frmSignon.username.value=""',3000)
		setTimeout('document.frmSignon.passwd.value=""',3000)	
	}

	function ResetAll() {
		document.frmSignon.username.value=''
		document.frmSignon.passwd.value=''
	}
	//end secured page

	function submitit(action){
	for (var f, n=0, DL=document.form, i=0; i<DL.elements.length; i++) {if ((DL.elements[i].name.indexOf('ID')> -1)) {if (DL.elements[i].checked){n=n+1; }}}
	if (n>0) {
		document.form.action=action;
		document.form.submit();
		}
	else {
		alert(NoItemsMsg)
	}}

	function submitform(action){
		document.myform.action=action;
		document.myform.submit();
	}
	
	function submitstcwform(action){
		document.mystcwform.action=action;
		document.mystcwform.submit();
	}	

	function submitcertform(action){
		document.mycertform.action=action;
		document.mycertform.submit();
	}
	
	function ConfirmAction(msg,action){
		if (confirm(msg)) {
		document.myform.action=action;
		document.myform.submit();}
	}
	
	function openBiodataPopup(url) {
		myPopup = window.open(url,Math.floor(Math.random() * 99999),'width=790,height=530,status=0,scrollbars=1,resizable=1,left=0,top=0');
		myPopup.focus();
	}	
	
	function openImagePopup(url) {
		myPopup = window.open(url,Math.floor(Math.random() * 99999),'width=790,height=530,status=0,scrollbars=1,resizable=1,left=0,top=0');
		myPopup.focus();
	}
	
	function doPrint() { 
	if (! IS_IE4) window.print(); 
	else vbPrintPage(); 
	}
	
	function confirmLogout(logoutUrl) {
	if (confirm("Are you sure that you want to logout?")) {
		document.location = logoutUrl;
		}
	}
	
	function openSmallPopup(url) {
		myPopup = window.open(url,Math.floor(Math.random() * 99999),'width=400,height=350,top=20,left=100,resizable=yes,scrollbars=yes,toolbars=no,statusbar=yes,titlebar=no');
		myPopup.focus();
	}
	
	function openSmallImagePopup(url) {
		myPopup = window.open(url,Math.floor(Math.random() * 99999),'width=300,height=200,top=20,left=100,resizable=yes,scrollbars=yes,toolbars=no,statusbar=yes,titlebar=no');
		myPopup.focus();
	}	
	
	function openLargePopup(url) {
		myPopup = window.open(url,Math.floor(Math.random() * 99999),'width=550,height=350,top=20,left=100,resizable=yes,scrollbars=yes,toolbars=no,statusbar=yes,titlebar=no');
		myPopup.focus();
	}
	
	function ConfirmAction(msg,action) {
		if (confirm(msg)) {
			document.myform.action=action;
			document.myform.submit()
			}
	}	
	
	function CheckAll2()
	{for (var i=0;i<document.myform.elements.length;i++) { var e = document.myform.elements[i]; if (e.name != 'allbox') e.checked = document.myform.allbox.checked;}}
	

	function ButtonOver(item) {
		item.className = "Button_sel";
		if (item.alt !=null) {
			window.status=item.alt;
		}
	}

	function ButtonOff(item) {
		item.className = "Button_unsel";
		window.status='Corporate Portal - http://www.cfsharp.com/cmis';
	}
	
	function openviewwindow(url) {
		myPopup = window.open(url,'Popup','width=850,height=700,top=10,left=10,resizable=yes,scrollbars=yes,toolbars=no,statusbar=yes,titlebar=no');
		//if (!myPopup.opener)
		//myPopup.opener = self;
		myPopup.focus();
	}
	
	function RotateOriginal(){
		this.document.images['image'].style.filter='progid:DXImageTransform.Microsoft.BasicImage("")';
	}

	function RotateLeft(){
		this.document.images['image'].style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotation=3)';
	}

	function RotateRight(){
		this.document.images['image'].style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotation=1)';
	}

	function zoomImages(factor){
		for (var n=0, Img=document.images, i=0; i<Img.length; i++) {
			if ((Img[i].name.indexOf('image')> -1)) {
				if (((Img[i].width>=32) | (factor>1)) && ((Img[i].width<10000) | (factor<1))) {Img[i].width=Img[i].width*factor;}
			}
		}
	}	
-->
