
function hideSection(SectionID) {
  document.write("<style" + " type=\"text/css\">");
  document.write("#" + SectionID + " {visibility:hidden;}");
  document.write("</style" + ">");
}
function unhideSection(SectionID) {
  document.write("<style" + " type=\"text/css\">");
  document.write("#" + SectionID + " {visibility:visible;}");
  document.write("</style" + ">");
}

function clearTextbox(id) {
   if(document.getElementById(id)) {
     var oTxtBox = document.getElementById(id);
     oTxtBox.value="";
   }
}
function resetTextbox(id,s) {
  if(document.getElementById(id)) {
    var oTxtBox = document.getElementById(id);
    if(oTxtBox.value == "") {
      oTxtBox.value = s;
    }
  }
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		top_nav_services_over = newImage("images/top_nav_services-over.gif");
		top_nav_investors_over = newImage("images/top_nav_investors-over.gif");
		top_nav_careers_over = newImage("images/top_nav_careers-over.gif");
		top_nav_about_over = newImage("images/top_nav_about-over.gif");
		preloadFlag = true;
	}
}

function show(obj) {
	if(obj) {
		if(document.getElementById) {
			document.getElementById(obj).style.display = "block";
		}
		else if(document.all) {
			document.all[obj].style.display = "block";
		}
		else if(document.layers) {
			document.layers[obj].visibility = "show";
		}
	}
}

function hide(obj) {
	if(obj) {
		if(document.getElementById){
			document.getElementById(obj).style.display = "none";
		}
		else if(document.all) {
			document.all[obj].style.display = "none";
		}
		else if(document.layers) {
			document.layers[obj].visibility = "hidden";
		}
	}
}

function isShowing(obj) {
	if(document.getElementById){
		return (document.getElementById(obj).style.display=="block");
	}
	else if(document.all) {
		return (document.all[obj].style.display=="block");
	}
	else if(document.layers) {
		return (document.layers[obj].visibility=="show");
	}
}

function toggle(obj1, obj2) {
	if(isShowing(obj1)) {
		hide(obj1);
	} else {
		show(obj1);
	}	
  if(obj2 != '') {
    if(isShowing(obj2)) {
      hide(obj2);
    }
  }
}

function getSectionName(currentpage) {
  var sectionname = "";
  switch (currentpage) {
    case "AboutUs": sectionname = "About Us";
    break;
    case "Services": sectionname = "Services";
    break;
    default: sectionname = "Services";
  }
  return sectionname;
}

function setSectionHeader(sectionname) {
  if(document.getElementById("col_0_0")) {
    var imagename1 = imagename2 = "";
    switch (sectionname) {
      case "About Us": imagename1 = "about_shell.gif"; imagename2 = "bg_crumb_aboutus-left.gif";
      break;
      case "Jobs": imagename1 = "jobs_pepper.gif";
      break;
      case "Portfolio": imagename1 = "portfolio_banana.gif";
      break;
      case "Register": imagename1 = "register_boomerang.gif";
      break;
      case "Services": imagename1 = "services_spring.gif"; imagename2 = "bg_crumb_services-left.gif";
      break;
      case "Sign In": imagename1 = "sign_orange.gif";
      break;
      default: imagename1 = "services_spring.gif"; imagename2 = "bg_crumb_services-left.gif";
    }
  
    var oDiv = document.getElementById("col_0_0");
    oDiv.innerHTML = "<img src=\"images/" + imagename1 + "\" width=\"82\" height=\"76\" alt=\"\" border=\"0\">";
    oDiv.style.background = "#fff url(images/" + imagename2 + ") top left repeat-x";
  }
}

String.prototype.trim = function () {
  var reExtraSpace = /^\s+(.*?)\s+$/;
  return this.replace(reExtraSpace, "$1");
}

