﻿function tgtRec(arg1, arg2, arg3, arg4,arg5) {
    // 
    // Instead of a form value being written the server is being called
    // document.getElementById('targetFrame').contentWindow.targetFunction(); 
   //  var lgc = document.getElementById("iLgc");
    // lgc.contentWindow.tgtRec(value);
    switch(arg1)
    {
    case '#':
        document.getElementById("iLgc").contentWindow.tgtRec(arg1,arg2,arg3,arg4,arg5);
        break;
    case '?':
        document.getElementById("iLgc").contentWindow.tgtRec(arg1, arg2, arg3, arg4, arg5);
        break;
    case 'd':
        document.getElementById("iLgc").contentWindow.tgtRec(arg1, arg2, arg3, arg4, arg5);
        break;

        default:

    }
        // the call to the server will reply
}


function tgtResp(arg1, arg2, arg3, arg4, arg5) {
    //method,frame,src,ht,wid
    switch(arg1)
    {
    case '#':
        document.getElementById(arg2).src = arg3;
        document.getElementById(arg2).height = arg4;
        document.getElementById(arg2).width = arg5;
        break;
    case '?':
        document.getElementById(arg2).src = arg3;
        document.getElementById(arg2).height = arg4;
        document.getElementById(arg2).width = arg5;
        break;
    case 'd':
        // document.getElementById("selectByLetter").contentWindow.closePu(arg1);
        document.getElementById(arg2).contentWindow.closePu2(arg1);
        // document.getElementById(arg2).height = arg4;
        // document.getElementById(arg2).width = arg5;
        break;
    default:
  
    }
}


function childTgtIframe(id, val, dimHt, dimWid) {
    // this will get data from tgtLgc and refreshChild
    var Idin = val;
    var valIn = val;
    var dimHtIn = dimHt;
    var dimWidIn = dimWid;


}
