function ww_openWindow(URL,winName,features) {
  window.open(URL,winName,features);
}
function setMore(){
   var el=document.getElementById("more");
    el.value="1";
    return false;
}


function makeMore(){
    document.forms[0].submit();
}
/*
function showHint(){
    ob=document.getElementById('hint');
    ob.style.left="0px";
    ob.style.top="740px";
    ob.style.display="block";
}
*/

function showBig(block,image){
    ob=document.getElementById(block);
    ob.style.visibility="visible";
    ob.innerHTML = image;
}

function showHint(block,msg){
    ob=document.getElementById(block);
    ob.style.visibility="visible";
    ob.innerHTML = msg;
}
/*
function hideHint(){
    ob=document.getElementById('hint');
    ob.style.display="none";
}
*/
function hideHint(block){
    ob=document.getElementById(block);
    ob.style.visibility="hidden";
    ob.innerHTML = "";
}
function dupeInput(ob){
    document.form2.value = ob.value; 
}
function echoTo_2(el){
    var field2 = el.id +"_2";
    var el2 = document.getElementById(field2);
    if(!el.checked){
        el2.value = "";    
    } else {
        el2.value = el.checked; 
    }
}
function checkCheckBox(el){
    var ret = false;
    var field = document.getElementById(el);
    if(! field.checked ){
        alert("Please verify that you have read the message payment terms.");
    } else {
        ret = true;
    }
    return ret;
}

function decode(str) {
     return unescape(str.replace(/\+/g, " "));
}

function hideExpandMessages(){
    ob = document.getElementById('expandMessages');
    ob.style.visibility="hidden";
    ob.innerHTML="";
}
function hideUnExpandMessages(){
    ob = document.getElementById('unExpandMessages');
    ob.style.visibility="hidden";
    ob.innerHTML="";
}
function showExpandMessages(){
    ob = document.getElementById('expandMessages');
    ob.style.visibility="visible";
   // ob.innerHTML="";
}
function showUnExpandMessages(){
    ob = document.getElementById('unExpandMessages');
    ob.style.visibility="visible";
    ob.innerHTML="";
}


function showTruncatedPage(){
  //  var truncated = "{$smarty.capture.truncated|urlencode}";
    var truncated = decode(parent.truncated_page)
    document.write(truncated);
    document.close();
}

function openBrowserWindow(theURL,winName,features){
    window.open(theURL,winName,features);   
}