function Load() {

//  if(document.getElementById("quicksearch") && !document.getElementById("accountinfo")) {
//  if(document.getElementById("quicksearch")) {
//    var oTable = document.getElementById("quicksearch");
//    oTable.setAttribute("width","250");
//  }

  if(document.getElementById("channel_name")) { /* get channel name */
    var oCurrentpage = document.getElementById("channel_name");
    var currentpage = oCurrentpage.innerHTML;
    currentpage = currentpage.replace(/\n| /g, "");
    currentpage = currentpage.trim();
  }
  if(document.getElementById(currentpage)) { /* use channel name to apply lnavOn CSS class to current LeftNav item */
    var oNavItem = document.getElementById(currentpage);
    oNavItem.className = "lnavOn";
  }
  if(currentpage && document.getElementById("default_outer")) {
    changeID("default_outer", currentpage);
//    toggleID("maintext", "visible");
//    toggleID(currentpage, "visible");

//    fixJobDescription("leftnav", 225);
  }

  if(currentpage == "MJCandidateRegistration") mjCandRegAdjust(currentpage);
  if(currentpage == "Jobs" && document.getElementById("maintext_wide")) jobsAdjust();
//  if(currentpage == "Jobs" && document.getElementById("wideform")) wideformAdjust(currentpage);
  if(currentpage == "Home" && document.getElementById("maintext")) homeAdjust();
  if(currentpage == "ManagePortfolio" && document.getElementById("myprofile")) managePortfolioMyProfileAdjust();
  if(currentpage == "ManagePortfolio" && document.getElementById("PortfolioProjectEdit")) managePortfolioProjectSamplesDetailsAdjust();
  if(currentpage == "ManagePortfolio" && document.getElementById("PortfolioUploadSample")) managePortfolioPortfolioUploadSampleAdjust();
  if(currentpage == "ManagePortfolio" && document.getElementById("errormsg") && !document.getElementById("quicksearch")) managePortfolioAdjust();
  if(document.getElementById("wideform")) convertHline();
  if(currentpage == "MJCandidateRegistration" && document.getElementById("wideform")) convertProfReferences();
  if(currentpage == "Jobs" && document.getElementById("wideform") && !document.getElementById("container") && !document.getElementById("leftnav")) convertJobs();
  if(currentpage == "FreeResources" && document.getElementById("maintext")) rfmAdjust();
//unhideSection("mid_wrapper");


  if(document.getElementById("p_TCGRedesignJobSearch")) {
    if(document.getElementsByTagName("TD")) {
      oTDs = document.getElementsByTagName("TD");
      var tdspan = "";
      var tdwidth = "";
      for(i = 0; i < oTDs.length; i++) {
        if(oTDs[i].getAttribute("rowspan")) {
          tdspan = oTDs[i].getAttribute("rowspan");
          tdwidth = oTDs[i].getAttribute("width");
          if(tdspan > "9" && tdwidth > "0") {
            oTDs[i].style.visibility = "hidden";
            oTDs[i].style.display = "none";
          }
        }
      }
    }
  }

/*  if(document.getElementById("officeList")) {
    if(document.getElementById("officeList")) {
      if(document.getElementsByTagName("DD")) {
        var oDDs = document.getElementsByTagName("DD");
        var dd_HTML = "";
        for(i = 0; i < oDDs.length; i++) {
          dd_HTML = oDDs[i].innerHTML;
          if(dd_HTML.match("Multimedia Design<BR>Seattle")){
            oDDs[i].innerHTML = "Multimedia Designer<BR>Seattle";
          }
          if(dd_HTML.match("Graphic Designer/Art Director")) {
            oDDs[i].innerHTML = "Graphic Designer/<BR>Art Director<BR>New York";
          }
        }
      }
    }
  }
*/










}
function convertJobs() {
  if(document.getElementById("searchresults")) {
    if(document.getElementById("wideform") && !document.getElementById("maintext_wide")) {
      oDiv = document.getElementById("wideform");
      oDiv.style.marginLeft = "20px";
    }
  } else {
    if(document.getElementById("maintext")) {
      oDiv = document.getElementById("maintext");
      oDiv.style.marginLeft = "260px";
    }
    if(document.getElementsByTagName("TD")) {
      oTDs = document.getElementsByTagName("TD");
      var tdspan = "";
      var tdwidth = "";
      for(i = 0; i < oTDs.length; i++) {
        if(oTDs[i].getAttribute("rowspan")) {
          tdspan = oTDs[i].getAttribute("rowspan");
          tdwidth = oTDs[i].getAttribute("width");
          if(tdspan == "3" && tdwidth == "20") {
            oTDs[i].style.visibility = "hidden";
            oTDs[i].style.display = "none";
          }
        }
      }
    }
  }
}
function managePortfolioPortfolioUploadSampleAdjust() {
  if(document.getElementById("PortfolioUploadSample")) {
    var oDiv = document.getElementById("PortfolioUploadSample");
    if(oDiv.getAttribute("class") || oDiv.getAttribute("className")) {
      oDiv.setAttribute("class","");
      oDiv.setAttribute("className","");
    }
  }
}
function managePortfolioProjectSamplesDetailsAdjust() {
  if(document.getElementById("PortfolioProjectEdit") && !document.getElementById("sectionbar")) {
    var oDiv = document.getElementById("PortfolioProjectEdit");
    if(oDiv.getAttribute("class") || oDiv.getAttribute("className")) {
      oDiv.setAttribute("class","");
      oDiv.setAttribute("className","");
    }
  }
}
function managePortfolioMyProfileAdjust() {
  if(document.getElementById("myprofile")) {
    var oMyProfileDiv = document.getElementById("myprofile");
    var oTDs = oMyProfileDiv.getElementsByTagName("TD");
    var s = "Please ensure you have completed all of your Profile sections, and that you maintain them regularly. The more current the detail you provide, the better we can assist you.";
    for(var i = 0; i < oTDs.length; i++ ) {
      if(oTDs[i].innerHTML == s) {
        oTDs[i].style.visibility = "hidden";
        oTDs[i].style.display = "none";
      }
    }
  }
}
function homeAdjust() {
  if(document.getElementsByTagName("TABLE")) {
    var oTables = document.getElementsByTagName("TABLE");
    for(var i = 0; i < oTables.length; i++){
      if(oTables[i].getAttribute("width") == "540") {
        oTables[i].setAttribute("width","480");
      }
    }
  }
}

