
function x_open(title, url, width, height)
{
	xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ))
{
xposition = (screen.width - width) / 2;
yposition = (screen.height - height) / 2;
}
theproperty= "width=" + width + "," 
+ "height=" + height + "," 
+ "location=0," 
+ "menubar=0,"
+ "resizable=1,"
+ "scrollbars=1,"
+ "status=0," 
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //for Netscape
+ "screeny=" + yposition + "," //for Netscape
+ "left=" + xposition + "," //for IE
+ "top=" + yposition; //for IE 
window.open( url,title,theproperty );
}
window.onerror = function(){   
   return   true;   
} 




function DateCompare(startStr,endStr){var d1, d2, s, arr, arr1, arr2;if(startStr.length > 10){ arr = startStr.split(" "); arr1 = arr[0].split("-"); arr2 = arr[1].split(":"); d1 = new Date(arr1[0], arr1[1] - 1, arr1[2], arr2[0], arr2[1], arr2[2]);}else{ arr = startStr.split("-"); d1 = new Date(arr[0], arr[1], arr[2]);}if(endStr.length > 10){ arr = endStr.split(" "); arr1 = arr[0].split("-"); arr2 = arr[1].split(":"); d2 = new Date(arr1[0], arr1[1] - 1, arr1[2], arr2[0], arr2[1], arr2[2]);}else{ arr = endStr.split("-"); d2 = new Date(arr[0], arr[1], arr[2]);}s = d2 - d1 ;if(s < 0){ return false;}return true;}




