﻿// JScript File Exetend dd_uncompressed

function disabledcombo(id, disabled) {
	document.getElementById(id).disabled = disabled;
	//custom function
	if(document.getElementById(id).refresh!=undefined)
			document.getElementById(id).refresh();
}

function loadUrl(byURL) {
  if (byURL != undefined) {
    window.location.href = byURL;
  }  
}

function showPDF(byFileURL) {
  if (byFileURL === undefined) {
    if (acrobatPDFversion < 7) {
      alert('You are using an earlier version of Acrobat or Reader that cannot view PDF 3D Model.Please download the lastest version of Acrobat Reader.');
      window.open("http://www.adobe.com/reader","getLastVersionAcrobatReader","scrollbars=no,resizable=yes,status=no,location=no,toolbar=no,directories=no,menubar=no,width=700,height=600,top=0,left=0");
      return false;                      
    }else{
        $('#hiddenModalContentPDF').attr("src",byFileURL);
        tb_init('a.thickbox');
        var URL = byFileURL + "?TB_iframe=true&height=650&width=720";
        var caption = myCaption;
        var imageGroup = false
        tb_show(caption,URL,imageGroup);
        $("#TB_window").fadeIn('Fast');			                                          
    }
  }  
}