function rfmAdjust() {
  if(document.getElementsByTagName("TABLE")) {
    var oTables = document.getElementsByTagName("TABLE");
    for(var i = 0; i < oTables.length; i++){
      if(oTables[i].getAttribute("width") == "500") {
        oTables[i].setAttribute("width","100%");
      }
    }
  }
  if(document.getElementsByTagName("BR")) {
    var oBRs = document.getElementsByTagName("BR");
    for(var i = 0; i < oBRs.length; i++) {
      var newBr = document.createElement("br");
      var oldBr = oBRs[i];
      var BrParent = oldBr.parentNode;
//alert("oldBr = " +oldBr.tagName+ "\nnewBr = " +newBr.tagName);
      var newNode = BrParent.insertBefore(newBr, oldBr);
      if(newNode) i++;
    }
  }
}
function Load_homepage() {
//  if(currentpage == "Home" && document.getElementById("sectionbar")) {
//      var oDiv = document.getElementById("sectionbar");
//      oDiv.style.visibility = "hidden";
//      oDiv.style.display = "none";
//  }
  if(document.getElementById("channel_name")) { /* get channel name */
    var oDiv = document.getElementById("channel_name");
    oDiv.style.visibility = "hidden";
    oDiv.style.display = "inline";
    oDiv.style.lineHeight = "0";
  }
}
function changeID(oldID, newID) {
  if(document.getElementById(oldID) && newID != "") {
    var oElement = document.getElementById(oldID);
    oElement.id = newID;
    oElement.style.visibility = "visible";
//    oElement.style.background = "inherit";
//alert("ID = " + oElement.getAttribute("id"));
//oElement.setAttribute("style", "visibility:hidden;display:none;");

  }
}
function toggleID(divID, hidestate) {
  if(document.getElementById(divID)) {
    oDiv = document.getElementById(divID);
    oDiv.style.visibility = hidestate;
  }
}

