function ImageSwap(imgName,imgObjName) {
	if (document.images) {
  		document.images[imgName].src = eval(imgObjName + ".src");
	}
}


function OpenNews(url){ 
	if (navigator.appVersion.indexOf("MSIE") != -1){ 
		IEmajorStart = navigator.appVersion.indexOf("MSIE") + 4; 
		IEmajorEnd = (IEmajorStart + 5);
		theMajor = navigator.appVersion.substring(IEmajorStart, IEmajorEnd);
	}
	
	if (theMajor ==" 4.01"){
		window.open (url,null,"height=490, width=700, left=50, top=0, resizable=yes, scrollbars=yes, status=no toolbar=no, menubar=yes, location=no")    
	} else { 
		window.open (url,null,"height=490, width=700, left=50, top=0, resizable=yes, scrollbars=yes, status=no toolbar=no, menubar=yes, location=no");
	}
}


function OpenNewWeb(url) {
	if (navigator.appVersion.indexOf("MSIE") != -1){ 
		IEmajorStart = navigator.appVersion.indexOf("MSIE") + 4; 
		IEmajorEnd = (IEmajorStart + 5);
		theMajor = navigator.appVersion.substring(IEmajorStart, IEmajorEnd);
	}

	if (theMajor ==" 4.01"){
		window.open (url,null,"height=410, width=700, left=50, top=0, resizable=yes, scrollbars=yes, status=yes, toolbar=yes, menubar=yes, location=yes");
	} else { 
		window.open (url,null,"height=410, width=700, left=50, top=0, resizable=yes, scrollbars=yes, status=yes, toolbar=yes, menubar=yes, location=yes");
	}
}


function OpenNewWin(url){
	if (navigator.appVersion.indexOf("MSIE") != -1){ 
		IEmajorStart = navigator.appVersion.indexOf("MSIE") + 4; 
		IEmajorEnd = (IEmajorStart + 5);
		theMajor = navigator.appVersion.substring(IEmajorStart, IEmajorEnd);
	}

	if (theMajor ==" 4.01"){
		window.open (url,null,"height=490, width=700, left=50, top=0, resizable=yes, scrollbars=no, status=no toolbar=no, menubar=no, location=no")    
	} else { 
		window.open (url,null,"height=490, width=700, left=50, top=0, resizable=yes, scrollbars=no, status=no toolbar=no, menubar=no, location=no");
	}
}


function OpenNewWinScroll(url){ 
      window.open (url,null,"height=490 width=700 left=50 top=0 resizable=yes scrollbars=yes status=no toolbar=no menubar=yes location=no")    
}


function showtip(current,e,text) {
	if (document.all) {
		thetitle=text.split('<br>');
		if (thetitle.length>1){
			thetitles='';
			for (i=0;i<thetitle.length;i++);
			thetitles+=thetitle[i];
			current.title=thetitles;	
		} else {
			current.title=text;
		}
	} else {
		 if (document.layers) {
			document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>');
			document.tooltip.document.close();
			document.tooltip.left=e.pageX+5;
			document.tooltip.top=e.pageY+5;
			document.tooltip.visibility="show";
		}
	}
}


function hidetip() {
	if (document.layers) {
		document.tooltip.visibility="hidden";
	}
}


function OpenWin(url, x, y, l, t) {
	var strOptions = "";
	strOptions = "height="; 
	strOptions += y;
	strOptions += ", width="; 
	strOptions += x;
	strOptions +=", left=";
	strOptions += l;
	strOptions += ", top=";
	strOptions += t; 
	strOptions += ", resizable=no, scrollbars=no, status=no toolbar=no, menubar=no, location=no";
	window.open (url,null,strOptions);
}
