function changeDivAreaAjax(divname, ahref){

	ahref = ahref + "&imr=" + Math.random()*Math.random();

    jQuery(divname).load(ahref);

    /*
    jQuery.getJSON(ahref + "&jsoncallback=?", function(data){

    	jQuery(divname).html("Please enter Name and Message to get the result!!!");
    })

    */

}


function getJs(ahref, bool_loadInfo){

	if(bool_loadInfo){

		tb_show('Histoclips','#TB_inline?height=140&amp;width=330&amp;inlineId=hiddenModalContentWait&amp;modal=true');

	}

	jQuery.getScript(ahref);

}


/*----------------------------------------------------------*/

function openPopUp(ahref){

	jQuery.fn.colorbox({href:ahref,width:"520px", height:"720px", iframe:true});


}

/*----------------------------------------------------------*/

function sendLink(ahref) {

	tb_show('Histoclips','#TB_inline?height=140&amp;width=330&amp;inlineId=hiddenModalContentWait&amp;modal=true');

	location.href = ahref;

}

/*----------------------------------------------------------*/

function sendLinkConfirm(question, ahref) {

	if(confirm(question)){

       tb_show('Histoclips','#TB_inline?height=140&amp;width=330&amp;inlineId=hiddenModalContentWait&amp;modal=true');

	   location.href = ahref;

    }

}


/*----------------------------------------------------------*/

function sendform(event, formvariable){

   ie = ((document.all) && (window.offscreenBuffering)) ? true : false;
   nn = ((document.captureEvents) && (!document.getElementById)) ? true : false;
   mz = ((document.getElementById) && (!document.all) && (document.documentElement)) ? true : false;
   op = ((document.getElementById) && (navigator.userAgent.indexOf('Opera') != -1)) ? true : false;


   if (ie) {

      if (window.event && window.event.keyCode == 13)
         formvariable.submit();
      else
         return true;

   /*} else if(mz){

   	   if(event.which == 13)
   		  formvariable.submit();
      else
         return true;

   */
   } else{

      //if(event && event.which == 13)
        // formvariable.submit();
      //else
        return true;
   }
}

/*----------------------------------------------------------*/