function jobsAdjust() {
  var tableid = "searchresults"; 
  var TD_width = "";
  if(document.getElementById(tableid)) {
    var oTDs = getTDsInTable(tableid); 
    setTDWidths(oTDs, TD_width);
  }
}

function wideformAdjust(currentpage) {
  if(document.getElementById("wideform")) {
    var oWideformTable = document.getElementById("wideform");
    if(oWideformTable.hasChildNodes) {
      oTableChildren = oWideformTable.childNodes;
      for(var i = 0; i < oTableChildren.length; i++) {
        if(oTableChildren[i].nodeName == "TBODY") {
          var oTBody = oTableChildren[i];
        }
      }
    }
    if(oTBody && oTBody.hasChildNodes) {
      var oTBodyChildren = oTBody.childNodes;
      var j = 0;
      var oTR = new Array();

      for(var i = 0; i < oTBodyChildren.length; i++) {
        if(oTBodyChildren[i].nodeName == "TR") {
          oTR[j] = oTBodyChildren[i];
          j++;
        }
      }
//alert("oTR.length: "+ oTR.length);
//alert("oTR[0].nodeName: " + oTR[0].nodeName);
      if(oTR.length > 0 && oTR[j-1].hasChildNodes) {
        for(var i = 0; i < oTR.length; i++) {
          if(oTR[i].nodeName == "TR") {
            var oTRChildren = oTR[i].childNodes;
            var j = 0;
            var oTD = new Array();
//alert("oTRChildren.length: " + oTRChildren.length);
            for(var i = 0; i < oTRChildren.length; i++) {
              if(oTRChildren[i].nodeName == "TD") {
//alert("oTRChildren["+i+"].nodeName: " + oTRChildren[i].nodeName);
                oTD[j] = oTRChildren[i];
                j++;
              }
            }
            if(oTD.length == 2) {
              oTD[1].setAttribute("width","480px");
//alert("set maintext column width");
              oTD[1].style.position = "relative";
              oTD[1].style.left = 0;

              oTD[0].setAttribute("id","goobers");

              oTD[0].setAttribute("width","250px");
//alert("set leftnav column width");
            }
          }
        }
      }
      
    }

//    while(oWideformTable.hasChildNodes && oWideformTable.firstChild.nodeName != "#text") {
//alert("here again");
//      oTbody = oWideformTable
//    }
//    var oTBody = oWideformTable.firstChild;
//alert("oTBody: " + oTBody.nodeName);
//    var oTR = oTBody.firstChild;
//alert("oTR: " + oTR.nodeName);
//    var oTDs = oTR.childNodes;
//alert("oTDs: " + oTD_1.nodeName + "\nID: " +oTD_1.getAttribute("ID")+"\nWidth: "+oTD_1.getAttribute("width")); 
//    var oTD_1 = oTR.nextChild;
//alert("oTD_1: " + oTD_1.nodeName + "\nID: " +oTD_1.getAttribute("ID")+"\nWidth: "+oTD_1.getAttribute("width")); 
    
//    var oTDs = oTR.getElementsByTagName("TD");
//    for(var i = 0; i < oTDs.length; i++) {
//alert("oTDs["+i+"]: "+oTDs[i].getAttribute("ID")+"\nWidth: "+oTDs[i].getAttribute("width"));
//    }
//    oTDs[1].setAttribute("width","480");
//    oTDs[0].setAttribute("width","225");
  }
  
}
function getTDsInTable(tableid) {
  if(document.getElementById(tableid)) {
    var oTable = document.getElementById(tableid);
    var oTDs = oTable.getElementsByTagName("TD");
    return oTDs;
  }
}
function setTDWidths(oTDs, width) {
  if(oTDs) {
    for(i = 0; i < oTDs.length; i++) {
      oTDs[i].setAttribute("width",width);
    }
  }
}

