
function viewMovie(id)
{
	// w +30   h +80
	var win = window.open("ViewMovie.aspx?ID=" + id, "sogi_movie", "width=630, height=530, scrollbars=1, resizable=1, status=1");
	win.focus();
}


document.onmousedown = mdown;
function mdown()
{
	if (event.button == 2)
		alert("Sorry, this function is not available.    ");
}



/* * * * * * * * * * * * *
 *   Utility Functions   *
 * * * * * * * * * * * * */

// String.startsWith implementation
function String_startsWith(testStr)
{
	if (this.length < testStr.length)
		return false;
	else if (this.length == testStr.length)
		return ((this == testStr) ? true : false);
	else {
		temp = this.substring(0, testStr.length);
		return ((temp == testStr) ? true : false);
	}
}


// String.endsWith implementation
function String_endsWith(testStr)
{
	if (this.length < testStr.length)
		return false;
	else if (this.length == testStr.length)
		return ((this == testStr) ? true : false);
	else {
		temp = this.substring(this.length - testStr.length);
		return ((temp == testStr) ? true : false);
	}
}


// attach implementation functions to methods
String.prototype.startsWith = String_startsWith;
String.prototype.endsWith = String_endsWith;
