var cal = new CalendarPopup("testdiv1");
var now = new Date();
now.setDate(now.getDate()+4);
cal.addDisabledDates(null,formatDate(now,"yyyy-MM-dd"));
//cal.addDisabledDates("12/25/2007");
//cal.addDisabledDates("Jan 1, 2008",null);
cal.showNavigationDropdowns();
cal.setReturnFunction("setMultipleValues3");

function printPartOfPage(elementId)
{
	var printContent = document.getElementById(elementId);
 	var windowUrl = 'about:blank';
 	var uniqueName = new Date();
 	var windowName = 'Print' + uniqueName.getTime();
 	var printWindow = window.open(windowUrl, windowName, 'left=50000,top=50000,width=1000,height=1000');
	printWindow.document.write(printContent.innerHTML);
	printWindow.document.close();
    var styles = "@import url('http://www.rezervarecamerahotel.ro/css/styles.css');";
	var newSS=printWindow.document.createElement('link');
	newSS.rel='stylesheet';
	newSS.type='text/css';
	newSS.href=escape(styles);
 	printWindow.focus();
 	printWindow.print();
 	printWindow.close();
}
function testingforr() {
}
function roundnumb(numar,zecimale){
	var zec=zecimale+1;
	temp=numar.split('.');
	if (temp[1].length>0)
		temp[1]=temp[1].substring(0,3);
	tau=temp[0]+"."+temp[1];	
	numarul=(tau*Math.pow(10,zec));
	var tu=1;
	var i=Number(numarul);
	if(i<0){
		tu=-1;
		i=i*(-1);
	}
	var t=parseInt(i,10);
	var u=parseInt(t/10,10)*10+5;
	if(i>=t && i<u){
		t=parseInt(t/10)
 		return((t*tu)/Math.pow(10,zec-1));
 	}
	else {
		t=parseInt(t/10) +1;
		return((t*tu)/Math.pow(10,zec-1));
	}
}
function viewround(){
	//alert(roundnumb(-32.2312));
	alert(roundnumb("3175.2549999999999999999",2));
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
function NewWindow(mypage, myname, w, h, scroll, resizable) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) {win.window.focus(); }
}
function NewWindowPrint(mypage, myname, w, h, scroll, resizable) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable
	win = window.open(mypage, myname, winprops)
	win.window.focus();
	win.window.print();
}