function mjCandRegAdjust(currentpage) {
  if(document.getElementById("myprofilesidebar")) {
    var oTable = document.getElementById("myprofilesidebar");
    oTable.setAttribute("width","230");
  }
  if(document.getElementById("maintext")) {
    var oTable = document.getElementById("maintext");
    oTable.setAttribute("width","480");
    if(document.getElementsByTagName("TABLE")) {
      var oTables = document.getElementsByTagName("TABLE");
      var numtables = 0;
      for(i = 0; i < oTables.length; i++) {
        if(oTables[i].getAttribute("width") == "100%") {
          oTables[i].setAttribute("width","");
          numtables += 1;
        }
        if(oTables[i].getAttribute("width") == "520") {
          oTables[i].setAttribute("width","");
          numtables += 1;
        }
        if(oTables[i].getAttribute("width") == "540") {
          oTables[i].setAttribute("width","");
          numtables += 1;
        }
      }
    }
    if(document.getElementsByTagName("TD")) {
      var oTDs = document.getElementsByTagName("TD");
      var numTDs = 0;
      for(i = 0; i < oTDs.length; i++) {
        if(oTDs[i].getAttribute("width") == "325") {
//alert("fixing 325px TD widths to 275px");
          oTDs[i].setAttribute("width","300");
oTDs[i].setAttribute("width","275");
          numTDs += 1;
        }
        if(oTDs[i].getAttribute("width") == "318") {
//alert("fixing 318px TD widths to 300px");
          oTDs[i].setAttribute("width","300");
          numTDs += 1;
        }

        if(oTDs[i].getAttribute("width") == "200") {
//alert("fixing 200px TD widths to 250px");
          oTDs[i].setAttribute("width","225");
oTDs[i].setAttribute("width","250");
          numTDs += 1;
        }
      }
    }
  }
  if(document.getElementsByTagName("input")){
    var oInputs = document.getElementsByTagName("input");
    for(var i = 0; i < oInputs.length; i++) {
      if(oInputs[i].getAttribute("name") == "convicted" || oInputs[i].getAttribute("name") == "req-wic") {
        var oTD = oInputs[i].parentNode;
        oTD.setAttribute("class","background_radio_td");
        oTD.setAttribute("className","background_radio_td");
        var oTR = oTD.parentNode;
        var oTBody = oTR.parentNode;
        var oTable = oTBody.parentNode;
        oTable.setAttribute("class","background_radio_table");
        oTable.setAttribute("className","background_radio_table");
      }
    }
  }
  
  if(!document.getElementById("wideform")) {
    if(document.getElementsByTagName("TABLE")){
      var oTables = document.getElementsByTagName("TABLE");
      for(var i = 0; i < oTables.length; i++) {
        if(oTables[i].getAttribute("width") == "740" && !oTables[i].getAttribute("id")) {
          oTables[i].setAttribute("id","wideform");
          break;
        }
      }
    }
  }
}
function managePortfolioAdjust() {
  if(document.getElementById("errormsg")) {
    var oDiv = document.getElementById("errormsg");
    oDiv.style.margin = "0 0 0 255px";
    oDiv.style.width = "100%";
  }
}

function convertHline() {
  if(document.getElementById("wideform")) {
    if(document.getElementsByTagName("TD")) {
      var oTDs = document.getElementsByTagName("TD");
      var cName = "";
      var browser = "";
      for(var i = 0; i < oTDs.length; i++) {
        if(oTDs[i].getAttribute("class")) {
          cName = oTDs[i].getAttribute("class");
          browser = "FF";
        }
        if(oTDs[i].getAttribute("className")) {
          cName = oTDs[i].getAttribute("className");
          browser = "IE";
        }
        if(cName != "hline") {
          cName = "";
          continue;
        }
//alert("cName["+i+"] = " + cName);
        if(cName != "") {
//          oTDs[i].setAttribute("className","");
//          oTDs[i].innerHTML = "<hr height=\"1\" />";
//          oTDs[i].setAttribute("width","100%");
//            oTDs[i].style.minWidth = "100%";
//            oTDs[i].style.minHeight = "100px";
//            oTDs[i].border = "100px solid #333";
//          oTDs[i].innerHTML = "50000705";
          
//          if(browser == "FF") {
//            oTDs[i].innerHTML = "<hr />";
//          }
          
          var oTR = oTDs[i].parentNode;
//alert("oTDs["+i+"].innerHTML = '_" + oTDs[i].innerHTML + "_'");
//alert("oTDs["+i+"].innerHTML = '_" + oTDs[i].innerHTML + "_'");
//alert("oTR = " + oTR.tagName);
          var oTBody = oTR.parentNode;
//alert("oTBody = " + oTBody.tagName);
          var oTable = oTBody.parentNode;
//alert("oTable = " + oTable.tagName);
          var oTD = oTable.parentNode;
//alert("oTD = " + oTD.tagName);
          oTD.style.borderTop = "1px solid #333";
          oTD.style.backgroundColor = "#fff";
          oTD.style.maxWidth = "35px";
          oTD.style.lineHeight = "10px";
        }
        cName = "";
      }
    }
  }
}

