/*** @author Cristian Ciobanu*/function openWindow(URL,width,height) {    day = new Date();    id = day.getTime();    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+width+",height="+height+",left = 50,top = 50');");    return false;}function swapPIC(id, source) {	document.getElementById(id).src = source;	return false;}function checkMail() {	var name = document.getElementById('name_ml').value;	var mail = document.getElementById('email_ml').value;	var str = "";	if (name.length < 1) str = str + "Please enter your name!\n";	if (mail.length > 0){		var countMe = 0		var theCharacter = ""		for (var x = 0; x < mail.length; x++)	{			theCharacter = mail.charAt(x)			if (theCharacter == "@")	{				countMe++			}		}		if (countMe != 1) str = str + "Your e-mail is not valid! Please enter a valid email address!\n";	}	else {		str = str + "Please enter your e-mail!\n";	}	if (str.length == 0){		return true;	}	else {		alert(str);		return false;	}}function isInteger(nr){	var patt=/(^\d+$)/;	if(!patt.test(nr)){return false;}	return true;}function isDouble(nr){	var patt=/(^\d+$)|(^\d+\.\d+$)/;	if(!patt.test(nr)){return false;}	return true;}