function addPDF(id){
name = 'pdfWin';
width= 640;
height=350;
url='/admin/workspace/products/addPDF/?id='+id;
mywinpos = findscreencenter(width,height);
popup(url, name, width, height);
}
function addCategoryPDF(id){
name = 'pdfWin2';
width= 640;
height=350;
url='/admin/workspace/products/addCategoryPDF/?id='+id;
popup(url, name, width, height);
}
function doConfirm(red, txt){
txt ="Are you sure you want to delete "+txt+"?";
var answer = confirm(txt);
if (answer){
window.location=red;
}
}
function showHide(id) {
ID = document.getElementById(id);
if (ID.className == "hide") {
ID.className = "show";
}
else {
ID.className="hide";
}
}
function getTimeZone() {
now = new Date()
tzo = now.getTimezoneOffset();
document.write("
");
}
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i