<!-- Hide script from old browsers
   document.WM = new Object();
   document.WM.hirelist = new Object();
   document.WM.hirelist.expandos = new Array();
   document.WM.hirelist.heights = new Array();
   document.WM.hirelist.names = new Array();   
   ns = (document.layers) ? true:false;
   
function ShowHide(id)
{
    if(document.getElementById(id).style.display == 'none')
    {
     document.getElementById(id).style.display = 'block';
    } 
    else 
    {
     document.getElementById(id).style.display = 'none';
    }
}

function spacerBG(arg01,arg02,onOff,tdEle)
		{		
		oarg01 = document.getElementById(arg01);
		oarg02 = document.getElementById(arg02);
		otdEle = document.getElementById(tdEle);
		
		if(onOff == 'on')
		{
			if(tdEle != '')
			{
				otdEle.className="navOn";
			}
			if(arg01 != '')
			{
				oarg01.style.background="#c5d3ca";
			}
			if(arg02 != '')
			{
				oarg02.style.background="#c5d3ca";
			}			
		}
		else
		{
			if(tdEle != '')
			{
				otdEle.className="nav";
			}
			if(arg01 != '')
			{
				oarg01.style.background="#d7e5db";
			}
			if(arg02 != '')
			{
				oarg02.style.background="#d7e5db";
			}
		}
	}
	
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
	{
	   var arVersion = navigator.appVersion.split("MSIE")
	   var version = parseFloat(arVersion[1])
	   if ((version >= 5.5) && (document.body.filters)) 
	   {
	      for(var i=0; i<document.images.length; i++)
	      {
	         var img = document.images[i]
	         var imgName = img.src.toUpperCase()
	         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	         {
	            var imgID = (img.id) ? "id='" + img.id + "' " : ""
	            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
	            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
	            var imgStyle = "display:inline-block;" + img.style.cssText 
	            if (img.align == "left") imgStyle = "float:left;" + imgStyle
	            if (img.align == "right") imgStyle = "float:right;" + imgStyle
	            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
	            var strNewHTML = "<span " + imgID + imgClass + imgTitle
	            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
	            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
	            img.outerHTML = strNewHTML
	            i = i-1
	         }
	      }
	   }    
	}

function popup(url, w, h) { 
	MidX=screen.availWidth/2-100;
	MidY=screen.availHeight/2-100;
	popupdate = new Date()	
	window.open(url,'tag'+popupdate.getTime(),'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,top='+(MidY-(h/2)-45)+',left=20,width='+w+',height='+h);
}

function init() {
	ns = (document.layers) ? true:false;

	subnav01Div = (ns) ? document.subnav01	: subnav01.style;
}

var visible = '';
var showsubnav01 = false;

function ShowMenu(name)
{
	eval('show'+name+' = true;');
	Hide('subnav01');
	Show(name);
	visible = name;
}

function HideMenu(name)
{
	show = eval('show'+name);
	
	if (!show)
	{
	Hide(name);
	}
}
		
function Hide(div)
{
	if (ns)
	{
		eval('document.'+div+'.visibility = "hide";');
	}
	else
	{
		if (navigator.appName == "Netscape") //ns6
		{
			var x = document.getElementById(div)
			x.style.visibility = "hidden";
		}
		else
		{
			eval(div+'.style.visibility = "hidden";');
		}
	}
}


function Show(div)
{
	if (ns)
	{
		eval('document.'+div+'.visibility = "show";');
	}
	else
	{
		if (navigator.appName == "Netscape") //ns6
		{
			var x = document.getElementById(div)
			x.style.visibility = "visible";
		}
		else
		{
			eval(div+'.style.visibility = "visible";');
		}
	}
}

function WM_off(id) {

     if (document.all)
     {
         document.all[id].style.display = 'none';
     }

     if (document.getElementById)
     {
	 document.getElementById(id).style.display = 'none';
     }

     if(document.layers) 
     {
     	  ditem = document.WM.hirelist.names[id];
	  document.WM.hirelist.expandos[ditem].clip.bottom = 0;
     }

   }
   

function WM_toggle(id) {

     if (document.all){

       ;if(document.all[id].style.display == 'none'){

         document.all[id].style.display = '';

       } else {

         document.all[id].style.display = 'none';

       }

     } else if (document.getElementById){

       if(document.getElementById(id).style.display == 'none'){

         document.getElementById(id).style.display = 'block';

       } else {

         document.getElementById(id).style.display = 'none';

       }

     } else if(document.layers) {

         if(parseInt(id + 1)){

   	  ditem = id + 1;

         } else {

   	  ditem = document.WM.hirelist.names[id];

         }

         if(document.WM.hirelist.expandos[ditem].clip.bottom == 0) {

   	     document.WM.hirelist.expandos[ditem].clip.bottom = document.WM.hirelist.heights[ditem];

         } else {

   	  document.WM.hirelist.expandos[ditem].clip.bottom = 0;

         }

         WM_align();

     }

   }

   

function WM_align() {

       var i,j,stupid_netscape_array_infinate_loop_error;

       stupid_netscape_array_infinate_loop_error = document.WM.hirelist.expandos.length;

       for(i=0; i<stupid_netscape_array_infinate_loop_error; i++) {

   		j = i + 1;

   		if(document.WM.hirelist.expandos[j]){

   	    	if(document.layers) {

   				document.WM.hirelist.expandos[j].top = document.WM.hirelist.expandos[i].top + document.WM.hirelist.expandos[i].clip.bottom;

   	   		}

   		}

       }

   }

function WM_initialize_toolbar(){

       if(document.layers) {

   		for(i=0; i<document.layers['container'].document.layers.length; i++){

   	    	document.WM.hirelist.expandos[i] = document.layers['container'].document.layers[i];

   	    	document.WM.hirelist.names[document.layers['container'].document.layers[i].name] = i;

   	    	document.WM.hirelist.heights[i] = document.WM.hirelist.expandos[i].clip.bottom;

   		}

   		for (p=0;p<document.WM.hirelist.expandos.length;p=p+2){

   	    	WM_toggle(p);

   		}

   		document.layers['container'].visibility = 'visible';

       } else if (document.all){

   		for(i = 0; i < document.all('container').all.length; i++){

   		    document.all('container').all[i].style.position = 'relative';

   		    if(document.all('container').all[i].className == 'menu'){

   			document.all('container').all[i].style.display = 'none';

   		    }

   		}

   		document.all('container').style.visibility = 'visible';	

       } else if (document.getElementsByTagName && document.getElementById){

   		var contained = document.getElementById('container').getElementsByTagName('div');

   		for(i = 0; i < contained.length; i++){

   		    contained[i].style.position = 'relative';

   		    if(contained[i].getAttribute('class') == 'menu'){

   			contained[i].style.display = 'none';

   		    }

   		}

   		document.getElementById('container').style.visibility = 'visible';

       }

   }
   
function IsNumeric(strString) 
{ 
    var strValidChars = "0123456789"; 
    var strChar; 
    var blnResult = true; 
    //var strSequence = document.frmQuestionDetail.txtSequence.value; 
    //test strString consists of valid characters listed above 
    if (strString.length == 0) 
        return false; 
    for (i = 0; i < strString.length && blnResult == true; i++) 
    { 
        strChar = strString.charAt(i); 
        if (strValidChars.indexOf(strChar) == -1) 
        { 
            blnResult = false; 
        } 
     } 
    return blnResult; 
}
// End the hiding -->