function SUBDROP(HWHAT){
	HWHAT.style.display='block';
	}

function ValueChange( elementname, nValue )  { 
	elementname.value = nValue; 
	return false; 
} 

function SUBHIDE(HWHAT){
	HWHAT.style.display='none';
	}

function SHOWPIC(PICNAME,IMGTITLE){
	DS=window.open('','','status=no,toolbars=no,menubar=no,width=500,height=500,scrollbars=yes,resizable=yes');
/*	DS.document.write('<html><head><title>'+IMGTITLE+'</title></head><body><table style="height:100%;width:100%;border:1 solid;vertical-align:middle;">					  <tr><td valign="top"><font face="verdana" size="2"><b>Zoom:</b></font> 					  <input type="button" onclick="ZIMG.style.zoom=(parseInt(ZIMG.style.zoom)+20)+\'%\';" value="+">					  <input type="button" onclick="ZIMG.style.zoom=(parseInt(ZIMG.style.zoom)-20)+\'%\';" value="-">					  <input type="button" onclick="ZIMG.style.zoom=\'100%\';" value="Reset"></td></tr><tr><td align="center"					  <img name="ZIMG" onerror="this.src=\'aspx_img/noimg.jpg\'" src="'+PICNAME+'" style="zoom:100%;">					  </td></tr></table></body></html>');
	*/
	DS.document.write('<html><head><title>'+IMGTITLE+'</title></head><body><html><head><title>'
					  +IMGTITLE+'</title></head><script language="JavaScript">var mH=0, mW=0;function zoomx(mInOutReset){	if (mW==0) mW = document.ZIMG.width;	if (mH==0) mH = document.ZIMG.height;	if (mInOutReset=="IN")      {document.ZIMG.width += 20;      document.ZIMG.height += 20;}	else if (mInOutReset=="OUT")	  {document.ZIMG.width -= 20;      document.ZIMG.height -= 20;}	else	   {document.ZIMG.width = mW;	   document.ZIMG.height = mH;}}</script><body>	<table style="height:100%;width:100%;border:1 solid;vertical-align:middle;">	  <tr><td valign="top"><font face="verdana" size="2"><b>Zoom:</b></font> 		<input type="button" onClick="zoomx(\'IN\');" value="  +  ">		<input type="button" onClick="zoomx(\'OUT\');" value="  -  ">		<input type="button" onClick="zoomx(\'Reset\');" value="Reset">		</td></tr><tr><td align="center">	  <img name="ZIMG" src="'+PICNAME+'" style="zoom:100%;"></td></tr>	</table></body></html>');

	}
	
function HTMLDCODE(c){
	var d='';
	var a=0;
	for (i = 1; i <= c.length; i++)
	{
		{if (c.substr(i,1) != '<' && a!=0)
			{d+=c.substr(i,1);}}
	
		{if (c.substr(i,1) == '<' )
			{a=0;}}
		{if (c.substr(i,1) == '>' )
			{a=i;}}
   
	}
	return d;
}

function SHOWMYPIC(PICNAME)
{
	DS=window.open('','','status=no,toolbars=no,menubar=no,width=500,height=500,scrollbars=yes,resizable=yes');
	DS.document.write('<html><head><title>title</title></head><body><html><head><title>title</title></head><script language="JavaScript">var mH=0, mW=0;function zoomx(mInOutReset){	if (mW==0) mW = document.ZIMG.width;	if (mH==0) mH = document.ZIMG.height;	if (mInOutReset=="IN")      {document.ZIMG.width += 20;      document.ZIMG.height += 20;}	else if (mInOutReset=="OUT")	  {document.ZIMG.width -= 20;      document.ZIMG.height -= 20;}	else	   {document.ZIMG.width = mW;	   document.ZIMG.height = mH;}}</script><body>	<table style="height:100%;width:100%;border:1 solid;vertical-align:middle;">	  <tr><td valign="top"><font face="verdana" size="2"><b>Zoom:</b></font> 		<input type="button" onClick="zoomx(\'IN\');" value="  +  ">		<input type="button" onClick="zoomx(\'OUT\');" value="  -  ">		<input type="button" onClick="zoomx(\'Reset\');" value="Reset">		</td></tr><tr><td align="center">	  <img name="ZIMG" src="'+PICNAME+'" style="zoom:100%;"></td></tr>	</table></body></html>');

	}

function DETAIL(blk) {
	var pic = document.getElementById(blk);
	if(pic.style.display == "none")
		{
			pic.style.display = "";

		}
	else
		{
			pic.style.display = "none";
		}
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function tt_start(x) 
{
  tt_f=x
  tt_tid=window.setTimeout("move()",tt_speed);
}

// Ticker used with 'command line' parameters
// Usage: ticker1("message goes here", length of text box here, speed here)
// Speed: the smaller the number the faster the scroll
function ticker1(m,l,s) 
{
  tt_message=m
  tt_len=l
  tt_speed=s
  document.write('<FORM name=tickertapeform><input name=scroll size=')
  document.write(tt_len)
  document.write(' value=""></FORM>')
  tt_start(document.tickertapeform);
}
