/* array for news and events*/
var news = new Array();
news[0] = "<font size='2'><b>New Vacancies</b> - Apply Online</font>";
news[1] = "Welding Inspector (Level II) - <a href='mailto:info@nooriaenterprises.com'>info@nooriaenterprises.com</a>, <a href='mailto:mlink.aat@gmail.com'>mlink.aat@gmail.com</a>";
news[2] = "QA/QC Supervisor/Inspector - <a href='mailto:jayapal@indianpersonnel.com'>jayapal@indianpersonnel.com</a>";
news[3] = "QA/QC Engineer - <a href='mailto:jobs_sandlinesgroup@rediffmail.com'>jobs_sandlinesgroup@rediffmail.com</a>";
news[4] = "QA/QC Managers - <a href='mailto:jayapal@indianpersonnel.com'>jayapal@indianpersonnel.com</a>, <a href='mailto:jobhs@continentalcontractors.in'>jobhs@continentalcontractors.in</a>";
news[5] = "QC Inspectors - <a href='mailto:sourcing@conticontract.com'>sourcing@conticontract.com</a>";
news[6] = "QA/QC Managers (IRCA Certified QMS ISO 9001-2008) - <a href='mailto:srrc1@ambe.com'>srrc1@ambe.com</a>, <a href='mailto:jobs@ambe.com'>jobs@ambe.com</a>, <a href='mailto:amita@asiapoweroverseas.com'>amita@asiapoweroverseas.com</a>";
news[7] = "<font size='2'><b>ADMISSIONS OPEN FOR DIPLOMA COURSES-Duration:6 MONTHS</b></font>";
news[8] = "DIPLOMA IN WELDING INSPECTION";
news[9] = "DIPLOMA IN SHIP BUILDING & SHIP REPAIR QUALITY CONTROL ";
news[10] = "DIPLOMA IN MARINE NDT";
news[11] = "DIPLOMA IN CONDITION ASSESSMENT OF TANKER STRUCTURES";
news[12] = "AWS-CWI PREPARATORY COURSE STARTING IN EVERY MONTH";
news[13] = "<font size='2'><b>OUR SISTER CONCERNS</b></font>";
news[14] = "<b>GATEWAY ACADEMY</b> - <a href='http://www.gatewayacademyindia.com' target='_blank'>www.gatewayacademyindia.com</a>";
news[15] = "-> Classes for GATE 2013 starts immeadiately.(CLASSES IN ALL BRANCHES BY EMINENT AND EXPERIENCED FACULTY WITH PROVEN TRACK RECORDS)";
news[16] = "<b>SCHOOL OF LOGISTICS MANAGEMENT AND TECHNOLOGY</b> - <a href='http://www.slmt.in' target='_blank'>www.slmt.in</a>";
news[17]= "-> Admission started for June -July batch for MBA, EXECUTIVE MBA, BBA, PG DIPLOMA, DIPLOMA, AND CERTIFICATE COURSES IN LOGISTICS MANAGEMENT. (INSTITUTE AFFILIATED TO MS UNIVERSITY(GOVT UNIVERSITY -TAMILNADU),SIDCO(A KERALA GOVE UNDER TAKING AND MEMBER OF CHARTERED INSTITUTE OF LOGISTICS AND TRANSPORT -INDIA)";
news[18] = "<b>SCHOOL OF MARKETING AND MANAGEMENT TECHNOLOGY</b>";
news[19] = "-> AFFILIATED TO SIDCO-UPCL (A GOVT OF KERALA ORGANISATION)";
news[20] = "-> Higher Diploma, Diploma, Advanced Diploma and Certificate Courses in MARKETING & MANAGEMENT";
news[21] = "<b>LIMRA COLLEGE OF ENGINEERING - <a href='http://www.limraengineeringcollege.com' target='_blank'>www.limraengineeringcollege.com</a></b>";
news[22] = "->GOVT OF INDIA RECOGNISED DEGREE LEVEL INSTITUTION OFFERS FULL TIME AND PART TIME CLASSES IN  DIPLOMA IN CIVIL ENGINEERING,DIPLOMA IN ARCHITECURAL ENGINEERING & DEGREE IN CIVIL ENGINEERING,DEGREE IN ARCHITECTURAL ENGINEERING";
news[23] = "<b>CIRCUITRONIX INSTITUTE - <a href='http://www.circuitronixinstitute.com' target='_blank'>www.circuitronixinstitute.com</a></b>";
news[24] = "->The foremost institution in Kerala especially for PCB design training.";


