window.name="mainwindow";

function GenerateRandomNumber() {
	var randomnumber= Math.floor(Math.random()*80000000)+10000000;
	return (randomnumber);
}

function DoNothing(){
	jQuery(document).trigger('close.facebox')
}

function init_dw_Scroll() {
	if (document.getElementById('scrollLinks') != undefined) { 
		var wndo = new dw_scrollObj('wn', 'lyr1', 'tl');
		wndo.setUpScrollControls('scrollLinks');
	}
}

function ActivateFaceBox() {
	jQuery(document).ready(function($) { $('a[rel*=facebox]').facebox() })
}

jQuery(document).ready(function($) {
  $('a[rel*=facebox]').facebox()
}) 

function jumpBox(list) {
  location.href = list.options[list.selectedIndex].value
}


function formFocus(){
	 document.getElementById('Cursor').focus();
	
}
function window_open(filename, x, y)
{
  windowops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=" + x + ",height=" + y + "'");
  window.open(filename, 'New1', windowops);
  return;
}
function window_open_noscroll(filename, x, y)
{
  windowops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + x + ",height=" + y + "'");
  window.open(filename, 'New1', windowops);
  return;
}

function popup(url, name, width, height, resizable)
{
	var popwin;
	var opts = "toolbar=no,status=no,location=no,menubar=no,scrollbars=yes";
	opts += ",height=" + height + ",width=" + width + ",resizable=" + resizable;
	popwin = window.open("", name, opts);
	popwin.focus();
	popwin.location = url;
	popwin.opener = self;
}

	function picchange(PhotoName){
	if(document.images){
	document.mainpic.src = PhotoName ;
		} else {
			top.location.href= "";
			}
		}

//-->