function checkMe(elem1,elem2){
   var numericExpression = /^[0-9]+$/;
   if (elem1.value.length == 0) {
		alert('You did not enter a username'); 
		return false;
   }
   if (elem2.value.length == 0) {
		alert('You did not enter a password'); 
		return false;
   }
   if (0<elem1.value.indexOf('@')) {
		alert('Remove your "@" symbol and replace it with a period ".", then try again'); 
		return false;
   }
   if (0<elem1.value.indexOf('.com')||0<elem1.value.indexOf('.net')||0<elem1.value.indexOf('.org')) {
		alert('Remove the suffix of the domain address. (Ex: ".com" ,".org" or ".net")'); 
		return false;
   }
   if (elem1.value.length == 10 && elem1.value.match(numericExpression)) {
		document.OSNPortal.unm.name="LOGIN_PHONE_NUMBER";
		document.OSNPortal.pass.name="LOGIN_PHONE_PASSWORD";
		document.OSNPortal.action="http://onestream.pingtone.com/webportal/LoginServlet";
		window.open( '#', 'myWin', 'width=900,height=640,scrollbars=yes' ); 
		document.OSNPortal.submit();
		return true;
	}    
   if ((elem1.value.length == 13 || elem1.value.length == 14) && elem1.value.match(numericExpression)) {
		document.OSNPortal.unm.name="userId";
		document.OSNPortal.pass.name="password";
		document.OSNPortal.action="http://dashboard.onestreamnetworks.com//wmi/servlet/com.sylantro.wmi.secured.WMILoginServlet";
		document.OSNPortal.submit();
		return true;
	}
   if (0<elem1.value.indexOf('.')) {
		document.OSNPortal.unm.name="unm";
		document.OSNPortal.pass.name="password";
		document.OSNPortal.action="https://www.bluetie.com/secured/process_login.asp";
		window.open( '#', 'myWin', 'width=900,height=640,scrollbars=yes' ); 
		document.OSNPortal.submit();
		return true;
	}else{
		alert('Invalid Entry. Please try again');
		return false;
		}
} 




