/*generadeted by SquareF - Do Not Modify!*/

/*-------------munkaado regisztracional------------------*/
function adv_reg_check(){
	if(document.adv_reg.company_type.value == ""){
		alert("Nem választotta ki a cég típusát!");
		document.adv_reg.company_type.focus();
		return false;
	}
	if(document.adv_reg.v_name.value == ""){
		alert("Üresen hagyta a Vezetéknév mezőt!");
		document.adv_reg.v_name.focus();
		return false;
	}
	if(document.adv_reg.k_name.value == ""){
		alert("Üresen hagyta a Keresztnév mezőt!");
		document.adv_reg.k_name.focus();
		return false;
	}
	if(document.adv_reg.company_name.value == ""){
		alert("Üresen hagyta a Cég neve mezőt!");
		document.adv_reg.company_name.focus();
		return false;
	}
	if(document.adv_reg.company_addr.value == ""){
		alert("Üresen hagyta a Cím mezőt!");
		document.adv_reg.company_addr.focus();
		return false;
	}
	if(document.adv_reg.company_city.value == ""){
		alert("Üresen hagyta a Város mezőt!");
		document.adv_reg.company_city.focus();
		return false;
	}
	if(document.adv_reg.company_county.value == ""){
		alert("Nem választotta ki a megyét!");
		document.adv_reg.company_county.focus();
		return false;
	}
	if(document.adv_reg.company_postcode.value == ""){
		alert("Üresen hagyta az Irányítószám mezőt!");
		document.adv_reg.company_postcode.focus();
		return false;
	}
	if(document.adv_reg.company_country.value == ""){
		alert("Nem választott ki az országot!");
		document.adv_reg.company_country.focus();
		return false;
	}
	if(document.adv_reg.company_phone.value == ""){
		alert("Üresen hagyta a Telefonszám mezőt!");
		document.adv_reg.company_phone.focus();
		return false;
	}
	if(document.adv_reg.email.value == ""){
		alert("Üresen hagyta az E-mail mezőt!");
		document.adv_reg.email.focus();
		return false;
	}
	if(document.adv_reg.password.value == ""){
		alert("Üresen hagyta az Jelszó mezőt!");
		document.adv_reg.password.focus();
		return false;
	}
	if(document.adv_reg.account_type.value == ""){
		alert("Nem választott előfizetést!");
		document.adv_reg.account_type.focus();
		return false;
	}
	if(document.adv_reg.bill_c_name.value == ""){
		alert("Nem írta be a Számlázási adatokhoz a Cég nevét!");
		document.adv_reg.bill_c_name.focus();
		return false;
	}
	if(document.adv_reg.bill_addr.value == ""){
		alert("Nem írta be a Számlázási adatokhoz a Címet!");
		document.adv_reg.bill_addr.focus();
		return false;
	}
	if(document.adv_reg.bill_city.value == ""){
		alert("Nem írta be a Számlázási adatokhoz a Várost!");
		document.adv_reg.bill_city.focus();
		return false;
	}
	if(document.adv_reg.bill_postcode.value == ""){
		alert("Nem írta be a Számlázási adatokhoz az Irányítószámot!");
		document.adv_reg.bill_postcode.focus();
		return false;
	}
	if(document.adv_reg.bill_company_country.value == ""){
		alert("Nem válaszotta ki a Számlázási adatoknál az Országot!");
		document.adv_reg.bill_company_country.focus();
		return false;
	}
	if(document.adv_reg.captcha_input.value == ""){
		alert("Nem írta be az Ellenőrző kódot!");
		document.adv_reg.captcha_input.focus();
		return false;
	}
	
}

/*------------allaskereso regisztracional---------------------*/
function user_check(){
	if(document.user_reg.vname.value == ""){
		alert("Üresen hagyta a Vezetéknév mezőt!");
		document.user_reg.vname.focus();
		return false;
	}
	if(document.user_reg.kname.value == ""){
		alert("Üresen hagyta a Keresztnév mezőt!");
		document.user_reg.kname.focus();
		return false;
	}
	if(document.user_reg.email.value == ""){
		alert("Üresen hagyta az E-mail cím mezőt!");
		document.user_reg.email.focus();
		return false;
	}
	if(document.user_reg.password.value == ""){
		alert("Üresen hagyta a Jelszó mezőt!");
		document.user_reg.password.focus();
		return false;
	}
	if(document.user_reg.captcha_input.value == ""){
		alert("Nem adta meg az ellenőrző kódot!");
		document.user_reg.captcha_input.focus();
		return false;
	}
}

