﻿function trialDownload() 
{
    window.open("TrialDownload.aspx", "DownloadTrialVersion", "width=700px,height=680px,top=60px,left=20px,scrollbars=yes", "");
}
//function PopupDownload() 
//{
//    window.alert("You have submitted sucessfully");
//    window.open("Download.aspx", "DownloadTrialVersion", "width=400px,height=300px,top=60px,left=20px,status=yes,menubar=yes", "");

//}
function sendMail() {

    var popUp = window.open("SendMail.aspx", "SendEmail", "width=500px,height=600px,top=60px,left=20px,resizeable=no,toolbar=no,titlebar=no,scrollbar=no", "");
    if (popUp == null || typeof (popUp) == 'undefined') {
        window.open("SendMail.aspx", "SendEmail", "", "");
    }
    else {
        window.open("SendMail.aspx", "SendEmail", "width=500px,height=600px,top=60px,left=20px,resizeable=no,toolbar=no,titlebar=no,scrollbar=no", "");
    }
   
}
function VirtualMarketing() {
    window.open("VirtualMarketing.aspx", "VirtualMarketingInternship", "width=580px,height=620px,top=60px,left=20px,resizeable=no,scrollbars=yes", "");
}
function Support() {
    window.open("Support.aspx", "Support", "width=640px,height=580px,top=60px,left=20px,resizeable=no,scrollbar=no", "");
}
function DownloadUserGuide() 
{
    window.open("http://www.goace.com/Products/ACE7UserGuide.pdf", "Ace7UserGuide", "", "");
}
function Validate() {
    var x = document.getElementById('txtPhone').value;
    if (isNaN(x) || x.indexOf(" ") != -1) {
        alert("Enter numeric value"); return false;
    }
    if (x.length > 10 || x.length > 8) {
        alert("enter 10 or 8 characters"); return false;
    }
   
}

function dispTestimonials() {
    window.open("Testimonials.aspx", "Testimonials", "width=600px,height=600px,top=60px,left=20px,resizeable=no,scrollbars=yes", "");
}
function Demo() 
{
    window.open("Demo.aspx", "Demo", "width=800px,height=580px,top=60px,left=20px,resizeable=no,toolbar=no,titlebar=no,scrollbar=no", "");
}
function OpenEnhancement() {
    window.open("EnhancementPage.aspx", "Enhancement", "width=500px,height=625px,top=60px,left=20px,resizeable=no,scrollbar=no", "");
}

function PartnerUs() {
    window.open("Partner.aspx", "Partner_With_Us", "width=570px,height=660px,top=60px,left=20px,resizeable=no,scrollbar=no", "");
}
function OpenFeedback() 
{
    window.open("FeedBack.aspx", "Feedback_forum", "width=500px,height=570px,top=60px,left=20px,resizeable=no,toolbar=no,titlebar=no,scrollbar=no", "");
}
function OpenAffialiate()
{
    window.open("AffialiateRegistration.aspx", "Affialiate_Registeration_form", "width=600px,height=660px,top=60px,left=20px,scrollbars=yes", "");
}
function valMonthly() {
    //    if((event.keyCode < 48  || event.keyCode > 57)&& (event.keyCode < 96 || event.keyCode > 105) )

    var temp = document.getElementById('txtSales').value;
    if (isNaN(temp) == true) {
        alert("Please enter numeric value");
        document.getElementById('txtSales').value = "";
        document.form1.txtSales.focus();
    }
}
function ReleaseNotification() {
    window.open("NewRelease.aspx", "New_Release_Notification", "width=540px,height=350px,top=60px,left=20px,scrollbars=no", "");
}
function openWindows7() 
{
    window.open("http://www.microsoft.com/Windows/compatibility/windows-7/en-us/Details.aspx?type=Software&p=ACE%20Contact%20Manager&v=SSG%20Software%20Systems&uid=7&l=en&pf=4&pi=3&c=Enterprise%20Applications&sc=Systems%20%26%20Network%20Management&os=64-bit", "Ace_contact_Manager", "", "");
}
function openShareware() {
    window.open("http://www.asp-software.org", "Shareware", "", "");
}
function openSurvey() {
    window.open("Survey.aspx", "Survey", "width=580px,height=640px,top=60px,left=20px,scrollbars=no", "");
}

function RegNow() {
    window.close();
    window.open("https://www.regnow.com/checkout/product/14689-2", "Ace7Purchase", "", "")
}
function PayPal() {

    window.alert("You can download trial version of ACE.Your activation key will be activated once we get the payment. ");
    window.close()
    window.open("https://www.paypal.com", "Ace7Purchase", "", "")
}
function MoneyTransfer() {
    window.open("MoneyTransfer.aspx", "MoneyTransfer", "width=570px,height=350px,top=60px,left=20px,scrollbars=no", "");
}
var timeout = 500;
var closetimer = 0;
var ddmenuitem = 0;

// open hidden layer
function mopen(id) {
    // cancel close timer
    mcancelclosetime();

    // close old layer
    if (ddmenuitem) ddmenuitem.style.visibility = 'hidden';

    // get new layer and show it
    ddmenuitem = document.getElementById(id);
    ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose() {
    if (ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime() {
    closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime() {
    if (closetimer) {
        window.clearTimeout(closetimer);
        closetimer = null;
    }
}

// close layer when click-out
document.onclick = mclose;

function btnStart() {
    
    document.getElementById("Button1").disabled = true;
    document.getElementById("Button2").disabled = false;
    $find('Timer2').set_enabled(true)
    $find('Timer2')._startTimer()
}

function btnStop() {
    
    document.getElementById("Button1").disabled = false;
    document.getElementById("Button2").disabled = true;
    $find('Timer2').set_enabled(false)
    $find('Timer2')._stopTimer()        
 
}

function PostSales() {
    window.open("Post_Sales_Support.aspx", "PostSalesSupport", "width=500px,height=660px,top=60px,left=20px,resizeable=no,toolbar=no,titlebar=no,scrollbar=no", "");
}
function SiteMap() 
{
    window.open("SiteMap.aspx", "SiteMap", "width=400px,height=450px,top=60px,left=20px,resizeable=no,toolbar=no,titlebar=no,scrollbar=no", "");
}
//function sendAjaxMail() {
//    var name = Request.QueryString("Email");

//    PageMethods.SendMail2Cust("abc", "abc", "abc", "");
//}
