 function openViewPage(url,w,h,l,t) 
 {
	open(url, "_blank", 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+w+',height='+h+',left='+l+', top='+t+',screenX='+l+',screenY='+t);
	//window.open(url, "_blank", "toolbar=auto,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,copyhistory=no,left=145,top=60, width="+w+",height="+h);
}
function ShowPopUp(id,w,h)
{
    var divObj = document.getElementById(id);
    var divObjInfo = divObj.getElementsByTagName("div").item(0);
    
    var LeftPanel =355; //(document.body.offsetWidth/2);
    var TopPanel = 275;
    var WidthPanel = parseInt(w) - 4;
    var HeightPanel = parseInt(h)+ 16;
    divObj.style.left = LeftPanel + 'px';
    divObj.style.top = TopPanel + 'px';
    divObj.style.width = WidthPanel + 'px';
    divObj.style.height =  HeightPanel + 'px';
    divObj.style.visibility = 'visible';
    
    divObjInfo.style.width = w + 'px';
    divObjInfo.style.height = h + 'px';
    divObjInfo.style.overflow = 'auto';
    return false;
}
function HidePopUp(id)
{
    document.getElementById(id).style.visibility='hidden';
    return false;
}
function showImageDetail(DivPicture,BigPicture)
{
    var divObj = document.getElementById(DivPicture);
    var PWidth = document[BigPicture].width + 3;
    var PHeight = document[BigPicture].height + 3;
    divObj.style.width = PWidth + 'px';
    divObj.style.height = PHeight + 'px';
    divObj.style.visibility = 'visible';
    divObj.focus();
    return false;
}
function hideImageDetail(DivPicture)
{
    DivPicture.style.visibility='hidden';
    return false;
}
function Printer(url)
{
    window.open(url, "_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=650,height=600,left=60, top=60,screenX=60px,screenY=60px");
    return false;
}
function SendMail(url)
{
    window.open(url, "_blank","toolbar=no,location=no,directories=no,addressbar=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=530,height=220,left=230, top=120,screenX=230px,screenY=120px");
    return false;
}
function MessageError(msg, url)
{
    alert(msg);
    document.location.href = url;
}
function ShowMenuScroll(id,IndexAtPage)
{
    new ypChaser(id, 0, 500, 0, 50);
    var GetID = document.getElementById(id);
    var ModeScreenCurent = document.body.offsetWidth;
    var BannerScroll = parseInt(IndexAtPage);
    if(ModeScreenCurent <= 778){ GetID.style.display = "none"; }
    GetID.style.left = BannerScroll + "px";
}
