function getValue(name) {
  get = new String(unescape(document.location)) ;
  get = get.substr(get.indexOf('?')+1, get.length-get.indexOf('?')) ;

  tmp = get.split('&') ;

  get_count = tmp.length ;
  get_params = new Array(get_count) ;
  get_values = new Array(get_count) ;

  ni = 0 ;
  for (i in tmp) {
    pvalue = tmp[i].split('=') ;
    get_params[ni] = pvalue[0] ;
    get_values[ni] = pvalue[1] ;
    ni++ ;
  }

  for (i = 0 ; i < get_count ; i++) {
	if (get_params[i] == name) {
		return get_values[i] ;
	}
  }

}

function checkFrame() {

	if(getValue('go'))
		document.getElementById('mainFrame').src = unescape(getValue('go')) ;
	
}


