
var WinName;
var type;
var theURL;
var frameTable;


function frame_bg(status, row, background){
if (status=="on"){
var new_bg = "#ffffff";
var border = "solid 1px #b6e3cd";
}
else {
var new_bg = background;
var border = "solid 1px #c6d3dd";
}
//alert("row = "+ row + ", My var =" + myvar);
var x = document.getElementById(row);
x.style.background= new_bg;
}

function value_transfer(recipient, donor){
//alert("recipient"+ recipient + "donor = " + donor);
var y = document.getElementById(donor).value;
var x = y.split("-");
//alert(x[0]);
document.getElementById(recipient).value = x[2] + "/" + x[1] + "/" + x[0];
}


function event_delete(id){
if(confirm('Are you sure you want to delete event ID= ' + id + '? \nThis action cannot be undone.\n'))
{location.href='./remove.php?ID=' + id +'&ref_page='+ document.location.href ;}
}

