function js_confirmUrl(url, msg) {
	if (confirm(msg)) {
		window.open(url, '_self');
	}
}


function checkPrice(e)
{
    var v = Math.round(parseFloat(e.value.replace(/,/, '.')) * Math.pow(10, 2)).toString();

    if(isNaN(v))
        v = '0';

    while(v.length < 3)
    {
        v = '0'+ v;
    }

    e.value = v.substr(0, v.length-2) +'.'+ v.substr(v.length-2, 2);
}

function checkInteger(e) {
	var v = e.value;
    if(isNaN(v))
        v = '0';

    e.value = v;	
}

