﻿// JScript File
function sendcontactinfo()
{
    if (validate_request_proposal()) 
    {
        var ContactName = document.form1.textfield.value;
        var ContactEmail = document.form1.textfield2.value;
        var ContactPhone = document.form1.textfield3.value;
        var ContactCompany = document.form1.textfield4.value;
        var ContactMessage = document.form1.textarea.value;
        if (ContactName !== "" && ((ContactEmail != "") || (ContactPhone != ""))) {
            if (!checkemail(ContactEmail)) {
                alert("Please Enter a valid email address!");
                return false;
            }
            else {
                document.form1.action = "SendContactInfo.aspx?cntName=" + ContactName + "&cntEmail=" + ContactEmail + "&cntPh=" + ContactPhone + "&cntCmp=" + ContactCompany + "&cntMess=" + ContactMessage;
                document.form1.submit();
            }
        }
        document.form1.textfield.focus();
        alert("Thanks for sending your Proposal.Our Business Manager`s will Contact you soon.");
        return false;
    }
    else 
    {
        return false;
    }
}
function validate_request_proposal() 
{
    if (document.form1.textfield.value == "") {
        alert("Please Enter Name");
        return false;
    }

    if (document.form1.textfield2.value == "") {
        alert("Please Enter Email");
        return false;
    }
    else
        var email = document.form1.textfield2.value;
        if (!checkemail(email)) {
        alert("Please Enter valid Email Address");
        return false;
    }

    if (document.form1.textfield3.value == "") 
    {
        alert("Please Enter Phone Number");
        return false;
    }
    else
        return true;
}
function checkemail(vemail)
{
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
        if (filter.test(vemail))
        return true;
        else
        return false;
}
function SendEmailInfo() {
//    debugger;
    if (validate_request_proposal()) {
        var ContactName = document.form1.textfield.value;
        var ContactEmail = document.form1.textfield2.value;
        var ContactPhone = document.form1.textfield3.value;
        var ContactMessage = document.form1.textfield4.value;
        if (ContactName !== "" && ContactEmail != "") {
            if (!checkemail(ContactEmail)) {
                alert("Please Enter a valid email address!");
                return false;
            }
            else {
                document.form1.action = "SendContactInfo.aspx?cntName=" + ContactName + "&cntEmail=" + ContactEmail + "&cntPh=" + ContactPhone + "&cntMess=" + ContactMessage;
                document.form1.submit();
            }
        }
        alert("Thanks for sending your Proposal.Our Business Manager`s will Contact you soon.");
        return false;
    }
    else 
    {
         return false;
    
    }
}


function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}


pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}



pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}


pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}


pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}


var pausecontent2=new Array()
pausecontent2[0]='<strong>Client: CAP Software (US)</strong><br/>Client is the original retail Point-of-Sale and inventory control software system provider. Talent Gurus provides SEO, both on-page and off-page, optimization services to them. Initially, client had signed up for our SEO services for 4 months during which time their website was consistently being ranked in the first or second pages of major search engines. These dramatic and sustainable results have prompted them to extend the contract to a 12+ month period.'

pausecontent2[1]='<strong>Client: Design Firm (US)</strong><br/>This client (who wishes to remain confidential) is a design firm that provides services in Web site design, E-commerce design and development, Web-based application design and development, print collateral design, and search engine marketing. They sought solutions that would help their company increase the number of projects by increasing its staff but without increasing costs. Talent Gurus’ solution to their problem was providing them with skilled PHP and web programmers to work on their various client projects.'

pausecontent2[2]='<strong>Client: The Allkare Franchising (UK), Norden Lights (UK), Vivid Web Graphics (US)</strong><br/>Talent Gurus provides on-page and off-page SEO services to these clients from very varied business verticals. For e.g. Vivid Web Graphics is an Internet marketing and web development company, Allkare Franchising is a fire, flood and storage damage repair company, Norden Lights is a gun dog and training company. The only common factor they all have is that they want to be ranked well for some of the most competitive keywords for their specific industry.'

pausecontent2[3]='<strong>Client: Spring Medical Systems, Inc. (US)</strong><br/>This customer develops software solutions that empower physicians to better manage the clinical and administrative aspects of their practices while at the same time maintaining proven procedures and workflows. It is one of the renowned companies in Houston. Talent Gurus got on board with SEO on-page and off-page optimization services and within a short span of 3 months was able to set them up to successfully continue this on-going activity independently. '

pausecontent2[4]='<strong>Client: Sanford Kahn (US)</strong><br/>Client is an astute business speaker and author. Talent Gurus provided him website design services to build his new website and also initiated the SEO and SMO services for the site. Due to the excellent efforts of our team, Sanford Kahns website is ranked on the first page under one of the most sought after keywords "Business Author". This is one of the highly competitive keywords with searches of more than 44,600,000. These results were achieved in a relatively short time span of 2 months. Talent Gurus has been working with client for over 6 months now.'

pausecontent2[5]='<strong>Client: Consulting Firm (US)</strong><br/>Another client (who wishes to remain confidential) is a consulting firm that provides strategic talent sourcing and acquisition, and human capital and capabilities improvement in three primary markets: Professional Services and Consulting, Corporate Boards, and Industry Executives. They sought solutions that would double their potential consultant base within a limited amount of time. Using our skilled telemarketing resources, the company was able to increase the number of leads that it generated to firms providing audit, tax, and advisory services.'

pausecontent2[6]='<strong>Client: Corkscore (Aus)</strong><br/>Client is an Australian company which allows people to track wines and check prices. Talent Gurus provided BPO, specifically data research and data entry services. Working with Corkscore was the biggest challenge for our data research team, since they had to find and gather relevant information from more than 6500 wineries websites, within a month. Our data research team successfully accomplished this mission.'

pausecontent2[7]='<strong>Client: Nortek Medical Staffing (US)</strong><br/>Another client that we provide services to is this medical staffing firm that specializes in Locum Tenens, permanent and contract placements of physicians to facilities nationwide. The company wanted various solutions that included web design/development, and custom database and application design. Talent Gurus provided web design services and ITO services to meet this client’s needs. Our resources designed, launched and continue to maintain the company’s web site successfully. In addition, Talent Gurus’ ITO division provided them with the necessary technical resources to implement an on-line custom information management database application and we continue to maintain and add features to it.'

pausecontent2[8]='<strong>Client: Marketing and On-line Advertising Agency (US)</strong><br/>Client (who wishes to remain confidential) is ranked by Advertising Age as a Top 100 Interactive Agency Nationwide and is one of Talent Gurus’ largest clients. We provide the full range of internet marketing services to them, including SEO, SMO, and PPC. With our work ethic and diligence to achieve the best results, we successfully support more than 10 client projects.'

pausecontent2[9]='<strong>Client: Harrier RP (Aus)</strong><br/>The client is a HR and recruitment solutions firm in Australia for whom Talent Gurus has successfully provided resume sourcing services.'

pausecontent2[10]='<strong>Client: SGG Management LLC (US)</strong><br/>Client is a real estate and services company who Talent Gurus currently provides Virtual Assistant Services to. Some of the functions that our Virtual Assistants cover under client’s supervision include; telemarketing, e-mail marketing, preparing of lease documentation, tracking expenditure, payable and bill collection follow up.'

pausecontent2[11]='<strong>Client: Benefits Resource (US)</strong><br/>Client is a human capital management practice company. We have been working with this client for over 2 years providing BPO services for employee benefits, i.e. medical, dental, vision and life. Talent Gurus manages the administrative functions of handling the insurance coverage to the clients as well as the processes involved in implementing and maintaining these benefits.'
