// JavaScript Document
function swapImage(name,url) {
	var obj=document.getElementById(name);
	obj.src = url;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function func_print_new(y,m,d)
{
	newday=new Date(y+"/"+m+"/"+d);
	oldday= new Date();
	n=(oldday-newday)/(1000*60*60*24);
	if (n <=30)document.write('<span style="background-color: red; color: white;">&nbsp;New!&nbsp;</span>');
}

function openCatalog( strURL )
{
    var screen_width = 1024 - 12;
    var screen_height = 768 - 68;
    strFeatures = "left=0,top=0,width=" + screen_width + ",height=" + screen_height + ",";
    strFeatures += "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";
    
    windowname=window.open( strURL, "DBookWin", strFeatures );
    windowname.focus();
	return;
}
