function changeCmbTypPobytu(f) {
	f.vypocitat.value='0';
	//if (f.M1_objednavky_id_pobytu.selectedIndex>0) {
		//top.location='index.php?www=calc_form&cmbTypPobytu='+f.cmbTypPobytu[f.cmbTypPobytu.selectedIndex].value;
		f.submit();
	//}
}


/*
function changeCmbHotel(f) {
	f.vypocitat.value='0';
	//if (f.M1_objednavky_id_pobytu.selectedIndex>0) {
		//top.location='index.php?www=calc_form&cmbTypPobytu='+f.cmbTypPobytu[f.cmbTypPobytu.selectedIndex].value;
		//f.submit();
	//}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
*/

function DeleteBreak(string) {
		while(""+string.charAt(0)==" ") string = string.substring(1, string.length);
		return string;
}

function isNumber(string)
{
    if (string.search(/^\d+$/) != -1)
        return true;
    else
        return false;
}

function isEmail(string) {
    if (string.search(/^\w+((-\w+)|(\.\w+))*\@\w+(((\.|-)\w+)*)?\.\w+$/) != -1)
        return true;
    else
        return false;
}

function openMyRequests(link_my_requests) {
	window.open(link_my_requests, 'my_requests', 'hotkeys,resizable,scrollbars=yes');
}

function openWindow(url, window_name, params) {
	window.open(url, window_name, params + ', top=100,left=100,resizable=yes,scrollbars=yes'); 
}


function openMap(){
	window.open('index.php?www=map','SLK','width=774,height=484,top=50,left=50');
}