﻿ //To Clear The Text on Focus
 function doClear(theText) 
{
     if (theText.value == theText.defaultValue)
 {
         theText.value = ""
     }
 }
//To Handle Clik On Press Enter 
    function clickButton(e, buttonid)
    {
      var evt = e ? e : window.event;
      var bt = document.getElementById(buttonid);
      if (bt)
      { 
          if (evt.keyCode == 13)
          { 
               bt.click(); 
               return false; 
          } 
     } 
    }
// To Open FullScreen Window    
function openFullWindow(url,name) {
	name = 'w' + Math.round(Math.random()*(1000000000));
	w = screen.width - 10;
	h = screen.height - 40;
	window.open(url,name,'toolbar=no,menubar=no,resizable=yes,scrollbars=yes,left=0,top=0,width=' + w + ',height=' + h);
}
//To Bold the selected Link in User Section
function show_url()
{
var x=window.location.href.substring(window.location.href.indexOf('user/')+5)
x=x.substring(0,x.indexOf(".aspx")+5);
if(document.getElementById(x))
{
document.getElementById(x).style.fontWeight="bold";
}
var strFolder=window.location.href.substring(window.location.href.indexOf('user/')+5)
if(document.getElementById(strFolder))
{
document.getElementById(strFolder).style.fontWeight="bold";
}
}    
//To Display Conversion Animation
function showDiv() 
{ 
document.getElementById("progressBackgroundFilter").style.display = "block";
document.getElementById("processMessage").style.display = "block";
//document.getElementById("divProcessing").style.display = "block";
//var div1 = document.getElementById('processingtxt');
//div1.style.display = 'block';
} 
//To Show Hide Div
function setVisibility(div_id) 
{
document.getElementById(div_id).style.visibility = "visible";
document.getElementById(div_id).style.display = "block";
}
//To Show Div
function Show_MYDiv(div_id) 
{
document.getElementById(div_id).style.display = "block";
}
//To Hide Div
function Hide_MYDiv(div_id) 
{
document.getElementById(div_id).style.display = "none";
}

