/*******************************************************************************
 * File Name            : JCPFrames.js
 * Author               : Keane India Pvt Ltd.,
 * Date of Creation     : 29 September 2008.
 * Description          : Created for Frames Module.
 * Version Number       : 1.0
 * Modification History :
 Date         Version  Who             Description of change
 2008-09-29   1.0      Keane India     Initial - created method for setting the
 									   different parameters into frameTop and
 									   read the XML data.
*******************************************************************************/

// Reads the parameters sent from the HOME Page through the URL.
var paramLength = 0;
var queryParameters = new Array();
queryParameters[0] = "";
var query = window.location.search.substring(1);
var params = query.split('&');
var position = 0;
var key = "";
var value = "";
paramLength = params.length;

for (var i = 0; i < paramLength; i++) {
    position = params[i].indexOf('=');

    if (position > 0) {
        key = params[i].substring(0, position);
       	value = params[i].substring(position + 1);
       	queryParameters[i] = value;
	}
}


function updateFrameParameters() {
	if (queryParameters[0] == "buyCD") {
		top.frames[1].document.getElementById("subcat").value = "buyCd";
	}
}