function getKeyPairs(pairList) {
    keypairs = new Object(); 
    numKP = 1; 
    query=pairList;
    while (query.indexOf('&') > -1) { 
     keypairs[numKP] = query.substring(0,query.indexOf('&')); 
     query = query.substring((query.indexOf('&')) + 1); 
     numKP++; 
    } 
    keypairs[numKP] = query; 
}

function extractArray(arrayName) {
	arrayPair = new Object(); 
	numPair = 1; 
	query = arrayName;
	while (query.indexOf('|') > -1) { 
	 arrayPair[numPair] = query.substring(0,query.indexOf('|')); 
	 query = query.substring((query.indexOf('|')) + 1); 
	 numPair++; 
	} 
	arrayPair[numPair] = query; 
}

function makeWindowPhoto(url,width,height) {
 w=window.open(url,'photo','width='+width+',height='+height+',top=0,left=0,resizable=no,status=no,dependant'); 
 if (w.opener == null) w.opener=self;
 w.focus();
}

