Driver method to check above comparison function
var version1 = " " ; var version2 = " " ; if ( versionCompare ( version1 , version2 ) < 0 ) document . write ( version1 + " " + " " ) ; else if ( versionCompare ( version1 , version2 ) > 0 ) document . write ( version2 + " " + " " ) ; else document . write ( " " + " " ) ;