﻿function ShowImage(objImg, newImg) {
    objImg.src = newImg;
}


function fieldValidate(strInputName, intType, strUserName, bolIsMust) {

    this.inputName = strInputName;

    this.type = intType;

    this.userName = strUserName;

    this.isMust = bolIsMust;

}
function LoadFlashObject(flashMovie, nWidth, nHeight, divID, params, wmode) {

    //creating the container for the banner


    var FlashBannerContainer = $(divID);
    if (!FlashBannerContainer) return false;
    var flashCode = "";

    flashCode += "<OBJECT id='image_viewer_extended_v2' style='top:0px;vertical-align:top;float:inherit' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'  ";

    flashCode += "codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0'";

    flashCode += "WIDTH='" + nWidth + "' HEIGHT='" + nHeight + "' ALIGN='Top' VIEWASTEXT float='top' margin-left='15' >";

    flashCode += "<PARAM NAME=movie VALUE='" + flashMovie + "'>";
    flashCode += "<PARAM NAME=allowScriptAccess VALUE='always'>";
    flashCode += "<PARAM NAME=quality VALUE=high>";

    flashCode += "<param name=flashVars value='strVideoPath=" + params + "&bAutoLoop=true'/>";

    if (wmode != undefined) flashCode += "<param name='wmode' value='transparent'>"

    flashCode += "<EMBED  id='image_viewer_extended_v2' name='image_viewer_extended_v2'   allowScriptAccess='always' allowFullScreen='false'  flashVars='strVideoPath=" + params + "&bAutoLoop=true' style='margin-bottom:0;' src='" + flashMovie + "'  quality='high' WIDTH='" + (nWidth + 1) + "' HEIGHT='" + (nHeight + 1) + "' ALIGN='Top' "

    if (wmode != undefined) flashCode += " wmode='transparent' ";

    flashCode += "TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED>";

    flashCode += "</OBJECT>";

    FlashBannerContainer.innerHTML = flashCode;

}


