/* * Name: * vote_image.js * * Description: * Defines functions for making AJAX call via the HTTP protocol's GET method. * * Pre-conditions: * * imageGalleryId : REQUIRED id of the gallery * liteGraphicId : REQURIED id of the graphic * * Post-conditions: * * Log: * Anumula 03/01/2007 * creation * * Ashok Vaishnav 04/25/2008 * - Added validation for liteGraphicId for issue vx-1633. * Phuc Thieu 06/10/2008 * - VX-1799 prevent users from cheating the vote system through js */ var xmlHttp function funcVote(imageGalleryId, event) { //if the event was not a left mouse click, do not count vote and return false. // event.button = 0 (left mouse click) if(event.button !=0 || event.button=="undefined"){ alert("Sorry, your vote did not count. Please click on the Vote button to vote."); return false; } xmlHttp=GetXmlHttpObject() var imageCount; var liteGraphicId = false; // liteGraphicId is declared if (xmlHttp==null){ alert ("Browser does not support HTTP Request") return } //alert(document.gallery_thumb.radioname.length); // //for loop to get the checked radio button // for(imageCount=0;imageCount