// JavaScript Document
errorid=0;
errmessage="";

addToLoadEvent = function(func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = func;
		} else {
			window.onload = function() {
				if (oldonload) {
					oldonload();
				}
				func();
			};
		}
	};
	
function showErrorMes()
{
	switch (errorid)
	{
		case 1:
			errmessage="Incorrect User ID or Password. Please try again.";
			break;
		case 2:	
			errmessage="Your SYSTRONICS Business Partner account is not active yet. You can expect receiving an email from us with account activation instructions. Please allow a few hours from the time you submitted your registration form. Please contact Support@Systronics.com for further assistance.";
			break;
		case 3:
		errmessage="Your SYSTRONICS Business Partner account has been deactivated. Please contact Support@Systronics.com for further clarification.";
			break;
		default:
			errmessage="";
			break;	
	}
	if(errmessage)
	{
		alert(errmessage);
	}
}