function convertProfReferences() {
  if(document.getElementById("wideform")) {
    if(document.getElementsByTagName("TABLE")) {
      var oTables = document.getElementsByTagName("TABLE");
      var tblwidth = "";
      for(var i = 0; i < oTables.length; i++) {
        tblwidth = oTables[i].getAttribute("width");
        oTables[i].setAttribute("width","");
//        if(tblwidth == "518") {
          oTables[i].setAttribute("class","wide-references");
          oTables[i].setAttribute("className","wide-references");
//alert("oTables["+i+"] = " + oTables[i].tagName);
//        }
      }
    }
    if(document.getElementsByTagName("TD")) {
      var oTDs = document.getElementsByTagName("TD");
      var tdwidth = 0;
      for(var i = 0; i < oTDs.length; i++) {
//        oTDs[i].setAttribute("width","");
//        if(oTDs[i].getAttribute("width") != "") {
//          tdwidth = parseInt(oTDs[i].getAttribute("width")) / 2;
//          if(!confirm("tdwidth = " + tdwidth)) return;
//          if(confirm("set background?")) { oTDs[i].style.background = "#f2f2cc"; oTDs[i].style.border = "1px solid black"; }
//          oTDs[i].setAttribute("width",toString(tdwidth));
//        }
        if(oTDs[i].getAttribute("width") == "110") {
          oTDs[i].setAttribute("width","20%");
        }
        if(oTDs[i].getAttribute("class") == "") oTDs[i].setAttribute("class","wide-references");
        if(oTDs[i].getAttribute("className") == "") oTDs[i].setAttribute("className","wide-references");
      }
    }
  }
}


/* ************ begin readmore code ************* */

// JavaScript Document
function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if (node == null)
		node = document;
	if (tag == null)
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\\\s)"+searchClass+"(\\\\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if (pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}
/*
function readMore(obj) {
	rmLink = getElementsByClass('rm_link', obj)[0];
	rmContent = getElementsByClass('rm_content', obj)[0];
	
	rmLink.style.display = 'none';
	rmContent.style.display = 'block';
}*/

function readMore(obj) {
	replaceClass(obj,'rm','rm_on');
}


/* Example */
/*
<p class="rm" onclick="javascript:readMore(this);">
<span class="rm_link">Link text</span>
<span class="rm_content" style="display:none">Replacement Text</span>
</p>
*/


function hasClass(ele,cls) {
	return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}
function addClass(ele,cls) {
	if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}
function removeClass(ele,cls) {
	if (hasClass(ele,cls)) {
		var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
		ele.className=ele.className.replace(reg,' ');
	}
}
function replaceClass(ele,oldcls,newcls) {
	if (hasClass(ele,oldcls)) {
		var reg = new RegExp('(\\s|^)'+oldcls+'(\\s|$)');
		ele.className=ele.className.replace(reg,' '+newcls);
	} else {
		addClass(ele,newcls);
	}
}
/* ************ end readmore code ************* */

/* popupMetropageWindow*/
/*
function popupMetropageWindow()
{           
	window.open('/SelectMarketsPopup', '_Window', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=650,height=460');
}
function metroCityWindow()
{           
	window.open("http://prvprd-cg:8080/sanfracisco", "mywindow","status=1,toolbar=1");
}
*/
function popupMetropageWindow()
{           
	window.open('/SelectMarketsPopup', 'PrinterFriendlyWindow', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=650,height=460');
}

