function noHREF(id) { document.getElementById(id).href="#"; return true; }
function swpIMG(id,src) { try {if (strhml1selectedid==id) {return true;} } catch(errC){} document.getElementById(id).src=src; return true; }

function bookmark(url,title){
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) 
	{ window.external.AddFavorite(url,title);	}
	else
	{ alert("Press CTRL-D (Netscape and Firefox) or CTRL-T (Opera) to bookmark");}
}

function printThisPage() 
{ 
	var w=550;
	var h=600;
	var l=2
	var t=2
	l=(screen.availWidth-w)/2;
	t=(screen.availHeight-h)/2;
	var sOption="toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width="+ w  +",height="+ h +",left="+ l +",top="+ t +""; 			   
	var winprint=window.open("print.aspx","Print",sOption); 			 
	winprint.focus(); 
}

function getPrintContent()
{     
	var PrintDiv =  document.getElementById('divPrintContent');
	var ContentDiv =  window.opener.document.getElementById('divContent');
	var Parent_Title =  window.opener.document.title;
	document.title=Parent_Title;
	PrintDiv.innerHTML = ContentDiv.innerHTML;            
	var ai=0;
	for(ai=0;ai<document.getElementsByTagName('a').length;ai++)
	{
		if ((document.getElementsByTagName('a')[ai].id!='hyperlinkPrint')&&(document.getElementsByTagName('a')[ai].id!='hyperlinkClose'))
		{
			document.getElementsByTagName('a')[ai].href='#';
			document.getElementsByTagName('a')[ai].onclick='return false;';
			document.getElementsByTagName('a')[ai].target='_self';            
		}
	}
}

function hePopUpWindow(url, hWind, nWidth, nHeight, nScroll, nResize) 
{
	var popupwin,  cToolBar;
	cToolBar = 'toolbar=0,location=0,directories=0,status=' + nResize + ',menubar=0,scrollbars=' + nScroll + ',resizable=' + nResize + ',width=' + nWidth + ',height=' + nHeight;
	popupwin = window.open(url, hWind, cToolBar);
	return popupwin;
}
