// JavaScript Document
function popTrainer(){
	window.open("Training/Training_main.html","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=yes, width=820, height=630");
}

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Corneliu Lucian 'Kor' Rusu :: corneliulucian[at]gmail[dot]com */ 

var r={
	'special':/[\W]/g,
	'quotes':/['\''&'\"']/g,
	'notnumbers':/[^\d]/g
} 

function valid(o,w){
	o.value = o.value.replace(r[w],'');
} 

/*
function showNextQues(no){
	switch (no){
	case 0:
		nex = no+1;
		document.getElementById("quesBoxIntro").style.display = 'none';
		document.getElementById("quesBox"+nex).style.display = 'block';
		break;
	default:
		nex = no+1;
		document.getElementById("quesBox"+no).style.display = 'none';
		document.getElementById("quesBox"+nex).style.display = 'block';
		break;
	}
}
function showPrevQues(no){
	switch (no){
	case 1:
		nex = no;
		document.getElementById("quesBoxIntro").style.display = 'block';
		document.getElementById("quesBox"+nex).style.display = 'none';
		break;
	default:
		nex = no-1;
		document.getElementById("quesBox"+no).style.display = 'none';
		document.getElementById("quesBox"+nex).style.display = 'block';
		break;
	}
}
function showConfig(no){
	nex = no;
	document.getElementById("quesBoxIntro").style.display = 'none';
	document.getElementById("quesBox"+nex).style.display = 'none';
	document.getElementById("configTable").style.display = 'block';
}
*/

function confirmSubmit() {
	var msg;
	msg= "Are you sure you want to delete the data ? ";
	var agree=confirm(msg);
	if (agree)
		return true ;
	else
		return false ;
}
function open_win(windowurl){
	window.open(windowurl,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=yes, width=720, height=400");
}

