﻿/*main scripts*/

function ValidateAlpha(value) {
    return CheckRegExp("^[a-z]+$", value);
}

function ValidateNumeric(value) {
    return CheckRegExp("^[0-9]+$", value);
}

function ValidateEmail(value) {
    return CheckRegExp("^\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$", value);
}

function CheckRegExp(pattern, value) {
    var reg = new RegExp(pattern);
    return reg.exec(value) != null ? true : false;
}

function KeywordsCodes_InfoClick() {
	var control = ASPxPopupControl1;
	control.SetSize(600, 260);
	control.SetHeaderText("Cheetah Vox - Web Based Tele-Communications");
	control.SetContentUrl("Popup.aspx?p=KeywordsCodes");
	control.Show();
}

function Help_ContactSecureClick() {
	var control = ASPxPopupControl1;
	control.SetSize(655, 460);
	control.SetHeaderText("Cheetah Vox - Web Based Tele-Communications");
	control.SetContentUrl("Popup.aspx?p=ContactPop");
	control.Show();
}

function Help_ContactClick() {
	var control = ASPxPopupControl1;
	control.SetSize(655, 460);
	control.SetHeaderText("Cheetah Vox - Web Based Tele-Communications");
	control.SetContentUrl("Popup.aspx?p=ContactPop");
	control.Show();
}

function SBMenu_SShotsClick() {
	var control = ASPxPopupControl1;
	control.SetSize(655, 360);
	control.SetHeaderText("Cheetah Vox - Web Based Tele-Communications");
	control.SetContentUrl("Popup.aspx?p=ScreenShots1");
	control.Show();
}

function SBMenu_VDemos2Click() {
	var control = ASPxPopupControl1;
	control.SetSize(760, 430);
	control.SetHeaderText("Cheetah Vox - Web Based Tele-Communications");
	control.SetContentUrl("Popup.aspx?p=VideoDemo2");
	control.Show();
}

function SBMenu_VDemos3Click() {
	var control = ASPxPopupControl1;
	control.SetSize(760, 430);
	control.SetHeaderText("Cheetah Vox - Web Based Tele-Communications");
	control.SetContentUrl("Popup.aspx?p=VideoDemo");
	control.Show();
}

function SBMenu_VDemos4Click() {
	var control = ASPxPopupControl1;
	control.SetSize(760, 430);
	control.SetHeaderText("Cheetah Vox - Web Based Tele-Communications");
	control.SetContentUrl("Popup.aspx?p=VideoDemo4");
	control.Show();
}

function SBMenu_VDemosClick() {
	var control = ASPxPopupControl1;
	control.SetSize(810, 500);
	control.SetHeaderText("Cheetah Vox - Web Based Tele-Communications");
	control.SetContentUrl("Popup.aspx?p=YouTubeCVoxDemos");
	control.Show();
}

function SBMenu_ComingSoonClick() {
	var control = ASPxPopupControl1;
	control.SetSize(450, 330);
	control.SetHeaderText("Cheetah Vox - Web Based Tele-Communications");
	control.SetContentUrl("Popup.aspx?p=ComingSoon");
	control.Show();
}
