//
// Feedback Validation for Collins Stewart Website
// 30.10.2003
//
function validateEmail(email, msg, optional) {
	var re_mail = /^([Aa-z-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	if (!re_mail.test(email.value)) {
		alert(msg);
		email.focus();
		email.select();
		return false;
	}
	return true;
}
function validateString(field, msg, min, max) {
	if (!field.value || field.value.length < min || field.value.max > max) {
		alert(msg);
		field.focus();
		field.select();
		return false;
	}
	return true;
}
function ShowPDFFile(sUrl)
{               
	var iWidth=0, iHeight=0, title="Collins Stewart Tullett plc - Announcement";
	var link=sUrl;

	var win=window.open("","new","scrollbars=yes,resizable=Yes,height=600");
	win=win.document;
	win.write("<style>body{margin:0px;}</style>");
	win.write("<title>"+title+"</title>");
	win.write("<iframe frameborder=0 border=0 src='"+link+"' style='width:100%;height:100%;'></iframe>");
}