/*news[0] = "<font size='2'><b>INTERNATIONAL COURSE CALENDAR FOR THE YEAR 2010</b></font>";
news[1] = "<font size='2'>CSWIP Welding Inspection Level 2.  Course fee - Pounds 900</font>";
news[2] = "<font size='2'>AWS-CWI to CSWIP Bridging. Course fee - Pounds 375</font>";
news[3] = "<font size='2'>BGAS painting Inspector Course Grade 2 & 3. Course fee - Pounds 920</font>";
news[4] = "<font size='2'><b>INTERNATIONAL COURES SCHEDULE FOR THE YEAR 2010</b></font>";
news[5] = "Oct 25th - 29th, CSWIP 3.1 Welding Inspector Level 2*";
news[6] = "Oct 29/30th, AWS - CWI to CSWIP Bridging*";
news[7] = "Nov 01 - 05th, Industrial Site Coating Inspector*";
news[8] = "Nov 22 - 26, Bgas CSWIP painting inspector Grade 3/2";
news[9] = "Dec 13 - 17th, CSWIP 3.1 Welding Inspection Level 2";
news[10] = "Dec 17/18th, AWS - CWI to CSWIP Bridging**";
news[11] = "<font size='2'><b>ADMISSIONS OPEN FOR DIPLOMA COURSES-Duration:6 MONTHS</b></font>";
news[12] = "DIPLOMA IN WELDING INSPECTION";
news[13] = "DIPLOMA IN SHIP BUILDING & SHIP REPAIR QUALITY CONTROL ";
news[14] = "DIPLOMA IN MARINE NDT";
news[15] = "DIPLOMA IN CONDITION ASSESSMENT OF TANKER STRUCTURES";
news[16] = "<font size='2'><b>OUR SISTER CONCERNS</b></font>";
news[17] = "<b>GATEWAY ACADEMY</b> - <a href='http://www.gatewayacademyindia.com' target='_blank'>www.gatewayacademyindia.com</a>";
news[18] = "-> Admissions started for GATE 2011 Coaching for M.Tech Aspirants";
news[19] = "-> Classes started from JULY 2010";
news[20] = "<b>SCHOOL OF LOGISTICS MANAGEMENT AND TECHNOLOGY</b> - <a href='http://www.slmt.in' target='_blank'>www.slmt.in</a>";
news[21] = "-> Admission started for Diploma, Higher Diploma, Advanced Diploma &";
news[22] = "-> Certificate courses in SHIPPING & TRANSPORTATION";
news[23] = "<b>SCHOOL OF MARKETING AND MANAGEMENT TECHNOLOGY</b>";
news[24] = "-> Higher Diploma, Diploma, Advanced Diploma and Certificate Courses in MARKETING & MANAGEMENT";
news[25] = "<ul style='list-style:circle; margin-left:25px'>";
news[26] = "<li>Urgent Requirement for Overseas Project. Upload your CV <a href='placement.html' title='Upload CV'>Click Here</a></li>";
news[27] = "<li>Regular NDT Classes are Conducted in Kalamassery, Ernakulam</li>";
news[28] = "<li>We can provide all NDT and Inspection Services in India and Abroad</li>";
news[29] = "</ul>";
*/

function valRegistration()
{
	var name = document.registration.txtName.value;
	var address = document.registration.txtAddress.value;
	var mobile = document.registration.txtMobile.value;
	var email = document.registration.txtEmail.value;
	var reg=/^([^_\-\.])+([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\.\-])+\.([A-Za-z]{2,4})$/;
	var reg1=/^([0-9]{10,11})$/;
	if(name=="")
	{
		alert("Please Enter your name");
		document.registration.txtName.focus();
	}
	else if(address=="")
	{
		alert("Please Enter your Address");
		document.registration.txtAddress.focus();
	}
	else if(mobile=="")
	{
		alert("Please Enter your Mobile Number");
		document.registration.txtMobile.focus();
	}
	else if(reg1.test(mobile)==false)
	{
		alert("Phone number not valid");
		document.registration.txtMobile.focus();
	}
	else if(email=="")
	{
		alert("Please Enter your Email ID");
		document.registration.txtEmail.focus();
	}
	else if(reg.test(email)==false)
	{
		alert("Please Enter Valid EmailID");
		document.registration.txtEmail.focus();
	}
	else
	{
		document.registration.submit();
	}
}
function valRegistrationclear()
{
	document.registration.reset();
}

