function OnJumpToChanged()
{
        if (document.forms['analyze'].jumpto.value == '')
        {
                document.forms['analyze'].jumpto[0].selected = 1;
                document.forms['analyze'].jumpto.selection = 0;
                return;
        }

        window.location.href = document.forms['analyze'].jumpto.value;
}

function getX( oElement )
{
var iReturnValue = 0;
while( oElement != null ) {
iReturnValue += oElement.offsetLeft;
oElement = oElement.offsetParent;
}
return iReturnValue;
}


function popUpWin(url, newWidth, newHeight) 
{
	PrintWindow=window.open(url,"_blank",
"toolbar=no,location=no,status=no,menubar=no,resizable=no,scrollbars=no,width=" + newWidth  + ",height=" + newHeight + 
	",left=150,top=40");
}

        function FormShowAll(formname)
        {
		document.forms[formname].filter.value = "";
                document.forms[formname].submit();
        }

        function FormCheckSearchString(formname)
        {
                var     t = document.forms[formname].filter.value;

                if (t.length<3)
                {
                        alert("Minimum 3 characters required to search");
                        return;
                }

                document.forms[formname].submit();
        }

function stripslashes(str) {
str=str.replace(/\\'/g,'\'');
str=str.replace(/\\"/g,'"');
str=str.replace(/\\\\/g,'\\');
str=str.replace(/\\0/g,'\0');
return str;
}

function InterstitialClose()
{
interstitialBox.closeit();
}

function HideFormResult()
{
        target = document.getElementById("FormResult");

	if (!target) return;

	target.style.display = "none";
}

function OnJumpToLocation()
{
        if (document.forms['search'].g.value=="")
        {
                document.forms['search'].g[0].selected = true;
                return;
        }

        window.location.href = document.forms['search'].g.value;
}


function popUpWinResize(url, newWidth, newHeight)
{
        PrintWindow=window.open(url,"_blank",
"toolbar=no,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=" + newWidth  + ",height=" + newHeight +
        ",left=150,top=40");
}


function display_image(selection) { 

var Str = new String(selection);

//However you want to choose the background image, stick it in a variable here.
PreView = window.open("", "Preview", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,copyhistory=0,width=400,height=300,left=50,top=50"); 
PreView.document.open(); 
PreView.document.write("<HTML><HEAD>"); 
PreView.document.write("<TITLE>Preview</TITLE>"); 
PreView.document.write("</HEAD><BODY BGCOLOR=FFFFFF TEXT=000000>"); 
//Foreground Image (adjust the top however you want)
PreView.document.write("<IMG HSPACE=0 VSPACE=0 ");
//Set the width and height of the foreground image here if you want

if (Str.indexOf("http")!=-1 || Str.indexOf("http")!=-1)
{
PreView.document.write("SRC='"+selection+"'>");
}
else
{
PreView.document.write("SRC='file:/"+selection+"'>");
}
//Rest of form
PreView.document.write("<p align=right><FORM><INPUT TYPE='button' VALUE='Close' ")
PreView.document.write("onClick='window.close()'></FORM></p>"); 
PreView.document.write("</BODY></HTML>"); 
PreView.document.close(); 
   } 

function OnIfTrue(val)
{
	if (val) return "on";

	return "";
}

function do_write( frames_fmain, frames_main, text_to_write )
{
	window.parent.frames[frame_fname].window.frames[frame_name].window.document.write( text_to_write ) ;

	if (typeof(scrollBy) != 'undefined')
	{
		window.parent.frames[frame_fname].window.frames[frame_name].window.scrollBy(0, 50000) ;
		window.parent.frames[frame_fname].window.frames[frame_name].window.scrollBy(0, 50000) ;
	}
	else if (typeof(scroll) != 'undefined')
	{
		window.parent.frames[frame_fname].window.frames[frame_name].window.scroll(0, 50000) ;
		window.parent.frames[frame_fname].window.frames[frame_name].window.scroll(0, 50000) ;
	};
}

function getUnique()
{
	date = new Date() ;
	return date.getTime() ;
}

function popUpErrorWin(url) 
{
	PrintWindow=window.open(url,"_blank","toolbar=no,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=450,height=400"+
	",left=30,top=30");

}

function openNew(myUrl,windowName)
 {
   newWin = window.open(myUrl,windowName)
 }

function OnImagePreview(form, cell)
{
	target = document[form][cell];

	if (target.value == "")
	{
		alert("Please select a file first.");
		return;
	}

	{	
		display_image(target.value);
		//popUpWin(target.value,400,300);
	}
}

function popUpImage(url_image, title, newWidth, newHeight) 
{
	PrintWindow=window.open("http://softwareprojects.com/show_image.php?src=" + url_image + "&title=" + title,"_blank","toolbar=no,location=no,status=no,menubar=no,resizable=no,scrollbars=no,width=" + newWidth  + ",height=" + newHeight + 
	",left=150,top=150");
}

var hexVals = new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");
var unsafeString = "?&=\"<>%\\^[]`";

function highlight(element1){element1.focus();element1.select();}

function URLDecode()
{
	var returnstr=unescape(form1.string1.value);

	return returnstr;
        // while coding i found that IE had problem writing '<form>' to innerhtml. </form> was ok. 'unknown runtime error' IE5.5.
}

function URLEncode(val)
{
        var state   = 'urlenc';
        var len     = val.length;
        var backlen = len;
        var i       = 0;

        var newStr  = "";
        var frag    = "";
        var encval  = "";

        for (i=0;i<len;i++) 
        {
                if (isURLok(val.substring(i,i+1)))
                {
                        newStr = newStr + val.substring(i,i+1);
                }
                else
                {
                        tval1=val.substring(i,i+1);
                        newStr = newStr + "%" + decToHex(tval1.charCodeAt(0),16);
                }
        }

		return newStr;
}

function decToHex(num, radix) // part of URL Encode
{
        var hexString = "";
        while (num >= radix)
        {
               temp = num % radix;
               num = Math.floor(num / radix);
               hexString += hexVals[temp];
        }
        hexString += hexVals[num];
        return reversal(hexString);
}

function reversal(s) // part of URL Encode
{
        var len = s.length;
        var trans = "";
        for (i=0; i<len; i++)
        {
                trans = trans + s.substring(len-i-1, len-i);
        }
        s = trans;
        return s;
}

function isURLok(compareChar) // part of URL Encode
{
        if (unsafeString.indexOf(compareChar) == -1 && compareChar.charCodeAt(0) > 32 && compareChar.charCodeAt(0) < 123) 
        {
                return true;
        }
        else
        {
                return false;
        }
}

function StrRemoveAllDirectories(directory)
{
	var Str = new String(directory);

	do
	{
		SlashPos = Str.indexOf("/");
		if (SlashPos<0)	SlashPos = Str.indexOf("\\");
		if (SlashPos<0)	SlashPos = Str.indexOf(":");

		if (SlashPos >= 0)
		{
			Str = Str.substring(SlashPos+1, Str.length);
		}

	} while (SlashPos>=0);

	return Str;
}

function StrRemoveAllSpaces(directory)
{
	var Str = new String(directory);
	var Tmp = new String("");

	do
	{
		SlashPos = Str.indexOf(" ");
		if (SlashPos >= 0)
		{
			if (SlashPos>0)
				Tmp = Str.substring(0, SlashPos);
			else
				Tmp = "";

			Str = Tmp + Str.substring(SlashPos+1, Str.length);
		}

	} while (SlashPos>=0);

	return Str;
}

function isEmailAddr(email)
{
  var result = false;
  if (email.length > 3)
  {
  	var theStr = new String(email);
  	var index = theStr.indexOf("@");
  	if (index > 0)
  	{
    	var pindex = theStr.indexOf(".",index);
    	if ((pindex > index+1) && (theStr.length > pindex+1))
			result = true;
  	}
  }
  return result;
}

function OnWizardSubmit(form_name, location, validate_func)
{
	if (location != '')
	{
		document.forms[form_name].rr_redirect1.value = location;
	}

	if (validate_func != "")
	{
//		alert( validate_func);
		eval(validate_func);
	}
	else
	{
		document.forms[form_name].submit();
	}
}

function isInt(numIn)
{
	var checknum = parseInt(numIn,10);
	return !isNaN(checknum);
}


function isStrEqNoCase(str1,str2)
{
  return str1.toUpperCase()==str2.toUpperCase();
}

function indexOfNoCase(str1,str2)
{
  return str1.toUpperCase().indexOf(str2.toUpperCase());
}

function strAfter(str,strStart)
{
	var returnStr = "";
	var start = str.indexOf(strStart);
	if (start >= 0)
		returnStr = str.substring(start + strStart.length,str.length);
	return returnStr;
}

function strInBetween(str,strStart,strEnd)
{
	var returnStr = "";
	var start = str.indexOf(strStart);
	if (start >= 0)
	{
		start += strStart.length;
		var end = str.indexOf(strEnd,start);
		
		if (end >= 0)
			returnStr = str.substring(start,end);
	}
	return returnStr;
}

function strReplaceAll(str,strFind,strReplace)
{
	var returnStr = str;
	var start = returnStr.indexOf(strFind);
	while (start>=0)
	{
		returnStr = returnStr.substring(0,start) + strReplace + returnStr.substring(start+strFind.length,returnStr.length);
		start = returnStr.indexOf(strFind,start+strReplace.length);
	}
	return returnStr;
}

function handleClick(funct)
{
	var result = eval( funct + "('" + document.strtest.arg1.value + "','" +
		document.strtest.arg2.value + "','" +
		document.strtest.arg3.value + "')" );
	document.strtest.result.value = result;
}

function SafeDIVGet(name)
{
	if (document.all)
	{
		return eval("document.all."+name);
	}
	else
	{
		return eval("document.ilayer.document."+name);
	}
}

function SafeDIVSetHTML(name, html)
{
	if (document.all)
	{
		SafeDIVGet(name).innerHTML = html;
	}
	else
	{
		SafeDIVGet(name).document.write (html);
		SafeDIVGet(name).document.close ();
	}
}


function OnClearImage(form, image_location, image_empty)
{
	if (document.forms[form].set_picture[0].checked != "")
	{
		document.forms[form].new_picture.disabled = false;

		// Show original image
		document.forms[form].orig_image.src = image_location;
	}
	else
	{
		document.forms[form].new_picture.disabled = true;//style = "display: disabled";//.display = "disabled";//readonly = false;

		// Show empty image
		document.forms[form].orig_image.src = image_empty;
	}
}

function GetDayPrefix(day)
{
	daymod = day % 10;

	switch (daymod)
	{
		case 1:
			return "st";
		break;

		case 2:
			return "nd";
		break;

		case 3:
			return "rd";
		break;

		default:
			return "th";
		break;
	}
}

function makeArray0() {
    for (i = 0; i<makeArray0.arguments.length; i++)
        this[i] = makeArray0.arguments[i];
}

function DateWindow2(formObject,title,target,formname)
{


        str = new String(formObject.value);

        if (str.length<14 || str == "0000-00-00 00:00:00")
        {
                var today=new Date();
                mprefix = '';
                dprefix = '';

                day_num         = today.getDate();
                month_num       = today.getMonth();
                year_num        = today.getYear();
                if (year_num<1900)
                        year_num += 1900;

        day             =  day_num;
                month   =  month_num;
                year    =  year_num;
        }
        else
        {
                mdelta  = 0;
                ddelta  = 0;

            day         = parseInt(str.substring(8,10),10);
                month   = parseInt(str.substring(5,7),10)-1 ;
                year    = parseInt(str.substring(0,4),10);
        }

	
        ShowDialog("/modaldialog_popup.php?title="+URLEncode("Select Date")+
        "&src="+URLEncode('/date_picker.php?title='+URLEncode(title)+'&formname='+URLEncode(formname)+'&target='+target
	)+'&resizable=no&width=350&height=300');

}

var day;
var month;
var year;

function DateWindow(formObject,title,target,formname)
{
	str = new String(formObject.value);



	if (str.length<14 || str == "0000-00-00 00:00:00")
	{
		var today=new Date();
		mprefix = '';
		dprefix = '';

		day_num		= today.getDate();
		month_num	= today.getMonth();
		year_num	= today.getYear();
		if (year_num<1900)
			year_num += 1900;

	
	day		=  day_num;
		month	=  month_num;
		year	=  year_num;
	}
	else
	{
		mdelta	= 0;
		ddelta	= 0;



	    day		= parseInt(str.substring(8,10),10);
		month	= parseInt(str.substring(5,7),10)-1 ;
		year	= parseInt(str.substring(0,4),10);
	}


 mywindow=window.open('http://www.softwareprojects.com/date_picker.php?title='+URLEncode(title)+'&formname='+URLEncode(formname)+'&target='+target,'myname',
'resizable=no,width=350,height=300,top=100,left=150');
 if (mywindow.opener == null)
 {
  mywindow.opener = self;
 }
}

var days      = new makeArray0("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var months     = new makeArray0('January','February','March','April','May','June','July','August','September','October','November','December');

function DateChanged(day,month,year, obj_timestamp, obj_str)
{
	if (year<1900)
		year+=1900;
	dprefix = '';
	mprefix = '';
	if (month<10)
	{
		mprefix = '0';
	}
	if (day<10)
	{
		dprefix = '0';
	}

	obj_timestamp.value = year + '-' +  mprefix + month +  '-' + dprefix + day + ' 12:12:12';


	firstDay = new Date(year,month-1,day);
	startDay = firstDay.getDay();

	obj_str.value = days[startDay] + ', '+ months[month-1]+' '+day+GetDayPrefix(day)+', '+year;

	
}


function primNav(menuItem, bon) {
        if( document.getElementById ) {
                newClass = '';
                if (bon) {
                        newClass = "nav1on";
                }
                menuItem.parentNode.className = newClass;
        }
}
function secNav(menuItem, bon) {
        if( document.getElementById ) {
                newClass = '';
                if (bon) {
                        newClass = "nav2on";
                }
                menuItem.parentNode.className = newClass;
        }
}


//Last modified: Nov 26th, 06' (New: disable webpage scrollbar, auto hide after x seconds options, 


var savedpagebeforeclose = "";
var is_loaded = 0;

function ShowHideDocCombos(show, doc)
{
var comboList = doc.getElementsByTagName("SELECT");
for (var i = 0; i < comboList.length; i++)
comboList[i].style.display = (show) ? "" : "none";
}

var interstitialBox={
//1) list of files on server to randomly pick from and display
displayfiles: ['samplecontent.htm', 'samplecontent2.htm'],

//2) display freqency: ["frequency_type", "frequency_value"]
displayfrequency: ["chance", "0"],

//3) HTML for the header bar portion of the interstitial box
defineheader: '<div class="headerbar" ><a href="javascript:interstitialBox.closeit();"><img src="https://softwareprojects.com/images/closeit.gif" style="border: 0" title="Close Box"/></a></div>',

//4) cookie setting: ["cookie_name", "cookie_path"]
cookiesetting: ["stitialcookie", "path=/"],

//5) bust caching of pages fetched via Ajax?
ajaxbustcache: true,

//6) Disable browser scrollbars while interstitial is shown (Only applicable in IE7/Firefox/Opera8+. IE6 will just auto scroll page to top)?
disablescrollbars: true,

//7) Auto hide Interstitial Box after x seconds (0 for no)?
autohidetimer: 0,

////No need to edit beyond here//////////////////////////////////

ie7: window.XMLHttpRequest && document.all && !window.opera,
ie7offline: this.ie7 && window.location.href.indexOf("http")==-1, //check for IE7 and offline
launch:false,
scrollbarwidth: 16,

ajaxconnect:function(url, thediv){
var page_request = false
var bustcacheparameter="";

if (savedpagebeforeclose!="") 
{
this.interContainer.innerHTML = savedpagebeforeclose;
//this.interContainer.style.visibility="visible";
}

if (window.XMLHttpRequest && !this.ie7offline) // if Mozilla, IE7 online, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE6 or below, or IE7 offline (for testing purposes)
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.onreadystatechange=function(){
interstitialBox.loadpage(page_request, thediv)
}
if (this.ajaxbustcache) //if bust caching of external page
bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()

page_request.open('GET', url+bustcacheparameter, true)
page_request.send(null)
},


loadpage:function(page_request, thediv){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
ShowHideDocCombos(0,document);
document.getElementById("interContent").innerHTML=page_request.responseText;
is_loaded = 1;
}
},

createcontainer:function(){
//write out entire HTML for Interstitial Box:
document.write('<div id="interContainer" ><table width="100%" cellspacing=0 cellpadding=0 border=0><tr><td class=TextMedium><div id="title"></div></td><td align=right>'+this.defineheader+'</td></tr></table><div id="interContent"><span class=TextMedium>Loading... Please Wait</span></div></div><div id="interVeil"></div>')
this.interContainer=document.getElementById("interContainer") //reference interstitial container
this.title=document.getElementById("title")
this.interVeil=document.getElementById("interVeil") //reference veil
this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
},


showcontainer:function(width){
//if (this.interContainer.style.display=="none") return //if interstitial box has already closed, just exit (window.onresize event triggers function)
var ie=document.all && !window.opera
var dom=document.getElementById
var scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset
var scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset
var docwidth=(ie)? this.standardbody.clientWidth : window.innerWidth-this.scrollbarwidth
var docheight=(ie)? this.standardbody.clientHeight: window.innerHeight
var docheightcomplete=(this.standardbody.offsetHeight>this.standardbody.scrollHeight)? this.standardbody.offsetHeight : this.standardbody.scrollHeight
this.interContainer.style.width = width;
//this.interContainer.style.height = 400;
var delta = 0;
var objwidth=this.interContainer.offsetWidth
var objheight=this.interContainer.offsetHeight
this.interVeil.style.width=(docwidth+delta+100)+"px" //set up veil over page
this.interVeil.style.height=(docheightcomplete+100)+"px" //set up veil over page
this.interVeil.style.left=-100; //Position veil over page
this.interVeil.style.top=-100 //Position veil over page
this.interVeil.style.visibility="visible" //Show veil over page
this.interContainer.style.left=docwidth/2-objwidth/2+"px" //Position interstitial box
var topposition=(docheight>objheight && 0 )? scroll_top+docheight/2-objheight/2+"px" : scroll_top+35+"px" //Position interstitial box
this.interContainer.style.top=Math.floor(parseInt(topposition))+"px"
this.interContainer.style.visibility="visible" //Show interstitial box
},


closeit:function(){
if (savedpagebeforeclose=="" && is_loaded)
{
 savedpagebeforeclose = this.interContainer.innerHTML;
}
this.interVeil.style.visibility="hidden";
this.interVeil.style.height=0;
this.interContainer.style.visibility="hidden";
this.standardbody.style.overflow = "auto";
if (is_loaded) this.interContainer.innerHTML = "";
//if (this.disablescrollbars && window.XMLHttpRequest) //if disablescrollbars enabled and modern browsers- IE7, Firefox, Safari, Opera 8+ etc
ShowHideDocCombos(1,document);
},

getscrollbarwidth:function(){
var scrollbarwidth=window.innerWidth-(this.interVeil.offsetLeft+this.interVeil.offsetWidth) 
this.scrollbarwidth=(typeof scrollbarwidth=="number")? scrollbarwidth : this.scrollbarwidth
},

hidescrollbar:function(){
if (this.disablescrollbars){ //if disablescrollbars enabled
if (window.XMLHttpRequest) //if modern browsers- IE7, Firefox, Safari, Opera 8+ etc
this.standardbody.style.overflow="hidden"
else //if IE6 and below, just scroll to top of page to ensure interstitial is in focus
window.scrollTo(0,0)
}
},

dotask:function(target, functionref, tasktype){ //assign a function to execute to an event handler (ie: onunload)
var tasktype=(window.addEventListener)? tasktype : "on"+tasktype
if (target.addEventListener)
target.addEventListener(tasktype, functionref, false)
else if (target.attachEvent)
target.attachEvent(tasktype, functionref)
},

displaycontent:function(myurl,width,title){
this.ajaxconnect(myurl, this.interContainer)
//interstitialBox.hidescrollbar(); 
interstitialBox.getscrollbarwidth();
this.title.innerHTML = title;
setTimeout("interstitialBox.showcontainer("+(width+100)+")", 500);
//this.dotask(window, function(){
// setTimeout("interstitialBox.showcontainer()", 100)}, "load")
},

initialize:function(){
this.createcontainer() //write out interstitial container
}

}

/////////////End of interstitialBox object declaration here ////////////////////////////////

function getCookie(Name){
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1] //return its value
return null
}

function setCookie(name, value, days){
var expireDate = new Date()
//set "expstring" to either an explicit date (past or future)
if (typeof days!="undefined"){ //if set persistent cookie
var expstring=expireDate.setDate(expireDate.getDate()+parseInt(days))
document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; "+interstitialBox.cookiesetting[1]
}
else //else if this is a session only cookie setting
document.cookie = name+"="+value+"; "+interstitialBox.cookiesetting[1]
}


var stitialvars=new Object() //temporary object to reference/ shorthand certain interstitialBox properties
stitialvars.freqtype=interstitialBox.displayfrequency[0] //"chance" or "cookie"
stitialvars.cookieduration=interstitialBox.displayfrequency[1] //"session" or int (integer specifying number of days)
stitialvars.cookiename=interstitialBox.cookiesetting[0] //name of cookie to use







var offsetfromedge=0      //offset from window edge when content is "docked". Change if desired.
var dockarray=new Array() //array to cache dockit instances

function dockit(el, duration)
{
if (document.all)
this.source = document.all[el];
else this.source = document.getElementById(el);
this.source.height=this.source.offsetHeight;
this.docheight=truebody().clientHeight;
this.duration=duration;
this.pagetop=0;
this.elementoffset=this.getOffsetY();
dockarray[dockarray.length]=this;
var pointer=eval(dockarray.length-1);
var dynexpress='dkclear['+pointer+']=setInterval("dockornot(dockarray['+pointer+'])",1);'; dynexpress=(this.duration>0)? dynexpress+'setTimeout("clearInterval(dkclear['+pointer+']); dockarray['+pointer+'].source.style.top=0", duration*1000)' : dynexpress;
eval(dynexpress);
}

dockit.prototype.getOffsetY=function(){
var totaloffset=parseInt(this.source.offsetTop);
var parentEl=this.source.offsetParent;
while (parentEl!=null){
totaloffset+=parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function dockornot(obj){
obj.pagetop=truebody().scrollTop;
if (obj.pagetop>obj.elementoffset) //detect upper offset
obj.source.style.top=obj.pagetop-obj.elementoffset+offsetfromedge+"px";
else if (obj.pagetop+obj.docheight<obj.elementoffset+parseInt(obj.source.height)) //lower offset
obj.source.style.top=obj.pagetop+obj.docheight-obj.source.height-obj.elementoffset-offsetfromedge+"px";
else
obj.source.style.top=0;
}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function DisplayDemo(n)
{
        interstitialBox.displaycontent
        ("/resources/displaydemo.php?filename="+URLEncode(n), 550, "Demo Video");

}

function setActiveStyleSheet(title) {
   var i, a, main;
   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
     if(a.getAttribute("rel").toLowerCase().indexOf("style") != -1
        && a.getAttribute("title")) {
       a.disabled = true;
       if(a.getAttribute("title") == title) a.disabled = false;
     }
   }
}

/*
        var myservices_noblur=1;

        function UpdateMyServicesBox()
        {
            var visibility_state = getComputedStyleForElement(document.getElementById('quickJump'),'visibility');

            if ( visibility_state=='hidden' || visibility_state=='')
            {
                document.getElementById('quickJumpSelect').remove(0);
                document.getElementById('dropDownTitle').onclick = function()
                {
                    document.getElementById('quickJumpSelect').style.position = 'absolute';
                    document.getElementById('quickJumpSelect').style.left = -document.getElementById('quickJumpSelect').offsetWidth;
                    document.getElementById('quickJumpSelect').style.top = 2;// = document.getElementById('quickJump').offsetTop;
                    document.getElementById('quickJumpSelect').size=15;
                    document.getElementById('quickJump').style.visibility = 'visible';
                    myservices_noblur=1;
                    document.getElementById('quickJumpSelect').focus();
                    setTimeout('myservices_noblur=0;',100);
                };
                document.getElementById('quickJumpSelect').onblur = function()
                {
                    if (myservices_noblur) return;
                    document.getElementById('quickJump').style.visibility='hidden';
                };
            }
        }
*/

// gets an elements css style from a style sheet or inline
function getComputedStyleForElement (element, cssPropertyName) 
{
	if (element) 
	{
		if (window.getComputedStyle) 
		{
			return window.getComputedStyle(element,'').getPropertyValue(cssPropertyName.replace(/([A-Z])/g,"-$1").toLowerCase());
		}
		else if (element.currentStyle) 
		{
			return element.currentStyle[cssPropertyName];
		}
		else 
		{
			return null;
		}
	}
	else 
	{
		return null;
	}
}

