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=700;
	var h=600;
	var l=2
	var t=2
	l=(screen.availWidth-w)/2;
	t=(screen.availHeight-h)/2;
	var sOption="resizable=yes,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 ContentDiv =  window.opener.document.getElementById('content');
	var ContentDiv2 =  window.opener.document.getElementById('content2');
	var Parent_Title =  window.opener.document.title;
	document.title=Parent_Title;
	
	if(ContentDiv2){
		PrintDiv.innerHTML = ContentDiv.innerHTML + ContentDiv2.innerHTML;
	} else{

		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].removeAttribute("href");           
		}
	}
}

function irashomePopUpWindow(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;
}
function irashomeCloseWindow(hWind) 
{
	try { if (hWind) { window.open("javascript:close()",hWind) } } catch(errC) {}	
	return true;
}