function valuploadcv()
{
	var name = document.uploadcv.txtName.value;
	var phone = document.uploadcv.txtPhone.value;
	var email = document.uploadcv.txtEmail.value;
	var file = document.uploadcv.file.value;
	var reg=/^([^_\-\.])+([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\.\-])+\.([A-Za-z]{2,4})$/;
	var reg1=/^([0-9]{10,11})$/;
	if(name=="")
	{
		alert("Please Enter your name");
		document.uploadcv.txtName.focus();
	}
	else if(phone=="")
	{
		alert("Please Enter your Phone Number");
		document.uploadcv.txtPhone.focus();
	}
	else if(reg1.test(phone)==false)
	{
		alert("Phone number not valid");
		document.uploadcv.txtPhone.focus();
	}
	else if(email=="")
	{
		alert("Please Enter your Email ID");
		document.uploadcv.txtEmail.focus();
	}
	else if(reg.test(email)==false)
	{
		alert("Please Enter Valid EmailID");
		document.uploadcv.txtEmail.focus();
	}
	else if(file=="")
	{
		alert("Please Browse a File to Upload");
		document.uploadcv.file.focus();
	}
	else
	{
		document.uploadcv.submit();
	}
}

function valuploadcvclear()
{
	document.uploadcv.reset();
}

function valFeedback()
{
	var name = document.feedback.txtName.value;
	var subject = document.feedback.txtSubject.value;
	var mobile = document.feedback.txtMobile.value;
	var email = document.feedback.txtEmail.value;
	var feedback = document.feedback.txtFeedback.value;
	var reg=/^([^_\-\.])+([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\.\-])+\.([A-Za-z]{2,4})$/;
	var reg1=/^([0-9]{10,11})$/;
	if(name=="")
	{
		alert("Please Enter your name");
		document.feedback.txtName.focus();
	}
	else if(email=="")
	{
		alert("Please Enter your Email ID");
		document.feedback.txtEmail.focus();
	}
	else if(reg.test(email)==false)
	{
		alert("Please Enter Valid EmailID");
		document.feedback.txtEmail.focus();
	}
	else if(mobile=="")
	{
		alert("Please Enter your Mobile Number");
		document.feedback.txtMobile.focus();
	}
	else if(reg1.test(mobile)==false)
	{
		alert("Phone number not valid");
		document.feedback.txtMobile.focus();
	}
	else if(subject=="")
	{
		alert("Please Enter your Subject");
		document.feedback.txtSubject.focus();
	}
	else if(feedback=="")
	{
		alert("Please Enter your Feebback");
		document.feedback.txtSubject.focus();
	}
	else
	{
		document.feedback.submit();
	}
}

function valCasestudies()
{
	var name = document.casestudies.txtName.value;
	var profession = document.casestudies.txtProfession.value;
	var company = document.casestudies.txtCompany.value;
	var mobile = document.casestudies.txtMobile.value;
	var email = document.casestudies.txtEmail.value;
	var address = document.casestudies.txtAddress.value;
	var reg=/^([^_\-\.])+([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\.\-])+\.([A-Za-z]{2,4})$/;
	var reg1=/^([0-9]{10,11})$/;
	if(name=="")
	{
		alert("Please Enter your name");
		document.registration.txtName.focus();
	}
	else if(email=="")
	{
		alert("Please Enter your Email ID");
		document.casestudies.txtEmail.focus();
	}
	else if(reg.test(email)==false)
	{
		alert("Please Enter Valid EmailID");
		document.casestudies.txtEmail.focus();
	}
	else if(mobile=="")
	{
		alert("Please Enter your Mobile Number");
		document.casestudies.txtMobile.focus();
	}
	else if(reg1.test(mobile)==false)
	{
		alert("Phone number not valid");
		document.casestudies.txtMobile.focus();
	}
	else if(profession=="")
	{
		alert("Please Enter your Profession");
		document.casestudies.txtProfession.focus();
	}
	else if(company=="")
	{
		alert("Please Enter your Company");
		document.casestudies.txtCompany.focus();
	}
	else if(address=="")
	{
		alert("Please Enter your Address");
		document.casestudies.txtAddress.focus();
	}
	else
	{
		document.casestudies.submit();
	}
}

