
//pop window for login account request
function openLoginAccReqWindow()
{ 
	window.open("LoginAccRequest.aspx", "SolisXCFPicker", "width=550,height=450,left=" + ((window.screen.availWidth - 550) / 2) + ",top=" + ((window.screen.availHeight - 350) / 2), false);
}

function EmailFormValidation()
{
	var Form = document.forms["frmLgnAccReq"];
	
	if(Form.txtName.value.length == 0)
	{
		alert('Please enter your name');
		return false;
	}
	else if(Form.txtCompanyName.value.length == 0)
	{
		alert('Please enter the comany name');
		return false;
	}
	else if(Form.txtPhone.value.length == 0)
	{
		alert('Please enter the phone number');
		return false;
	}
	else if(Form.txtTopic.value.length == 0)
	{
		alert('Please enter the topic');
		return false;
	}
	else if(Form.txtPhone.value.length != 0)
	{
		var PhoneChar=Form.txtPhone.value;
		var SpChar="!@$%^\\\';/\"&lt;&gt;?~`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
		for (var j=0; j < PhoneChar.length; j++)
		{
			if(SpChar.indexOf(PhoneChar.charAt(j))!=-1)
			{
				alert("Phone  Number must be a valid Numeric Entry.");					
				return false;
			}
		}		
	}
	else
	{
		return true;
	}
}


