function ujraszamol(mit) {
var formatum = document.getElementById("formatum").options[document.getElementById("formatum").selectedIndex].text;
var oldal = document.getElementById("oldal").options[document.getElementById("oldal").selectedIndex].text;
var feldolgozas = document.getElementById("feldolgozas").options[document.getElementById("feldolgozas").selectedIndex].text;
if (mit == "formatum") {
var kerdes = document.getElementById("formatum").options[document.getElementById("formatum").selectedIndex].text;
} else if (mit == "oldal") {
var kerdes = document.getElementById("oldal").options[document.getElementById("oldal").selectedIndex].text;
} else if (mit == "oldal") {
var kerdes = document.getElementById("feldolgozas").options[document.getElementById("feldolgozas").selectedIndex].text;
}
window.location.href = "kalkulacio?type=
Notice: Undefined index: type in C:\xampp\htdocs\js\scripts.php on line 14
&formatum="+formatum+"&oldal="+oldal+"&feldolgozas="+feldolgozas+"&change="+mit;
}
function termek_kep(kephelye, elso, masodik) {
document.getElementById("termek_kep").src = "images/termek_kepek/"+kephelye+".jpg";
document.getElementById("oldal_1").src = "images/"+elso+".gif";
document.getElementById("oldal_2").src = "images/"+masodik+".gif";
}
function kisablak1(szoveg) {
return overlib(szoveg,CAPTION,'',FGCOLOR,'#FFFFFF',BGCOLOR,'#FFFFFF',OFFSETY,20,HAUTO,VAUTO);
}
function loading_on() {
document.getElementById("loading").style.display = "block";
}
function loading_off() {
document.getElementById("loading").style.display = "none";
}
function szamolas(mit, buborek) {
document.getElementById("armegjelenito").style.display = "none";
var formatum = document.getElementById("formatum").value;
var oldalbor = document.getElementById("oldalbor").value;
var feldolgo = document.getElementById("feldolgo").value;
if (mit == "formatum") {
//alert('Formatum valtozik');
ajaxRequest('includes/urlap_elem.php?mit=oldalbor&_buborek='+buborek+'&type=
Notice: Undefined index: type in C:\xampp\htdocs\js\scripts.php on line 44
&formatum='+formatum+'&change='+mit, 'kalk_oldalbor');
ajaxRequest('includes/urlap_elem.php?mit=szinbori&_buborek='+buborek+'&type=
Notice: Undefined index: type in C:\xampp\htdocs\js\scripts.php on line 45
&formatum='+formatum+'&change='+mit, 'kalk_szinbori');
ajaxRequest('includes/urlap_elem.php?mit=papirbor&_buborek='+buborek+'&type=
Notice: Undefined index: type in C:\xampp\htdocs\js\scripts.php on line 46
&formatum='+formatum+'&change='+mit, 'kalk_papirbor');
ajaxRequest('includes/urlap_elem.php?mit=feldolgo&_buborek='+buborek+'&type=
Notice: Undefined index: type in C:\xampp\htdocs\js\scripts.php on line 47
&formatum='+formatum+'&change='+mit, 'kalk_feldolgo');
ajaxRequest('includes/calcpic_loader.php', 'minipic');
} else if (mit == "oldalbor") {
//alert('Oldal valtozik');
ajaxRequest('includes/urlap_elem.php?mit=szinbori&_buborek='+buborek+'&type=
Notice: Undefined index: type in C:\xampp\htdocs\js\scripts.php on line 51
&formatum='+formatum+'&oldalbor='+oldalbor+'&change=oldalbor', 'kalk_szinbori');
ajaxRequest('includes/urlap_elem.php?mit=papirbor&_buborek='+buborek+'&type=
Notice: Undefined index: type in C:\xampp\htdocs\js\scripts.php on line 52
&formatum='+formatum+'&oldalbor='+oldalbor+'&change=oldalbor', 'kalk_papirbor');
ajaxRequest('includes/urlap_elem.php?mit=feldolgo&_buborek='+buborek+'&type=
Notice: Undefined index: type in C:\xampp\htdocs\js\scripts.php on line 53
&formatum='+formatum+'&oldalbor='+oldalbor+'&change=oldalbor', 'kalk_feldolgo');
ajaxRequest('includes/calcpic_loader.php', 'minipic');
} else if (mit == "feldolgo") {
//alert('Feldolgozas valtozik');
ajaxRequest('includes/urlap_elem.php?mit=feldolgo&_buborek='+buborek+'&type=
Notice: Undefined index: type in C:\xampp\htdocs\js\scripts.php on line 57
&formatum='+formatum+'&oldalbor='+oldalbor+'&feldolgo='+feldolgo+'&change=feldolgo', 'silent');
ajaxRequest('includes/calcpic_loader.php', 'minipic');
} else if (mit == "") {
alert(mit);
}
if (isset("adatelle")) {var adatelle = document.getElementById("adatelle").value;} else {var adatelle = "";}
if (isset("tamogatas")) {var tamogatas = document.getElementById("tamogatas").value;} else {var tamogatas = "";}
if (isset("gyartas_ido")) {var gyartas_ido = document.getElementById("gyartas_ido").value;} else {var gyartas_ido = "";}
if (isset("korrektura")) {var korrektura = document.getElementById("korrektura").value;} else {var korrektura = "";}
if (isset("telepules")) {var telepules = document.getElementById("telepules").value;} else {var telepules = "";}
if (isset("szallitas")) {var szallitas = document.getElementById("szallitas").value;} else {var szallitas = "";}
var also = 'adatelle='+adatelle+'&tamogatas='+tamogatas+'&gyartas_ido='+gyartas_ido+'&korrektura='+korrektura+'&telepules='+telepules+'&szallitas='+szallitas;
ajaxRequest('includes/also_urlap.php?'+also, 'also_urlap', true);
}
function arlekeres() {
document.getElementById("armegjelenito").style.display = "block";
// állandó űrlap elemek
var peldany = document.getElementById("peldany").value;
var formatum = document.getElementById("formatum").value;
var oldalbor = document.getElementById("oldalbor").value;
var szinbori = document.getElementById("szinbori").value;
var feldolgo = document.getElementById("feldolgo").value;
var papirbor = document.getElementById("papirbor").value;
// füzet borítóval
if (isset("oldalbel")) {var oldalbel = document.getElementById("oldalbel").value;} else {var oldalbel = "";}
if (isset("szinbeli")) {var szinbeli = document.getElementById("szinbeli").value;} else {var szinbeli = "";}
if (isset("papirbel")) {var papirbel = document.getElementById("papirbel").value;} else {var papirbel = "";}
// alsó űrlap
if (isset("adatelle")) {var adatelle = document.getElementById("adatelle").value;} else {var adatelle = "";}
if (isset("tamogatas")) {var tamogatas = document.getElementById("tamogatas").value;} else {var tamogatas = "";}
if (isset("gyartas_ido")) {var gyartas_ido = document.getElementById("gyartas_ido").value;} else {var gyartas_ido = "";}
if (isset("korrektura")) {var korrektura = document.getElementById("korrektura").value;} else {var korrektura = "";}
if (isset("telepules")) {var telepules = document.getElementById("telepules").value;} else {var telepules = "";}
if (isset("szallitas")) {var szallitas = document.getElementById("szallitas").value;} else {var szallitas = "";}
var also = 'adatelle='+adatelle+'&tamogatas='+tamogatas+'&gyartas_ido='+gyartas_ido+'&korrektura='+korrektura+'&telepules='+telepules+'&szallitas='+szallitas;
ajaxRequest('includes/also_urlap.php?'+also, 'also_urlap', true);
var osszeg = peldany+'||'+formatum+'||'+oldalbor+'||'+szinbori+'||'+feldolgo+'||'+papirbor;
osszeg = osszeg+'||'+oldalbel+'||'+szinbeli+'||'+papirbel;
osszeg = osszeg+'||'+adatelle+'||'+tamogatas+'||'+gyartas_ido+'||'+korrektura+'||'+telepules+'||'+szallitas;
//alert(osszeg);
ajaxRequest('includes/armegjelenito.php?q='+osszeg, 'armegjelenito', true);
}
function isset(valtozo) {
//return (typeof(valtozo) != 'undefined');
return document.getElementById(valtozo);
}
function ujraszamol() {
document.getElementById("armegjelenito").style.display = "none";
}
function osszegzes() {
var elfogad = document.getElementById("aszf").checked;
if (elfogad) {
//űrlap elküldése
document.forms.adatok.submit();
} else {
//figyelmeztetés
alert('Kérjük fogadja el az Általános Szolgáltatási Feltételeinket!');
}
}
function mutat(id) {
/*
style = document.getElementById('reszletek_'+id).style.display;
//alert(style);
if (style == "none") {
document.getElementById('reszletek_'+id).style.display = "block";
document.getElementById('head_'+id).style.background = "#0066FF";
} else if (style == "block") {
document.getElementById('reszletek_'+id).style.display = "none";
document.getElementById('head_'+id).style.background = "#EBEFF8";
}
*/
top.location.href='?mod=rendeles_kovetes&reszletek='+id+'#'+id;
}
function nyomtatas(mit) {
top.location.href='nyomtatas.php';
}
function eltunik()
{
document.getElementById('armegjelenito').style.display='none';
document.getElementById('armegjelenito').innerHTML='';
document.getElementById('pop_buborek').style.display='none';
}