﻿// JScript File

var headAlrt="Chennai Online Alert :\n\n" ;
var headcnfrm ="Chennai Online Confirm :\n\n" ; 
			
function Jalert(Msg)
{
    alert(headAlrt + Msg);
}
function Jconfirm(Msg)
{
    return confirm(headcnfrm + Msg);
}
 String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };
 function txtEmpty(ctlID)
 {                       
    var TemCtl = document.getElementById(ctlID) ;                   
    if (TemCtl.value.trim() == "")
    return false;
    else
    return true;
 }
function SectorValidation(ctlID)
{
    var TemCtl = document.getElementById(ctlID).value ;                   
    if (TemCtl.value.trim() == "please select sector")
    return false;
    else
    return true;
}
function SubSectorValidation(ctlID)
{
    var TemCtl = document.getElementById(ctlID) ;                   
    if (TemCtl.value.trim() == "Please select a subsector")
    return false;
    else
    return true;
}
function txtChkPass(ctlID,ctlId2)
{                       
    var TemCtl = document.getElementById(ctlID) ;  
    var tempct2= document.getElementById(ctlId2) ;                  
    if (TemCtl.value.trim() != tempct2.value.trim())
    return false;
    else
    return true;
}
function checkCheckBoxes(ctlId1)
{
    var TemCtl=document.getElementById(ctlId1);                   
    if (TemCtl.checked == false)
        {
            return false;
        }
        else
        {
            return true;
        }    
}

//codeblock from bannerblurb.ascx
 var Tot_Txt = 0 ,  Column_Cnt = 0 ,intervalle=10000;var numbre_total_txt;

            var ColCnt ;

            var txt = new Array();

            var col = new Array();

            

            function boucle_images1()

            {

                  txt[0]='World class online photo printing,\<br \> gifting and sharing';
                  txt[1]='Have fun while preserving\<br \> your photo memories';
                  txt[2]='Upload, Share, Print, Albums,\<br \> Slideshows, Mobile features and more';
                  txt[3]='Hang on and we promise you\<br \> loads of wonderful experiences…..';
                  txt[4]='Calling all Digital camera owners, \<br \> Mobile camera owners';
                  txt[5]='Wedding album makers, \<br \> creative designers and card makers';   
                  //txt[6]='Photo enthusiasts who likes to\<br \> upload their photos\<br \> to a central secure server (anytime, anywhere access)';
                  txt[6]='Organize, edit, share prints of multiple sizes, textures and formats\<br \> ';
                  txt[7]='Photographers and photo enthusiasts, \<br \> mini color lab owners';
                  txt[8]='Photo art creators, Small and \<br \> large format photo finishers';
                  txt[9]='Spread the joy of sharing fond memories and cherished moments of life';
                  txt[10]='Import photos from Flickr & Picasa \<br \> Win exciting awards at Photo Contest';
                  
                  col[0]='BBB';
                          

                  numbre_total_txt = 10 ;
                  ColCnt = 1 ;
                  txtrotate();
            }
            

            function txtrotate()
            {
                  Tot_Txt = rnd(numbre_total_txt);
                  Column_Cnt = rnd(ColCnt);
                  if(Tot_Txt == numbre_total_txt)
                  Tot_Txt=0 ;
                  if(Column_Cnt == ColCnt)
                  Column_Cnt = 0 ;
                  //document.getElementById('dvBB').innerHTML =  txt[Tot_Txt];
                  //document.getElementById('dvBB').className = col[Column_Cnt];
                  setTimeout('txtrotate()',intervalle) ;
            }
            boucle_images1();
            
            function rnd(max)
            { 
                 var rndnum = max * Math.random() ;
                  rndnum = Math.ceil (rndnum) ;
                  return rndnum ;
            }
            
            function mfnPPNGBannerFlashCheck()
            {
            // Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
                    var hasProductInstall = DetectFlashVer(6, 0, 65);

                    // Version check based upon the values defined in globals
                    var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

                    // Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
                    if ( hasProductInstall && !hasRequestedVersion ) {
	                    // MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
	                    // This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
	                    // DO NOT MODIFY THE FOLLOWING FOUR LINES
	                    // Location visited after installation is complete if installation is required
	                    var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
	                    var MMredirectURL = window.location;
                        document.title = document.title.slice(0, 47) + " - Flash Player Installation";
                        var MMdoctitle = document.title;
                    } else if (hasRequestedVersion) {
	                    // if we've detected an acceptable version
	                    // embed the Flash Content SWF when all tests are passed
			                     window["PPNG_banner"] = new Object();
                                               var so = new SWFObject("PPNG_banner.swf", "PPNG_banner", "922", "270", "6" ,"#ffffff");
                                               so.addParam("scale", "noscale");
                                               so.write("flashBan");
                    	
                      }
            }
            
            function mfnPPNGCustomizerFlashCheck()
            {
            // Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
                    var hasProductInstall = DetectFlashVer(6, 0, 65);

                    // Version check based upon the values defined in globals
                    var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

                    // Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
                    if ( hasProductInstall && !hasRequestedVersion ) {
	                    // MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
	                    // This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
	                    // DO NOT MODIFY THE FOLLOWING FOUR LINES
	                    // Location visited after installation is complete if installation is required
	                    var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
	                    var MMredirectURL = window.location;
                        document.title = document.title.slice(0, 47) + " - Flash Player Installation";
                        var MMdoctitle = document.title;
                    } else if (hasRequestedVersion) {
	                    // if we've detected an acceptable version
	                    // embed the Flash Content SWF when all tests are passed
			                     window["ppngCustomizer"] = new Object();
                                               var so = new SWFObject("swf/ppngCustomizer.swf", "ppngCustomizer", "930", "265", "6" ,"#ffffff");
                                               so.addParam("scale", "noscale");
                                               so.write("flex");
                    	
                      }
            }
