function checkTickerEntry(frm, obj) 	//obj = <form_name>.<var_name>
{
  if (obj.value.length<1 || obj.value.length>10) 
  {
	alert("Please enter valid ticker!");
	return false;
  }

  return true;  
}


function showHelp(url) 
{
   if (url.indexOf("howToExport")>0)
	myPopup = window.open(url,'previewWindow','scrollbars=yes,resizable=yes,titlebar=no,width=400,height=210,top=20,left=10');
   else
	myPopup = window.open(url,'ValuEngine','scrollbars=yes,resizable=yes,titlebar=no,width=620,height=600,top=20,left=10');
   	
   if (!myPopup.opener)
    	myPopup.opener = self;
   myPopup.focus();   	 
}


function show(object) 
{
    if (document.layers && document.layers[object] != null)
    {

      if(!window.saveInnerWidth) {
        window.onresize = resize;
        window.saveInnerWidth = window.innerWidth;
        window.saveInnerHeight = window.innerHeight;
      }
 
       function resize() {
          if (saveInnerWidth < window.innerWidth ||
          saveInnerWidth > window.innerWidth ||
          saveInnerHeight > window.innerHeight ||
          saveInnerHeight < window.innerHeight )
      {
          window.history.go(0);
      }
}
 

       if((window.innerWidth<640)||(window.innerHeight<50)){
         return;
   }  
        document.layers[object].visibility = 'visible';
}
    else if (document.all)
        document.all[object].style.visibility = 'visible';
}


function hide(object) {
    if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'hidden';
    else if (document.all)
        document.all[object].style.visibility = 'hidden';
}



