﻿// JScript File

function ShowLargeWallpaper(path)
{    
   //alert(path);       
   GCTWindow.open(path,'<b>Large Image</b>',900,750,'true');
   
}
function ShowLargeImage(path)
{    
   //alert(path);       
   GCTWindow.open(path,'<b>Large Image</b>',600,620,'true');
   
}

function ShowGalleryImageDetail(path)
{    
   //alert(path);       
   GCTWindow.open(path,'<b>Image Detail</b>',600,620,'true');
   
}

function showborder(obj)
{
  obj.style.border="5px solid #D10101";
}

function del(obj)
{
   obj.style.border="";
}

function CheckFieldLengthAbout(obj)
      {    
       var  fn=document.getElementById(obj.id);

      // var  fn=obj.id;     
       var mc=799;
       var len = fn.value.length;
       if (len >= mc)
         {
           fn.value = fn.value.substring(0,mc);
           len = mc;
         }
     }

function CheckFieldLengthTellFriend(obj)
      {    
       var  fn=document.getElementById(obj.id);
       // var  fn=obj.id;     
       var mc=299;
       var len = fn.value.length;
       if (len >= mc)
         {
           fn.value = fn.value.substring(0,mc);
           len = mc;
         }
     }

 function CheckFieldLengthNews(obj)
      {    
       var  fn=document.getElementById(obj.id);
       // var  fn=obj.id;     
       var mc=499;
       var len = fn.value.length;
       if (len >= mc)
         {
           fn.value = fn.value.substring(0,mc);
           len = mc;
         }
     }

function ClearTextBox(obj)
{
 
  var  fn=document.getElementById('ctl00_ContentPlaceHolder1_lblMsg').value;
    alert(fn);
}

  