/*---------------hirdetesfeladasnal-----------------*/
function adv_check(){
	if(document.adv_form.adv_title.value == ""){
		alert("Üresen hagyta a Cím mezőt!");
		document.adv_form.adv_title.focus();
		return false;
	}
	/*if(document.adv_form.short_desc.value == ""){
		alert("Üresen hagyta a Feladat rövid leírása mezőt!");
		document.adv_form.short_desc.focus();
		return false;
	}
	if(document.adv_form.adv_desc.value == ""){
		alert("Üresen hagyta az Állás részletes leírása mezőt!");
		document.adv_form.adv_desc.focus();
		return false;
	}*/
	if(document.adv_form.job_time.value == ""){
		alert("Nem választotta ki munkaidőt!");
		document.adv_form.job_time.focus();
		return false;
	}
	if(document.adv_form.job_type.value == ""){
		alert("Nem választotta ki a munka tipusát!");
		document.adv_form.job_type.focus();
		return false;
	}
	if(document.adv_form.adv_place.value == ""){
		alert("Üresen hagyta a Munkavégzés helye mezőt!");
		document.adv_form.adv_place.focus();
		return false;
	}
	if(document.adv_form.category.value == ""){
		alert("Nem választott kategóriát!");
		document.adv_form.category.focus();
		return false;
	}
	if(document.adv_form.adv_year.value == ""){
		alert("Nem adta meg az Érvényesség idejét!");
		document.adv_form.adv_year.focus();
		return false;
	}
	if(document.adv_form.adv_month.value == ""){
		alert("Nem adta meg az Érvényesség idejét!");
		document.adv_form.adv_month.focus();
		return false;
	}
	if(document.adv_form.adv_day.value == ""){
		alert("Nem adta meg az Érvényesség idejét!");
		document.adv_form.adv_day.focus();
		return false;
	}
}

/*----------------elkuldom egy ismerosomnek------------------*/
function sendFriendCheck(){
	if(document.adv.sender_name.value == ""){
		alert("Üresen hagyta az Ön neve mezőt!");
		document.adv.sender_name.focus();
		return false;
	}
	if(document.adv.sender_mail.value == ""){
		alert("Üresen hagyta az Ön e-mail címe mezőt!");
		document.adv.sender_mail.focus();
		return false;
	}
	if(document.adv.friend_name.value == ""){
		alert("Nem adta meg az ismerőse nevét!");
		document.adv.friend_name.focus();
		return false;
	}
	if(document.adv.friend_mail.value == ""){
		alert("Nem adta meg az ismerőse e-mail címét!");
		document.adv.friend_mail.focus();
		return false;
	}
	if(document.adv.captcha_input.value == ""){
		alert("Nem adta meg az ellenőrző kódot!");
		document.adv.captcha_input.focus();
		return false;
	}
}

function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

/*-----------hirdetesfeladasnal alkategoriak------------*/

