function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}

function doNewsPrint() { 
var newsTitle = document.getElementById("newsTitle").innerHTML;
var newsContent = document.getElementById("newsContent").innerHTML;
var prnhtml = "";
prnhtml = prnhtml + " <div style=\"background-color:#fff; width:700px; margin:0 auto; padding:15px; color:#000\">";
prnhtml = prnhtml + "<h2 style=\"font-size:18px; font-weight:bold; display:block;  padding:20px; text-align:center\">" + newsTitle +"</h2>";
prnhtml = prnhtml + newsContent;
prnhtml = prnhtml + "</div>";

window.document.body.innerHTML=prnhtml; 
window.print(); 
}

function doProductPrint() {
if(typeof MoveTimeObj_1!="undefined")clearInterval(MoveTimeObj_1);
if(typeof autoPlayObj_1!="undefined")clearInterval(autoPlayObj_1);
if(typeof t1!="undefined")clearInterval(t1);
if(typeof t2!="undefined")clearInterval(t2);
if(typeof t3!="undefined")clearInterval(t3);
if(typeof t4!="undefined")clearInterval(t4);
var productName = document.getElementById("productName").innerHTML;
var productContent = document.getElementById("productContent").innerHTML;
var productImage = document.getElementById("productImage");
var prnhtml = "";

prnhtml = prnhtml + "<div style=\"background-color:#fff; width:700px; margin:0 auto; padding:15px; color:#000\">";
prnhtml = prnhtml + "<h2 style=\"font-size:18px; font-weight:bold; display:block; padding:20px; text-align:center\">" + productName +"</h2>";
prnhtml = prnhtml + "<img src=\"" + productImage.src + "\" width=\"250\" align=\"right\" style=\"margin:0 0 10px 10px;\" />";
prnhtml = prnhtml + productContent;
prnhtml = prnhtml + "</div>";


window.document.body.innerHTML=prnhtml; 
window.print(); 
}
