function confirmMsg(str){
	switch(str){
		case 'delapp' : return confirm("Do you want to delete this applicant's information?     ");break;
		case 'deljob' : return confirm("Do you really want to Delete?\n\nInformation on the applicants for this position will also be deleted.     ");break;
		case 'updateJobs' : return confirm("Do you want to update?     ");break;
		case 'sendinqury' : return confirm("Do you want to send this inquiry?     ");break;
		case 'chargedservice' : return confirm("You must pay for this service.     \n\nDo you want to pay?     ");break;
		case 'useResumeItem' : return confirm("Do you want to view this resume?     \n\n\"Resume Item\" is used.     ");break;
		default : return false; break;
	}
}

function err_msg(str,div){
	switch(str){
		case 'denyaccess' : alert("Access denied.     ");break;
		case 'deletefailed' : alert("Delete failed.     \n\nPlease try again.     ");break;
		case 'insertfailed' : alert("An error occurred while posting your job ad.     \n\nPlease try again. ");break;
		case 'postedsubject' : alert("You may not post job ads with a same subject.     \n\nPlease revise the subject.");break;
		case 'loginid' : alert("Please fill out your ID (4-10 digits of alphabetical letters or numerals.)     ");break;
		case 'loginpwd' : alert("Please fill out your password.     ");break;

		//register member
		case 'nodata' : alert("\nThere is no information on the request you made.     \n");break;

		case 'filloutid' : alert("\nPlease fill out ID and check its availability.     \n");break;
		case 'notcorrectid' : alert("\nID should also consist of alphebetical letters and numerals.     \n\nNo symbols please. Ex.) @, %, &, and *).\n");break;
		case 'limitidlength' : alert("\nPlease fill out 4-10 digits in the space provided for ID.     \n");break;
		
		case 'filloutpwd' : alert("\nPlease fill out password with 4-10 digits of alphebetical letters and numerals.     \n");break;
		case 'notcorrectpwd' : alert("\nThe password should consist of alphebetical letters and numerals.     \nNo symbols please. Ex.) @, %, &, and *).\n\n");break;
		case 'limitpwdlength' : alert("\nPlease make your password within 4-10 digits.     \n");break;
		case 'mandatorypwd' : alert("\nPassword confirmation is required. \n\n(Please make sure to type the password again.)     \n");break;
		case 'notmatchconfirmpwd' : alert("\nPassword does not match the original.     \n");break;

		case 'filloutname' : alert("\nPlease fill out your name.     \n");break;
		case 'filloutemail' : alert("\nPlease fill out your email address.     \n");break;
		case 'notcorrectemail' : alert("\nThe email address format does not match.     \n");break;
		case 'notmatchconfirmemail' : alert("\nThe email address does not match the original.     \n");break;
		case 'fillouttelno' : alert("\nPlease fill out your telephone number.     \n\n ");break;
		case 'filloutborn' : alert("\nPlease fill out the year of your birth.     \n");break;
		case 'filloutnation' : alert("\nPlease choose your nationality.     \n");break;
		case 'filloutgender' : alert("\nPlease choose your gender.     \n");break;
		case 'filloutresidence' : alert("Please fill out the place of residence.");break;
		case 'filloutdegree' : alert("\nPlease choose your degree.     \n");break;
		case 'filloutintro' : alert("\nPlease fill out the brief introduction of yourself.     \n");break;
		case 'filloutintroineng' : alert("\nPlease fill out the brief introduction of yourself in English.     \n");break;
		//End

		//register em
		case 'choosetoe' : alert("\nPlease choose the type of entity of your company or organization.     \n\n");break;
		case 'filloutconame' : alert("\nPlease fill out your company name.     \n");break;
		case 'conameineng' : alert("\nPlease fill out the company name in English.     \n");break;
		case 'filloutpic' : alert("\nPlease fill out the name of the person in charge.     \n");break;
		case 'picineng' : alert("\nPlease fill out the name of the person in charge in English.     \n");break;
		case 'filloutbpofpic' : alert("\nPlease fill out a brief profile of your company.     \n");break;
		case 'bpofpicineng' : alert("\nPlease fill out a brief profile of your company in English.     \n");break;

		case 'insertfailedem' : alert("An error occurred while registering your information.     \n\nPlease try again. ");break;
			
		//End

		//post jobs
		case 'filloutposition' : alert("Please fill out the position.     ");break;
		case 'positionineng' : alert("Position should be consisted with alphbetical letters or numerals.     ");break;
		case 'cityineng' : alert("City should be consisted with alphbetical letters.     ");break;
		case 'filloutwhs' : alert("Please fill out weekly working hours.     ");break;
		case 'whsinnumeric' : alert("Please fill out weekly working hours with numerals.     ");break;
		case 'choosejobtarget' : alert("Please choose the nationality of applicants.     ");break;
		case 'filloutdesc' : alert("Please fill out job descriptions.     ");break;
		case 'descineng' : alert("Please fill out job descriptions in English.     ");break;
		case 'filloutmsalary' : alert("Please fill out monthly salary.     ");break;
		case 'msalaryinnumeric' : alert("Please fill out monthly salary with numerals.     ");break;
		case 'postjobsend' : alert("Your job posting was successfully completed!     ");break;
		case 'endsendemail' : alert("Your job posting with sending emails was successfully completed!     ");break;

		//End
		
		case 'selectnation' : alert("Please select your nationality.     ");break;

		case 'alreadyApp' : alert('You already applied for this position.     ');break;
		case 'requireemail' : alert('E-Mail address is required.     ');break;
		case 'notemailformat' : alert('E-Mail address format does not match.     ');break;

		case 'sameuid' : alert("Sorry, the ID has been occupied.     ");break;
		case 'overfilesize' : alert("Allowed file size for uploading is upto 800KB.    ");break;
		case 'overfilesize600K' : alert("Allowed file size for uploading is upto 600KB.    ");break;
		case 'zerofilesize' : alert("Uploaded file size is 0Byte.     ");break;
		case 'checkupto5' : alert("You may select up to 5 job categories.     ");break;

		case 'recommailsent' : alert("Your email has been sent out.     ");break;

		case 'updatememberinfo' : alert("You've updated successfully.     ");break;

		case 'alertupdatememinfo' : alert("Please update your member information.    ");break;

		case 'updatejobposting' : alert("Your job posting was successfully updated.     ");break;
		case 'deletejobposting' : alert("Your job posting was successfully deleted.     ");break;
		
		//payment		
		case 'notcorrectpay' : alert("Payment failed.     ");break;
		case 'cardpayoklogagain' : alert("Payment completed.     \n\nPlease sign in again.     ");break;
		case 'cardpayok' : alert("Payment completed.     ");break;
		case 'youalreadypaid' : alert("You've already paid.     ");break;
		//End

		case 'filloutorganization' : alert('Please fill out your company name.     ');break;
		case 'filloutinqury' : alert('Please fill out your inquiry.     ');break;
		case 'sentinqury' : alert('Your inquiry was sent.     ');break;
		case 'sentfailed' : alert("Email transmission failed.     \nPlease try again.     ");break;

		case 'chargedservice' : alert("You must pay for this service.     ");break;
		
		//2006-03-09 add
		case 'choosejobhighlight' : alert("Please select a job ad to be highlighted.     "); break;

		//2006-04-22 add
		case 'erruploadfile' : alert("There was an error while saving the file to disk.     ");break;
		case 'errdataupdateinfo' : alert("There was an error while updating the information.     \n\nPlease retry.");break;
		case 'registerfailed' : alert("An error occurred while registering.     \n\nPlease try again. ");break;
		case 'updatefailed' : alert("An error occurred while updating.     \n\nPlease try again. ");break;
		case 'submitapp' : alert("Your application was successfully transmitted to the employer.     ");break;

		//2006-05-01 : Find Password
		case 'sendpassword' : alert("We've sent temporary password to your email.     ");break;
		case 'nomemberinfo' : alert("Sorry, we can not find the exact combination of your ID and email address.     \n\nPlease try again.");break;
		
		/* For admin */
		case 'banformatsupported' : alert("The file format is not supported.     \n\nSupported file formats : gif, jpg, jpeg, swf     ");break;

		default : alert("An unknown error occurred.\n\nPlease contact us at ask@koreajoblink.com.     "); break;
	}		

	switch(div){
		case 'c' : top.window.close(); break;
		case 'b' : history.back(); break;
		case 'x' : break;
		default : break;
	}
}