function display_categories(id){
	if(id == "mysap"){
		document.getElementById("sub_category").innerHTML = "<font size='2' color='#ff0000'>Egy alkategóiát mindenképpen válasszon!</font><br/><select multiple='multiple' name='sub_categories[]' size='10' style='width: 385px;'><option value='AC - Accounting General'>AC - Accounting General</option><option value='APO - Advanced Planning Optimizer'>APO - Advanced Planning Optimizer</option><option value='BC - Basis Components (includes ABAP)'>BC - Basis Components (includes ABAP)</option><option value='CA - Cross-Application Components'>CA - Cross-Application Components</option><option value='CFM - Corporate Finance Management'>CFM - Corporate Finance Management</option><option value='CO - Controlling'>CO - Controlling</option><option value='CRM - Customer Relationship Management'>CRM - Customer Relationship Management</option><option value='CS - Customer Service (formerly PM-SM)'>CS - Customer Service (formerly PM-SM)</option><option value='EC - Enterprise Controlling'>EC - Enterprise Controlling</option><option value='EHS - Environment, Health & Safety'>EHS - Environment, Health & Safety</option><option value='EP - Enterprise Portals'>EP - Enterprise Portals</option><option value='FI - Financial Accounting'>FI - Financial Accounting</option><option value='FS - Financial Services'>FS - Financial Services</option><option value='IM - Investment Management'>IM - Investment Management</option><option value='IS - Industry Solutions'>IS - Industry Solutions</option><option value='KM - Knowledge Management'>KM - Knowledge Management</option><option value='LE - Logistics Execution'>LE - Logistics Execution</option><option value='LO - Logistics General'>LO - Logistics General</option><option value='MM - Materials Management'>MM - Materials Management</option><option value='MP - mySAP Marketplace'>MP - mySAP Marketplace</option><option value='PA - Personnel Management'>PA - Personnel Management</option><option value='PE - Training and Event Management'>PE - Training and Event Management</option><option value='PM - Plant Maintenance'>PM - Plant Maintenance</option><option value='PP - Production Planning'>PP - Production Planning</option><option value='PS - Project Systems'>PS - Project Systems</option><option value='PT - Personnel Time Management'>PT - Personnel Time Management</option><option value='PY - Payroll Accounting'>PY - Payroll Accounting</option><option value='QM - Quality Mangement'>QM - Quality Mangement</option><option value='RE - Real Estate Management'>RE - Real Estate Management</option><option value='SD - Sales and Distribution'>SD - Sales and Distribution</option><option value='SEM - Strategic Enterprise Management'>SEM - Strategic Enterprise Management</option><option value='SRM - Supplier Relationship Management'>SRM - Supplier Relationship Management</option><option value='SV - Service'>SV - Service</option><option value='TR - Treasury'>TR - Treasury</option><option value='WP - mySAP Workplace'>WP - mySAP Workplace</option></select>";
	} else if (id == "netweaver"){
		document.getElementById("sub_category").innerHTML = "<font size='2' color='#ff0000'>Egy alkategóiát mindenképpen válasszon!</font><br/><select multiple='multiple' name='sub_categories[]' size='5' style='width: 385px;'><option value='Application Server'>Application Server</option><option value='Auto-id Infrastructure'>Auto-id Infrastructure</option><option value='Business Intelligence'>Business Intelligence</option><option value='Exchange Infrastructure'>Exchange Infrastructure</option><option value='Master Data Management'>Master Data Management</option><option value='Mobile'>Mobile</option><option value='Portal'>Portal</option></select>";
	} else if (id == "business_one"){
		document.getElementById("sub_category").innerHTML = "<font size='2' color='#ff0000'>Egy alkategóiát mindenképpen válasszon!</font><br/><select multiple='multiple' name='sub_categories[]' size='5' style='width: 385px;'><option value='Administration'>Administration</option><option value='Bank Transactions'>Bank Transactions</option><option value='Business Partners'>Business Partners</option><option value='Controlling'>Controlling</option><option value='Final Assembly'>Final Assembly</option><option value='Financial Accounting'>Financial Accounting</option><option value='Purchasing'>Purchasing</option><option value='Reporting'>Reporting</option><option value='Sales and Distribution'>Sales and Distribution</option><option value='Warehouse Management'>Warehouse Management</option></select>";
	} else if(id == "non"){
		document.getElementById("sub_category").innerHTML = "";
	}
}


	function valaszt()
	{
		var $cat = document.getElementById('submit_job_category');
		var $value = $cat.options[$cat.selectedIndex].value;
		if($value == 'none'){
			display_categories('non');	
		} else if($value == 'SAP R/3 - MySap'){
			display_categories('mysap');
		} else if($value == 'SAP NetWeaver'){
			display_categories('netweaver');
		} else if($value == 'SAP Business One'){
			display_categories('business_one');
		}
	} 

/*----------------oneletrajz elkeszitesenel-----------------------*/
function cv_step1_check(){
	if(document.cv_step1_form.user_name.value == ""){
		alert("Üresen hagyta a Név mezőt.");
		document.cv_step1_form.user_name.focus();
		return false;
	}
	if(document.cv_step1_form.user_mail.value == ""){
		alert("Üresen hagyta az E-mail cím mezőt.");
		document.cv_step1_form.user_mail.focus();
		return false;
	}
	if(document.cv_step1_form.user_phone.value == ""){
		alert("Üresen hagyta az Telefonszám mezőt.");
		document.cv_step1_form.user_phone.focus();
		return false;
	}
}

function cv_step2_check(){
	if(document.cv_step2_form.job.value == ""){
		alert("Üresen hagyta a Jelenlegi beosztás mezőt.");
		document.cv_step2_form.job.focus();
		return false;
	}
	if(document.cv_step2_form.skills.value == ""){
		alert("Üresen hagyta a Szakértelem és Gyakorlat mezőt.");
		document.cv_step2_form.skills.focus();
		return false;
	}
}
